package com.iailab.module.infra.controller.admin.config.vo;
|
|
import io.swagger.v3.oas.annotations.media.Schema;
|
import lombok.Data;
|
|
import javax.validation.constraints.NotBlank;
|
import javax.validation.constraints.NotEmpty;
|
import javax.validation.constraints.NotNull;
|
import javax.validation.constraints.Size;
|
|
@Schema(description = "管理后台 - 参数配置创建/修改 Request VO")
|
@Data
|
public class ConfigSaveReqVO {
|
|
@Schema(description = "参数配置序号", example = "1024")
|
private Long id;
|
|
@Schema(description = "参数分组", requiredMode = Schema.RequiredMode.REQUIRED, example = "biz")
|
@NotEmpty(message = "参数分组不能为空")
|
@Size(max = 50, message = "参数名称不能超过 50 个字符")
|
private String category;
|
|
@Schema(description = "参数名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "数据库名")
|
@NotBlank(message = "参数名称不能为空")
|
@Size(max = 100, message = "参数名称不能超过 100 个字符")
|
private String name;
|
|
@Schema(description = "参数键名", requiredMode = Schema.RequiredMode.REQUIRED, example = "yunai.db.username")
|
@NotBlank(message = "参数键名长度不能为空")
|
@Size(max = 100, message = "参数键名长度不能超过 100 个字符")
|
private String key;
|
|
@Schema(description = "参数键值", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024")
|
@NotBlank(message = "参数键值不能为空")
|
@Size(max = 500, message = "参数键值长度不能超过 500 个字符")
|
private String value;
|
|
@Schema(description = "是否可见", requiredMode = Schema.RequiredMode.REQUIRED, example = "true")
|
@NotNull(message = "是否可见不能为空")
|
private Boolean visible;
|
|
@Schema(description = "备注", example = "备注一下很帅气!")
|
private String remark;
|
|
}
|