This commit is contained in:
六如
2024-10-04 21:48:38 +08:00
parent 00da3cc0a9
commit c08fec74c9
987 changed files with 24735 additions and 22137 deletions

View File

@@ -3,7 +3,7 @@ package com.gitee.sop.websiteserver.bean;
import lombok.Data;
/**
* @author tanghc
* @author 六如
*/
@Data
public class BizCode {

View File

@@ -6,7 +6,7 @@ import org.apache.commons.lang3.time.DateFormatUtils;
import java.util.Date;
/**
* @author tanghc
* @author 六如
*/
@Data
public class ChannelMsg {

View File

@@ -1,7 +1,7 @@
package com.gitee.sop.websiteserver.bean;
/**
* @author tanghc
* @author 六如
*/
public enum ChannelOperation {
/**

View File

@@ -6,7 +6,7 @@ import lombok.Data;
import java.util.List;
/**
* @author tanghc
* @author 六如
*/
@Data
public class DocInfo {

View File

@@ -6,7 +6,7 @@ import java.util.Collection;
import java.util.List;
/**
* @author tanghc
* @author 六如
*/
@Data
public class DocItem {

View File

@@ -5,7 +5,7 @@ import lombok.Data;
import java.util.List;
/**
* @author tanghc
* @author 六如
*/
@Data
public class DocModule {

View File

@@ -9,7 +9,7 @@ import java.util.concurrent.atomic.AtomicInteger;
/**
* 参数 类型 是否必填 最大长度 描述 示例值
* @author tanghc
* @author 六如
*/
@Data
public class DocParameter {

View File

@@ -5,7 +5,7 @@ import com.google.common.collect.Sets;
import java.util.Set;
/**
* @author tanghc
* @author 六如
*/
public class DocParserContext {

View File

@@ -5,7 +5,7 @@ import lombok.Data;
import java.util.List;
/**
* @author tanghc
* @author 六如
*/
@Data
public class EurekaApplication {

View File

@@ -5,7 +5,7 @@ import lombok.Data;
import java.util.List;
/**
* @author tanghc
* @author 六如
*/
@Data
public class EurekaApplications {

View File

@@ -3,7 +3,7 @@ package com.gitee.sop.websiteserver.bean;
import lombok.Data;
/**
* @author tanghc
* @author 六如
*/
@Data
public class EurekaApps {

View File

@@ -6,7 +6,7 @@ import org.springframework.util.CollectionUtils;
import java.util.Map;
/**
* @author tanghc
* @author 六如
*/
@Data
public class EurekaInstance {

View File

@@ -11,7 +11,7 @@ import org.springframework.web.bind.annotation.RequestMethod;
/**
* https://github.com/Netflix/eureka/wiki/Eureka-REST-operations
*
* @author tanghc
* @author 六如
*/
public enum EurekaUri {

View File

@@ -3,7 +3,7 @@ package com.gitee.sop.websiteserver.bean;
import lombok.Data;
/**
* @author tanghc
* @author 六如
*/
@Data
public class GatewayPushDTO {

View File

@@ -33,7 +33,7 @@ import java.util.concurrent.TimeUnit;
/**
* http请求工具基于OKHTTP3
* @author tanghc
* @author 六如
*/
public class HttpTool {
private static final MediaType MEDIA_TYPE_JSON = MediaType.parse("application/json; charset=utf-8");
@@ -343,7 +343,7 @@ public class HttpTool {
/**
* 文件上传类
* @author tanghc
* @author 六如
*/
@Getter
@Setter

View File

@@ -3,7 +3,7 @@ package com.gitee.sop.websiteserver.bean;
import lombok.Data;
/**
* @author tanghc
* @author 六如
*/
@Data
public class IsvDetailDTO {

View File

@@ -3,7 +3,7 @@ package com.gitee.sop.websiteserver.bean;
import lombok.Data;
/**
* @author tanghc
* @author 六如
*/
@Data
public class IsvKeysGenVO {

View File

@@ -3,7 +3,7 @@ package com.gitee.sop.websiteserver.bean;
import lombok.Data;
/**
* @author tanghc
* @author 六如
*/
@Data
public class LoginUser {

View File

@@ -7,7 +7,7 @@ import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* @author tanghc
* @author 六如
*/
@Target({ElementType.TYPE, ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)

View File

@@ -17,7 +17,7 @@ import java.security.spec.X509EncodedKeySpec;
/**
* RSA加解密工具<br>
*
* @author tanghc
* @author 六如
*/
public class RSATool {
public static String RSA_ALGORITHM = "RSA";
@@ -414,4 +414,4 @@ public class RSATool {
}
*/
}
}

View File

@@ -8,7 +8,7 @@ import org.springframework.web.context.request.ServletRequestAttributes;
import javax.servlet.http.HttpServletRequest;
/**
* @author tanghc
* @author 六如
*/
public class UserContext {

View File

@@ -7,7 +7,7 @@ import org.apache.commons.lang3.StringUtils;
import java.util.function.Supplier;
/**
* @author tanghc
* @author 六如
*/
public class Validates {

View File

@@ -8,7 +8,7 @@ import org.springframework.web.filter.CorsFilter;
/**
* 解决js跨域
* @author tanghc
* @author 六如
*/
@Configuration
public class CorsConfig {

View File

@@ -11,7 +11,7 @@ import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
/**
* @author tanghc
* @author 六如
*/
public class LoginInterceptor extends HandlerInterceptorAdapter {

View File

@@ -28,7 +28,7 @@ import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
/**
* @author tanghc
* @author 六如
*/
@Configuration
public class WebsiteConfig implements WebMvcConfigurer, EnvironmentAware, ApplicationContextAware {

View File

@@ -16,7 +16,7 @@ import java.util.List;
import java.util.stream.Collectors;
/**
* @author tanghc
* @author 六如
*/
@RestController
@RequestMapping("doc")

View File

@@ -7,7 +7,7 @@ import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
/**
* @author tanghc
* @author 六如
*/
@Controller
public class IndexController {

View File

@@ -41,7 +41,7 @@ import java.util.Objects;
import java.util.stream.Collectors;
/**
* @author tanghc
* @author 六如
*/
@RestController
@RequestMapping("portal/isv")

View File

@@ -21,7 +21,7 @@ import java.util.Objects;
import java.util.UUID;
/**
* @author tanghc
* @author 六如
*/
@RestController
@RequestMapping("portal/common")

View File

@@ -15,7 +15,7 @@ import org.springframework.web.bind.annotation.RestController;
import javax.validation.Valid;
/**
* @author tanghc
* @author 六如
*/
@RestController
@RequestMapping("portal/common")

View File

@@ -43,7 +43,7 @@ import java.util.stream.Collectors;
/**
* 沙箱环境代理类
* @author tanghc
* @author 六如
*/
@Slf4j
@RestController

View File

@@ -45,7 +45,7 @@ import java.util.stream.Collectors;
/**
* 沙箱环境代理类
*
* @author tanghc
* @author 六如
*/
@Slf4j
@RestController

View File

@@ -6,7 +6,7 @@ import org.hibernate.validator.constraints.Length;
import javax.validation.constraints.NotBlank;
/**
* @author tanghc
* @author 六如
*/
@Data
public class FindPasswordParam {

View File

@@ -6,7 +6,7 @@ import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
/**
* @author tanghc
* @author 六如
*/
@Data
public class IsvPublicKeyUploadParam {

View File

@@ -7,7 +7,7 @@ import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
/**
* @author tanghc
* @author 六如
*/
@Data
public class RegParam {

View File

@@ -6,7 +6,7 @@ import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
/**
* @author tanghc
* @author 六如
*/
@Data
public class RestPasswordParam {

View File

@@ -5,7 +5,7 @@ import lombok.Data;
import javax.validation.constraints.NotBlank;
/**
* @author tanghc
* @author 六如
*/
@Data
public class UpdatePasswordParam {

View File

@@ -6,7 +6,7 @@ import lombok.Setter;
import java.util.Collection;
/**
* @author tanghc
* @author 六如
*/
@Getter
@Setter

View File

@@ -3,7 +3,7 @@ package com.gitee.sop.websiteserver.controller.result;
import lombok.Data;
/**
* @author tanghc
* @author 六如
*/
@Data
public class IsvInfoResult {

View File

@@ -6,7 +6,7 @@ import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
/**
* @author tanghc
* @author 六如
*/
@Data
public class IsvPublicKeyUploadResult {

View File

@@ -7,7 +7,7 @@ import lombok.Data;
* 表名isp_resource
* 备注ISP资源表
*
* @author tanghc
* @author 六如
*/
@Data
public class IsvResourceResult {

View File

@@ -3,7 +3,7 @@ package com.gitee.sop.websiteserver.controller.result;
import lombok.Data;
/**
* @author tanghc
* @author 六如
*/
@Data
public class LoginResult {

View File

@@ -3,7 +3,7 @@ package com.gitee.sop.websiteserver.controller.result;
import lombok.Data;
/**
* @author tanghc
* @author 六如
*/
@Data
public class MenuDocItem {

View File

@@ -5,7 +5,7 @@ import lombok.Data;
import java.util.List;
/**
* @author tanghc
* @author 六如
*/
@Data
public class MenuModule {

View File

@@ -5,7 +5,7 @@ import lombok.Data;
import java.util.List;
/**
* @author tanghc
* @author 六如
*/
@Data
public class MenuProject {

View File

@@ -3,7 +3,7 @@ package com.gitee.sop.websiteserver.controller.result;
import lombok.Data;
/**
* @author tanghc
* @author 六如
*/
@Data
public class RegResult {

View File

@@ -11,7 +11,7 @@ import java.util.Date;
* 表名isp_resource
* 备注ISP资源表
*
* @author tanghc
* @author 六如
*/
@Table(name = "isp_resource",pk = @Pk(name = "id"))
@Data

View File

@@ -11,7 +11,7 @@ import java.util.Date;
* 表名isv_info
* 备注isv信息表
*
* @author tanghc
* @author 六如
*/
@Table(name = "isv_info",pk = @Pk(name = "id"))
@Data

View File

@@ -11,7 +11,7 @@ import java.util.Date;
* 表名isv_keys
* 备注ISV秘钥
*
* @author tanghc
* @author 六如
*/
@Table(name = "isv_keys",pk = @Pk(name = "id"))
@Data

View File

@@ -3,7 +3,7 @@ package com.gitee.sop.websiteserver.entity;
import lombok.Data;
/**
* @author tanghc
* @author 六如
*/
@Data
public class IsvPortal {

View File

@@ -11,7 +11,7 @@ import java.util.Date;
* 表名user_account
* 备注:用户信息
*
* @author tanghc
* @author 六如
*/
@Table(name = "user_account",pk = @Pk(name = "id"))
@Data

View File

@@ -1,7 +1,7 @@
package com.gitee.sop.websiteserver.exception;
/**
* @author tanghc
* @author 六如
*/
public enum ErrorCode {
LOGIN_FAIL("9", "登录失败");

View File

@@ -1,7 +1,7 @@
package com.gitee.sop.websiteserver.exception;
/**
* @author tanghc
* @author 六如
*/
public interface ExceptionCode {
ErrorCode getCode();

View File

@@ -9,7 +9,7 @@ import org.springframework.web.bind.annotation.RestControllerAdvice;
/**
* 全局错误处理
*
* @author tanghc
* @author 六如
*/
@RestControllerAdvice
public class ExceptionController {

View File

@@ -1,7 +1,7 @@
package com.gitee.sop.websiteserver.exception;
/**
* @author tanghc
* @author 六如
*/
public class LoginFailureException extends RuntimeException implements ExceptionCode {
@Override

View File

@@ -10,7 +10,7 @@ import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
/**
* @author tanghc
* @author 六如
*/
@Slf4j
public class ServiceDocListener extends BaseServiceListener {

View File

@@ -14,7 +14,7 @@ import java.util.Optional;
import java.util.concurrent.TimeUnit;
/**
* @author tanghc
* @author 六如
*/
@Service
@Slf4j

View File

@@ -7,7 +7,7 @@ import java.util.Collection;
import java.util.function.Consumer;
/**
* @author tanghc
* @author 六如
*/
public interface DocManager {

View File

@@ -20,7 +20,7 @@ import java.util.concurrent.ConcurrentHashMap;
import java.util.function.Consumer;
/**
* @author tanghc
* @author 六如
*/
@Service
@Slf4j

View File

@@ -4,7 +4,7 @@ import com.alibaba.fastjson.JSONObject;
import com.gitee.sop.websiteserver.bean.DocInfo;
/**
* @author tanghc
* @author 六如
*/
public interface DocParser {
DocInfo parseJson(JSONObject docRoot);

View File

@@ -30,7 +30,7 @@ import java.util.stream.Collectors;
/**
* 解析swagger的json内容
*
* @author tanghc
* @author 六如
*/
public class SwaggerDocParser implements DocParser {
@Override

View File

@@ -3,7 +3,7 @@ package com.gitee.sop.websiteserver.manager;
import com.gitee.sop.websiteserver.bean.LoginUser;
/**
* @author tanghc
* @author 六如
*/
public interface TokenManager {

View File

@@ -5,7 +5,7 @@ import com.gitee.sop.websiteserver.entity.IspResource;
/**
* @author tanghc
* @author 六如
*/
public interface IspResourceMapper extends CrudMapper<IspResource, Long> {
}

View File

@@ -12,7 +12,7 @@ import java.util.List;
/**
* @author tanghc
* @author 六如
*/
public interface IsvInfoMapper extends CrudMapper<IsvInfo, Long> {
/**

View File

@@ -5,7 +5,7 @@ import com.gitee.sop.websiteserver.entity.IsvKeys;
/**
* @author tanghc
* @author 六如
*/
public interface IsvKeysMapper extends CrudMapper<IsvKeys, Long> {
}

View File

@@ -5,7 +5,7 @@ import com.gitee.sop.websiteserver.entity.UserAccount;
/**
* @author tanghc
* @author 六如
*/
public interface UserAccountMapper extends CrudMapper<UserAccount, Long> {
}

View File

@@ -16,7 +16,7 @@ import java.util.HashMap;
import java.util.Map;
/**
* @author tanghc
* @author 六如
*/
@Slf4j
@Service

View File

@@ -3,7 +3,7 @@ package com.gitee.sop.websiteserver.service;
import java.util.List;
/**
* @author tanghc
* @author 六如
*/
public interface ServerService {
/**

View File

@@ -31,7 +31,7 @@ import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;
/**
* @author tanghc
* @author 六如
*/
@Service
@Slf4j

View File

@@ -22,7 +22,7 @@ import java.util.stream.Collectors;
import java.util.stream.Stream;
/**
* @author tanghc
* @author 六如
*/
@Slf4j
public class EurekaServerService implements ServerService {

View File

@@ -18,7 +18,7 @@ import java.util.Properties;
import java.util.stream.Collectors;
/**
* @author tanghc
* @author 六如
*/
@Slf4j
public class NacosServerService implements ServerService {

View File

@@ -10,7 +10,7 @@ import java.time.format.DateTimeFormatter;
import java.util.UUID;
/**
* @author tanghc
* @author 六如
*/
@Slf4j
public class GenerateUtil {

View File

@@ -3,7 +3,7 @@ package com.gitee.sop.websiteserver.util;
import java.util.Random;
/**
* @author tanghc
* @author 六如
*/
public class RandomUtil {

View File

@@ -14,7 +14,7 @@ import java.util.stream.Collectors;
/**
* 文件上传工具类
*
* @author tanghc
* @author 六如
*/
public class UploadUtil {

View File

@@ -5,7 +5,7 @@ import lombok.Data;
import java.util.List;
/**
* @author tanghc
* @author 六如
*/
@Data
public class DocBaseInfoVO {

View File

@@ -3,7 +3,7 @@ package com.gitee.sop.websiteserver.vo;
import lombok.Data;
/**
* @author tanghc
* @author 六如
*/
@Data
public class DocInfoVO {

View File

@@ -3,7 +3,7 @@ package com.gitee.sop.websiteserver.vo;
import lombok.Data;
/**
* @author tanghc
* @author 六如
*/
@Data
public class ServiceInfoVO {