From f7231f8f8deb1f12a953338b57383c45d4621aff Mon Sep 17 00:00:00 2001 From: pikaqiudeshujia Date: Mon, 24 Jun 2024 09:01:23 +0800 Subject: [PATCH] =?UTF-8?q?release-=20app=E7=AB=AF=E6=B3=A8=E5=86=8C?= =?UTF-8?q?=E9=9F=B3=E4=B9=90=E4=BA=BA=E6=B7=BB=E5=8A=A0=E6=89=8B=E6=9C=BA?= =?UTF-8?q?=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/luoo/user/controller/ArtistController.java | 5 ----- .../com/luoo/user/dto/artist/ArtistRegisterAppDto.java | 10 +++++++--- .../com/luoo/user/dto/artist/ArtistRegisterDto.java | 3 +++ luoo_user/src/main/resources/sql/20240624.sql | 3 +++ 4 files changed, 13 insertions(+), 8 deletions(-) create mode 100644 luoo_user/src/main/resources/sql/20240624.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 23f4909..9bb8123 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 @@ -52,11 +52,6 @@ public class ArtistController { return Result.success(); } - - - - - @ApiOperation(value = "未审核的音乐人列表", notes = "未审核的音乐人列表") @GetMapping("/list/un-approve/{page}/{size}") public Result> getUnApproveList(@ApiParam(value = "Header中的token信息", required = true) @RequestHeader("Authorization") String token, diff --git a/luoo_user/src/main/java/com/luoo/user/dto/artist/ArtistRegisterAppDto.java b/luoo_user/src/main/java/com/luoo/user/dto/artist/ArtistRegisterAppDto.java index 7d4d9b5..1f8a7dc 100644 --- a/luoo_user/src/main/java/com/luoo/user/dto/artist/ArtistRegisterAppDto.java +++ b/luoo_user/src/main/java/com/luoo/user/dto/artist/ArtistRegisterAppDto.java @@ -24,15 +24,19 @@ import java.io.Serializable; @Builder @Data public class ArtistRegisterAppDto implements Serializable { - @ApiModelProperty("歌手名") + @ApiModelProperty(value = "歌手名", required = true) @NotBlank(message = "歌手名必填") private String nickName; - @ApiModelProperty("所在地区") + @ApiModelProperty(value = "所在地区", required = true) @NotBlank(message = "所在地区必填") private String address; - @ApiModelProperty("流派风格") + @ApiModelProperty(value = "流派风格", required = true) @NotBlank(message = "流派风格必填") private String style; + + @ApiModelProperty(name = "mobile", value = "手机号", required = true) + @NotBlank(message = "手机号必填") + private String mobile; } diff --git a/luoo_user/src/main/java/com/luoo/user/dto/artist/ArtistRegisterDto.java b/luoo_user/src/main/java/com/luoo/user/dto/artist/ArtistRegisterDto.java index 05a1c4e..c297ab4 100644 --- a/luoo_user/src/main/java/com/luoo/user/dto/artist/ArtistRegisterDto.java +++ b/luoo_user/src/main/java/com/luoo/user/dto/artist/ArtistRegisterDto.java @@ -69,6 +69,9 @@ public class ArtistRegisterDto implements Serializable { @NotBlank(message = "密码必填") private String password; + @ApiModelProperty(name = "mobile", value = "手机号") + private String mobile; + // @ApiModelProperty("负责人名称") // @NotBlank(message = "负责人名称必填") // private String responsibleName; diff --git a/luoo_user/src/main/resources/sql/20240624.sql b/luoo_user/src/main/resources/sql/20240624.sql new file mode 100644 index 0000000..87da7fc --- /dev/null +++ b/luoo_user/src/main/resources/sql/20240624.sql @@ -0,0 +1,3 @@ +alter table tb_artist_register + add mobile varchar(50) null comment '手机号'; +