按规范修改
This commit is contained in:
@@ -288,6 +288,9 @@ public class MgDocumentController {
|
|||||||
* @author 暮光:城中城
|
* @author 暮光:城中城
|
||||||
* @since 2018年8月21日
|
* @since 2018年8月21日
|
||||||
* @param resourcesUrl swagger-resources地址
|
* @param resourcesUrl swagger-resources地址
|
||||||
|
* @param oldUrl 老地址
|
||||||
|
* @param openVisit 是否开放展示
|
||||||
|
* @param rewriteDomainUrl 重写域名地址
|
||||||
* @return 添加结果
|
* @return 添加结果
|
||||||
*/
|
*/
|
||||||
@PostMapping(value = "/addSwaggerResources")
|
@PostMapping(value = "/addSwaggerResources")
|
||||||
@@ -388,6 +391,7 @@ public class MgDocumentController {
|
|||||||
*
|
*
|
||||||
* @author 暮光:城中城
|
* @author 暮光:城中城
|
||||||
* @since 2018年8月21日
|
* @since 2018年8月21日
|
||||||
|
* @return Location列表
|
||||||
*/
|
*/
|
||||||
@PostMapping(value = "/getLocationList")
|
@PostMapping(value = "/getLocationList")
|
||||||
public ResponseJson<List<LocationListVo>> getLocationList() {
|
public ResponseJson<List<LocationListVo>> getLocationList() {
|
||||||
|
|||||||
@@ -4,15 +4,16 @@ import cn.hutool.http.HttpRequest;
|
|||||||
import com.alibaba.fastjson.JSON;
|
import com.alibaba.fastjson.JSON;
|
||||||
import com.alibaba.fastjson.TypeReference;
|
import com.alibaba.fastjson.TypeReference;
|
||||||
import com.zyplayer.doc.core.json.DocResponseJson;
|
import com.zyplayer.doc.core.json.DocResponseJson;
|
||||||
import com.zyplayer.doc.core.json.ResponseJson;
|
|
||||||
import com.zyplayer.doc.swagger.controller.vo.LocationListVo;
|
import com.zyplayer.doc.swagger.controller.vo.LocationListVo;
|
||||||
import com.zyplayer.doc.swagger.controller.vo.SwaggerResourcesInfoVo;
|
|
||||||
import com.zyplayer.doc.swagger.framework.constant.StorageKeys;
|
import com.zyplayer.doc.swagger.framework.constant.StorageKeys;
|
||||||
import com.zyplayer.doc.swagger.framework.service.MgStorageService;
|
import com.zyplayer.doc.swagger.framework.service.MgStorageService;
|
||||||
import org.apache.commons.lang.StringUtils;
|
import org.apache.commons.lang.StringUtils;
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
import org.springframework.web.bind.annotation.*;
|
import org.springframework.web.bind.annotation.PostMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.ResponseBody;
|
||||||
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
import javax.annotation.Resource;
|
import javax.annotation.Resource;
|
||||||
import javax.servlet.http.HttpServletRequest;
|
import javax.servlet.http.HttpServletRequest;
|
||||||
@@ -39,18 +40,6 @@ public class MgOpenDocController {
|
|||||||
return DocResponseJson.ok();
|
return DocResponseJson.ok();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @author 暮光:城中城
|
|
||||||
* @since 2019年1月27日
|
|
||||||
*/
|
|
||||||
@ResponseBody
|
|
||||||
@PostMapping(value = "/{source}")
|
|
||||||
public ResponseJson<List<SwaggerResourcesInfoVo>> resourcesList(@PathVariable("source") String source) {
|
|
||||||
|
|
||||||
return DocResponseJson.ok();
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 获取所有的文档
|
* 获取所有的文档
|
||||||
* @author 暮光:城中城
|
* @author 暮光:城中城
|
||||||
|
|||||||
@@ -55,7 +55,8 @@ public class SpringContextUtil implements ApplicationContextAware {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* 获取EnableSwaggerMgUi
|
* 获取EnableSwaggerMgUi
|
||||||
* @date 2019/1/29 12:58
|
* @since 2019/1/29 12:58
|
||||||
|
* @return EnableSwaggerMgUi注解对象
|
||||||
**/
|
**/
|
||||||
public static EnableSwaggerMgUi getEnableSwaggerMgUi() {
|
public static EnableSwaggerMgUi getEnableSwaggerMgUi() {
|
||||||
if (ENABLE_SWAGGER_MG_UI != null) {
|
if (ENABLE_SWAGGER_MG_UI != null) {
|
||||||
|
|||||||
@@ -52,6 +52,7 @@ public interface MgStorageService {
|
|||||||
* 获取代理请求白名单
|
* 获取代理请求白名单
|
||||||
* @author 暮光:城中城
|
* @author 暮光:城中城
|
||||||
* @since 2018年8月19日
|
* @since 2018年8月19日
|
||||||
|
* @return 白名单列表
|
||||||
*/
|
*/
|
||||||
List<String> getProxyRequestWhiteDomain();
|
List<String> getProxyRequestWhiteDomain();
|
||||||
|
|
||||||
@@ -59,6 +60,7 @@ public interface MgStorageService {
|
|||||||
* 获取一个自增的ID
|
* 获取一个自增的ID
|
||||||
* @author 暮光:城中城
|
* @author 暮光:城中城
|
||||||
* @since 2019年1月27日
|
* @since 2019年1月27日
|
||||||
|
* @return 自增ID
|
||||||
*/
|
*/
|
||||||
default Integer getNextId() {
|
default Integer getNextId() {
|
||||||
synchronized (StorageKeys.SWAGGER_ID_WORKER) {
|
synchronized (StorageKeys.SWAGGER_ID_WORKER) {
|
||||||
|
|||||||
Reference in New Issue
Block a user