package com.gyee.frame.controller.admin;

import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import com.gyee.frame.common.base.BaseController;
import com.gyee.frame.model.custom.TitleVo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

/**
 * SwaggerController
 * @ClassName: SwaggerController
 * @author gyee
 * @date 2019-11-20 22:34
 */
@Api(value = "Api接口文档")
@Controller
@RequestMapping("/SwaggerController")
public class SwaggerController  extends BaseController{

	//跳转页面参数
	private String prefix = "admin/swagger";
	
	/**
	 * 展示页面
	 * @param model
	 * @return
	 * @author gyee
	 * @Date 2019年11月11日 下午4:04:20
	 */
	@ApiOperation(value = "展示页面", notes = "展示页面")
	@GetMapping("/view")
	@RequiresPermissions("system:swagger:view")
    public String view(ModelMap model)
    {	
		String str="API文档";
		setTitle(model, new TitleVo("列表", str+"管理", true,"欢迎进入"+str+"页面", true, false));
        return prefix + "/list";
    }

	

}
