refactor: flatten dto entity and mapper packages
This commit is contained in:
26
src/main/java/com/label/dto/UserInfoResponse.java
Normal file
26
src/main/java/com/label/dto/UserInfoResponse.java
Normal file
@@ -0,0 +1,26 @@
|
||||
package com.label.dto;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* GET /api/auth/me 响应体,包含当前登录用户的详细信息。
|
||||
*/
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@Schema(description = "当前登录用户信息")
|
||||
public class UserInfoResponse {
|
||||
@Schema(description = "用户主键")
|
||||
private Long id;
|
||||
@Schema(description = "用户名")
|
||||
private String username;
|
||||
@Schema(description = "真实姓名")
|
||||
private String realName;
|
||||
@Schema(description = "角色", example = "ADMIN")
|
||||
private String role;
|
||||
@Schema(description = "所属公司 ID")
|
||||
private Long companyId;
|
||||
@Schema(description = "所属公司名称")
|
||||
private String companyName;
|
||||
}
|
||||
Reference in New Issue
Block a user