feat: 增强情绪博物馆项目功能 - 新增用户评论和帖子功能,优化前端架构和WebSocket通信 - 更新文档和部署配置

This commit is contained in:
2025-07-29 07:38:47 +08:00
parent cc886cd4d5
commit 2f3d39fb00
142 changed files with 45645 additions and 0 deletions
@@ -0,0 +1,75 @@
package com.emotionmuseum.dto.auth;
import lombok.Data;
/**
* 登录响应DTO
*
* @author emotion-museum
* @version 1.0.0
* @since 2024-01-01
*/
@Data
public class LoginResponse {
/**
* 访问令牌
*/
private String accessToken;
/**
* 刷新令牌
*/
private String refreshToken;
/**
* 令牌类型
*/
private String tokenType = "Bearer";
/**
* 过期时间(秒)
*/
private Long expiresIn;
/**
* 用户信息
*/
private UserInfo userInfo;
/**
* 用户信息
*/
@Data
public static class UserInfo {
/**
* 用户ID
*/
private String id;
/**
* 用户名
*/
private String username;
/**
* 昵称
*/
private String nickname;
/**
* 邮箱
*/
private String email;
/**
* 头像
*/
private String avatar;
/**
* 用户类型
*/
private Integer userType;
}
}