package com.cpop.oam.business.bo;

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


/**
 * 任务-工单表Bo
 *
 * @author DB.lost
 * @since 2023-07-10
 */
@Data
@Accessors(chain = true)
@Schema(description = "任务-工单表")
public class TaskWorkOrderBo {

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

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

    /**
     * 校区id
     */
    @NotBlank(message = "校区/店铺id不能为空")
    @Schema(description = "校区/店铺id", requiredMode = Schema.RequiredMode.REQUIRED)
    private String storeId;

    /**
     * 工单内容
     */
    @NotBlank(message = "工单内容不能为空")
    @Schema(description = "工单内容", requiredMode = Schema.RequiredMode.REQUIRED)
    private String taskContent;

    /**
     * 任务类型(0:迭代;1:需求;2:工单)
     */
    @NotNull(message = "任务类型不能为空")
    @Schema(description = "任务类型(0:迭代;1:需求;2:工单)", requiredMode = Schema.RequiredMode.REQUIRED)
    private Integer taskType;

    /**
     * 问题手机号
     */
    @Schema(description ="问题手机号")
    private String phoneNumber;

    /**
     * 附件地址
     */
    @Schema(description ="附件地址")
    private String attachmentUrl;

    /**
     * 备注
     */
    @Schema(description ="备注")
    private String remark;

}
