release-新增表user_process

release-2024-08-08
pikaqiudeshujia 7 months ago
parent adec59589e
commit 682ef08d46

@ -39,12 +39,14 @@ public class ArtistController {
}
@ApiOperation(value = "音乐人-成员绑定", notes = "音乐人-成员绑定")
@PostMapping("/bind")
public Result<Void> memberBind(@ApiParam(value = "绑定对象",required = true) @Valid @RequestBody ArtistUserBindDto artistUserBindDto) {
artistService.bindArtistAndMember(artistUserBindDto);
return Result.success();
}
@ApiOperation(value = "音乐人-成员解绑", notes = "音乐人-成员解绑")
@PostMapping("/unbind")
public Result<Void> memberUnBind(@ApiParam(value = "解绑对象",required = true) @Valid @RequestBody ArtistUserBindDto artistUserBindDto) {
artistService.unBindArtistAndMember(artistUserBindDto);
return Result.success();

@ -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<UserProcess,String>, JpaSpecificationExecutor<UserProcess> {
}

@ -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;
}

@ -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 '人员注册审批表';
Loading…
Cancel
Save