93 lines
2.0 KiB
Java
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package com.designhub.dto;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Data;
import java.time.LocalDateTime;
import java.util.List;
/**
* 流水线任务创建请求DTO
*/
@Data
@JsonIgnoreProperties(ignoreUnknown = true)
public class PipelineTaskDTO {
/**
* 任务标题
*/
private String title;
/**
* 是否流水线任务
*/
private Boolean isPipeline;
/**
* 流水线模式:sequential(顺序)/parallel(并行)
*/
private String pipelineMode;
/**
* 子任务列表
*/
private List<TaskItemDTO> items;
/**
* 任务其他字段(与普通任务相同)
*/
private Long brandId;
private Long categoryId;
private Long platformId;
private String spuInfo;
private String taskSubType;
private String attachmentUrl;
private String remark;
private Integer priority;
private LocalDateTime deadline; // 截止时间
private String releaseType; // 发布类型:default/recruitment/assigned
private Long receiverId; // 指定接收人ID(assigned模式使用)
private List<String> productBarcodes; // 商品条码列表(已验证库存)
private String previewImage; // 预览图URL
/**
* 子任务项DTO
*/
@Data
public static class TaskItemDTO {
/**
* 任务类型ID
*/
private Long taskTypeId;
/**
* 数量
*/
private Integer quantity;
/**
* 单价积分
*/
private Integer unitScore;
/**
* 预估工时
*/
private Double estimatedHours;
/**
* 排序
*/
private Integer sortOrder;
/**
* 指定接收人ID
*/
private Long receiverId;
/**
* 用户选择的接单部门ID(当任务类型配置多个部门时使用)
*/
private Long selectedDeptId;
}
}