Commit 3b0abfb26ed8278fa4cd56ddc54d22cd0095fb5f

Authored by YunaiV
1 parent 241064e7

✨ feat(im): 初始化群申请 v0.3:第四把 review(优化界面,进一步对齐微信界面)【之前提交错了】

yudao-module-im/src/main/java/cn/iocoder/yudao/module/im/controller/admin/face/vo/userItem/ImFaceUserItemSaveReqVO.java
1 -// TODO @AI:java 规范,应该是 useritem  
2 package cn.iocoder.yudao.module.im.controller.admin.face.vo.useritem; 1 package cn.iocoder.yudao.module.im.controller.admin.face.vo.useritem;
3 2
4 import io.swagger.v3.oas.annotations.media.Schema; 3 import io.swagger.v3.oas.annotations.media.Schema;
  4 +import jakarta.validation.constraints.Max;
  5 +import jakarta.validation.constraints.Min;
5 import jakarta.validation.constraints.NotBlank; 6 import jakarta.validation.constraints.NotBlank;
6 import jakarta.validation.constraints.NotNull; 7 import jakarta.validation.constraints.NotNull;
7 import jakarta.validation.constraints.Size; 8 import jakarta.validation.constraints.Size;
@@ -23,10 +24,14 @@ public class ImFaceUserItemSaveReqVO { @@ -23,10 +24,14 @@ public class ImFaceUserItemSaveReqVO {
23 24
24 @Schema(description = "渲染宽度(像素)", requiredMode = Schema.RequiredMode.REQUIRED, example = "200") 25 @Schema(description = "渲染宽度(像素)", requiredMode = Schema.RequiredMode.REQUIRED, example = "200")
25 @NotNull(message = "渲染宽度不能为空") 26 @NotNull(message = "渲染宽度不能为空")
  27 + @Min(value = 1, message = "渲染宽度不能小于 1 像素")
  28 + @Max(value = 2048, message = "渲染宽度不能大于 2048 像素")
26 private Integer width; 29 private Integer width;
27 30
28 @Schema(description = "渲染高度(像素)", requiredMode = Schema.RequiredMode.REQUIRED, example = "200") 31 @Schema(description = "渲染高度(像素)", requiredMode = Schema.RequiredMode.REQUIRED, example = "200")
29 @NotNull(message = "渲染高度不能为空") 32 @NotNull(message = "渲染高度不能为空")
  33 + @Min(value = 1, message = "渲染高度不能小于 1 像素")
  34 + @Max(value = 2048, message = "渲染高度不能大于 2048 像素")
30 private Integer height; 35 private Integer height;
31 36
32 } 37 }
yudao-module-im/src/main/java/cn/iocoder/yudao/module/im/controller/admin/manager/face/vo/item/ImFacePackItemSaveReqVO.java
1 package cn.iocoder.yudao.module.im.controller.admin.manager.face.vo.item; 1 package cn.iocoder.yudao.module.im.controller.admin.manager.face.vo.item;
2 2
3 import io.swagger.v3.oas.annotations.media.Schema; 3 import io.swagger.v3.oas.annotations.media.Schema;
  4 +import jakarta.validation.constraints.Max;
  5 +import jakarta.validation.constraints.Min;
4 import jakarta.validation.constraints.NotBlank; 6 import jakarta.validation.constraints.NotBlank;
5 import jakarta.validation.constraints.NotNull; 7 import jakarta.validation.constraints.NotNull;
6 import jakarta.validation.constraints.Size; 8 import jakarta.validation.constraints.Size;
@@ -29,10 +31,14 @@ public class ImFacePackItemSaveReqVO { @@ -29,10 +31,14 @@ public class ImFacePackItemSaveReqVO {
29 31
30 @Schema(description = "渲染宽度(像素)", requiredMode = Schema.RequiredMode.REQUIRED, example = "200") 32 @Schema(description = "渲染宽度(像素)", requiredMode = Schema.RequiredMode.REQUIRED, example = "200")
31 @NotNull(message = "渲染宽度不能为空") 33 @NotNull(message = "渲染宽度不能为空")
  34 + @Min(value = 1, message = "渲染宽度不能小于 1 像素")
  35 + @Max(value = 2048, message = "渲染宽度不能大于 2048 像素")
32 private Integer width; 36 private Integer width;
33 37
34 @Schema(description = "渲染高度(像素)", requiredMode = Schema.RequiredMode.REQUIRED, example = "200") 38 @Schema(description = "渲染高度(像素)", requiredMode = Schema.RequiredMode.REQUIRED, example = "200")
35 @NotNull(message = "渲染高度不能为空") 39 @NotNull(message = "渲染高度不能为空")
  40 + @Min(value = 1, message = "渲染高度不能小于 1 像素")
  41 + @Max(value = 2048, message = "渲染高度不能大于 2048 像素")
36 private Integer height; 42 private Integer height;
37 43
38 @Schema(description = "排序", requiredMode = Schema.RequiredMode.REQUIRED, example = "0") 44 @Schema(description = "排序", requiredMode = Schema.RequiredMode.REQUIRED, example = "0")