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,28 @@
package com.label.dto;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
/**
* 鐧诲綍鎴愬姛鍝嶅簲浣撱€? */
@Data
@AllArgsConstructor
@Schema(description = "鐧诲綍鍝嶅簲")
public class LoginResponse {
/** Bearer Token锛圲UID v4锛夛紝鍚庣画璇锋眰鏀惧叆 Authorization 澶?*/
@Schema(description = "Bearer Token", example = "550e8400-e29b-41d4-a716-446655440000")
private String token;
/** 鐢ㄦ埛涓婚敭 */
@Schema(description = "鐢ㄦ埛涓婚敭")
private Long userId;
/** 鐧诲綍鐢ㄦ埛鍚?*/
@Schema(description = "鐧诲綍鐢ㄦ埛鍚?)
private String username;
/** 瑙掕壊锛歎PLOADER / ANNOTATOR / REVIEWER / ADMIN */
@Schema(description = "瑙掕壊", example = "ADMIN")
private String role;
/** Token 鏈夋晥鏈燂紙绉掞級 */
@Schema(description = "Token 鏈夋晥鏈燂紙绉掞級", example = "7200")
private Long expiresIn;
}