refactor: flatten dto entity and mapper packages

This commit is contained in:
wh
2026-04-14 13:28:10 +08:00
parent 0af19cf1b5
commit 29766ebd28
64 changed files with 1524 additions and 1780 deletions

View File

@@ -0,0 +1,37 @@
package com.label.dto;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Builder;
import lombok.Data;
import java.time.LocalDateTime;
/**
* 浠诲姟鎺ュ彛缁熶竴鍝嶅簲浣擄紙浠诲姟姹犮€佹垜鐨勪换鍔°€佷换鍔¤鎯呭潎澶嶇敤锛夈€? */
@Data
@Builder
@Schema(description = "鏍囨敞浠诲姟鍝嶅簲")
public class TaskResponse {
@Schema(description = "浠诲姟涓婚敭")
private Long id;
@Schema(description = "鍏宠仈璧勬枡 ID")
private Long sourceId;
/** 浠诲姟绫诲瀷锛堝搴?taskType 瀛楁锛夛細EXTRACTION / QA_GENERATION */
@Schema(description = "浠诲姟绫诲瀷", example = "EXTRACTION")
private String taskType;
@Schema(description = "浠诲姟鐘舵€?, example = "UNCLAIMED")
private String status;
@Schema(description = "棰嗗彇浜虹敤鎴?ID")
private Long claimedBy;
@Schema(description = "棰嗗彇鏃堕棿")
private LocalDateTime claimedAt;
@Schema(description = "鎻愪氦鏃堕棿")
private LocalDateTime submittedAt;
@Schema(description = "瀹屾垚鏃堕棿")
private LocalDateTime completedAt;
/** 椹冲洖鍘熷洜锛圧EJECTED 鐘舵€佹椂闈炵┖锛?*/
@Schema(description = "椹冲洖鍘熷洜")
private String rejectReason;
@Schema(description = "鍒涘缓鏃堕棿")
private LocalDateTime createdAt;
}