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