package com.cpop.oam.business.bo;


import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.experimental.Accessors;


/**
 * OAM-任务-关联员工任务组表Bo
 *
 * @author DB.lost
 * @since 2023-05-22
 */
@Data
@Accessors(chain = true)
@Schema(description = "OAM-任务-关联员工任务组表")
public class TaskStaffGroupBo {

    /**
     * 主键
     */
    @Schema(description ="主键")
    private String id;

    /**
     * 任务id
     */
    @NotBlank(message = "任务id不能为空")
    @Schema(description = "任务id", requiredMode = Schema.RequiredMode.REQUIRED)
    private String taskId;

    /**
     * 员工id
     */
    @NotBlank(message = "员工id不能为空")
    @Schema(description = "员工id", requiredMode = Schema.RequiredMode.REQUIRED)
    private String staffId;

    /**
     * 绩点
     */
    @Min(value = 0)
    @NotNull(message = "绩点不能为空")
    @Schema(description = "绩点", requiredMode = Schema.RequiredMode.REQUIRED)
    private Integer gradePoint;

}
