提交 | 用户 | 时间
|
e7c126
|
1 |
package com.iailab.module.system.controller.admin.permission.vo.role; |
H |
2 |
|
|
3 |
import com.mzt.logapi.starter.annotation.DiffLogField; |
|
4 |
import io.swagger.v3.oas.annotations.media.Schema; |
|
5 |
import lombok.Data; |
|
6 |
|
|
7 |
import javax.validation.constraints.NotBlank; |
|
8 |
import javax.validation.constraints.NotNull; |
|
9 |
import javax.validation.constraints.Size; |
|
10 |
|
|
11 |
@Schema(description = "管理后台 - 角色创建/更新 Request VO") |
|
12 |
@Data |
|
13 |
public class RoleSaveReqVO { |
|
14 |
|
|
15 |
@Schema(description = "角色编号", example = "1") |
|
16 |
private Long id; |
|
17 |
|
|
18 |
@Schema(description = "角色名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "管理员") |
|
19 |
@NotBlank(message = "角色名称不能为空") |
|
20 |
@Size(max = 30, message = "角色名称长度不能超过 30 个字符") |
|
21 |
@DiffLogField(name = "角色名称") |
|
22 |
private String name; |
|
23 |
|
|
24 |
@NotBlank(message = "角色标志不能为空") |
|
25 |
@Size(max = 100, message = "角色标志长度不能超过 100 个字符") |
|
26 |
@Schema(description = "角色编码", requiredMode = Schema.RequiredMode.REQUIRED, example = "ADMIN") |
|
27 |
@DiffLogField(name = "角色标志") |
|
28 |
private String code; |
|
29 |
|
|
30 |
@Schema(description = "显示顺序", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
|
31 |
@NotNull(message = "显示顺序不能为空") |
|
32 |
@DiffLogField(name = "显示顺序") |
|
33 |
private Integer sort; |
|
34 |
|
|
35 |
@Schema(description = "备注", example = "我是一个角色") |
|
36 |
@DiffLogField(name = "备注") |
|
37 |
private String remark; |
|
38 |
|
|
39 |
} |