2026-04-14 13:39:24 +08:00
|
|
|
|
package com.label.dto;
|
2026-04-14 13:31:50 +08:00
|
|
|
|
|
|
|
|
|
|
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 {
|
2026-04-15 15:28:11 +08:00
|
|
|
|
@Schema(description = "用户主键", example = "1")
|
2026-04-14 13:31:50 +08:00
|
|
|
|
private Long id;
|
2026-04-15 15:28:11 +08:00
|
|
|
|
@Schema(description = "用户名", example = "admin")
|
2026-04-14 13:31:50 +08:00
|
|
|
|
private String username;
|
2026-04-15 15:28:11 +08:00
|
|
|
|
@Schema(description = "真实姓名", example = "张三")
|
2026-04-14 13:31:50 +08:00
|
|
|
|
private String realName;
|
|
|
|
|
|
@Schema(description = "角色", example = "ADMIN")
|
|
|
|
|
|
private String role;
|
2026-04-15 15:28:11 +08:00
|
|
|
|
@Schema(description = "所属公司 ID", example = "1")
|
2026-04-14 13:31:50 +08:00
|
|
|
|
private Long companyId;
|
2026-04-15 15:28:11 +08:00
|
|
|
|
@Schema(description = "所属公司名称", example = "示例科技有限公司")
|
2026-04-14 13:31:50 +08:00
|
|
|
|
private String companyName;
|
|
|
|
|
|
}
|