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

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;

/**
 * 新增pm比例申请
 *
 * @author y
 * @create 2022/1/21
 */
@Data
public class MamPmPercentChangeAddEntity extends BaseAddEntity {

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

    @NotNull(message = "parameter_error")
    @Min(value = 0, message = "parameter_error")
    @Max(value = 100, message = "parameter_error")
    private Float percent;

}
