package com.engine.salary.entity.salarysob.param;

import com.engine.salary.util.valid.DataCheck;
import com.engine.salary.util.valid.RuntimeTypeEnum;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * @description: 薪资账套的校验规则保存参数
 * @author: xiajun
 * @modified By: xiajun
 * @date: Created in 1/20/22 10:31 AM
 * @version:v1.0
 */
@Data
@Accessors(chain = true)
public class SalarySobCheckRuleSaveParam {

    //主键id")
    @DataCheck(require = true,runtime = RuntimeTypeEnum.UPDATE,message = "ID不允许为空")
    private Long id;


    //薪资账套id
    @DataCheck(require = true, message = "薪资账套的ID不允许为空")
    private Long salarySobId;

    //规则名称
    @DataCheck(require = true,max = 40, message = "名称不允许为空且最大字符不超过40")
    private String name;


    //公式id
    @DataCheck(require = true, message = "校验规则公式不允许为空")
    private Long formulaId;

    //备注
    @DataCheck(max = 80, message = "备注不能超过80个字符")
    private String description;
}
