From 682ef08d467c22856f64cc941009cf5d5ba6b430 Mon Sep 17 00:00:00 2001 From: pikaqiudeshujia Date: Sun, 28 Apr 2024 08:33:01 +0800 Subject: [PATCH] =?UTF-8?q?release-=E6=96=B0=E5=A2=9E=E8=A1=A8user=5Fproce?= =?UTF-8?q?ss?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../user/controller/ArtistController.java | 2 + .../com/luoo/user/dao/UserProcessDao.java | 16 +++++++ .../java/com/luoo/user/pojo/UserProcess.java | 43 +++++++++++++++++++ luoo_user/src/main/resources/sql/20240428.sql | 11 +++++ 4 files changed, 72 insertions(+) create mode 100644 luoo_user/src/main/java/com/luoo/user/dao/UserProcessDao.java create mode 100644 luoo_user/src/main/java/com/luoo/user/pojo/UserProcess.java create mode 100644 luoo_user/src/main/resources/sql/20240428.sql diff --git a/luoo_user/src/main/java/com/luoo/user/controller/ArtistController.java b/luoo_user/src/main/java/com/luoo/user/controller/ArtistController.java index 454721f..638e437 100644 --- a/luoo_user/src/main/java/com/luoo/user/controller/ArtistController.java +++ b/luoo_user/src/main/java/com/luoo/user/controller/ArtistController.java @@ -39,12 +39,14 @@ public class ArtistController { } @ApiOperation(value = "音乐人-成员绑定", notes = "音乐人-成员绑定") + @PostMapping("/bind") public Result memberBind(@ApiParam(value = "绑定对象",required = true) @Valid @RequestBody ArtistUserBindDto artistUserBindDto) { artistService.bindArtistAndMember(artistUserBindDto); return Result.success(); } @ApiOperation(value = "音乐人-成员解绑", notes = "音乐人-成员解绑") + @PostMapping("/unbind") public Result memberUnBind(@ApiParam(value = "解绑对象",required = true) @Valid @RequestBody ArtistUserBindDto artistUserBindDto) { artistService.unBindArtistAndMember(artistUserBindDto); return Result.success(); diff --git a/luoo_user/src/main/java/com/luoo/user/dao/UserProcessDao.java b/luoo_user/src/main/java/com/luoo/user/dao/UserProcessDao.java new file mode 100644 index 0000000..23a401d --- /dev/null +++ b/luoo_user/src/main/java/com/luoo/user/dao/UserProcessDao.java @@ -0,0 +1,16 @@ +package com.luoo.user.dao; + +import com.luoo.user.pojo.UserProcess; +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/28 8:32 + * @Filename: UserProcessDao + * @Describe: + */ +public interface UserProcessDao extends JpaRepository, JpaSpecificationExecutor { +} diff --git a/luoo_user/src/main/java/com/luoo/user/pojo/UserProcess.java b/luoo_user/src/main/java/com/luoo/user/pojo/UserProcess.java new file mode 100644 index 0000000..7b91e31 --- /dev/null +++ b/luoo_user/src/main/java/com/luoo/user/pojo/UserProcess.java @@ -0,0 +1,43 @@ +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/28 8:27 + * @Filename: UserProcess + * @Describe: + */ +@Data +@NoArgsConstructor +@AllArgsConstructor +@EqualsAndHashCode +@Builder +@Entity +@Table(name="tb_user_process") +public class UserProcess implements Serializable { + + @Id + @ApiModelProperty("id") + private String id; + + @ApiModelProperty("tb_user表id") + private String userId; + + @ApiModelProperty("申请类型 1-音乐人 2-厂牌") + private String type; + + @ApiModelProperty("申请状态 0-待审批 1-审批通过 2-审批成功") + private String status; + + @ApiModelProperty("拒绝理由") + private String content; +} diff --git a/luoo_user/src/main/resources/sql/20240428.sql b/luoo_user/src/main/resources/sql/20240428.sql new file mode 100644 index 0000000..d7a4ec9 --- /dev/null +++ b/luoo_user/src/main/resources/sql/20240428.sql @@ -0,0 +1,11 @@ +create table tb_user_process +( + id varchar(20) not null + primary key, + user_id varchar(20) null comment '用户id', + type int(5) null comment '申请类型 1-音乐人 2-厂牌', + status int(5) null comment '申请状态 0-待审批 1-审批通过 2-审批成功', + content longtext null comment '拒绝理由' +) + comment '人员注册审批表'; +