package com.czg.system.dto;

import com.czg.validator.group.DefaultGroup;
import com.czg.validator.group.InsertGroup;
import com.czg.validator.group.UpdateGroup;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * @author GYJoker
 */
@Data
@Accessors(chain = true)
public class SysParamsDTO implements Serializable {

    @NotBlank(message = "参数编码不能为空", groups = {InsertGroup.class, UpdateGroup.class})
    private String paramCode;

    @NotBlank(message = "参数值不能为空", groups = DefaultGroup.class)
    private String paramValue;

    @NotNull(message = "参数类型不能为空", groups = {UpdateGroup.class, UpdateGroup.class})
    private String paramType;
    private String remark;
}
