package cn.iocoder.yudao.module.member.controller.admin.configdata.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import javax.validation.constraints.*;

@Schema(description = "管理后台 - 配置数据新增/修改 Request VO")
@Data
public class ConfigDataSaveReqVO {

    @Schema(description = "字典编码", requiredMode = Schema.RequiredMode.REQUIRED, example = "5829")
    private Long id;

    @Schema(description = "配置标签", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "配置标签不能为空")
    private String label;

    @Schema(description = "配置键值", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "配置键值不能为空")
    private String value;

    @Schema(description = "键值类型，1-文本，2-时间", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "键值类型，1-文本，2-时间不能为空")
    private Integer valueType;

    @Schema(description = "配置类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @NotEmpty(message = "配置类型不能为空")
    private String dictType;

    @Schema(description = "备注", example = "随便")
    private String remark;

}