提交 | 用户 | 时间
|
e7c126
|
1 |
package com.iailab.module.infra.controller.admin.config.vo; |
H |
2 |
|
|
3 |
import io.swagger.v3.oas.annotations.media.Schema; |
|
4 |
import lombok.Data; |
|
5 |
|
|
6 |
import javax.validation.constraints.NotBlank; |
|
7 |
import javax.validation.constraints.NotEmpty; |
|
8 |
import javax.validation.constraints.NotNull; |
|
9 |
import javax.validation.constraints.Size; |
|
10 |
|
|
11 |
@Schema(description = "管理后台 - 参数配置创建/修改 Request VO") |
|
12 |
@Data |
|
13 |
public class ConfigSaveReqVO { |
|
14 |
|
|
15 |
@Schema(description = "参数配置序号", example = "1024") |
|
16 |
private Long id; |
|
17 |
|
|
18 |
@Schema(description = "参数分组", requiredMode = Schema.RequiredMode.REQUIRED, example = "biz") |
|
19 |
@NotEmpty(message = "参数分组不能为空") |
|
20 |
@Size(max = 50, message = "参数名称不能超过 50 个字符") |
|
21 |
private String category; |
|
22 |
|
|
23 |
@Schema(description = "参数名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "数据库名") |
|
24 |
@NotBlank(message = "参数名称不能为空") |
|
25 |
@Size(max = 100, message = "参数名称不能超过 100 个字符") |
|
26 |
private String name; |
|
27 |
|
|
28 |
@Schema(description = "参数键名", requiredMode = Schema.RequiredMode.REQUIRED, example = "yunai.db.username") |
|
29 |
@NotBlank(message = "参数键名长度不能为空") |
|
30 |
@Size(max = 100, message = "参数键名长度不能超过 100 个字符") |
|
31 |
private String key; |
|
32 |
|
|
33 |
@Schema(description = "参数键值", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
|
34 |
@NotBlank(message = "参数键值不能为空") |
|
35 |
@Size(max = 500, message = "参数键值长度不能超过 500 个字符") |
|
36 |
private String value; |
|
37 |
|
|
38 |
@Schema(description = "是否可见", requiredMode = Schema.RequiredMode.REQUIRED, example = "true") |
|
39 |
@NotNull(message = "是否可见不能为空") |
|
40 |
private Boolean visible; |
|
41 |
|
|
42 |
@Schema(description = "备注", example = "备注一下很帅气!") |
|
43 |
private String remark; |
|
44 |
|
|
45 |
} |