package com.cpop.oam.business.bo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * OAM-任务-关联员工任务组表Bo
 *
 * @author DB.lost
 * @since 2023-05-22
 */
@Data
@Accessors(chain = true)
@ApiModel(value = "TaskStaffGroup对象", description = "OAM-任务-关联员工任务组表")
public class TaskStaffGroupBo implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @ApiModelProperty("主键")
    private String id;

    /**
     * 任务id
     */
    @NotBlank(message = "任务id不能为空")
    @ApiModelProperty(value = "任务id", required = true)
    private String taskId;

    /**
     * 员工id
     */
    @NotBlank(message = "员工id不能为空")
    @ApiModelProperty(value = "员工id", required = true)
    private String staffId;

    /**
     * 绩点
     */
    @Min(value = 0)
    @NotNull(message = "绩点不能为空")
    @ApiModelProperty(value = "绩点", required = true)
    private Integer gradePoint;

}
