refactor: 项目结构合理性优化

This commit is contained in:
haoxr
2023-06-03 11:03:12 +08:00
parent 808c33789c
commit 532b632ccc
124 changed files with 419 additions and 414 deletions

View File

@@ -0,0 +1,24 @@
package com.youlai.system.model.dto;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Builder;
import lombok.Data;
/**
* 验证码响应对象
*
* @author haoxr
* @since 2023/03/24
*/
@Schema(description ="验证码响应对象")
@Builder
@Data
public class CaptchaResult {
@Schema(description = "验证码缓存key")
private String verifyCodeKey;
@Schema(description = "验证码图片Base64字符串")
private String verifyCodeBase64;
}

View File

@@ -0,0 +1,24 @@
package com.youlai.system.model.dto;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Builder;
import lombok.Data;
@Schema(description ="登录响应对象")
@Data
@Builder
public class LoginResult {
@Schema(description = "访问token")
private String accessToken;
@Schema(description = "token 类型",example = "Bearer")
private String tokenType;
@Schema(description = "刷新token")
private String refreshToken;
@Schema(description = "过期时间(单位:毫秒)")
private Long expires;
}

View File

@@ -0,0 +1,35 @@
package com.youlai.system.model.dto;
import lombok.Data;
import java.util.Set;
/**
* 用户认证信息
*
* @author haoxr
* @since 2022/10/22
*
*/
@Data
public class UserAuthInfo {
private Long userId;
private String username;
private String nickname;
private Long deptId;
private String password;
private Integer status;
private Set<String> roles;
private Set<String> perms;
private Integer dataScope;
}