|
@ -1,99 +0,0 @@
|
||||||
package net.risesoft.controller.rest;
|
|
||||||
|
|
||||||
import net.risesoft.log.OperationTypeEnum;
|
|
||||||
import net.risesoft.log.annotation.RiseLog;
|
|
||||||
import net.risesoft.service.BlacklistingService;
|
|
||||||
import net.risesoft.y9public.entity.Blacklisting;
|
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
|
||||||
import org.springframework.data.domain.Page;
|
|
||||||
import org.springframework.stereotype.Controller;
|
|
||||||
import org.springframework.web.bind.annotation.PostMapping;
|
|
||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
|
||||||
import org.springframework.web.bind.annotation.ResponseBody;
|
|
||||||
|
|
||||||
import java.util.HashMap;
|
|
||||||
import java.util.Map;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 黑名单录入
|
|
||||||
*
|
|
||||||
* @author duanzhixin
|
|
||||||
*/
|
|
||||||
@Controller
|
|
||||||
@RequestMapping("/api/rest/blacklisting")
|
|
||||||
public class RestBlacklistingController {
|
|
||||||
|
|
||||||
|
|
||||||
@Autowired
|
|
||||||
private BlacklistingService blacklistingService;
|
|
||||||
|
|
||||||
//获取系统标识列表信息
|
|
||||||
@RequestMapping("/getPage")
|
|
||||||
@ResponseBody
|
|
||||||
@RiseLog(operationType = OperationTypeEnum.BROWSE, operationName = "黑名单录入管理-获取黑名单列表信息")
|
|
||||||
public Map<String, Object> getPage(String name, int page, int limit) {
|
|
||||||
Blacklisting blacklisting = new Blacklisting();
|
|
||||||
blacklisting.setName(name);
|
|
||||||
Map<String, Object> map = new HashMap<>();
|
|
||||||
Page<Blacklisting> page1 = blacklistingService.getPage(blacklisting, page, limit);
|
|
||||||
map.put("data", page1.getContent());
|
|
||||||
map.put("count", page1.getTotalElements());
|
|
||||||
map.put("code", "0");
|
|
||||||
return map;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
//保存信息
|
|
||||||
@PostMapping("/saveInfo")
|
|
||||||
@ResponseBody
|
|
||||||
@RiseLog(operationType = OperationTypeEnum.ADD, operationName = "黑名单录入管理-保存黑名单信息")
|
|
||||||
public Map<String, Object> saveInterfaceInfo(Blacklisting blacklisting) {
|
|
||||||
Map<String, Object> map = new HashMap<>();
|
|
||||||
Map<String, Object> dataMap = blacklistingService.saveInfo(blacklisting);
|
|
||||||
map.putAll(dataMap);
|
|
||||||
map.put("code", "0");
|
|
||||||
return map;
|
|
||||||
}
|
|
||||||
|
|
||||||
//根据id获取信息
|
|
||||||
@RequestMapping("/getInfoById")
|
|
||||||
@ResponseBody
|
|
||||||
@RiseLog(operationType = OperationTypeEnum.BROWSE, operationName = "黑名单录入管理-获取黑名单详细信息")
|
|
||||||
public Map<String, Object> getAuthInfoById(String id) {
|
|
||||||
Map<String, Object> map = new HashMap<>();
|
|
||||||
Blacklisting identifier = blacklistingService.getInfoById(id);
|
|
||||||
map.put("data", identifier);
|
|
||||||
map.put("code", "0");
|
|
||||||
return map;
|
|
||||||
}
|
|
||||||
|
|
||||||
//根据id删除黑名单信息
|
|
||||||
@RequestMapping("/delInfoById")
|
|
||||||
@ResponseBody
|
|
||||||
@RiseLog(operationType = OperationTypeEnum.DELETE, operationName = "系统标识管理-删除系统标识信息")
|
|
||||||
public Map<String, Object> delAuthInfoById(String id) {
|
|
||||||
Map<String, Object> map = new HashMap<>();
|
|
||||||
Map<String, String> isOk = blacklistingService.delInfo(id);
|
|
||||||
map.putAll(isOk);
|
|
||||||
map.put("code", "0");
|
|
||||||
return map;
|
|
||||||
}
|
|
||||||
|
|
||||||
//修改黑名单启停用
|
|
||||||
@PostMapping("/updateEnable")
|
|
||||||
@ResponseBody
|
|
||||||
@RiseLog(operationType = OperationTypeEnum.MODIFY, operationName = "流程管理-修改流程启用停用状态")
|
|
||||||
public Map<String, Object> updateEnable(Blacklisting blacklisting) {
|
|
||||||
Map<String, Object> map = new HashMap<>();
|
|
||||||
Map<String, Object> dataMap = blacklistingService.updateEnable(blacklisting);
|
|
||||||
if ((boolean) dataMap.get("status")) {
|
|
||||||
map.put("status", "success");
|
|
||||||
} else {
|
|
||||||
map.put("status", "err");
|
|
||||||
map.put("msg", dataMap.get("msg"));
|
|
||||||
}
|
|
||||||
map.put("code", "0");
|
|
||||||
return map;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
|
@ -1,120 +0,0 @@
|
||||||
package net.risesoft.controller.rest;
|
|
||||||
|
|
||||||
import net.risesoft.log.OperationTypeEnum;
|
|
||||||
import net.risesoft.log.annotation.RiseLog;
|
|
||||||
import net.risesoft.service.StatisticsService;
|
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
|
||||||
import org.springframework.web.bind.annotation.*;
|
|
||||||
|
|
||||||
import java.util.HashMap;
|
|
||||||
import java.util.Map;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @author : lxd
|
|
||||||
* @description : 用于统计首页可视化的统计数据
|
|
||||||
* @createDate : 2024/10/30 14:48
|
|
||||||
*/
|
|
||||||
@RestController
|
|
||||||
@RequestMapping("/api/rest/statistics")
|
|
||||||
public class RestStatisticsController {
|
|
||||||
@Autowired
|
|
||||||
private StatisticsService statisticsService;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 接口概况:注册数、发布数、停用数
|
|
||||||
*
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
@GetMapping("/interfaceOverview")
|
|
||||||
@RiseLog(operationType = OperationTypeEnum.BROWSE, operationName = "获取接口概况:注册数、发布数、停用数")
|
|
||||||
public Map<String, Object> getInterfaceOverview() {
|
|
||||||
return statisticsService.getInterfaceOverview();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 获取接口运行正常、异常数
|
|
||||||
*
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
@GetMapping("/runningCount")
|
|
||||||
@RiseLog(operationType = OperationTypeEnum.BROWSE, operationName = "获取接口运行正常、异常数")
|
|
||||||
public Map<String, Object> getRunningCount() {
|
|
||||||
return statisticsService.getRunningCount();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 接口调用趋势图
|
|
||||||
*
|
|
||||||
* @param type 当天、近一周、近一月、近一年
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
@GetMapping("/trend")
|
|
||||||
@RiseLog(operationType = OperationTypeEnum.BROWSE, operationName = "获取接口调用趋势图")
|
|
||||||
public Map<String, Object> getCallTrend(String type) {
|
|
||||||
return statisticsService.getCallTrend(type);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 日志概况 : 总调用量、今日调用量、总异常量、今日异常量
|
|
||||||
*
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
@GetMapping("/logOverview")
|
|
||||||
@RiseLog(operationType = OperationTypeEnum.BROWSE, operationName = "获取日志概况统计数:总调用量、今日调用量、总异常量、今日异常量")
|
|
||||||
public Map<String, Object> getLogOverview() {
|
|
||||||
return statisticsService.getLogOverview();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 异常情况列表
|
|
||||||
*
|
|
||||||
* @param page 页码
|
|
||||||
* @param limit 每页大小
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
@GetMapping("/exception")
|
|
||||||
@RiseLog(operationType = OperationTypeEnum.BROWSE, operationName = "获取接口调用异常情况列表")
|
|
||||||
public Map<String, Object> getException(int page, int limit) {
|
|
||||||
return statisticsService.getException(page, limit);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 接口日志情况列表
|
|
||||||
*
|
|
||||||
* @param conditionMap 筛选条件
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
@PostMapping("/logMonitoring")
|
|
||||||
@RiseLog(operationType = OperationTypeEnum.BROWSE, operationName = "获取接口调用日志情况列表")
|
|
||||||
public Map<String, Object> getLogMonitoringInfo(@RequestBody Map<String, Object> conditionMap) {
|
|
||||||
if (conditionMap == null) {
|
|
||||||
Map res = new HashMap();
|
|
||||||
res.put("code", "1");
|
|
||||||
return res;
|
|
||||||
}
|
|
||||||
return statisticsService.getLogMonitoringInfo(conditionMap);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 获取接口日志检索选项值
|
|
||||||
*
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
@GetMapping("/logMonitoring/options")
|
|
||||||
public Map<String, Object> getLogMonitoringOptions() {
|
|
||||||
return statisticsService.getLogMonitoringOptions();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 接口实时日志播报
|
|
||||||
*
|
|
||||||
* @param page 页码
|
|
||||||
* @param limit 每页大小
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
@GetMapping("/realTimeLog")
|
|
||||||
@RiseLog(operationType = OperationTypeEnum.BROWSE, operationName = "接口实时日志播报")
|
|
||||||
public Map<String, Object> getRealTimeLog(int page, int limit) {
|
|
||||||
return statisticsService.getRealTimeLog(page, limit);
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,29 +0,0 @@
|
||||||
package net.risesoft.model;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 申请类型枚举类
|
|
||||||
*/
|
|
||||||
public enum ApplyType {
|
|
||||||
//接口调用申请
|
|
||||||
INVOKE("0", "调用"),
|
|
||||||
//接口停用申请
|
|
||||||
PUB_INTERFACE("2", "发布"),
|
|
||||||
//接口发布申请
|
|
||||||
STOP_INTERFACE("1", "停用");
|
|
||||||
|
|
||||||
private final String enName;
|
|
||||||
private final String name;
|
|
||||||
|
|
||||||
private ApplyType(String enName, String name) {
|
|
||||||
this.enName = enName;
|
|
||||||
this.name = name;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getEnName() {
|
|
||||||
return enName;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getName() {
|
|
||||||
return name;
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,31 +0,0 @@
|
||||||
package net.risesoft.model;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 数据类型枚举类
|
|
||||||
*/
|
|
||||||
public enum ParameterType {
|
|
||||||
//INT类型
|
|
||||||
INTEGER("integer", "integer"),
|
|
||||||
//BOOLEAN
|
|
||||||
BOOLEAN("boolean", "boolean"),
|
|
||||||
//INT类型
|
|
||||||
STRING("String", "String"),
|
|
||||||
//DOUBLE
|
|
||||||
DOUBLE("double", "double");
|
|
||||||
|
|
||||||
private final String enName;
|
|
||||||
private final String name;
|
|
||||||
|
|
||||||
private ParameterType(String enName, String name) {
|
|
||||||
this.enName = enName;
|
|
||||||
this.name = name;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getEnName() {
|
|
||||||
return enName;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getName() {
|
|
||||||
return name;
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,27 +0,0 @@
|
||||||
package net.risesoft.model;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 限流类型枚举类
|
|
||||||
*/
|
|
||||||
public enum ThresholdType {
|
|
||||||
//自定义
|
|
||||||
TYPE_ZDY("0", "自定义"),
|
|
||||||
//QPS
|
|
||||||
QPS("1", "QPS");
|
|
||||||
|
|
||||||
private final String enName;
|
|
||||||
private final String name;
|
|
||||||
|
|
||||||
private ThresholdType(String enName, String name) {
|
|
||||||
this.enName = enName;
|
|
||||||
this.name = name;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getEnName() {
|
|
||||||
return enName;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getName() {
|
|
||||||
return name;
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,14 +0,0 @@
|
||||||
package net.risesoft.service;
|
|
||||||
|
|
||||||
import net.risesoft.y9public.dto.InterfaceManageDTO;
|
|
||||||
|
|
||||||
import javax.servlet.http.HttpServletRequest;
|
|
||||||
import java.util.Map;
|
|
||||||
|
|
||||||
public interface UseInterfaceService {
|
|
||||||
//接口转发
|
|
||||||
Map<String, Object> forward(String id, HttpServletRequest request);
|
|
||||||
|
|
||||||
//接口测试
|
|
||||||
Map<String, Object> testForward(InterfaceManageDTO interfaceManageDTO, HttpServletRequest request);
|
|
||||||
}
|
|
|
@ -1,252 +0,0 @@
|
||||||
package net.risesoft.util;
|
|
||||||
|
|
||||||
import cn.hutool.crypto.digest.DigestAlgorithm;
|
|
||||||
import cn.hutool.crypto.digest.Digester;
|
|
||||||
import com.alibaba.fastjson.JSONArray;
|
|
||||||
import net.risesoft.y9public.entity.InterfaceApply;
|
|
||||||
import net.risesoft.y9public.entity.InterfaceManage;
|
|
||||||
import org.apache.commons.lang3.StringUtils;
|
|
||||||
import org.springframework.stereotype.Component;
|
|
||||||
|
|
||||||
import javax.servlet.http.HttpServletRequest;
|
|
||||||
import java.util.ArrayList;
|
|
||||||
import java.util.Arrays;
|
|
||||||
import java.util.List;
|
|
||||||
import java.util.Map;
|
|
||||||
import java.util.regex.Pattern;
|
|
||||||
|
|
||||||
import static net.risesoft.service.impl.UseInterfaceServiceImpl.regx;
|
|
||||||
|
|
||||||
@Component
|
|
||||||
public class AuthCheckUtil {
|
|
||||||
|
|
||||||
//sql注入正则
|
|
||||||
private static String badStrReg = "\\b(and|or)\\b.{1,6}?(=|>|<|\\bin\\b|\\blike\\b)|\\/\\*.+?\\*\\/|<\\s*script\\b|" +
|
|
||||||
"\\bEXEC\\b|UNION.+?SELECT|UPDATE.+?SET|INSERT\\s+INFO.+?VALUES|(SELECT|DELETE).+?FROM|(CREATE|ALTER|DROP|TRUNCATE)\\s+(TABLE|DATABASE)";
|
|
||||||
|
|
||||||
//xss脚本正则
|
|
||||||
private final static Pattern[] scriptPatterns = {
|
|
||||||
Pattern.compile("<script>(.*?)</script>", Pattern.CASE_INSENSITIVE),
|
|
||||||
Pattern.compile("src[\r\n]*=[\r\n]*\\\'(.*?)\\\'", Pattern.CASE_INSENSITIVE | Pattern.MULTILINE | Pattern.DOTALL),
|
|
||||||
Pattern.compile("</script>", Pattern.CASE_INSENSITIVE),
|
|
||||||
Pattern.compile("<script(.*?)>", Pattern.CASE_INSENSITIVE | Pattern.MULTILINE | Pattern.DOTALL),
|
|
||||||
Pattern.compile("eval\\((.*?)\\)", Pattern.CASE_INSENSITIVE | Pattern.MULTILINE | Pattern.DOTALL),
|
|
||||||
Pattern.compile("expression\\((.*?)\\)", Pattern.CASE_INSENSITIVE | Pattern.MULTILINE | Pattern.DOTALL),
|
|
||||||
Pattern.compile("javascript:", Pattern.CASE_INSENSITIVE),
|
|
||||||
Pattern.compile("vbscript:", Pattern.CASE_INSENSITIVE),
|
|
||||||
Pattern.compile("onload(.*?)=", Pattern.CASE_INSENSITIVE | Pattern.MULTILINE | Pattern.DOTALL)
|
|
||||||
};
|
|
||||||
|
|
||||||
public static String getIp(HttpServletRequest request) {
|
|
||||||
String ip = request.getHeader("X-Real-IP");
|
|
||||||
if (ip == null || ip.length() == 0 || "unknown".equalsIgnoreCase(ip)) {
|
|
||||||
ip = request.getHeader("X-Forwarded-For");
|
|
||||||
}
|
|
||||||
if (ip == null || ip.length() == 0 || "unknown".equalsIgnoreCase(ip)) {
|
|
||||||
ip = request.getHeader("Proxy-Client-Ip");
|
|
||||||
}
|
|
||||||
if (ip == null || ip.length() == 0 || "unknown".equalsIgnoreCase(ip)) {
|
|
||||||
ip = request.getHeader("WL-Proxy-Client-Ip");
|
|
||||||
}
|
|
||||||
if (ip == null || ip.length() == 0 || "unknown".equalsIgnoreCase(ip)) {
|
|
||||||
ip = request.getRemoteAddr();
|
|
||||||
}
|
|
||||||
return ip;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 过滤sql注入
|
|
||||||
*
|
|
||||||
* @param src 单个参数值
|
|
||||||
*/
|
|
||||||
public String checkSQLInject(String src, String key) {
|
|
||||||
if (StringUtils.isBlank(src)) {
|
|
||||||
return src;
|
|
||||||
}
|
|
||||||
|
|
||||||
//非法sql注入正则
|
|
||||||
Pattern sqlPattern = Pattern.compile(badStrReg, Pattern.CASE_INSENSITIVE);
|
|
||||||
if (sqlPattern.matcher(src.toLowerCase()).find()) {
|
|
||||||
throw new BizException("sql注入检查,参数" + key + "含有非法攻击字符,请检查");
|
|
||||||
}
|
|
||||||
return src;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 清除xss
|
|
||||||
*
|
|
||||||
* @param src 单个参数值
|
|
||||||
*/
|
|
||||||
public String checkXSS(String src, String key) {
|
|
||||||
if (StringUtils.isBlank(src)) {
|
|
||||||
return src;
|
|
||||||
}
|
|
||||||
String temp = src;
|
|
||||||
for (Pattern pattern : scriptPatterns) {
|
|
||||||
temp = pattern.matcher(temp).replaceAll("");
|
|
||||||
}
|
|
||||||
temp = temp.replaceAll("<", "<").replaceAll(">", ">");
|
|
||||||
if (!temp.equals(src)) {
|
|
||||||
throw new BizException("xss攻击检查,参数" + key + "含有非法攻击字符");
|
|
||||||
}
|
|
||||||
return src;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 参数类型校验
|
|
||||||
*
|
|
||||||
* @param parameter 参数值
|
|
||||||
* @param type 参数类型
|
|
||||||
*/
|
|
||||||
private Boolean checkParameterType(String parameter, String type) {
|
|
||||||
switch (type) {
|
|
||||||
case "String":
|
|
||||||
return true;
|
|
||||||
case "integer":
|
|
||||||
String regx = "\\d+";
|
|
||||||
if (Pattern.matches(regx, parameter)) {
|
|
||||||
try {
|
|
||||||
int num = Integer.parseInt(parameter);
|
|
||||||
return true;
|
|
||||||
} catch (NumberFormatException e) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
case "boolean":
|
|
||||||
if ("true".equals(parameter.toLowerCase()) || "false".equals(parameter.toLowerCase())) {
|
|
||||||
return true;
|
|
||||||
} else {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
case "number":
|
|
||||||
if (StringUtils.isNumeric(parameter)) {
|
|
||||||
return true;
|
|
||||||
} else {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
default:
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
//数据基础校验
|
|
||||||
public Boolean checkData(String val, String key, String type, List<String> errList) {
|
|
||||||
int len = errList.size();
|
|
||||||
try {
|
|
||||||
//检查xss攻击和sql注入
|
|
||||||
checkXSS(checkSQLInject(val, key), key);
|
|
||||||
//类型校验
|
|
||||||
if (StringUtils.isNotBlank(val)) {
|
|
||||||
if (!checkParameterType(val, type)) {
|
|
||||||
errList.add("参数类型检查,参数:" + key + "数据类型不正确,不是" + type);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
} catch (BizException e) {
|
|
||||||
errList.add(e.getMessage());
|
|
||||||
}
|
|
||||||
if (errList.size() == len) {
|
|
||||||
return false;
|
|
||||||
} else {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
//权限校验
|
|
||||||
public Boolean checkAki(HttpServletRequest request, Map<String, Object> querymap, InterfaceManage interfaceManage, InterfaceApply apply, Map<String, Object> resultmap, Map<String, Object> valMap) {
|
|
||||||
|
|
||||||
String accessKey = request.getHeader("userKey");
|
|
||||||
|
|
||||||
if (apply == null) {
|
|
||||||
resultmap.put("status", 401);
|
|
||||||
resultmap.put("msg", "无权限访问该接口,非法调用者或您的唯一标识不正确");
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
List<String> ipList = Arrays.asList(apply.getIpWhitelist().split(","));
|
|
||||||
if (!ipList.contains(getIp(request))) {
|
|
||||||
resultmap.put("status", 401);
|
|
||||||
resultmap.put("msg", "无权限访问该接口,未开通此ip");
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
//检测参数范围是否正确
|
|
||||||
if ("是".equals(interfaceManage.getIsLimitData())) {
|
|
||||||
List<Boolean> booleanList = new ArrayList<>();
|
|
||||||
if (StringUtils.isNotBlank(apply.getAuth())) {
|
|
||||||
Map<String, String> authMap = JSONArray.parseObject(apply.getAuth(), Map.class);
|
|
||||||
for (String key : authMap.keySet()) {
|
|
||||||
booleanList.add(checkParameter(valMap.get(key), authMap.get(key), regx));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (booleanList.contains(false)) {
|
|
||||||
resultmap.put("status", 401);
|
|
||||||
resultmap.put("msg", "无权限访问该接口,参数超出范围");
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if ("是".equals(interfaceManage.getIsAuth())) {
|
|
||||||
if (querymap.get("userGetSign") != null) {
|
|
||||||
String userGetSign = querymap.get("userGetSign").toString();
|
|
||||||
querymap.remove("userGetSign");
|
|
||||||
|
|
||||||
String sign2 = getSign(querymap, apply.getUserSecret());
|
|
||||||
|
|
||||||
if (!sign2.equals(userGetSign)) {
|
|
||||||
resultmap.put("status", 401);
|
|
||||||
resultmap.put("msg", "无权限访问该接口,秘钥错误");
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
resultmap.put("status", 401);
|
|
||||||
resultmap.put("msg", "无权限访问该接口,未带权限校验值");
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 校验权限范围值
|
|
||||||
*/
|
|
||||||
private Boolean checkParameter(Object obj, String parameterRange, String regx) {
|
|
||||||
if (obj == null) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
String parameter = obj.toString();
|
|
||||||
if (StringUtils.isBlank(parameter) && StringUtils.isBlank(parameterRange)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if (StringUtils.isBlank(parameterRange)) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
if (StringUtils.isBlank(parameter)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
String[] parameters = parameter.split(regx);
|
|
||||||
String val = "," + parameterRange + ",";
|
|
||||||
for (String str : parameters) {
|
|
||||||
if (StringUtils.isNotBlank(str)) {
|
|
||||||
if (val.indexOf("," + str + ",") == -1) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 获取sign值
|
|
||||||
*
|
|
||||||
* @param map
|
|
||||||
* @param secretKry
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
private static String getSign(Map<String, Object> map, String secretKry) {
|
|
||||||
Digester md5 = new Digester(DigestAlgorithm.SHA256);
|
|
||||||
String content = map.toString() + "." + secretKry;
|
|
||||||
return md5.digestHex(content);
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,72 +0,0 @@
|
||||||
package net.risesoft.util;
|
|
||||||
|
|
||||||
import net.risesoft.y9public.entity.InterfaceManage;
|
|
||||||
import org.springframework.stereotype.Component;
|
|
||||||
|
|
||||||
import javax.ws.rs.client.*;
|
|
||||||
import javax.ws.rs.core.MediaType;
|
|
||||||
import javax.ws.rs.core.Response;
|
|
||||||
import java.util.HashMap;
|
|
||||||
import java.util.List;
|
|
||||||
import java.util.Map;
|
|
||||||
|
|
||||||
@Component
|
|
||||||
public class JaxRsUtil {
|
|
||||||
public Map<String, Object> JaxRsForward(InterfaceManage interfaceManage, List<Map<String, String>> list, Map<String, String> headers) {
|
|
||||||
Map<String, Object> map = new HashMap<>();
|
|
||||||
try {
|
|
||||||
Client client = ClientBuilder.newClient();
|
|
||||||
String url = interfaceManage.getNetworkAgreement() + "://" + interfaceManage.getInterfaceUrl();
|
|
||||||
WebTarget target;
|
|
||||||
if (url.indexOf("/{") != -1 && url.indexOf("}") != -1) {
|
|
||||||
//替换restful风格url
|
|
||||||
|
|
||||||
for (Map<String, String> map1 : list) {
|
|
||||||
for (String key : map1.keySet()) {
|
|
||||||
url.replace("{" + key + "}", map1.get(key));
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
target = client.target(url);
|
|
||||||
} else {
|
|
||||||
target = client.target(url);
|
|
||||||
for (Map<String, String> map1 : list) {
|
|
||||||
for (String key : map1.keySet()) {
|
|
||||||
target = target.queryParam(key, map1.get(key));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Invocation.Builder builder = target.request();
|
|
||||||
if (headers.size() != 0) {
|
|
||||||
for (String key : headers.keySet()) {
|
|
||||||
builder = builder.header(key, headers.get(key));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if ("get".equals(interfaceManage.getInterfaceMethod())) {
|
|
||||||
Response response = builder.get();
|
|
||||||
if (response.getStatus() != 200) {
|
|
||||||
map.put("status", false);
|
|
||||||
} else {
|
|
||||||
map.put("status", true);
|
|
||||||
}
|
|
||||||
map.put("code", response.getStatus());
|
|
||||||
map.put("data", response.readEntity(String.class));
|
|
||||||
} else if ("post".equals(interfaceManage.getInterfaceMethod())) {
|
|
||||||
Response response = builder.post(Entity.entity("param", MediaType.TEXT_PLAIN_TYPE));
|
|
||||||
if (response.getStatus() != 200) {
|
|
||||||
map.put("status", false);
|
|
||||||
} else {
|
|
||||||
map.put("status", true);
|
|
||||||
}
|
|
||||||
map.put("code", response.getStatus());
|
|
||||||
map.put("data", response.readEntity(String.class));
|
|
||||||
}
|
|
||||||
} catch (Exception e) {
|
|
||||||
map.put("status", false);
|
|
||||||
map.put("msg", e.getMessage());
|
|
||||||
}
|
|
||||||
|
|
||||||
return map;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
|
@ -1,164 +0,0 @@
|
||||||
package net.risesoft.util;
|
|
||||||
|
|
||||||
import net.risesoft.y9public.entity.InterfaceManage;
|
|
||||||
import org.apache.commons.lang3.StringUtils;
|
|
||||||
import org.apache.cxf.endpoint.Client;
|
|
||||||
import org.apache.cxf.jaxws.endpoint.dynamic.JaxWsDynamicClientFactory;
|
|
||||||
import org.apache.cxf.transport.http.HTTPConduit;
|
|
||||||
import org.apache.cxf.transports.http.configuration.HTTPClientPolicy;
|
|
||||||
import org.springframework.stereotype.Component;
|
|
||||||
|
|
||||||
import javax.xml.namespace.QName;
|
|
||||||
import java.util.HashMap;
|
|
||||||
import java.util.List;
|
|
||||||
import java.util.Map;
|
|
||||||
|
|
||||||
@Component
|
|
||||||
public class JaxWsUtil {
|
|
||||||
public Map<String, Object> JaxWsForward(InterfaceManage interfaceManage, List<Object> list) {
|
|
||||||
Map<String, Object> map = new HashMap<>();
|
|
||||||
try {
|
|
||||||
JaxWsDynamicClientFactory clientFactory = JaxWsDynamicClientFactory.newInstance();
|
|
||||||
Client client = clientFactory.createClient(interfaceManage.getNetworkAgreement() + "://" + interfaceManage.getInterfaceUrl());
|
|
||||||
HTTPConduit conduit = (HTTPConduit) client.getConduit();
|
|
||||||
HTTPClientPolicy httpClientPolicy = new HTTPClientPolicy();
|
|
||||||
httpClientPolicy.setConnectionTimeout(6000000);
|
|
||||||
httpClientPolicy.setReceiveTimeout(6000000);
|
|
||||||
conduit.setClient(httpClientPolicy);
|
|
||||||
Object[] objects = new Object[0];
|
|
||||||
if (StringUtils.isNotBlank(interfaceManage.getNameSpace())) {
|
|
||||||
QName operationName = new QName(interfaceManage.getNameSpace(), interfaceManage.getMethod());
|
|
||||||
objects = getData(client, operationName, list);
|
|
||||||
} else {
|
|
||||||
QName operationName = new QName(interfaceManage.getMethod());
|
|
||||||
objects = getData(client, operationName, list);
|
|
||||||
}
|
|
||||||
if (objects != null) {
|
|
||||||
map.put("status", true);
|
|
||||||
map.put("data", objects[0]);
|
|
||||||
} else {
|
|
||||||
map.put("status", false);
|
|
||||||
}
|
|
||||||
} catch (Exception e) {
|
|
||||||
map.put("status", false);
|
|
||||||
map.put("msg", "对方系统请求失败!");
|
|
||||||
e.printStackTrace();
|
|
||||||
}
|
|
||||||
return map;
|
|
||||||
}
|
|
||||||
|
|
||||||
private Object[] getData(Client client, QName operationName, List<Object> list) throws Exception {
|
|
||||||
switch (list.size()) {
|
|
||||||
case 1:
|
|
||||||
return client.invoke(operationName, list.get(0));
|
|
||||||
case 2:
|
|
||||||
return client.invoke(operationName, list.get(0), list.get(1));
|
|
||||||
case 3:
|
|
||||||
return client.invoke(operationName, list.get(0), list.get(1), list.get(2));
|
|
||||||
case 4:
|
|
||||||
return client.invoke(operationName, list.get(0), list.get(1), list.get(2), list.get(3));
|
|
||||||
case 5:
|
|
||||||
return client.invoke(operationName, list.get(0), list.get(1), list.get(2), list.get(3), list.get(4));
|
|
||||||
case 6:
|
|
||||||
return client.invoke(operationName, list.get(0), list.get(1), list.get(2), list.get(3), list.get(4), list.get(5));
|
|
||||||
case 7:
|
|
||||||
return client.invoke(operationName, list.get(0), list.get(1), list.get(2), list.get(3), list.get(4), list.get(5), list.get(6));
|
|
||||||
case 8:
|
|
||||||
return client.invoke(operationName, list.get(0), list.get(1), list.get(2), list.get(3), list.get(4), list.get(5), list.get(6), list.get(7));
|
|
||||||
case 9:
|
|
||||||
return client.invoke(operationName, list.get(0), list.get(1), list.get(2), list.get(3), list.get(4), list.get(5), list.get(6), list.get(7), list.get(8));
|
|
||||||
case 10:
|
|
||||||
return client.invoke(operationName, list.get(0), list.get(1), list.get(2), list.get(3), list.get(4)
|
|
||||||
, list.get(5), list.get(6), list.get(7), list.get(8), list.get(9));
|
|
||||||
case 11:
|
|
||||||
return client.invoke(operationName, list.get(0), list.get(1), list.get(2), list.get(3), list.get(4)
|
|
||||||
, list.get(5), list.get(6), list.get(7), list.get(8), list.get(9), list.get(10));
|
|
||||||
case 12:
|
|
||||||
return client.invoke(operationName, list.get(0), list.get(1), list.get(2), list.get(3), list.get(4)
|
|
||||||
, list.get(5), list.get(6), list.get(7), list.get(8), list.get(9), list.get(10), list.get(11));
|
|
||||||
case 13:
|
|
||||||
return client.invoke(operationName, list.get(0), list.get(1), list.get(2), list.get(3), list.get(4)
|
|
||||||
, list.get(5), list.get(6), list.get(7), list.get(8), list.get(9), list.get(10), list.get(11), list.get(12));
|
|
||||||
case 14:
|
|
||||||
return client.invoke(operationName, list.get(0), list.get(1), list.get(2), list.get(3), list.get(4)
|
|
||||||
, list.get(5), list.get(6), list.get(7), list.get(8), list.get(9), list.get(10), list.get(11), list.get(12)
|
|
||||||
, list.get(13));
|
|
||||||
case 15:
|
|
||||||
return client.invoke(operationName, list.get(0), list.get(1), list.get(2), list.get(3), list.get(4)
|
|
||||||
, list.get(5), list.get(6), list.get(7), list.get(8), list.get(9), list.get(10), list.get(11), list.get(12)
|
|
||||||
, list.get(13), list.get(14));
|
|
||||||
case 16:
|
|
||||||
return client.invoke(operationName, list.get(0), list.get(1), list.get(2), list.get(3), list.get(4)
|
|
||||||
, list.get(5), list.get(6), list.get(7), list.get(8), list.get(9), list.get(10), list.get(11), list.get(12)
|
|
||||||
, list.get(13), list.get(14), list.get(15));
|
|
||||||
case 17:
|
|
||||||
return client.invoke(operationName, list.get(0), list.get(1), list.get(2), list.get(3), list.get(4)
|
|
||||||
, list.get(5), list.get(6), list.get(7), list.get(8), list.get(9), list.get(10), list.get(11), list.get(12)
|
|
||||||
, list.get(13), list.get(14), list.get(15), list.get(16));
|
|
||||||
case 18:
|
|
||||||
return client.invoke(operationName, list.get(0), list.get(1), list.get(2), list.get(3), list.get(4)
|
|
||||||
, list.get(5), list.get(6), list.get(7), list.get(8), list.get(9), list.get(10), list.get(11), list.get(12)
|
|
||||||
, list.get(13), list.get(14), list.get(15), list.get(16), list.get(17));
|
|
||||||
case 19:
|
|
||||||
return client.invoke(operationName, list.get(0), list.get(1), list.get(2), list.get(3), list.get(4)
|
|
||||||
, list.get(5), list.get(6), list.get(7), list.get(8), list.get(9), list.get(10), list.get(11), list.get(12)
|
|
||||||
, list.get(13), list.get(14), list.get(15), list.get(16), list.get(17), list.get(18));
|
|
||||||
case 20:
|
|
||||||
return client.invoke(operationName, list.get(0), list.get(1), list.get(2), list.get(3), list.get(4)
|
|
||||||
, list.get(5), list.get(6), list.get(7), list.get(8), list.get(9), list.get(10), list.get(11), list.get(12)
|
|
||||||
, list.get(13), list.get(14), list.get(15), list.get(16), list.get(17), list.get(18), list.get(19));
|
|
||||||
case 21:
|
|
||||||
return client.invoke(operationName, list.get(0), list.get(1), list.get(2), list.get(3), list.get(4)
|
|
||||||
, list.get(5), list.get(6), list.get(7), list.get(8), list.get(9), list.get(10), list.get(11), list.get(12)
|
|
||||||
, list.get(13), list.get(14), list.get(15), list.get(16), list.get(17), list.get(18), list.get(19), list.get(20));
|
|
||||||
case 22:
|
|
||||||
return client.invoke(operationName, list.get(0), list.get(1), list.get(2), list.get(3), list.get(4)
|
|
||||||
, list.get(5), list.get(6), list.get(7), list.get(8), list.get(9), list.get(10), list.get(11), list.get(12)
|
|
||||||
, list.get(13), list.get(14), list.get(15), list.get(16), list.get(17), list.get(18), list.get(19), list.get(20)
|
|
||||||
, list.get(21));
|
|
||||||
case 23:
|
|
||||||
return client.invoke(operationName, list.get(0), list.get(1), list.get(2), list.get(3), list.get(4)
|
|
||||||
, list.get(5), list.get(6), list.get(7), list.get(8), list.get(9), list.get(10), list.get(11), list.get(12)
|
|
||||||
, list.get(13), list.get(14), list.get(15), list.get(16), list.get(17), list.get(18), list.get(19), list.get(20)
|
|
||||||
, list.get(21), list.get(22));
|
|
||||||
case 24:
|
|
||||||
return client.invoke(operationName, list.get(0), list.get(1), list.get(2), list.get(3), list.get(4)
|
|
||||||
, list.get(5), list.get(6), list.get(7), list.get(8), list.get(9), list.get(10), list.get(11), list.get(12)
|
|
||||||
, list.get(13), list.get(14), list.get(15), list.get(16), list.get(17), list.get(18), list.get(19), list.get(20)
|
|
||||||
, list.get(21), list.get(22), list.get(23));
|
|
||||||
case 25:
|
|
||||||
return client.invoke(operationName, list.get(0), list.get(1), list.get(2), list.get(3), list.get(4)
|
|
||||||
, list.get(5), list.get(6), list.get(7), list.get(8), list.get(9), list.get(10), list.get(11), list.get(12)
|
|
||||||
, list.get(13), list.get(14), list.get(15), list.get(16), list.get(17), list.get(18), list.get(19), list.get(20)
|
|
||||||
, list.get(21), list.get(22), list.get(23), list.get(24));
|
|
||||||
case 26:
|
|
||||||
return client.invoke(operationName, list.get(0), list.get(1), list.get(2), list.get(3), list.get(4)
|
|
||||||
, list.get(5), list.get(6), list.get(7), list.get(8), list.get(9), list.get(10), list.get(11), list.get(12)
|
|
||||||
, list.get(13), list.get(14), list.get(15), list.get(16), list.get(17), list.get(18), list.get(19), list.get(20)
|
|
||||||
, list.get(21), list.get(22), list.get(23), list.get(24), list.get(25));
|
|
||||||
case 27:
|
|
||||||
return client.invoke(operationName, list.get(0), list.get(1), list.get(2), list.get(3), list.get(4)
|
|
||||||
, list.get(5), list.get(6), list.get(7), list.get(8), list.get(9), list.get(10), list.get(11), list.get(12)
|
|
||||||
, list.get(13), list.get(14), list.get(15), list.get(16), list.get(17), list.get(18), list.get(19), list.get(20)
|
|
||||||
, list.get(21), list.get(22), list.get(23), list.get(24), list.get(25), list.get(26));
|
|
||||||
case 28:
|
|
||||||
return client.invoke(operationName, list.get(0), list.get(1), list.get(2), list.get(3), list.get(4)
|
|
||||||
, list.get(5), list.get(6), list.get(7), list.get(8), list.get(9), list.get(10), list.get(11), list.get(12)
|
|
||||||
, list.get(13), list.get(14), list.get(15), list.get(16), list.get(17), list.get(18), list.get(19), list.get(20)
|
|
||||||
, list.get(21), list.get(22), list.get(23), list.get(24), list.get(25), list.get(26), list.get(27));
|
|
||||||
case 29:
|
|
||||||
return client.invoke(operationName, list.get(0), list.get(1), list.get(2), list.get(3), list.get(4)
|
|
||||||
, list.get(5), list.get(6), list.get(7), list.get(8), list.get(9), list.get(10), list.get(11), list.get(12)
|
|
||||||
, list.get(13), list.get(14), list.get(15), list.get(16), list.get(17), list.get(18), list.get(19), list.get(20)
|
|
||||||
, list.get(21), list.get(22), list.get(23), list.get(24), list.get(25), list.get(26), list.get(27), list.get(28));
|
|
||||||
case 30:
|
|
||||||
return client.invoke(operationName, list.get(0), list.get(1), list.get(2), list.get(3), list.get(4)
|
|
||||||
, list.get(5), list.get(6), list.get(7), list.get(8), list.get(9), list.get(10), list.get(11), list.get(12)
|
|
||||||
, list.get(13), list.get(14), list.get(15), list.get(16), list.get(17), list.get(18), list.get(19), list.get(20)
|
|
||||||
, list.get(21), list.get(22), list.get(23), list.get(24), list.get(25), list.get(26), list.get(27), list.get(28)
|
|
||||||
, list.get(29));
|
|
||||||
default:
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,21 +0,0 @@
|
||||||
package net.risesoft.util;
|
|
||||||
|
|
||||||
import org.springframework.http.client.SimpleClientHttpRequestFactory;
|
|
||||||
import org.springframework.stereotype.Component;
|
|
||||||
import org.springframework.web.client.RestTemplate;
|
|
||||||
|
|
||||||
|
|
||||||
@Component
|
|
||||||
public class RestUtil {
|
|
||||||
/**
|
|
||||||
* @param connectTimeout 连接服务器超时时间
|
|
||||||
* @param readTimeout 读取数据超时时间
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
public RestTemplate restTemplate(int connectTimeout, int readTimeout) {
|
|
||||||
SimpleClientHttpRequestFactory requestFactory = new SimpleClientHttpRequestFactory();
|
|
||||||
requestFactory.setConnectTimeout(connectTimeout);
|
|
||||||
requestFactory.setReadTimeout(readTimeout);
|
|
||||||
return new RestTemplate(requestFactory);
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,69 +0,0 @@
|
||||||
package net.risesoft.y9public.dto;
|
|
||||||
|
|
||||||
import lombok.Data;
|
|
||||||
import lombok.NoArgsConstructor;
|
|
||||||
|
|
||||||
import net.risesoft.y9public.entity.Approve;
|
|
||||||
import net.risesoft.y9public.entity.BaseEntity;
|
|
||||||
|
|
||||||
import java.io.Serializable;
|
|
||||||
|
|
||||||
@Data
|
|
||||||
@NoArgsConstructor
|
|
||||||
public class ApproveDTO extends BaseEntity implements Serializable {
|
|
||||||
|
|
||||||
private static final long serialVersionUID = 3121652146259274217L;
|
|
||||||
|
|
||||||
private String id;
|
|
||||||
|
|
||||||
private String interfaceId;
|
|
||||||
|
|
||||||
private String applyId;
|
|
||||||
|
|
||||||
private String illustrate;
|
|
||||||
|
|
||||||
private String approveStatus;
|
|
||||||
|
|
||||||
private String notes;
|
|
||||||
|
|
||||||
private String personName;
|
|
||||||
|
|
||||||
private String personId;
|
|
||||||
|
|
||||||
private String interfaceStatus;
|
|
||||||
|
|
||||||
private String isOver;
|
|
||||||
|
|
||||||
private String isNew;
|
|
||||||
|
|
||||||
private String interfaceName;
|
|
||||||
|
|
||||||
private String version;
|
|
||||||
|
|
||||||
private String approveOption;
|
|
||||||
|
|
||||||
private String flowNode;
|
|
||||||
|
|
||||||
private String alreadyApproveUser;
|
|
||||||
|
|
||||||
private String currentUserId;
|
|
||||||
|
|
||||||
private String currentNode;
|
|
||||||
|
|
||||||
public ApproveDTO(Approve dto) {
|
|
||||||
this.id = dto.getId();
|
|
||||||
this.interfaceId = dto.getInterfaceId();
|
|
||||||
this.illustrate = dto.getIllustrate();
|
|
||||||
this.approveStatus = dto.getApproveStatus();
|
|
||||||
this.notes = dto.getNotes();
|
|
||||||
this.personName = dto.getPersonName();
|
|
||||||
this.personId = dto.getPersonId();
|
|
||||||
this.interfaceStatus = dto.getInterfaceStatus();
|
|
||||||
this.isOver = dto.getIsOver();
|
|
||||||
this.flowNode = dto.getFlowNode();
|
|
||||||
this.alreadyApproveUser = dto.getAlreadyApproveUser();
|
|
||||||
this.currentUserId = dto.getCurrentUserId();
|
|
||||||
this.currentNode = dto.getCurrentNode();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,68 +0,0 @@
|
||||||
package net.risesoft.y9public.dto;
|
|
||||||
|
|
||||||
import lombok.Data;
|
|
||||||
import lombok.NoArgsConstructor;
|
|
||||||
|
|
||||||
import net.risesoft.y9public.entity.AuthDict;
|
|
||||||
import net.risesoft.y9public.entity.BaseEntity;
|
|
||||||
|
|
||||||
|
|
||||||
import java.io.Serializable;
|
|
||||||
|
|
||||||
@Data
|
|
||||||
@NoArgsConstructor
|
|
||||||
public class AuthDictDTO extends BaseEntity implements Serializable {
|
|
||||||
|
|
||||||
private static final long serialVersionUID = 3121642144259272227L;
|
|
||||||
|
|
||||||
private String id;
|
|
||||||
|
|
||||||
private String interfaceId;
|
|
||||||
|
|
||||||
private String parameterName;
|
|
||||||
|
|
||||||
private String fieldName;
|
|
||||||
|
|
||||||
private String fieldVal;
|
|
||||||
|
|
||||||
private String showVal;
|
|
||||||
|
|
||||||
private String parameterType;
|
|
||||||
|
|
||||||
private String parameterId;
|
|
||||||
|
|
||||||
private String isDelete;
|
|
||||||
|
|
||||||
private String pid;
|
|
||||||
|
|
||||||
private Integer sort;
|
|
||||||
|
|
||||||
private String isTree;
|
|
||||||
|
|
||||||
private String isPrimary;
|
|
||||||
|
|
||||||
private String personId;
|
|
||||||
|
|
||||||
private String personName;
|
|
||||||
|
|
||||||
private Boolean hasChildren;
|
|
||||||
|
|
||||||
public AuthDictDTO(AuthDict dto) {
|
|
||||||
this.id = dto.getId();
|
|
||||||
this.interfaceId = dto.getInterfaceId();
|
|
||||||
this.parameterName = dto.getParameterName();
|
|
||||||
this.fieldName = dto.getFieldName();
|
|
||||||
this.fieldVal = dto.getFieldVal();
|
|
||||||
this.showVal = dto.getShowVal();
|
|
||||||
this.parameterType = dto.getParameterType();
|
|
||||||
this.parameterId = dto.getParameterId();
|
|
||||||
this.isDelete = dto.getIsDelete();
|
|
||||||
this.pid = dto.getPid();
|
|
||||||
this.sort = dto.getSort();
|
|
||||||
this.isTree = dto.getIsTree();
|
|
||||||
this.isPrimary = dto.getIsPrimary();
|
|
||||||
this.personId = dto.getPersonId();
|
|
||||||
this.personName = dto.getPersonName();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,94 +0,0 @@
|
||||||
package net.risesoft.y9public.dto;
|
|
||||||
|
|
||||||
import lombok.Data;
|
|
||||||
import lombok.NoArgsConstructor;
|
|
||||||
|
|
||||||
import net.risesoft.y9public.entity.InterfaceApply;
|
|
||||||
|
|
||||||
|
|
||||||
import java.io.Serializable;
|
|
||||||
|
|
||||||
@Data
|
|
||||||
@NoArgsConstructor
|
|
||||||
public class InterfaceApplyDTO implements Serializable {
|
|
||||||
|
|
||||||
private static final long serialVersionUID = 3121642146259274227L;
|
|
||||||
|
|
||||||
private String id;
|
|
||||||
|
|
||||||
private String interfaceId;
|
|
||||||
|
|
||||||
private String applyPersonName;
|
|
||||||
|
|
||||||
private String applyPersonId;
|
|
||||||
|
|
||||||
private String systemIdentifier;
|
|
||||||
|
|
||||||
private String applySystemName;
|
|
||||||
|
|
||||||
private String auth;
|
|
||||||
|
|
||||||
private String applyPersonDeptName;
|
|
||||||
|
|
||||||
private String applyPersonDeptId;
|
|
||||||
|
|
||||||
private String usePersonResponsible;
|
|
||||||
|
|
||||||
private String usePersonResponsiblePhone;
|
|
||||||
|
|
||||||
private String notes;
|
|
||||||
|
|
||||||
private String applyTime;
|
|
||||||
|
|
||||||
private String applyReason;
|
|
||||||
|
|
||||||
private String applyType;
|
|
||||||
|
|
||||||
private String userKey;
|
|
||||||
|
|
||||||
private String userSecret;
|
|
||||||
|
|
||||||
private String ipWhitelist;
|
|
||||||
|
|
||||||
private String applyStopTime;
|
|
||||||
|
|
||||||
private String oldId;
|
|
||||||
|
|
||||||
private String sameId;
|
|
||||||
|
|
||||||
private String dataType;
|
|
||||||
|
|
||||||
private String isEffective;
|
|
||||||
|
|
||||||
private String flowId;
|
|
||||||
|
|
||||||
private String userData;
|
|
||||||
|
|
||||||
|
|
||||||
public InterfaceApplyDTO(InterfaceApply dto) {
|
|
||||||
this.id = dto.getId();
|
|
||||||
this.interfaceId = dto.getInterfaceId();
|
|
||||||
this.applyPersonName = dto.getApplyPersonName();
|
|
||||||
this.applyPersonId = dto.getApplyPersonId();
|
|
||||||
this.systemIdentifier = dto.getSystemIdentifier();
|
|
||||||
this.auth = dto.getAuth();
|
|
||||||
this.applyPersonDeptName = dto.getApplyPersonDeptName();
|
|
||||||
this.usePersonResponsible = dto.getUsePersonResponsible();
|
|
||||||
this.usePersonResponsiblePhone = dto.getUsePersonResponsiblePhone();
|
|
||||||
this.notes = dto.getNotes();
|
|
||||||
this.applyTime = dto.getApplyTime();
|
|
||||||
this.applyReason = dto.getApplyReason();
|
|
||||||
this.applyType = dto.getApplyType();
|
|
||||||
this.userKey = dto.getUserKey();
|
|
||||||
this.userSecret = dto.getUserSecret();
|
|
||||||
this.ipWhitelist = dto.getIpWhitelist();
|
|
||||||
this.applyStopTime = dto.getApplyStopTime();
|
|
||||||
this.oldId = dto.getOldId();
|
|
||||||
this.sameId = dto.getSameId();
|
|
||||||
this.dataType = dto.getDataType();
|
|
||||||
this.isEffective = dto.getIsEffective();
|
|
||||||
this.applySystemName = dto.getApplySystemName();
|
|
||||||
this.applyPersonDeptId = dto.getApplyPersonDeptId();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,140 +0,0 @@
|
||||||
package net.risesoft.y9public.dto;
|
|
||||||
|
|
||||||
import lombok.Data;
|
|
||||||
import lombok.NoArgsConstructor;
|
|
||||||
import net.risesoft.y9public.entity.BaseEntity;
|
|
||||||
import net.risesoft.y9public.entity.InterfaceLimitInfo;
|
|
||||||
import net.risesoft.y9public.entity.InterfaceManage;
|
|
||||||
import net.risesoft.y9public.entity.Parameter;
|
|
||||||
|
|
||||||
import java.io.Serializable;
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
@Data
|
|
||||||
@NoArgsConstructor
|
|
||||||
public class InterfaceManageDTO extends BaseEntity implements Serializable {
|
|
||||||
|
|
||||||
private static final long serialVersionUID = 3226632145259274287L;
|
|
||||||
|
|
||||||
|
|
||||||
private String id;
|
|
||||||
|
|
||||||
private String interfaceName;
|
|
||||||
|
|
||||||
private String sameInterfaceId;
|
|
||||||
|
|
||||||
private String interfaceUrl;
|
|
||||||
|
|
||||||
private String parameterIds;
|
|
||||||
|
|
||||||
private String isAuth;
|
|
||||||
|
|
||||||
private String isLimit;
|
|
||||||
|
|
||||||
private String isBack;
|
|
||||||
|
|
||||||
private String illustrate;
|
|
||||||
|
|
||||||
private String interfaceType;
|
|
||||||
|
|
||||||
private String interfaceStatus;
|
|
||||||
|
|
||||||
private String interfaceMethod;
|
|
||||||
|
|
||||||
private String version;
|
|
||||||
|
|
||||||
private String notes;
|
|
||||||
|
|
||||||
private String personName;
|
|
||||||
|
|
||||||
private String personId;
|
|
||||||
|
|
||||||
private String deptInfo;
|
|
||||||
|
|
||||||
private String deptId;
|
|
||||||
|
|
||||||
private String systemName;
|
|
||||||
|
|
||||||
private String systemId;
|
|
||||||
|
|
||||||
private String head;
|
|
||||||
|
|
||||||
private String isOverwrite;
|
|
||||||
|
|
||||||
private String interfaceFileUrl;
|
|
||||||
|
|
||||||
private String interfaceFileName;
|
|
||||||
|
|
||||||
private String isDelete;
|
|
||||||
|
|
||||||
private String isTest;
|
|
||||||
|
|
||||||
private String networkAgreement;
|
|
||||||
|
|
||||||
private String headPhone;
|
|
||||||
|
|
||||||
private String overwriteInterfaceId;
|
|
||||||
|
|
||||||
private String nameSpace;
|
|
||||||
|
|
||||||
private String method;
|
|
||||||
|
|
||||||
private String webSpecification;
|
|
||||||
|
|
||||||
private Integer page;
|
|
||||||
|
|
||||||
private Integer limit;
|
|
||||||
|
|
||||||
private String parameters;
|
|
||||||
|
|
||||||
private String resParameters;
|
|
||||||
|
|
||||||
private String reqParameters;
|
|
||||||
|
|
||||||
private String limitInfo;
|
|
||||||
|
|
||||||
private String approveStatus;
|
|
||||||
|
|
||||||
private String mayApply;
|
|
||||||
|
|
||||||
private String isLimitData;
|
|
||||||
|
|
||||||
private List<Parameter> parameterList;
|
|
||||||
|
|
||||||
private InterfaceLimitInfo limitInfoEntity;
|
|
||||||
|
|
||||||
public InterfaceManageDTO(InterfaceManage dto) {
|
|
||||||
this.id = dto.getId();
|
|
||||||
this.interfaceName = dto.getInterfaceName();
|
|
||||||
this.sameInterfaceId = dto.getSameInterfaceId();
|
|
||||||
this.interfaceUrl = dto.getInterfaceUrl();
|
|
||||||
this.parameterIds = dto.getParameterIds();
|
|
||||||
this.isAuth = dto.getIsAuth();
|
|
||||||
this.isLimit = dto.getIsLimit();
|
|
||||||
this.illustrate = dto.getIllustrate();
|
|
||||||
this.interfaceType = dto.getInterfaceType();
|
|
||||||
this.interfaceStatus = dto.getInterfaceStatus();
|
|
||||||
this.interfaceMethod = dto.getInterfaceMethod();
|
|
||||||
this.version = dto.getVersion();
|
|
||||||
this.notes = dto.getNotes();
|
|
||||||
this.personName = dto.getPersonName();
|
|
||||||
this.personId = dto.getPersonId();
|
|
||||||
this.deptInfo = dto.getDeptInfo();
|
|
||||||
this.head = dto.getHead();
|
|
||||||
this.isOverwrite = dto.getIsOverwrite();
|
|
||||||
this.interfaceFileUrl = dto.getInterfaceFileUrl();
|
|
||||||
this.isDelete = dto.getIsDelete();
|
|
||||||
this.isTest = dto.getIsTest();
|
|
||||||
this.networkAgreement = dto.getNetworkAgreement();
|
|
||||||
this.headPhone = dto.getHeadPhone();
|
|
||||||
this.overwriteInterfaceId = dto.getOverwriteInterfaceId();
|
|
||||||
this.nameSpace = dto.getNameSpace();
|
|
||||||
this.method = dto.getMethod();
|
|
||||||
this.webSpecification = dto.getWebSpecification();
|
|
||||||
this.isLimitData = dto.getIsLimitData();
|
|
||||||
this.deptId = dto.getDeptId();
|
|
||||||
this.systemId = dto.getSystemId();
|
|
||||||
this.systemName = dto.getSystemName();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,63 +0,0 @@
|
||||||
package net.risesoft.y9public.dto;
|
|
||||||
|
|
||||||
import lombok.Data;
|
|
||||||
import lombok.NoArgsConstructor;
|
|
||||||
import net.risesoft.y9public.entity.Parameter;
|
|
||||||
|
|
||||||
import java.io.Serializable;
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
@Data
|
|
||||||
@NoArgsConstructor
|
|
||||||
public class ParameterDTO implements Serializable {
|
|
||||||
|
|
||||||
private static final long serialVersionUID = 3821646146259274267L;
|
|
||||||
|
|
||||||
private String id;
|
|
||||||
|
|
||||||
private String interfaceId;
|
|
||||||
|
|
||||||
private String parameterKey;
|
|
||||||
|
|
||||||
private String val;
|
|
||||||
|
|
||||||
private String defaultVal;
|
|
||||||
|
|
||||||
private String parameterType;
|
|
||||||
|
|
||||||
private String required;
|
|
||||||
|
|
||||||
private String notes;
|
|
||||||
|
|
||||||
private String personId;
|
|
||||||
|
|
||||||
private String parameterStatus;
|
|
||||||
|
|
||||||
private String pid;
|
|
||||||
|
|
||||||
private Integer level;
|
|
||||||
|
|
||||||
private Integer sort;
|
|
||||||
|
|
||||||
private String isItems;
|
|
||||||
|
|
||||||
private List<ParameterDTO> children;
|
|
||||||
|
|
||||||
public ParameterDTO(Parameter dto) {
|
|
||||||
this.id = dto.getId();
|
|
||||||
this.interfaceId = dto.getInterfaceId();
|
|
||||||
this.parameterKey = dto.getParameterKey();
|
|
||||||
this.val = dto.getVal();
|
|
||||||
this.defaultVal = dto.getDefaultVal();
|
|
||||||
this.parameterType = dto.getParameterType();
|
|
||||||
this.required = dto.getRequired();
|
|
||||||
this.notes = dto.getNotes();
|
|
||||||
this.personId = dto.getPersonId();
|
|
||||||
this.parameterStatus = dto.getParameterStatus();
|
|
||||||
this.pid = dto.getPid();
|
|
||||||
this.level = dto.getLevel();
|
|
||||||
this.isItems = dto.getIsItems();
|
|
||||||
this.sort = dto.getSort();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,64 +0,0 @@
|
||||||
package net.risesoft.y9public.dto;
|
|
||||||
|
|
||||||
|
|
||||||
import lombok.Data;
|
|
||||||
import lombok.NoArgsConstructor;
|
|
||||||
|
|
||||||
|
|
||||||
import java.io.Serializable;
|
|
||||||
import java.util.Date;
|
|
||||||
|
|
||||||
@Data
|
|
||||||
@NoArgsConstructor
|
|
||||||
public class ViewApproveDTO implements Serializable {
|
|
||||||
|
|
||||||
private static final long serialVersionUID = 3121642145259274427L;
|
|
||||||
|
|
||||||
|
|
||||||
private String approveId;
|
|
||||||
|
|
||||||
private String interfaceId;
|
|
||||||
|
|
||||||
private String applyId;
|
|
||||||
|
|
||||||
private String approveStatus;
|
|
||||||
|
|
||||||
private String illustrate;
|
|
||||||
|
|
||||||
private String applyType;
|
|
||||||
|
|
||||||
private String notes;
|
|
||||||
|
|
||||||
private String isOver;
|
|
||||||
|
|
||||||
private String approveInterfaceStatus;
|
|
||||||
|
|
||||||
private String approvePersonName;
|
|
||||||
|
|
||||||
private String approvePersonId;
|
|
||||||
|
|
||||||
private String applyPersonName;
|
|
||||||
|
|
||||||
private String applyPersonId;
|
|
||||||
|
|
||||||
private String interfaceName;
|
|
||||||
|
|
||||||
private String interfaceStatus;
|
|
||||||
|
|
||||||
private String version;
|
|
||||||
|
|
||||||
private Integer page;
|
|
||||||
|
|
||||||
private Integer limit;
|
|
||||||
private String statusSort;
|
|
||||||
|
|
||||||
private Date createTime;
|
|
||||||
private Date applyTime;
|
|
||||||
|
|
||||||
private String statusRole;
|
|
||||||
private String alreadyApproveUser;
|
|
||||||
private String currentUserId;
|
|
||||||
private String startDate;
|
|
||||||
private String endDate;
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,108 +0,0 @@
|
||||||
package net.risesoft.y9public.entity;
|
|
||||||
|
|
||||||
import lombok.Data;
|
|
||||||
import lombok.NoArgsConstructor;
|
|
||||||
import net.risesoft.y9public.dto.ApproveDTO;
|
|
||||||
import org.hibernate.annotations.Comment;
|
|
||||||
|
|
||||||
import javax.persistence.Column;
|
|
||||||
import javax.persistence.Entity;
|
|
||||||
import javax.persistence.Id;
|
|
||||||
import javax.persistence.Table;
|
|
||||||
import java.io.Serializable;
|
|
||||||
|
|
||||||
@Data
|
|
||||||
@NoArgsConstructor
|
|
||||||
@Entity
|
|
||||||
@Table(name = "Y9_INTERFACE_APPROVE")
|
|
||||||
@org.hibernate.annotations.Table(comment = "接口审批表", appliesTo = "Y9_INTERFACE_APPROVE")
|
|
||||||
public class Approve extends BaseEntity implements Serializable {
|
|
||||||
|
|
||||||
private static final long serialVersionUID = 3121642146259274227L;
|
|
||||||
|
|
||||||
@Id
|
|
||||||
@Column(name = "ID", columnDefinition = "varchar(36) default '' comment 'ID'")
|
|
||||||
private String id;
|
|
||||||
|
|
||||||
@Column(name = "INTERFACE_ID", columnDefinition = "varchar(36) default '' comment '接口id'")
|
|
||||||
@Comment(value = "接口ID")
|
|
||||||
private String interfaceId;
|
|
||||||
|
|
||||||
@Column(name = "APPLY_ID", columnDefinition = "varchar(36) default '' comment '申请ID'")
|
|
||||||
@Comment(value = "申请ID")
|
|
||||||
private String applyId;
|
|
||||||
|
|
||||||
@Column(name = "PERSON_NAME", columnDefinition = "varchar(1000) default '' comment '审批人'")
|
|
||||||
@Comment(value = "审批人")
|
|
||||||
private String personName;
|
|
||||||
|
|
||||||
@Column(name = "PERSON_ID", columnDefinition = "varchar(1000) default '' comment '审批人ID'")
|
|
||||||
@Comment(value = "审批人ID")
|
|
||||||
private String personId;
|
|
||||||
|
|
||||||
@Column(name = "ILLUSTRATE", columnDefinition = "varchar(4000) default '' comment '审批说明'")
|
|
||||||
@Comment(value = "审批说明")
|
|
||||||
private String illustrate;
|
|
||||||
|
|
||||||
@Column(name = "APPROVE_STATUS", columnDefinition = "varchar(100) default '' comment '审批意见'")
|
|
||||||
@Comment(value = "审批意见")
|
|
||||||
private String approveStatus;
|
|
||||||
|
|
||||||
@Column(name = "NOTES", columnDefinition = "varchar(2000) default '' comment '备注'")
|
|
||||||
@Comment(value = "备注")
|
|
||||||
private String notes;
|
|
||||||
|
|
||||||
@Column(name = "INTERFACE_STATUS", columnDefinition = "varchar(10) default '' comment '接口状态'")
|
|
||||||
@Comment(value = "接口状态")
|
|
||||||
private String interfaceStatus;
|
|
||||||
|
|
||||||
@Column(name = "IS_OVER", columnDefinition = "varchar(10) default '' comment '是否结束(Y结束,N未结束)'")
|
|
||||||
@Comment(value = "是否结束")
|
|
||||||
private String isOver;
|
|
||||||
|
|
||||||
@Column(name = "APPLY_TYPE", columnDefinition = "varchar(10) default '' comment '申请类型'")
|
|
||||||
@Comment(value = "申请类型")
|
|
||||||
private String applyType;
|
|
||||||
|
|
||||||
@Column(name = "IS_NEW", columnDefinition = "varchar(10) default '' comment '是否最新数据'")
|
|
||||||
@Comment(value = "是否最新数据")
|
|
||||||
private String isNew;
|
|
||||||
|
|
||||||
@Column(name = "FLOW_NODE", columnDefinition = "text comment '流程节点信息'")
|
|
||||||
@Comment(value = "流程节点信息")
|
|
||||||
private String flowNode;
|
|
||||||
|
|
||||||
@Column(name = "ALREADY_APPROVE_USER", columnDefinition = "varchar(1000) default '' comment '已审批人员id'")
|
|
||||||
@Comment(value = "已审批人员id")
|
|
||||||
private String alreadyApproveUser;
|
|
||||||
|
|
||||||
@Column(name = "CURRENT_USER_ID", columnDefinition = "varchar(100) default '' comment '当前审批人员'")
|
|
||||||
@Comment(value = "当前审批人员")
|
|
||||||
private String currentUserId;
|
|
||||||
|
|
||||||
@Column(name = "CURRENT_NODE", columnDefinition = "varchar(500) default '' comment '当前节点信息'")
|
|
||||||
@Comment(value = "当前节点信息")
|
|
||||||
private String currentNode;
|
|
||||||
|
|
||||||
@Column(name = "BUS_ID_JSON", columnDefinition = "text comment '业务关联id信息'")
|
|
||||||
@Comment(value = "当前节点信息")
|
|
||||||
private String busIdJson;
|
|
||||||
|
|
||||||
public Approve(ApproveDTO dto) {
|
|
||||||
this.id = dto.getId();
|
|
||||||
this.interfaceId = dto.getInterfaceId();
|
|
||||||
this.applyId = dto.getApplyId();
|
|
||||||
this.illustrate = dto.getIllustrate();
|
|
||||||
this.approveStatus = dto.getApproveStatus();
|
|
||||||
this.notes = dto.getNotes();
|
|
||||||
this.personName = dto.getPersonName();
|
|
||||||
this.personId = dto.getPersonId();
|
|
||||||
this.interfaceStatus = dto.getInterfaceStatus();
|
|
||||||
this.isOver = dto.getIsOver();
|
|
||||||
this.flowNode = dto.getFlowNode();
|
|
||||||
this.alreadyApproveUser = dto.getAlreadyApproveUser();
|
|
||||||
this.currentUserId = dto.getCurrentUserId();
|
|
||||||
this.currentNode = dto.getCurrentNode();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,101 +0,0 @@
|
||||||
package net.risesoft.y9public.entity;
|
|
||||||
|
|
||||||
import lombok.Data;
|
|
||||||
import lombok.NoArgsConstructor;
|
|
||||||
import net.risesoft.y9public.dto.AuthDictDTO;
|
|
||||||
import org.hibernate.annotations.Comment;
|
|
||||||
|
|
||||||
import javax.persistence.Column;
|
|
||||||
import javax.persistence.Entity;
|
|
||||||
import javax.persistence.Id;
|
|
||||||
import javax.persistence.Table;
|
|
||||||
import java.io.Serializable;
|
|
||||||
|
|
||||||
@Data
|
|
||||||
@NoArgsConstructor
|
|
||||||
@Entity
|
|
||||||
@Table(name = "Y9_INTERFACE_AUTH_DICT")
|
|
||||||
@org.hibernate.annotations.Table(comment = "接口鉴权字典", appliesTo = "Y9_INTERFACE_AUTH_DICT")
|
|
||||||
public class AuthDict extends BaseEntity implements Serializable {
|
|
||||||
|
|
||||||
private static final long serialVersionUID = 3121642144259272227L;
|
|
||||||
|
|
||||||
@Id
|
|
||||||
@Column(name = "ID", columnDefinition = "varchar(36) default '' comment 'ID'")
|
|
||||||
private String id;
|
|
||||||
|
|
||||||
@Column(name = "INTERFACE_ID", columnDefinition = "varchar(36) default '' comment '接口id'")
|
|
||||||
@Comment(value = "接口ID")
|
|
||||||
private String interfaceId;
|
|
||||||
|
|
||||||
@Column(name = "PARAMETER_NAME", columnDefinition = "varchar(100) default '' comment '参数名'")
|
|
||||||
@Comment(value = "参数名")
|
|
||||||
private String parameterName;
|
|
||||||
|
|
||||||
@Column(name = "FIELD_NAME", columnDefinition = "varchar(36) default '' comment '字段名'")
|
|
||||||
@Comment(value = "字段名")
|
|
||||||
private String fieldName;
|
|
||||||
|
|
||||||
@Column(name = "FIELD_VAL", columnDefinition = "varchar(100) default '' comment '字段值'")
|
|
||||||
@Comment(value = "字段值")
|
|
||||||
private String fieldVal;
|
|
||||||
|
|
||||||
@Column(name = "SHOW_VAL", columnDefinition = "varchar(100) default '' comment '显示值'")
|
|
||||||
@Comment(value = "显示值")
|
|
||||||
private String showVal;
|
|
||||||
|
|
||||||
@Column(name = "PARAMETER_TYPE", columnDefinition = "varchar(100) default '' comment '参数类型(公有;私有;)'")
|
|
||||||
@Comment(value = "参数类型")
|
|
||||||
private String parameterType;
|
|
||||||
|
|
||||||
@Column(name = "PARAMETER_ID", columnDefinition = "varchar(100) default '' comment '参数ID'")
|
|
||||||
@Comment(value = "参数ID")
|
|
||||||
private String parameterId;
|
|
||||||
|
|
||||||
@Column(name = "IS_DELETE", columnDefinition = "varchar(100) default '' comment '参数类型(Y无效;N有效)'")
|
|
||||||
@Comment(value = "是否有效")
|
|
||||||
private String isDelete;
|
|
||||||
|
|
||||||
@Column(name = "PID", columnDefinition = "varchar(36) default '' comment '父级id'")
|
|
||||||
@Comment(value = "父级id")
|
|
||||||
private String pid;
|
|
||||||
|
|
||||||
@Column(name = "SORT", columnDefinition = "int comment '序号'")
|
|
||||||
@Comment(value = "序号")
|
|
||||||
private Integer sort;
|
|
||||||
|
|
||||||
@Column(name = "IS_TREE", columnDefinition = "varchar(10) default '' comment '是否树形数据(是;否;)'")
|
|
||||||
@Comment(value = "是否树形")
|
|
||||||
private String isTree;
|
|
||||||
|
|
||||||
@Column(name = "IS_PRIMARY", columnDefinition = "varchar(10) default '' comment '是否主表数据'")
|
|
||||||
@Comment(value = "是否主表数据")
|
|
||||||
private String isPrimary;
|
|
||||||
|
|
||||||
@Column(name = "PERSON_ID", columnDefinition = "varchar(36) default '' comment '填写人ID'")
|
|
||||||
@Comment(value = "填写人ID")
|
|
||||||
private String personId;
|
|
||||||
|
|
||||||
@Column(name = "PERSON_NAME", columnDefinition = "varchar(100) default '' comment '填写人名称'")
|
|
||||||
@Comment(value = "填写人名称")
|
|
||||||
private String personName;
|
|
||||||
|
|
||||||
public AuthDict(AuthDictDTO dto) {
|
|
||||||
this.id = dto.getId();
|
|
||||||
this.interfaceId = dto.getInterfaceId();
|
|
||||||
this.parameterName = dto.getParameterName();
|
|
||||||
this.fieldName = dto.getFieldName();
|
|
||||||
this.fieldVal = dto.getFieldVal();
|
|
||||||
this.showVal = dto.getShowVal();
|
|
||||||
this.parameterType = dto.getParameterType();
|
|
||||||
this.parameterId = dto.getParameterId();
|
|
||||||
this.isDelete = dto.getIsDelete();
|
|
||||||
this.pid = dto.getPid();
|
|
||||||
this.sort = dto.getSort();
|
|
||||||
this.isTree = dto.getIsTree();
|
|
||||||
this.isPrimary = dto.getIsPrimary();
|
|
||||||
this.personId = dto.getPersonId();
|
|
||||||
this.personName = dto.getPersonName();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,55 +0,0 @@
|
||||||
package net.risesoft.y9public.entity;
|
|
||||||
|
|
||||||
import lombok.Data;
|
|
||||||
import lombok.NoArgsConstructor;
|
|
||||||
import org.hibernate.annotations.Comment;
|
|
||||||
|
|
||||||
import javax.persistence.Column;
|
|
||||||
import javax.persistence.Entity;
|
|
||||||
import javax.persistence.Id;
|
|
||||||
import javax.persistence.Table;
|
|
||||||
import java.io.Serializable;
|
|
||||||
|
|
||||||
@Data
|
|
||||||
@NoArgsConstructor
|
|
||||||
@Entity
|
|
||||||
@Table(name = "Y9_INTERFACE_BLACKLISTING")
|
|
||||||
@org.hibernate.annotations.Table(comment = "黑名单录入", appliesTo = "Y9_INTERFACE_BLACKLISTING")
|
|
||||||
public class Blacklisting extends BaseEntity implements Serializable {
|
|
||||||
|
|
||||||
private static final long serialVersionUID = 3121642146259214221L;
|
|
||||||
|
|
||||||
@Id
|
|
||||||
@Column(name = "ID", columnDefinition = "varchar(50) default '' comment 'ID'")
|
|
||||||
private String id;
|
|
||||||
|
|
||||||
@Column(name = "name", columnDefinition = "varchar(100) default '' comment '名称'")
|
|
||||||
@Comment(value = "名称")
|
|
||||||
private String name;
|
|
||||||
|
|
||||||
@Column(name = "IP", columnDefinition = "varchar(300) default '' comment '黑名单IP'")
|
|
||||||
@Comment(value = "黑名单IP")
|
|
||||||
private String ip;
|
|
||||||
|
|
||||||
@Column(name = "INTERFACE_IDS", columnDefinition = "varchar(1000) default '' comment '接口id'")
|
|
||||||
@Comment(value = "接口id")
|
|
||||||
private String interfaceIds;
|
|
||||||
|
|
||||||
@Column(name = "notes", columnDefinition = "varchar(254) default '' comment '备注'")
|
|
||||||
@Comment(value = "备注")
|
|
||||||
private String notes;
|
|
||||||
|
|
||||||
@Column(name = "SORT", columnDefinition = "int comment '排序'")
|
|
||||||
@Comment(value = "排序")
|
|
||||||
private Integer sort;
|
|
||||||
|
|
||||||
@Column(name = "IS_DELETE", columnDefinition = "varchar(10) default 'N' comment '是否删除Y删除,N未删除'")
|
|
||||||
@Comment(value = "是否删除")
|
|
||||||
private String isDelete;
|
|
||||||
|
|
||||||
@Column(name = "IS_ENABLE", columnDefinition = "varchar(10) default 'N' comment '参数类型(true启用;false停用)'")
|
|
||||||
@Comment(value = "是否启用")
|
|
||||||
private String isEnable;
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,141 +0,0 @@
|
||||||
package net.risesoft.y9public.entity;
|
|
||||||
|
|
||||||
import lombok.Data;
|
|
||||||
import lombok.NoArgsConstructor;
|
|
||||||
import net.risesoft.y9public.dto.InterfaceApplyDTO;
|
|
||||||
import org.hibernate.annotations.Comment;
|
|
||||||
|
|
||||||
import javax.persistence.Column;
|
|
||||||
import javax.persistence.Entity;
|
|
||||||
import javax.persistence.Id;
|
|
||||||
import javax.persistence.Table;
|
|
||||||
import java.io.Serializable;
|
|
||||||
|
|
||||||
@Data
|
|
||||||
@NoArgsConstructor
|
|
||||||
@Entity
|
|
||||||
@Table(name = "Y9_INTERFACE_APPLY")
|
|
||||||
@org.hibernate.annotations.Table(comment = "接口申请表", appliesTo = "Y9_INTERFACE_APPLY")
|
|
||||||
public class InterfaceApply extends BaseEntity implements Serializable {
|
|
||||||
|
|
||||||
private static final long serialVersionUID = 3121642146259274227L;
|
|
||||||
|
|
||||||
@Id
|
|
||||||
@Column(name = "ID", columnDefinition = "varchar(36) default '' comment 'ID'")
|
|
||||||
private String id;
|
|
||||||
|
|
||||||
@Column(name = "INTERFACE_ID", columnDefinition = "varchar(36) default '' comment '接口id'")
|
|
||||||
@Comment(value = "接口ID")
|
|
||||||
private String interfaceId;
|
|
||||||
|
|
||||||
@Column(name = "APPLY_PERSON_NAME", columnDefinition = "varchar(50) default '' comment '接口申请人'")
|
|
||||||
@Comment(value = "接口申请人")
|
|
||||||
private String applyPersonName;
|
|
||||||
|
|
||||||
@Column(name = "APPLY_PERSON_ID", columnDefinition = "varchar(36) default '' comment '接口申请人ID'")
|
|
||||||
@Comment(value = "接口申请人ID")
|
|
||||||
private String applyPersonId;
|
|
||||||
|
|
||||||
@Column(name = "SYSTEM_IDENTIFIER", columnDefinition = "varchar(254) default '' comment '系统标识'")
|
|
||||||
@Comment(value = "申请系统标识")
|
|
||||||
private String systemIdentifier;
|
|
||||||
|
|
||||||
@Column(name = "APPLY_SYSTEM_NAME", columnDefinition = "varchar(254) default '' comment '申请系统名称'")
|
|
||||||
@Comment(value = "申请系统名称")
|
|
||||||
private String applySystemName;
|
|
||||||
|
|
||||||
@Column(name = "AUTH", columnDefinition = "text comment '权限信息'")
|
|
||||||
@Comment(value = "权限信息")
|
|
||||||
private String auth;
|
|
||||||
|
|
||||||
@Column(name = "APPLY_PERSON_DEPT_NAME", columnDefinition = "varchar(254) default '' comment '接口申请人单位名称'")
|
|
||||||
@Comment(value = "接口申请人单位名称")
|
|
||||||
private String applyPersonDeptName;
|
|
||||||
|
|
||||||
@Column(name = "APPLY_PERSON_DEPT_ID", columnDefinition = "varchar(254) default '' comment '接口申请人单位id'")
|
|
||||||
@Comment(value = "接口申请人单位id")
|
|
||||||
private String applyPersonDeptId;
|
|
||||||
|
|
||||||
@Column(name = "USE_PERSON_RESPONSIBLE", columnDefinition = "varchar(50) default '' comment '接口调用责任人'")
|
|
||||||
@Comment(value = "接口调用责任人")
|
|
||||||
private String usePersonResponsible;
|
|
||||||
|
|
||||||
@Column(name = "USE_PERSON_RESPONSIBLE_PHONE", columnDefinition = "varchar(20) default '' comment '接口调用责任人联系方式'")
|
|
||||||
@Comment(value = "接口调用责任人联系方式")
|
|
||||||
private String usePersonResponsiblePhone;
|
|
||||||
|
|
||||||
@Column(name = "NOTES", columnDefinition = "varchar(254) default '' comment '申请备注'")
|
|
||||||
@Comment(value = "申请备注")
|
|
||||||
private String notes;
|
|
||||||
|
|
||||||
@Column(name = "APPLY_TIME", columnDefinition = "varchar(20) default '' comment '申请日期'")
|
|
||||||
@Comment(value = "申请日期")
|
|
||||||
private String applyTime;
|
|
||||||
|
|
||||||
@Column(name = "APPLY_REASON", columnDefinition = "varchar(500) default '' comment '申请事由'")
|
|
||||||
@Comment(value = "申请事由")
|
|
||||||
private String applyReason;
|
|
||||||
|
|
||||||
@Column(name = "APPLY_TYPE", columnDefinition = "varchar(10) default '' comment '申请类型'")
|
|
||||||
@Comment(value = "申请类型")
|
|
||||||
private String applyType;
|
|
||||||
|
|
||||||
@Column(name = "USER_KEY", columnDefinition = "varchar(100) default '' comment '用户令牌'")
|
|
||||||
@Comment(value = "用户令牌")
|
|
||||||
private String userKey;
|
|
||||||
|
|
||||||
@Column(name = "USER_SECRET", columnDefinition = "varchar(100) default '' comment '用户密钥'")
|
|
||||||
@Comment(value = "用户密钥")
|
|
||||||
private String userSecret;
|
|
||||||
|
|
||||||
@Column(name = "IP_WHITELIST", columnDefinition = "varchar(100) default '' comment 'IP白名单'")
|
|
||||||
@Comment(value = "IP白名单")
|
|
||||||
private String ipWhitelist;
|
|
||||||
|
|
||||||
@Column(name = "APPLY_STOP_TIME", columnDefinition = "varchar(20) default '' comment '申请停用时间'")
|
|
||||||
@Comment(value = "申请停用时间")
|
|
||||||
private String applyStopTime;
|
|
||||||
|
|
||||||
@Column(name = "OLD_ID", columnDefinition = "varchar(36) default '' comment '关联回显之前的申请信息,目前只有接口调用申请会存'")
|
|
||||||
@Comment(value = "变更前旧id")
|
|
||||||
private String oldId;
|
|
||||||
|
|
||||||
@Column(name = "SAME_ID", columnDefinition = "varchar(36) default '' comment '同一个申请变更id'")
|
|
||||||
@Comment(value = "同一个申请变更id")
|
|
||||||
private String sameId;
|
|
||||||
|
|
||||||
@Column(name = "DATA_TYPE", columnDefinition = "varchar(10) default '新增' comment '数据类型-新增-变更'")
|
|
||||||
@Comment(value = "数据类型")
|
|
||||||
private String dataType;
|
|
||||||
|
|
||||||
@Column(name = "IS_EFFECTIVE", columnDefinition = "varchar(2) default 'Y' comment '数据是否有效:Y有效-N无效'")
|
|
||||||
@Comment(value = "数据是否有效")
|
|
||||||
private String isEffective;
|
|
||||||
|
|
||||||
public InterfaceApply(InterfaceApplyDTO dto) {
|
|
||||||
this.id = dto.getId();
|
|
||||||
this.interfaceId = dto.getInterfaceId();
|
|
||||||
this.applyPersonName = dto.getApplyPersonName();
|
|
||||||
this.applyPersonId = dto.getApplyPersonId();
|
|
||||||
this.systemIdentifier = dto.getSystemIdentifier();
|
|
||||||
this.applySystemName = dto.getApplySystemName();
|
|
||||||
this.auth = dto.getAuth();
|
|
||||||
this.applyPersonDeptName = dto.getApplyPersonDeptName();
|
|
||||||
this.applyPersonDeptId = dto.getApplyPersonDeptId();
|
|
||||||
this.usePersonResponsible = dto.getUsePersonResponsible();
|
|
||||||
this.usePersonResponsiblePhone = dto.getUsePersonResponsiblePhone();
|
|
||||||
this.notes = dto.getNotes();
|
|
||||||
this.applyTime = dto.getApplyTime();
|
|
||||||
this.applyReason = dto.getApplyReason();
|
|
||||||
this.applyType = dto.getApplyType();
|
|
||||||
this.userKey = dto.getUserKey();
|
|
||||||
this.userSecret = dto.getUserSecret();
|
|
||||||
this.ipWhitelist = dto.getIpWhitelist();
|
|
||||||
this.applyStopTime = dto.getApplyStopTime();
|
|
||||||
this.oldId = dto.getOldId();
|
|
||||||
this.sameId = dto.getSameId();
|
|
||||||
this.dataType = dto.getDataType();
|
|
||||||
this.isEffective = dto.getIsEffective();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,70 +0,0 @@
|
||||||
package net.risesoft.y9public.entity;
|
|
||||||
|
|
||||||
import lombok.Data;
|
|
||||||
import lombok.NoArgsConstructor;
|
|
||||||
import org.hibernate.annotations.Comment;
|
|
||||||
|
|
||||||
import javax.persistence.Column;
|
|
||||||
import javax.persistence.Entity;
|
|
||||||
import javax.persistence.Id;
|
|
||||||
import javax.persistence.Table;
|
|
||||||
import java.io.Serializable;
|
|
||||||
|
|
||||||
@Data
|
|
||||||
@NoArgsConstructor
|
|
||||||
@Entity
|
|
||||||
@Table(name = "Y9_INTERFACE_LIMIT")
|
|
||||||
@org.hibernate.annotations.Table(comment = "接口限流信息表", appliesTo = "Y9_INTERFACE_LIMIT")
|
|
||||||
public class InterfaceLimitInfo extends BaseEntity implements Serializable {
|
|
||||||
|
|
||||||
private static final long serialVersionUID = 3121642146259274227L;
|
|
||||||
|
|
||||||
@Id
|
|
||||||
@Column(name = "ID", columnDefinition = "varchar(36) default '' comment 'ID'")
|
|
||||||
private String id;
|
|
||||||
|
|
||||||
@Column(name = "INTERFACE_ID", columnDefinition = "varchar(36) default '' comment '接口id'")
|
|
||||||
@Comment(value = "接口ID")
|
|
||||||
private String interfaceId;
|
|
||||||
|
|
||||||
@Column(name = "EFFECT", columnDefinition = "varchar(500) default '' comment '流控效果:快速失败(1);Warm Up(2);排队等候(3);'")
|
|
||||||
@Comment(value = "流控效果")
|
|
||||||
private String effect;
|
|
||||||
|
|
||||||
@Column(name = "WARM_TIME", columnDefinition = "varchar(500) default '' comment '预热时长(秒)'")
|
|
||||||
@Comment(value = "预热时长")
|
|
||||||
private String warmTime;
|
|
||||||
|
|
||||||
@Column(name = "THRESHOLD_TYPE", columnDefinition = "varchar(500) default '' comment '阈值类型'")
|
|
||||||
@Comment(value = "阈值类型")
|
|
||||||
private String thresholdType;
|
|
||||||
|
|
||||||
@Column(name = "THRESHOLD_VAL", columnDefinition = "varchar(500) default '' comment '阈值'")
|
|
||||||
@Comment(value = "阈值")
|
|
||||||
private String thresholdVal;
|
|
||||||
|
|
||||||
@Column(name = "WAIT_TIME", columnDefinition = "varchar(500) default '' comment '超时时间(毫秒)'")
|
|
||||||
@Comment(value = "超时时间")
|
|
||||||
private String waitTime;
|
|
||||||
|
|
||||||
@Column(name = "IS_COLONY", columnDefinition = "varchar(500) default '' comment '是否集群'")
|
|
||||||
@Comment(value = "是否集群")
|
|
||||||
private String isColony;
|
|
||||||
|
|
||||||
@Column(name = "LIMIT_TIME", columnDefinition = "varchar(20) default '' comment '限定时间,单位:秒'")
|
|
||||||
@Comment(value = "限定时间")
|
|
||||||
private String limitTime;
|
|
||||||
|
|
||||||
@Column(name = "LiMIT_COUNT", columnDefinition = "varchar(10) default '' comment '限定时间内总访问量'")
|
|
||||||
@Comment(value = "限定时间内总访问量")
|
|
||||||
private String limitCount;
|
|
||||||
|
|
||||||
@Column(name = "PERSON_ID", columnDefinition = "varchar(36) default '' comment '填写人ID'")
|
|
||||||
@Comment(value = "填写人ID")
|
|
||||||
private String personId;
|
|
||||||
|
|
||||||
@Column(name = "PERSON_NAME", columnDefinition = "varchar(36) default '' comment '填写人名称'")
|
|
||||||
@Comment(value = "填写人名称")
|
|
||||||
private String personName;
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,190 +0,0 @@
|
||||||
package net.risesoft.y9public.entity;
|
|
||||||
|
|
||||||
import lombok.Data;
|
|
||||||
import lombok.NoArgsConstructor;
|
|
||||||
import net.risesoft.y9public.dto.InterfaceManageDTO;
|
|
||||||
import org.hibernate.annotations.Comment;
|
|
||||||
|
|
||||||
import javax.persistence.Column;
|
|
||||||
import javax.persistence.Entity;
|
|
||||||
import javax.persistence.Id;
|
|
||||||
import javax.persistence.Table;
|
|
||||||
import java.io.Serializable;
|
|
||||||
|
|
||||||
@Data
|
|
||||||
@NoArgsConstructor
|
|
||||||
@Entity
|
|
||||||
@Table(name = "Y9_INTERFACE_MANAGE_INFO")
|
|
||||||
@org.hibernate.annotations.Table(comment = "接口管理信息", appliesTo = "Y9_INTERFACE_MANAGE_INFO")
|
|
||||||
public class InterfaceManage extends BaseEntity implements Serializable {
|
|
||||||
|
|
||||||
private static final long serialVersionUID = 3226632146259274287L;
|
|
||||||
|
|
||||||
@Id
|
|
||||||
@Column(name = "ID", columnDefinition = "varchar(36) default '' comment 'ID'")
|
|
||||||
private String id;
|
|
||||||
|
|
||||||
@Column(name = "INTERFACE_NAME", columnDefinition = "varchar(100) default '' comment '接口名称'")
|
|
||||||
@Comment(value = "接口名称")
|
|
||||||
private String interfaceName;
|
|
||||||
|
|
||||||
@Column(name = "SAME_INTERFACE_ID", columnDefinition = "varchar(36) default '' comment '同一接口id'")
|
|
||||||
@Comment(value = "接口id")
|
|
||||||
private String sameInterfaceId;
|
|
||||||
|
|
||||||
@Column(name = "INTERFACE_URL", columnDefinition = "varchar(500) default '' comment '接口调用地址'")
|
|
||||||
@Comment(value = "接口调用地址")
|
|
||||||
private String interfaceUrl;
|
|
||||||
|
|
||||||
@Column(name = "IS_AUTH", columnDefinition = "varchar(10) default '' comment '是否鉴权'")
|
|
||||||
@Comment(value = "是否鉴权")
|
|
||||||
private String isAuth;
|
|
||||||
|
|
||||||
@Column(name = "AUTH_INFO", columnDefinition = "varchar(1000) default '' comment '鉴权信息'")
|
|
||||||
@Comment(value = "鉴权信息")
|
|
||||||
private String authInfo;
|
|
||||||
|
|
||||||
@Column(name = "IS_LIMIT", columnDefinition = "varchar(10) default '' comment '是否限流'")
|
|
||||||
@Comment(value = "是否限流")
|
|
||||||
private String isLimit;
|
|
||||||
|
|
||||||
@Column(name = "IS_LIMIT_DATA", columnDefinition = "varchar(10) default '' comment '是否控制数据权限范围'")
|
|
||||||
@Comment(value = "是否控制数据权限范围")
|
|
||||||
private String isLimitData;
|
|
||||||
|
|
||||||
@Column(name = "ILLUSTRATE", columnDefinition = "varchar(500) default '' comment '接口说明'")
|
|
||||||
@Comment(value = "接口说明")
|
|
||||||
private String illustrate;
|
|
||||||
|
|
||||||
@Column(name = "INTERFACE_TYPE", columnDefinition = "varchar(50) default '' comment '接口类型'")
|
|
||||||
@Comment(value = "接口类型")
|
|
||||||
private String interfaceType;
|
|
||||||
|
|
||||||
@Column(name = "NETWORK_AGREEMENT", columnDefinition = "varchar(50) default '' comment '网络协议'")
|
|
||||||
@Comment(value = "网络协议")
|
|
||||||
private String networkAgreement;
|
|
||||||
|
|
||||||
@Column(name = "INTERFACE_STATUS", columnDefinition = "varchar(10) default '' comment '接口状态'")
|
|
||||||
@Comment(value = "接口状态")
|
|
||||||
private String interfaceStatus;
|
|
||||||
|
|
||||||
@Column(name = "INTERFACE_METHOD", columnDefinition = "varchar(10) default '' comment '请求方式'")
|
|
||||||
@Comment(value = "请求方式")
|
|
||||||
private String interfaceMethod;
|
|
||||||
|
|
||||||
@Column(name = "VERSION", columnDefinition = "varchar(50) default '' comment '接口版本'")
|
|
||||||
@Comment(value = "接口版本")
|
|
||||||
private String version;
|
|
||||||
|
|
||||||
@Column(name = "NOTES", columnDefinition = "varchar(254) default '' comment '备注'")
|
|
||||||
@Comment(value = "备注")
|
|
||||||
private String notes;
|
|
||||||
|
|
||||||
@Column(name = "PERSON_NAME", columnDefinition = "varchar(50) default '' comment '接口填报人'")
|
|
||||||
@Comment(value = "接口填报人")
|
|
||||||
private String personName;
|
|
||||||
|
|
||||||
@Column(name = "PERSON_ID", columnDefinition = "varchar(36) default '' comment '接口填报人ID'")
|
|
||||||
@Comment(value = "接口填报人ID")
|
|
||||||
private String personId;
|
|
||||||
|
|
||||||
@Column(name = "DEPT_INFO", columnDefinition = "varchar(254) default '' comment '接口提供公司名称'")
|
|
||||||
@Comment(value = "接口提供公司名称")
|
|
||||||
private String deptInfo;
|
|
||||||
|
|
||||||
@Column(name = "DEPT_ID", columnDefinition = "varchar(50) default '' comment '接口提供公司id'")
|
|
||||||
@Comment(value = "接口提供公司id")
|
|
||||||
private String deptId;
|
|
||||||
|
|
||||||
@Column(name = "SYSTEM_NAME", columnDefinition = "varchar(254) default '' comment '接口提供系统名称'")
|
|
||||||
@Comment(value = "接口提供系统名称")
|
|
||||||
private String systemName;
|
|
||||||
|
|
||||||
@Column(name = "SYSTEM_ID", columnDefinition = "varchar(50) default '' comment '接口提供系统标识'")
|
|
||||||
@Comment(value = "接口提供系统标识")
|
|
||||||
private String systemId;
|
|
||||||
|
|
||||||
@Column(name = "HEAD", columnDefinition = "varchar(50) default '' comment '接口负责人名称'")
|
|
||||||
@Comment(value = "接口负责人名称")
|
|
||||||
private String head;
|
|
||||||
|
|
||||||
@Column(name = "HEAD_PHONE", columnDefinition = "varchar(50) default '' comment '接口负责人'")
|
|
||||||
@Comment(value = "接口负责人联系方式")
|
|
||||||
private String headPhone;
|
|
||||||
|
|
||||||
@Column(name = "IS_OVERWRITE", columnDefinition = "varchar(10) default '' comment '是否覆盖更新Y覆盖,N未覆盖'")
|
|
||||||
@Comment(value = "是否覆盖更新")
|
|
||||||
private String isOverwrite;
|
|
||||||
|
|
||||||
@Column(name = "OVERWRITE_INTERFACE_ID", columnDefinition = "varchar(36) default '' comment '覆盖更新接口id'")
|
|
||||||
@Comment(value = "覆盖更新接口id")
|
|
||||||
private String overwriteInterfaceId;
|
|
||||||
|
|
||||||
@Column(name = "INTERFACE_FILE_URL", columnDefinition = "varchar(500) default '' comment '接口文档下载地址'")
|
|
||||||
@Comment(value = "接口文档下载地址")
|
|
||||||
private String interfaceFileUrl;
|
|
||||||
|
|
||||||
@Column(name = "INTERFACE_FILE_NAME", columnDefinition = "varchar(100) default '' comment '接口文档名称'")
|
|
||||||
@Comment(value = "接口文档名称")
|
|
||||||
private String interfaceFileName;
|
|
||||||
|
|
||||||
@Column(name = "IS_DELETE", columnDefinition = "varchar(50) default 'N' comment '是否删除,Y删除,N未删除'")
|
|
||||||
@Comment(value = "是否已经删除")
|
|
||||||
private String isDelete;
|
|
||||||
|
|
||||||
@Column(name = "IS_TEST", columnDefinition = "varchar(10) default '' comment '是否测试接口'")
|
|
||||||
@Comment(value = "是否测试接口")
|
|
||||||
private String isTest;
|
|
||||||
|
|
||||||
@Column(name = "PARAMETER_IDS", columnDefinition = "varchar(2000) default '' comment '鉴权参数id串'")
|
|
||||||
@Comment(value = "鉴权参数id串")
|
|
||||||
private String parameterIds;
|
|
||||||
|
|
||||||
@Column(name = "NAME_SPACE", columnDefinition = "varchar(300) default '' comment '命名空间'")
|
|
||||||
@Comment(value = "命名空间")
|
|
||||||
private String nameSpace;
|
|
||||||
|
|
||||||
@Column(name = "METHOD", columnDefinition = "varchar(300) default '' comment 'webService调用方法'")
|
|
||||||
@Comment(value = "webService调用方法")
|
|
||||||
private String method;
|
|
||||||
|
|
||||||
@Column(name = "WEB_SPECIFICATION", columnDefinition = "varchar(20) default '' comment 'webService开发规范协议'")
|
|
||||||
@Comment(value = "webService开发规范协议")
|
|
||||||
private String webSpecification;
|
|
||||||
|
|
||||||
|
|
||||||
public InterfaceManage(InterfaceManageDTO dto) {
|
|
||||||
this.id = dto.getId();
|
|
||||||
this.interfaceName = dto.getInterfaceName();
|
|
||||||
this.sameInterfaceId = dto.getSameInterfaceId();
|
|
||||||
this.interfaceUrl = dto.getInterfaceUrl();
|
|
||||||
this.parameterIds = dto.getParameterIds();
|
|
||||||
this.isAuth = dto.getIsAuth();
|
|
||||||
this.isLimit = dto.getIsLimit();
|
|
||||||
this.illustrate = dto.getIllustrate();
|
|
||||||
this.interfaceType = dto.getInterfaceType();
|
|
||||||
this.interfaceStatus = dto.getInterfaceStatus();
|
|
||||||
this.interfaceMethod = dto.getInterfaceMethod();
|
|
||||||
this.version = dto.getVersion();
|
|
||||||
this.notes = dto.getNotes();
|
|
||||||
this.personName = dto.getPersonName();
|
|
||||||
this.personId = dto.getPersonId();
|
|
||||||
this.deptInfo = dto.getDeptInfo();
|
|
||||||
this.head = dto.getHead();
|
|
||||||
this.isOverwrite = dto.getIsOverwrite();
|
|
||||||
this.interfaceFileUrl = dto.getInterfaceFileUrl();
|
|
||||||
this.isDelete = dto.getIsDelete();
|
|
||||||
this.isTest = dto.getIsTest();
|
|
||||||
this.networkAgreement = dto.getNetworkAgreement();
|
|
||||||
this.headPhone = dto.getHeadPhone();
|
|
||||||
this.overwriteInterfaceId = dto.getOverwriteInterfaceId();
|
|
||||||
this.nameSpace = dto.getNameSpace();
|
|
||||||
this.method = dto.getMethod();
|
|
||||||
this.webSpecification = dto.getWebSpecification();
|
|
||||||
this.isLimitData = dto.getIsLimitData();
|
|
||||||
this.deptId = dto.getDeptId();
|
|
||||||
this.systemId = dto.getSystemId();
|
|
||||||
this.systemName = dto.getSystemName();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,96 +0,0 @@
|
||||||
package net.risesoft.y9public.entity;
|
|
||||||
|
|
||||||
import lombok.Data;
|
|
||||||
import lombok.NoArgsConstructor;
|
|
||||||
import net.risesoft.y9public.dto.ParameterDTO;
|
|
||||||
import org.hibernate.annotations.Comment;
|
|
||||||
|
|
||||||
import javax.persistence.Column;
|
|
||||||
import javax.persistence.Entity;
|
|
||||||
import javax.persistence.Id;
|
|
||||||
import javax.persistence.Table;
|
|
||||||
import java.io.Serializable;
|
|
||||||
|
|
||||||
@Data
|
|
||||||
@NoArgsConstructor
|
|
||||||
@Entity
|
|
||||||
@Table(name = "Y9_INTERFACE_PARAMETER")
|
|
||||||
@org.hibernate.annotations.Table(comment = "接口参数表", appliesTo = "Y9_INTERFACE_PARAMETER")
|
|
||||||
public class Parameter extends BaseEntity implements Serializable {
|
|
||||||
|
|
||||||
private static final long serialVersionUID = 3121642146259274227L;
|
|
||||||
|
|
||||||
@Id
|
|
||||||
@Column(name = "ID", columnDefinition = "varchar(36) default '' comment 'ID'")
|
|
||||||
private String id;
|
|
||||||
|
|
||||||
@Column(name = "INTERFACE_ID", columnDefinition = "varchar(36) default '' comment '接口id'")
|
|
||||||
@Comment(value = "接口ID")
|
|
||||||
private String interfaceId;
|
|
||||||
|
|
||||||
@Column(name = "PARAMETER_KEY", columnDefinition = "varchar(500) default '' comment '参数key'")
|
|
||||||
@Comment(value = "参数key")
|
|
||||||
private String parameterKey;
|
|
||||||
|
|
||||||
@Column(name = "VAL", columnDefinition = "varchar(500) default '' comment '参数值'")
|
|
||||||
@Comment(value = "参数值")
|
|
||||||
private String val;
|
|
||||||
|
|
||||||
@Column(name = "DEFAULT_VAL", columnDefinition = "varchar(500) default '' comment '默认参数值'")
|
|
||||||
@Comment(value = "默认参数值")
|
|
||||||
private String defaultVal;
|
|
||||||
|
|
||||||
@Column(name = "PARAMETER_TYPE", columnDefinition = "varchar(20) default '' comment '参数类型'")
|
|
||||||
@Comment(value = "参数类型")
|
|
||||||
private String parameterType;
|
|
||||||
|
|
||||||
@Column(name = "REQUIRED", columnDefinition = "varchar(10) default '' comment '是否必填Y是,N否'")
|
|
||||||
@Comment(value = "是否必填")
|
|
||||||
private String required;
|
|
||||||
|
|
||||||
@Column(name = "NOTES", columnDefinition = "varchar(254) default '' comment '参数说明'")
|
|
||||||
@Comment(value = "参数说明")
|
|
||||||
private String notes;
|
|
||||||
|
|
||||||
@Column(name = "PERSON_ID", columnDefinition = "varchar(36) default '' comment '填写人ID'")
|
|
||||||
@Comment(value = "填写人ID")
|
|
||||||
private String personId;
|
|
||||||
|
|
||||||
@Column(name = "PARAMETER_STATUS", columnDefinition = "varchar(10) default '' comment '参数状态(1请求头参数,2请求参数,3返回参数)'")
|
|
||||||
@Comment(value = "参数状态")
|
|
||||||
private String parameterStatus;
|
|
||||||
|
|
||||||
@Column(name = "PID", columnDefinition = "varchar(36) default '' comment '父级id'")
|
|
||||||
@Comment(value = "父级id")
|
|
||||||
private String pid;
|
|
||||||
|
|
||||||
@Column(name = "LEVEL", columnDefinition = "int comment '节点层级,根节点层级为1'")
|
|
||||||
@Comment(value = "节点层级")
|
|
||||||
private Integer level;
|
|
||||||
|
|
||||||
@Column(name = "IS_ITEMS", columnDefinition = "varchar(10) default '' comment '是否数组'")
|
|
||||||
@Comment(value = "是否数组")
|
|
||||||
private String isItems;
|
|
||||||
|
|
||||||
@Column(name = "SORT", columnDefinition = "int comment '序号'")
|
|
||||||
@Comment(value = "序号")
|
|
||||||
private Integer sort;
|
|
||||||
|
|
||||||
public Parameter(ParameterDTO dto) {
|
|
||||||
this.id = dto.getId();
|
|
||||||
this.interfaceId = dto.getInterfaceId();
|
|
||||||
this.parameterKey = dto.getParameterKey();
|
|
||||||
this.val = dto.getVal();
|
|
||||||
this.defaultVal = dto.getDefaultVal();
|
|
||||||
this.parameterType = dto.getParameterType();
|
|
||||||
this.required = dto.getRequired();
|
|
||||||
this.notes = dto.getNotes();
|
|
||||||
this.personId = dto.getPersonId();
|
|
||||||
this.parameterStatus = dto.getParameterStatus();
|
|
||||||
this.pid = dto.getPid();
|
|
||||||
this.level = dto.getLevel();
|
|
||||||
this.isItems = dto.getIsItems();
|
|
||||||
this.sort = dto.getSort();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,51 +0,0 @@
|
||||||
package net.risesoft.y9public.entity;
|
|
||||||
|
|
||||||
import lombok.Data;
|
|
||||||
import lombok.NoArgsConstructor;
|
|
||||||
import org.hibernate.annotations.Comment;
|
|
||||||
|
|
||||||
import javax.persistence.Column;
|
|
||||||
import javax.persistence.Entity;
|
|
||||||
import javax.persistence.Id;
|
|
||||||
import javax.persistence.Table;
|
|
||||||
import java.io.Serializable;
|
|
||||||
|
|
||||||
@Data
|
|
||||||
@NoArgsConstructor
|
|
||||||
@Entity
|
|
||||||
@Table(name = "Y9_INTERFACE_SYSTEM_IDENTIFIER")
|
|
||||||
@org.hibernate.annotations.Table(comment = "系统标识录入", appliesTo = "Y9_INTERFACE_SYSTEM_IDENTIFIER")
|
|
||||||
public class SystemIdentifier extends BaseEntity implements Serializable {
|
|
||||||
|
|
||||||
private static final long serialVersionUID = 3121642146259274227L;
|
|
||||||
|
|
||||||
@Id
|
|
||||||
@Column(name = "ID", columnDefinition = "varchar(36) default '' comment 'ID'")
|
|
||||||
private String id;
|
|
||||||
|
|
||||||
@Column(name = "name", columnDefinition = "varchar(100) default '' comment 'name'")
|
|
||||||
@Comment(value = "名称")
|
|
||||||
private String name;
|
|
||||||
|
|
||||||
@Column(name = "PARAMETER_TYPE", columnDefinition = "varchar(20) default '' comment '数据类型0是单位,1是系统'")
|
|
||||||
@Comment(value = "数据类型")
|
|
||||||
private String parameterType;
|
|
||||||
|
|
||||||
@Column(name = "PID", columnDefinition = "varchar(36) default '' comment '父级id'")
|
|
||||||
@Comment(value = "父级id")
|
|
||||||
private String pid;
|
|
||||||
|
|
||||||
@Column(name = "PNAME", columnDefinition = "varchar(100) default '' comment '父级名称'")
|
|
||||||
@Comment(value = "父级名称")
|
|
||||||
private String pname;
|
|
||||||
|
|
||||||
@Column(name = "SORT", columnDefinition = "int comment '排序'")
|
|
||||||
@Comment(value = "排序")
|
|
||||||
private Integer sort;
|
|
||||||
|
|
||||||
@Column(name = "IS_DELETE", columnDefinition = "varchar(10) default 'N' comment '是否删除Y删除,N未删除'")
|
|
||||||
@Comment(value = "是否删除")
|
|
||||||
private String isDelete;
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,120 +0,0 @@
|
||||||
package net.risesoft.y9public.entity;
|
|
||||||
|
|
||||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
|
||||||
import lombok.Data;
|
|
||||||
import lombok.NoArgsConstructor;
|
|
||||||
import org.hibernate.annotations.Comment;
|
|
||||||
import org.hibernate.annotations.CreationTimestamp;
|
|
||||||
|
|
||||||
import javax.persistence.Column;
|
|
||||||
import javax.persistence.Entity;
|
|
||||||
import javax.persistence.Id;
|
|
||||||
import javax.persistence.Table;
|
|
||||||
import java.io.Serializable;
|
|
||||||
import java.util.Date;
|
|
||||||
|
|
||||||
@Data
|
|
||||||
@NoArgsConstructor
|
|
||||||
@Entity
|
|
||||||
@Table(name = "VIEW_APPROVE_LIST")
|
|
||||||
@org.hibernate.annotations.Table(comment = "接口审批视图表", appliesTo = "VIEW_APPROVE_LIST")
|
|
||||||
public class ViewApprove implements Serializable {
|
|
||||||
|
|
||||||
private static final long serialVersionUID = 3121642145259274427L;
|
|
||||||
|
|
||||||
@Id
|
|
||||||
@Column(name = "APPROVE_ID")
|
|
||||||
private String approveId;
|
|
||||||
|
|
||||||
@Column(name = "INTERFACE_ID")
|
|
||||||
@Comment(value = "接口ID")
|
|
||||||
private String interfaceId;
|
|
||||||
|
|
||||||
@Column(name = "APPLY_ID")
|
|
||||||
@Comment(value = "申请ID")
|
|
||||||
private String applyId;
|
|
||||||
|
|
||||||
@Column(name = "APPROVE_STATUS")
|
|
||||||
@Comment(value = "审批意见")
|
|
||||||
private String approveStatus;
|
|
||||||
|
|
||||||
@Column(name = "ILLUSTRATE")
|
|
||||||
@Comment(value = "审批说明")
|
|
||||||
private String illustrate;
|
|
||||||
|
|
||||||
@Column(name = "APPLY_TYPE")
|
|
||||||
@Comment(value = "申请类型")
|
|
||||||
private String applyType;
|
|
||||||
|
|
||||||
@Column(name = "NOTES")
|
|
||||||
@Comment(value = "备注")
|
|
||||||
private String notes;
|
|
||||||
|
|
||||||
@Column(name = "IS_OVER")
|
|
||||||
@Comment(value = "是否结束")
|
|
||||||
private String isOver;
|
|
||||||
|
|
||||||
@Column(name = "APPROVE_INTERFACE_STATUS")
|
|
||||||
@Comment(value = "审批接口状态")
|
|
||||||
private String approveInterfaceStatus;
|
|
||||||
|
|
||||||
@Column(name = "APPROVE_PERSON_NAME")
|
|
||||||
@Comment(value = "审批人")
|
|
||||||
private String approvePersonName;
|
|
||||||
|
|
||||||
@Column(name = "APPROVE_PERSON_ID")
|
|
||||||
@Comment(value = "审批人ID")
|
|
||||||
private String approvePersonId;
|
|
||||||
|
|
||||||
@Column(name = "APPLY_PERSON_NAME")
|
|
||||||
@Comment(value = "申请人名称")
|
|
||||||
private String applyPersonName;
|
|
||||||
|
|
||||||
@Column(name = "APPLY_PERSON_ID")
|
|
||||||
@Comment(value = "申请人ID")
|
|
||||||
private String applyPersonId;
|
|
||||||
|
|
||||||
@Column(name = "INTERFACE_NAME")
|
|
||||||
@Comment(value = "接口名称")
|
|
||||||
private String interfaceName;
|
|
||||||
|
|
||||||
@Column(name = "INTERFACE_STATUS")
|
|
||||||
@Comment(value = "接口状态")
|
|
||||||
private String interfaceStatus;
|
|
||||||
|
|
||||||
@Column(name = "VERSION")
|
|
||||||
@Comment(value = "接口版本")
|
|
||||||
private String version;
|
|
||||||
|
|
||||||
@Column(name = "IS_LIMIT_DATA")
|
|
||||||
@Comment(value = "是否控制数据权限信息")
|
|
||||||
private String isLimitData;
|
|
||||||
|
|
||||||
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
|
||||||
@CreationTimestamp
|
|
||||||
@Column(name = "CREATETIME")
|
|
||||||
private Date createTime;
|
|
||||||
|
|
||||||
@Column(name = "ALREADY_APPROVE_USER", columnDefinition = "varchar(1000) default '' comment '已审批人员id'")
|
|
||||||
@Comment(value = "已审批人员id")
|
|
||||||
private String alreadyApproveUser;
|
|
||||||
|
|
||||||
@Column(name = "CURRENT_USER_ID", columnDefinition = "varchar(100) default '' comment '当前审批人员'")
|
|
||||||
@Comment(value = "当前审批人员")
|
|
||||||
private String currentUserId;
|
|
||||||
|
|
||||||
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
|
||||||
@CreationTimestamp
|
|
||||||
@Column(name = "APPLY_TIME")
|
|
||||||
private Date applyTime;
|
|
||||||
|
|
||||||
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
|
||||||
@CreationTimestamp
|
|
||||||
@Column(name = "UPDATETIME")
|
|
||||||
private Date updateTime;
|
|
||||||
|
|
||||||
@Column(name = "STATUS_SORT")
|
|
||||||
@Comment(value = "状态排序")
|
|
||||||
private String statusSort;
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,48 +0,0 @@
|
||||||
package net.risesoft.y9public.vo;
|
|
||||||
|
|
||||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
|
||||||
import lombok.Data;
|
|
||||||
import lombok.NoArgsConstructor;
|
|
||||||
import net.risesoft.y9public.entity.BaseEntity;
|
|
||||||
|
|
||||||
import java.io.Serializable;
|
|
||||||
import java.util.Date;
|
|
||||||
|
|
||||||
@Data
|
|
||||||
@NoArgsConstructor
|
|
||||||
public class ApplyVo extends BaseEntity implements Serializable {
|
|
||||||
|
|
||||||
private static final long serialVersionUID = 3121652146259274217L;
|
|
||||||
|
|
||||||
private String id;
|
|
||||||
|
|
||||||
private String applyPersonName;
|
|
||||||
|
|
||||||
private String approveStatus;
|
|
||||||
|
|
||||||
private String applyReason;
|
|
||||||
|
|
||||||
private String interfaceId;
|
|
||||||
|
|
||||||
private String sameId;
|
|
||||||
|
|
||||||
private String approveId;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 创建时间
|
|
||||||
*/
|
|
||||||
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
|
||||||
protected Date createTime;
|
|
||||||
|
|
||||||
public ApplyVo(String id, String applyPersonName, String approveStatus, Date createTime, String applyReason, String interfaceId, String sameId, String approveId) {
|
|
||||||
this.id = id;
|
|
||||||
this.applyPersonName = applyPersonName;
|
|
||||||
this.approveStatus = approveStatus;
|
|
||||||
this.createTime = createTime;
|
|
||||||
this.applyReason = applyReason;
|
|
||||||
this.interfaceId = interfaceId;
|
|
||||||
this.sameId = sameId;
|
|
||||||
this.approveId = approveId;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,86 +0,0 @@
|
||||||
package net.risesoft.y9public.vo;
|
|
||||||
|
|
||||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
|
||||||
import lombok.Data;
|
|
||||||
import lombok.NoArgsConstructor;
|
|
||||||
import net.risesoft.y9public.entity.ViewApprove;
|
|
||||||
|
|
||||||
import java.io.Serializable;
|
|
||||||
import java.util.Date;
|
|
||||||
|
|
||||||
@Data
|
|
||||||
@NoArgsConstructor
|
|
||||||
public class ViewApproveVo implements Serializable {
|
|
||||||
|
|
||||||
private static final long serialVersionUID = 3121644149259274427L;
|
|
||||||
|
|
||||||
private String approveId;
|
|
||||||
|
|
||||||
private String interfaceId;
|
|
||||||
|
|
||||||
private String applyId;
|
|
||||||
|
|
||||||
private String approveStatus;
|
|
||||||
|
|
||||||
private String illustrate;
|
|
||||||
|
|
||||||
private String applyType;
|
|
||||||
|
|
||||||
private String notes;
|
|
||||||
|
|
||||||
private String isOver;
|
|
||||||
|
|
||||||
private String approveInterfaceStatus;
|
|
||||||
|
|
||||||
private String approvePersonName;
|
|
||||||
|
|
||||||
private String approvePersonId;
|
|
||||||
|
|
||||||
private String applyPersonName;
|
|
||||||
|
|
||||||
private String applyPersonId;
|
|
||||||
|
|
||||||
private String interfaceName;
|
|
||||||
|
|
||||||
private String interfaceStatus;
|
|
||||||
|
|
||||||
private String version;
|
|
||||||
private String statusSort;
|
|
||||||
|
|
||||||
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
|
||||||
private Date createTime;
|
|
||||||
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
|
||||||
private Date applyTime;
|
|
||||||
private String alreadyApproveUser;
|
|
||||||
|
|
||||||
private String currentUserId;
|
|
||||||
|
|
||||||
private String isNow;
|
|
||||||
private String isLimitData;
|
|
||||||
|
|
||||||
public ViewApproveVo(ViewApprove dto) {
|
|
||||||
this.approveId = dto.getApproveId();
|
|
||||||
this.interfaceId = dto.getInterfaceId();
|
|
||||||
this.applyId = dto.getApplyId();
|
|
||||||
this.approveStatus = dto.getApproveStatus();
|
|
||||||
this.illustrate = dto.getIllustrate();
|
|
||||||
this.applyType = dto.getApplyType();
|
|
||||||
this.notes = dto.getNotes();
|
|
||||||
this.isOver = dto.getIsOver();
|
|
||||||
this.approveInterfaceStatus = dto.getApproveInterfaceStatus();
|
|
||||||
this.approvePersonName = dto.getApprovePersonName();
|
|
||||||
this.approvePersonId = dto.getApprovePersonId();
|
|
||||||
this.applyPersonName = dto.getApplyPersonName();
|
|
||||||
this.applyPersonId = dto.getApplyPersonId();
|
|
||||||
this.interfaceName = dto.getInterfaceName();
|
|
||||||
this.interfaceStatus = dto.getInterfaceStatus();
|
|
||||||
this.version = dto.getVersion();
|
|
||||||
this.createTime = dto.getCreateTime();
|
|
||||||
this.alreadyApproveUser = dto.getAlreadyApproveUser();
|
|
||||||
this.currentUserId = dto.getCurrentUserId();
|
|
||||||
this.applyTime = dto.getApplyTime();
|
|
||||||
this.isLimitData = dto.getIsLimitData();
|
|
||||||
this.statusSort = dto.getStatusSort();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,42 +0,0 @@
|
||||||
-- 删除表
|
|
||||||
DROP TABLE y9_interface.view_approve_list;
|
|
||||||
--DROP TABLE IF EXISTS view_approve_list;
|
|
||||||
|
|
||||||
-- 创建视图
|
|
||||||
create
|
|
||||||
or replace
|
|
||||||
algorithm = UNDEFINED view `y9_interface`.`view_approve_list` as
|
|
||||||
select `nia`.`ID` as `APPROVE_ID`,
|
|
||||||
`nia`.`INTERFACE_ID` as `INTERFACE_ID`,
|
|
||||||
`nia`.`APPLY_ID` as `APPLY_ID`,
|
|
||||||
`nia`.`APPROVE_STATUS` as `APPROVE_STATUS`,
|
|
||||||
`nia`.`ILLUSTRATE` as `ILLUSTRATE`,
|
|
||||||
`nia`.`APPLY_TYPE` as `APPLY_TYPE`,
|
|
||||||
`nia`.`NOTES` as `NOTES`,
|
|
||||||
`nia`.`IS_OVER` as `IS_OVER`,
|
|
||||||
`nia`.`INTERFACE_STATUS` as `APPROVE_INTERFACE_STATUS`,
|
|
||||||
`nia`.`PERSON_ID` as `APPROVE_PERSON_ID`,
|
|
||||||
`nia`.`PERSON_NAME` as `APPROVE_PERSON_NAME`,
|
|
||||||
`nia`.`CREATETIME` as `CREATETIME`,
|
|
||||||
`nia`.`UPDATETIME` as `UPDATETIME`,
|
|
||||||
`nia`.`CURRENT_USER_ID` as `CURRENT_USER_ID`,
|
|
||||||
`nia`.`ALREADY_APPROVE_USER` as `ALREADY_APPROVE_USER`,
|
|
||||||
`nia2`.`APPLY_PERSON_ID` as `APPLY_PERSON_ID`,
|
|
||||||
`nia2`.`APPLY_PERSON_NAME` as `APPLY_PERSON_NAME`,
|
|
||||||
`nia2`.`CREATETIME` as `apply_time`,
|
|
||||||
`nimi`.`INTERFACE_NAME` as `INTERFACE_NAME`,
|
|
||||||
`nimi`.`INTERFACE_STATUS` as `INTERFACE_STATUS`,
|
|
||||||
`nimi`.`VERSION` as `VERSION`,
|
|
||||||
`nimi`.`IS_LIMIT_DATA` as `IS_LIMIT_DATA`,
|
|
||||||
(case
|
|
||||||
when (`nia`.`APPROVE_STATUS` = '未审批') then '0'
|
|
||||||
when (`nia`.`APPROVE_STATUS` = '审批中') then '1'
|
|
||||||
when (`nia`.`APPROVE_STATUS` = '通过') then '2'
|
|
||||||
when (`nia`.`APPROVE_STATUS` = '不通过') then '3'
|
|
||||||
end) as `STATUS_SORT`
|
|
||||||
from ((`y9_interface`.`y9_interface_approve` `nia`
|
|
||||||
left join `y9_interface`.`y9_interface_apply` `nia2` on
|
|
||||||
((`nia`.`APPLY_ID` = `nia2`.`ID`)))
|
|
||||||
left join `y9_interface`.`y9_interface_manage_info` `nimi` on
|
|
||||||
((`nia`.`INTERFACE_ID` = `nimi`.`ID`)))
|
|
||||||
order by `nia`.`UPDATETIME` desc;
|
|
|
@ -44,5 +44,3 @@ VUE_APP_CREDENTIALS = true
|
||||||
VUE_APP_REMEMBER_TIME = 30
|
VUE_APP_REMEMBER_TIME = 30
|
||||||
# appFeatures
|
# appFeatures
|
||||||
#VUE_APP_APPFEATURES = '1'
|
#VUE_APP_APPFEATURES = '1'
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,7 @@ VUE_APP_PUBLIC_PATH = '/interface/'
|
||||||
#api接口域名
|
#api接口域名
|
||||||
VUE_APP_HOST = 'http://localhost:7055/'
|
VUE_APP_HOST = 'http://localhost:7055/'
|
||||||
# index页面
|
# index页面
|
||||||
VUE_APP_HOST_INDEX = 'http://localhost:7055/interface/'
|
VUE_APP_HOST_INDEX = 'http://localhost:7070/interface/'
|
||||||
# y9home接口
|
# y9home接口
|
||||||
VUE_APP_CONTEXT = 'http://localhost:7055/interfacePlatform/'
|
VUE_APP_CONTEXT = 'http://localhost:7055/interfacePlatform/'
|
||||||
# 执行转发节点入口接口
|
# 执行转发节点入口接口
|
||||||
|
@ -44,5 +44,3 @@ VUE_APP_CREDENTIALS = true
|
||||||
VUE_APP_REMEMBER_TIME = 30
|
VUE_APP_REMEMBER_TIME = 30
|
||||||
# appFeatures
|
# appFeatures
|
||||||
#VUE_APP_APPFEATURES = '1'
|
#VUE_APP_APPFEATURES = '1'
|
||||||
|
|
||||||
|
|
Before Width: | Height: | Size: 614 B After Width: | Height: | Size: 614 B |
Before Width: | Height: | Size: 5.3 KiB After Width: | Height: | Size: 5.3 KiB |
Before Width: | Height: | Size: 145 B After Width: | Height: | Size: 145 B |
Before Width: | Height: | Size: 211 B After Width: | Height: | Size: 211 B |
Before Width: | Height: | Size: 5.2 KiB After Width: | Height: | Size: 5.2 KiB |
Before Width: | Height: | Size: 193 B After Width: | Height: | Size: 193 B |
Before Width: | Height: | Size: 150 B After Width: | Height: | Size: 150 B |
Before Width: | Height: | Size: 3.4 KiB After Width: | Height: | Size: 3.4 KiB |
Before Width: | Height: | Size: 663 B After Width: | Height: | Size: 663 B |
Before Width: | Height: | Size: 706 B After Width: | Height: | Size: 706 B |
Before Width: | Height: | Size: 741 B After Width: | Height: | Size: 741 B |
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 1.0 KiB |
Before Width: | Height: | Size: 932 B After Width: | Height: | Size: 932 B |
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 2.6 KiB |
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 1.0 KiB |
Before Width: | Height: | Size: 702 B After Width: | Height: | Size: 702 B |
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 547 B After Width: | Height: | Size: 547 B |
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 989 B After Width: | Height: | Size: 989 B |
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 1.0 KiB |
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 1.8 KiB |
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 583 B After Width: | Height: | Size: 583 B |
Before Width: | Height: | Size: 828 B After Width: | Height: | Size: 828 B |
Before Width: | Height: | Size: 683 B After Width: | Height: | Size: 683 B |
Before Width: | Height: | Size: 680 B After Width: | Height: | Size: 680 B |
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 1.8 KiB |
Before Width: | Height: | Size: 996 B After Width: | Height: | Size: 996 B |
Before Width: | Height: | Size: 912 B After Width: | Height: | Size: 912 B |
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 2.2 KiB |
Before Width: | Height: | Size: 444 B After Width: | Height: | Size: 444 B |
Before Width: | Height: | Size: 730 B After Width: | Height: | Size: 730 B |
Before Width: | Height: | Size: 753 B After Width: | Height: | Size: 753 B |
Before Width: | Height: | Size: 663 B After Width: | Height: | Size: 663 B |
Before Width: | Height: | Size: 741 B After Width: | Height: | Size: 741 B |
Before Width: | Height: | Size: 219 B After Width: | Height: | Size: 219 B |
Before Width: | Height: | Size: 219 B After Width: | Height: | Size: 219 B |
Before Width: | Height: | Size: 594 B After Width: | Height: | Size: 594 B |
Before Width: | Height: | Size: 218 B After Width: | Height: | Size: 218 B |
Before Width: | Height: | Size: 597 B After Width: | Height: | Size: 597 B |
Before Width: | Height: | Size: 218 B After Width: | Height: | Size: 218 B |