diff --git a/luoo_user/src/main/java/com/luoo/user/dao/BandInfoDao.java b/luoo_user/src/main/java/com/luoo/user/dao/BandInfoDao.java new file mode 100644 index 0000000..d0952be --- /dev/null +++ b/luoo_user/src/main/java/com/luoo/user/dao/BandInfoDao.java @@ -0,0 +1,16 @@ +package com.luoo.user.dao; + +import com.luoo.user.pojo.BandInfo; +import org.springframework.data.jpa.repository.JpaRepository; +import org.springframework.data.jpa.repository.JpaSpecificationExecutor; + +/** + * @Author: yawei.huang + * @Package: com.luoo.user.dao + * @Project: luoo_parent + * @Date: 2024/4/26 8:44 + * @Filename: BandInfoDao + * @Describe: + */ +public interface BandInfoDao extends JpaRepository, JpaSpecificationExecutor { +} diff --git a/luoo_user/src/main/java/com/luoo/user/dao/BandOperatorDao.java b/luoo_user/src/main/java/com/luoo/user/dao/BandOperatorDao.java new file mode 100644 index 0000000..a1e3b01 --- /dev/null +++ b/luoo_user/src/main/java/com/luoo/user/dao/BandOperatorDao.java @@ -0,0 +1,16 @@ +package com.luoo.user.dao; + +import com.luoo.user.pojo.BandOperator; +import org.springframework.data.jpa.repository.JpaRepository; +import org.springframework.data.jpa.repository.JpaSpecificationExecutor; + +/** + * @Author: yawei.huang + * @Package: com.luoo.user.dao + * @Project: luoo_parent + * @Date: 2024/4/26 8:44 + * @Filename: BandOperatorDao + * @Describe: + */ +public interface BandOperatorDao extends JpaRepository, JpaSpecificationExecutor { +} diff --git a/luoo_user/src/main/java/com/luoo/user/pojo/BandInfo.java b/luoo_user/src/main/java/com/luoo/user/pojo/BandInfo.java new file mode 100644 index 0000000..039bbea --- /dev/null +++ b/luoo_user/src/main/java/com/luoo/user/pojo/BandInfo.java @@ -0,0 +1,49 @@ +package com.luoo.user.pojo; + +import io.swagger.annotations.ApiModelProperty; +import lombok.*; + +import javax.persistence.Entity; +import javax.persistence.Id; +import javax.persistence.Table; +import java.io.Serializable; + +/** + * @Author: yawei.huang + * @Package: com.luoo.user.pojo + * @Project: luoo_parent + * @Date: 2024/4/26 8:33 + * @Filename: BandInfo + * @Describe: 厂牌基础信息 + */ +@Data +@NoArgsConstructor +@AllArgsConstructor +@EqualsAndHashCode +@Builder +@Entity +@Table(name="tb_band_info") +public class BandInfo implements Serializable { + + @Id + @ApiModelProperty("id") + private String id; + + @ApiModelProperty("tb_user表id") + private String userId; + + @ApiModelProperty("所在地区") + private String address; + + @ApiModelProperty("统一社会信用代码") + private String companyCode; + + @ApiModelProperty("公司名称") + private String companyName; + + @ApiModelProperty("法人") + private String legalPerson; + + @ApiModelProperty("营业执照url") + private String businessLicense; +} diff --git a/luoo_user/src/main/java/com/luoo/user/pojo/BandOperator.java b/luoo_user/src/main/java/com/luoo/user/pojo/BandOperator.java new file mode 100644 index 0000000..20b7902 --- /dev/null +++ b/luoo_user/src/main/java/com/luoo/user/pojo/BandOperator.java @@ -0,0 +1,68 @@ +package com.luoo.user.pojo; + +import io.swagger.annotations.ApiModelProperty; +import lombok.*; + +import javax.persistence.Entity; +import javax.persistence.Id; +import javax.persistence.Table; + +/** + * @Author: yawei.huang + * @Package: com.luoo.user.pojo + * @Project: luoo_parent + * @Date: 2024/4/26 8:39 + * @Filename: BandOperator + * @Describe: + */ +@Data +@NoArgsConstructor +@AllArgsConstructor +@EqualsAndHashCode +@Builder +@Entity +@Table(name = "tb_band_operator") +public class BandOperator { + + /** + * + */ + @Id + @ApiModelProperty("id") + private String id; + /** + * tb_user_info表id + */ + @ApiModelProperty("tb_user_info表id") + private String userId; + /** + * 真实姓名 + */ + @ApiModelProperty("真实姓名") + private String name; + /** + * 手机号 + */ + @ApiModelProperty("手机号") + private String mobile; + /** + * 身份证号 + */ + @ApiModelProperty("身份证号") + private String idCard; + /** + * 联系邮箱 + */ + @ApiModelProperty("联系邮箱") + private String email; + /** + * 授权书url + */ + @ApiModelProperty("授权书url") + private String authorization; + /** + * 作品url + */ + @ApiModelProperty("作品url") + private String works; +} diff --git a/luoo_user/src/main/resources/sql/20240426.sql b/luoo_user/src/main/resources/sql/20240426.sql new file mode 100644 index 0000000..fa12a94 --- /dev/null +++ b/luoo_user/src/main/resources/sql/20240426.sql @@ -0,0 +1,27 @@ +create table tb_band_info +( + id varchar(20) not null comment 'id' + primary key, + user_id varchar(20) null comment 'tb_user_info表id', + address varchar(255) null comment '所在地区', + company_code varchar(50) null comment '统一社会信用代码', + company_name varchar(255) null comment '公司名称', + legal_person varchar(50) null comment '法人', + business_license varchar(255) null comment '营业执照url' +) + comment '厂牌基础信息'; + +create table tb_band_operator +( + id varchar(20) not null + primary key, + user_id varchar(20) null comment 'tb_user_info表id', + name varchar(255) null comment '真实姓名', + mobile varchar(255) null comment '手机号', + id_card varchar(50) null comment '身份证号', + email varchar(255) null comment '联系邮箱', + authorization varchar(255) null comment '授权书url', + works varchar(255) null comment '作品url' +) + comment '厂牌运营人'; +