package com.crm.rely.backend.core.entity.sales;

import com.crm.rely.backend.core.entity.base.BaseAddEntity;
import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

@Data
public class SalesSalaryRecordAddEntity extends BaseAddEntity {

    @NotNull(message = "parameter_error")
    private Long salesId;

    @NotNull(message = "parameter_error")
    private Float amount;
    /**
     * 1:工资
     * 2:人工处理
     * 3:出金
     */
    private Integer recordType;
    /**
     * 操作类型
     * 1：增加
     * 2: 减少
     */
//    @NotNull(message = "parameter_error")
//    @Min(value = 1, message = "parameter_error")
//    @Max(value = 2, message = "parameter_error")
    private Integer operateType;

}
