package com.crm.rely.backend.core.entity.ib.balance;

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;

/**
 * Created by max on 2020/7/14.
 */
@Data
public class AgentBalanceRecordAddEntity extends BaseAddEntity{

    @NotNull(message = "parameter_error")
    @Min(value = 1,message = "parameter_error")
    private Long agentId;
    @NotNull(message = "parameter_error")
    @Min(value = 0,message = "parameter_error")
    private Float amount;
    @NotNull(message = "parameter_error")
    @Min(value = 1,message = "parameter_error")
    @Max(value = 2,message = "parameter_error")
    private Integer type;

    private Integer balanceType;
    @NotNull(message = "parameter_error")
    private String comment;

}
