基础版本完成
This commit is contained in:
		
							
								
								
									
										21
									
								
								commons/pom.xml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										21
									
								
								commons/pom.xml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,21 @@
 | 
			
		||||
<?xml version="1.0" encoding="UTF-8"?>
 | 
			
		||||
<project xmlns="http://maven.apache.org/POM/4.0.0"
 | 
			
		||||
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 | 
			
		||||
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
 | 
			
		||||
    <modelVersion>4.0.0</modelVersion>
 | 
			
		||||
    <parent>
 | 
			
		||||
        <groupId>com.example</groupId>
 | 
			
		||||
        <artifactId>SpringCloudStudy</artifactId>
 | 
			
		||||
        <version>0.0.1-SNAPSHOT</version>
 | 
			
		||||
    </parent>
 | 
			
		||||
 | 
			
		||||
    <groupId>org.example</groupId>
 | 
			
		||||
    <artifactId>commons</artifactId>
 | 
			
		||||
 | 
			
		||||
    <properties>
 | 
			
		||||
        <maven.compiler.source>8</maven.compiler.source>
 | 
			
		||||
        <maven.compiler.target>8</maven.compiler.target>
 | 
			
		||||
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
 | 
			
		||||
    </properties>
 | 
			
		||||
 | 
			
		||||
</project>
 | 
			
		||||
							
								
								
									
										17
									
								
								commons/src/main/java/com/test/entity/Book.java
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										17
									
								
								commons/src/main/java/com/test/entity/Book.java
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,17 @@
 | 
			
		||||
package com.test.entity;
 | 
			
		||||
 | 
			
		||||
import lombok.Data;
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * ClassName: Book
 | 
			
		||||
 * Package: com.test.entity
 | 
			
		||||
 *
 | 
			
		||||
 * @author yovinchen
 | 
			
		||||
 * @Create 2023/8/14 21:17
 | 
			
		||||
 */
 | 
			
		||||
@Data
 | 
			
		||||
public class Book {
 | 
			
		||||
    int bid;
 | 
			
		||||
    String title;
 | 
			
		||||
    String des;
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										17
									
								
								commons/src/main/java/com/test/entity/Borrow.java
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										17
									
								
								commons/src/main/java/com/test/entity/Borrow.java
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,17 @@
 | 
			
		||||
package com.test.entity;
 | 
			
		||||
 | 
			
		||||
import lombok.Data;
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * ClassName: Borrow
 | 
			
		||||
 * Package: com.test.entity
 | 
			
		||||
 *
 | 
			
		||||
 * @author yovinchen
 | 
			
		||||
 * @Create 2023/8/14 17:01
 | 
			
		||||
 */
 | 
			
		||||
@Data
 | 
			
		||||
public class Borrow {
 | 
			
		||||
    int id;
 | 
			
		||||
    int uid;
 | 
			
		||||
    int bid;
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										31
									
								
								commons/src/main/java/com/test/entity/User.java
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										31
									
								
								commons/src/main/java/com/test/entity/User.java
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,31 @@
 | 
			
		||||
package com.test.entity;
 | 
			
		||||
 | 
			
		||||
import lombok.Data;
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * ClassName: User
 | 
			
		||||
 * Package: com.test.entity
 | 
			
		||||
 *
 | 
			
		||||
 * @author yovinchen
 | 
			
		||||
 * @Create 2023/8/14 17:01
 | 
			
		||||
 */
 | 
			
		||||
@Data
 | 
			
		||||
public class User {
 | 
			
		||||
    int uid;
 | 
			
		||||
    String name;
 | 
			
		||||
    String sex;
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * ClassName: Book
 | 
			
		||||
     * Package: com.test.entity
 | 
			
		||||
     *
 | 
			
		||||
     * @author yovinchen
 | 
			
		||||
     * @Create 2023/8/14 17:01
 | 
			
		||||
     */
 | 
			
		||||
    @Data
 | 
			
		||||
    public static class Book {
 | 
			
		||||
        int bid;
 | 
			
		||||
        String title;
 | 
			
		||||
        String desc;
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user