Skip to content

Commit

Permalink
file
Browse files Browse the repository at this point in the history
  • Loading branch information
aigaojianyun committed Jun 8, 2022
1 parent 09dd09c commit d07c3c8
Show file tree
Hide file tree
Showing 119 changed files with 130 additions and 117 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
/**
* 文件信息
*
* @author
* @author ai-cloud
*/
@ApiModel("文件信息")
public class File {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
/**
* 文件服务降级处理
*
* @author
* @author ai-cloud
*/
@Component
public class RemoteFileFallbackFactory implements FallbackFactory<RemoteFileService> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
/**
* 文件服务
*
* @author
* @author ai-cloud
*/
@FeignClient(contextId = "remoteFileService", value = ServiceNameConstants.FILE_SERVICE, fallbackFactory = RemoteFileFallbackFactory.class)
public interface RemoteFileService {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
/**
* 登录接口 token控制
*
* @author
* @author ai-cloud
*/
@Api(tags = "登录接口")
@RestController
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
/**
* 退出登录接口
*
* @author
* @author ai-cloud
*/
@Api(tags = "退出登录接口")
@RestController
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
/**
* 注册接口
*
* @author
* @author ai-cloud
*/
@Api(tags = "注册接口")
@RestController
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
/**
* 用户登录对象
*
* @author
* @author ai-cloud
*/
@Data
@ApiModel("用户登录参数")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
/**
* 用户注册对象
*
* @author
* @author ai-cloud
*/
@Data
@ApiModel("新用户创建账号和账户参数")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
/**
* 登录校验方法
*
* @author
* @author ai-cloud
*/

@Service
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
/**
* Bean 工具类
*
* @author
* @author ai-cloud
*/
public class BeanUtils extends org.springframework.beans.BeanUtils {
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
/**
* bean对象属性验证
*
* @author
* @author ai-cloud
*/
public class BeanValidators {
public static void validateWithException(Validator validator, Object object, Class<?>... groups)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/**
* 缓存的key 常量
*
* @author
* @author ai-cloud
*/
public class CacheConstants {
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/**
* 通用常量信息
*
* @author
* @author ai-cloud
*/
public class Constants {
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/**
* 返回状态码
*
* @author
* @author ai-cloud
*/
public class HttpStatus {
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/**
* 用户相关通用常量
*
* @author
* @author ai-cloud
*/
public class SecurityConstants {
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/**
* 服务名称
*
* @author
* @author ai-cloud
*/
public class ServiceNameConstants {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/**
* Token的Key常量
*
* @author
* @author ai-cloud
*/
public class TokenConstants {
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
/**
* 账户常量信息
*
* @author
* @author ai-cloud
*/
public class UserAccountConstants {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/**
* 用户常量信息
*
* @author
* @author ai-cloud
*/
public class UserConstants {
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
* 获取当前线程变量中的 用户id、用户名称、Token等信息
* 注意: 必须在网关通过请求头的方法传入,同时在HeaderInterceptor拦截器设置值。 否则这里无法获取
*
* @author
* @author ai-cloud
*/
public class SecurityContextHolder {
private static final TransmittableThreadLocal<Map<String, Object>> THREAD_LOCAL = new TransmittableThreadLocal<>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

import org.springframework.boot.ansi.AnsiElement;

/**
* banner自定义颜色
*
* @author ai-cloud
*/

public class AnsiBackground implements AnsiElement {

}
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

import org.springframework.boot.ansi.AnsiElement;

/**
* banner自定义颜色
*
* @author ai-cloud
*/

public enum AnsiColor implements AnsiElement {
DEFAULT("39" ),
BLACK("30" ),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/**
* 用户状态
*
* @author
* @author ai-cloud
*/
public enum UserStatus {
OK("0", "正常"), DISABLE("2", "停用"), DELETED("2", "删除");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/**
* 验证码错误异常类
*
* @author
* @author ai-cloud
*/
public class CaptchaException extends RuntimeException {
private static final long serialVersionUID = 1L;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/**
* 检查异常
*
* @author
* @author ai-cloud
*/
public class CheckedException extends RuntimeException {
private static final long serialVersionUID = 1L;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/**
* 全局异常
*
* @author
* @author ai-cloud
*/
public class GlobalException extends RuntimeException {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/**
* 内部认证异常
*
* @author
* @author ai-cloud
*/
public class InnerAuthException extends RuntimeException {
private static final long serialVersionUID = 1L;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/**
* 业务异常
*
* @author
* @author ai-cloud
*/
public final class ServiceException extends RuntimeException {
private static final long serialVersionUID = 1L;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/**
* 工具类异常
*
* @author
* @author ai-cloud
*/
public class UtilException extends RuntimeException {
private static final long serialVersionUID = 8247610319171014183L;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/**
* 未能通过的登录认证异常
*
* @author
* @author ai-cloud
*/
public class NotLoginException extends RuntimeException {
private static final long serialVersionUID = 1L;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/**
* 基础异常
*
* @author
* @author ai-cloud
*/
public class BaseException extends RuntimeException {
private static final long serialVersionUID = 1L;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/**
* 文件信息异常类
*
* @author
* @author ai-cloud
*/
public class FileException extends BaseException {
private static final long serialVersionUID = 1L;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/**
* 文件名称超长限制异常类
*
* @author
* @author ai-cloud
*/
public class FileNameLengthLimitExceededException extends FileException {
private static final long serialVersionUID = 1L;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/**
* 文件名大小限制异常类
*
* @author
* @author ai-cloud
*/
public class FileSizeLimitExceededException extends FileException {
private static final long serialVersionUID = 1L;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
/**
* 文件上传 误异常类
*
* @author
* @author ai-cloud
*/
public class InvalidExtensionException extends FileUploadException {
private static final long serialVersionUID = 1L;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/**
* 验证码失效异常类
*
* @author
* @author ai-cloud
*/
public class CaptchaExpireException extends UserException {
private static final long serialVersionUID = 1L;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/**
* 用户信息异常类
*
* @author
* @author ai-cloud
*/
public class UserException extends BaseException {
private static final long serialVersionUID = 1L;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/**
* 用户密码不正确或不符合规范异常类
*
* @author
* @author ai-cloud
*/
public class UserPasswordNotMatchException extends UserException {
private static final long serialVersionUID = 1L;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/**
* 转义和反转义工具类
*
* @author
* @author ai-cloud
*/
public class EscapeUtil {
public static final String RE_HTML_MARK = "(<[^<]*?>)|(<[\\s]*?/[^<]*?>)|(<[^<]*?/[\\s]*?>)";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
/**
* HTML过滤器,用于去除XSS漏洞隐患。
*
* @author
* @author ai-cloud
*/
public final class HTMLFilter {
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
/**
* 响应信息主体
*
* @author
* @author ai-cloud
*/
public class Response<T> implements Serializable {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
/**
* Redis使用FastJson序列化
*
* @author
* @author ai-cloud
*/
public class FastJson2JsonRedisSerializer<T> implements RedisSerializer<T> {
@SuppressWarnings("unused")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
/**
* redis配置
*
* @author
* @author ai-cloud
*/
@Configuration
@EnableCaching
Expand Down
Loading

0 comments on commit d07c3c8

Please sign in to comment.