系统接口

This commit is contained in:
RuoYi
2018-05-31 13:00:34 +08:00
parent e335336064
commit 8d71859e4c
3 changed files with 27 additions and 4 deletions

View File

@ -51,7 +51,6 @@ public class SwaggerConfig
return new ApiInfoBuilder()
.title("标题若依管理系统_接口文档")
.description("描述:用于管理集团旗下公司的人员信息,具体包括XXX,XXX模块...")
.termsOfServiceUrl("http://localhost/swagger-ui.html")
.contact(new Contact(ruoYiConfig.getName(), null, null))
.version("版本号:" + ruoYiConfig.getVersion())
.build();

View File

@ -0,0 +1,24 @@
package com.ruoyi.project.tool.swagger;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import com.ruoyi.framework.web.controller.BaseController;
/**
* swagger 接口
*
* @author ruoyi
*/
@Controller
@RequestMapping("/tool/swagger")
public class SwaggerController extends BaseController
{
@RequiresPermissions("tool:swagger:view")
@GetMapping()
public String index()
{
return "redirect:" + "/swagger-ui.html";
}
}