package jnpf.model.personnels.dto.rewardspunishments;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.math.BigDecimal;

@Data
public class FtbPersonnelsRewardsPunishmentsUpdateDTO {

    /**
     * 规则名称
     */
    @NotBlank(message = "规则名称不能为空")
    @Size(max = 20, message = "规则名称长度不能超过20")
    private String regularName;

    /**
     * 金额
     */
    @NotNull(message = "金额不能为空")
    private BigDecimal money;

    /**
     * 主键id
     */
    @NotBlank(message = "主键id不能为空")
    private String id;

    /**
     * 是否记入员工档案,0否1是
     */
    @NotNull(message = "是否记入员工档案不能为空")
    private Integer isRecorded;

    /**
     * 类型，0奖励，1惩罚
     */
    @NotNull(message = "类型不能为空")
    private Integer type;

}
