package com.zcloud.safetyDutyList.dto.tasklist;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 任务详情保存命令
 * <p>
 * 用于新增任务详情，包含所属清单ID、执行内容、反馈周期类型、任务分值等字段
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class TaskDetailSaveCmd implements Serializable {
    @ApiModelProperty(value = "清单表主键ID", required = true)
    @NotEmpty(message = "清单ID不能为空")
    private String taskListId;

    @ApiModelProperty(value = "执行内容")
    private String executeContent;

    @ApiModelProperty(value = "反馈周期类型：1-每月 2-季度 3-半年 4-年", required = true)
    @NotNull(message = "反馈周期不能为空")
    private Integer feedbackCycleType;

    @ApiModelProperty(value = "任务分值")
    private BigDecimal taskScore;
}
