package com.crm.rely.backend.core.entity.user.info;

import com.crm.rely.backend.core.entity.base.BaseAddEntity;
import com.crm.rely.backend.core.entity.base.BaseUpdateEntity;
import lombok.Data;
import org.hibernate.validator.constraints.NotEmpty;

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

/**
 * @author y
 * @create 2022/6/8
 */
@Data
public class UserShareUpdateEntity extends BaseAddEntity {

    @NotNull(message = "invalid_params")
    @NotEmpty(message = "invalid_params")
    private String salesNo;

    @Max(value = 1, message = "invalid_params")
    @Min(value = 0, message = "invalid_params")
    private Float share;

    private Long userId;
}
