package com.crm.rely.backend.core.entity.custom.commission;

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

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

/**
 * Created by max on 2020/5/12.
 */
@Data
public class CustomCommissionApplyAddEntity extends BaseAddEntity{

    private Long agentId;

    private Long cId;

    @NotNull(message = "invalid_params")
    @Min(value = 0,message = "invalid_params")
    private Long login;

    private Long loginType;

//    @NotNull(message = "invalid_params")
//    @Min(value = 0,message = "invalid_params")
    private Float oldPoint;

    @NotNull(message = "invalid_params")
    @Min(value = 0,message = "invalid_params")
    private Float newPoint;

    private Float oldHide;

    @NotNull(message = "invalid_params")
    @Min(value = 0,message = "invalid_params")
    private Float newHide;

}
