@Test public void logout() throws Exception { }
@ApiOperation(value = "退出", httpMethod = "GET", produces = "application/json", response = Result.class) @ResponseBody @RequestMapping(value = "logout", method = RequestMethod.GET) public Result logout() { SecurityUtils.getSubject().logout(); return Result.success(); }
SystemController extends BaseController { @ApiOperation(value = "退出", httpMethod = "GET", produces = "application/json", response = Result.class) @ResponseBody @RequestMapping(value = "logout", method = RequestMethod.GET) public Result logout() { SecurityUtils.getSubject().logout(); return Result.success(); } }
SystemController extends BaseController { @ApiOperation(value = "退出", httpMethod = "GET", produces = "application/json", response = Result.class) @ResponseBody @RequestMapping(value = "logout", method = RequestMethod.GET) public Result logout() { SecurityUtils.getSubject().logout(); return Result.success(); }  }
SystemController extends BaseController { @ApiOperation(value = "退出", httpMethod = "GET", produces = "application/json", response = Result.class) @ResponseBody @RequestMapping(value = "logout", method = RequestMethod.GET) public Result logout() { SecurityUtils.getSubject().logout(); return Result.success(); }  @ApiOperation(value = "跳转至引导页", httpMethod = "GET", produces = "text/html") @RequestMapping(value = "welcome", method = RequestMethod.GET) String index(); @ApiOperation(value = "登录", httpMethod = "POST", produces = "application/json", response = Result.class) @ResponseBody @RequestMapping(value = "login", method = RequestMethod.POST) Result login(@RequestParam String loginName,
                        @RequestParam String password,
                        @RequestParam int platform,
                        HttpServletRequest request); @ApiOperation(value = "退出", httpMethod = "GET", produces = "application/json", response = Result.class) @ResponseBody @RequestMapping(value = "logout", method = RequestMethod.GET) Result logout(); @ApiOperation(value = "极限验证", httpMethod = "GET", produces = "application/json", response = Result.class) @ResponseBody @RequestMapping(value = "captcha", method = RequestMethod.GET) String captcha(HttpServletRequest request); @ApiOperation(value = "跳转至用户状态模块", httpMethod = "GET", produces = "text/html") @RequiresPermissions("user:loginStatu:list") @RequestMapping(value = "online", method = RequestMethod.GET) String online(); @ApiOperation(value = "在线用户列表", httpMethod = "GET", produces = "application/json", response = PageInfo.class) @RequiresPermissions("user:loginStatu:list") @ResponseBody @RequestMapping(value = "online/list", method = RequestMethod.GET) PageInfo onlineList(@RequestParam(defaultValue = "1") int page,
                               @RequestParam(defaultValue = "30") int rows); @ApiOperation(value = "强制用户下线", httpMethod = "GET", produces = "application/json", response = Result.class) @RequiresPermissions("user:loginout") @ResponseBody @RequestMapping(value = "forceLogout", method = RequestMethod.GET) Result forceLogout(@RequestParam String userIds); @ApiOperation(value = "跳转至日志页面", httpMethod = "GET", produces = "text/html") @RequiresPermissions("log:list") @RequestMapping(value = "log") String log(); @ApiOperation(value = "查询日志列表", httpMethod = "GET", produces = "application/json", response = PageInfo.class) @RequiresPermissions("log:list") @ResponseBody @RequestMapping(value = "log/list", method = RequestMethod.GET) PageInfo logList(@RequestParam(defaultValue = "1") int page,
                            @RequestParam(defaultValue = "30") int rows,
                            @RequestParam(defaultValue = "id") String sort,
                            @RequestParam(defaultValue = "desc") String order,
                            @RequestParam(defaultValue = "", required = false) String method,
                            @RequestParam(defaultValue = "", required = false) String url,
                            @RequestParam(defaultValue = "", required = false) String param,
                            @RequestParam(defaultValue = "", required = false) String result); @ApiOperation(value = "新增字典组", httpMethod = "POST", produces = "application/json", response = Result.class) @RequiresPermissions("data:group:insert") @ResponseBody @RequestMapping(value = "dataGroup/insert", method = RequestMethod.POST) Result dataGroupInsert(@RequestParam String name,
                                  @RequestParam String description); @ApiOperation(value = "字典组列表", httpMethod = "GET", produces = "application/json", response = Result.class) @RequiresPermissions("data:group:list") @ResponseBody @RequestMapping(value = "dataGroup/list", method = RequestMethod.GET) List<SysDataGroup> dataGroupList(); @ApiOperation(value = "跳转至字典页面", httpMethod = "GET", produces = "text/html") @RequestMapping(value = "data", method = RequestMethod.GET) String data(); @ApiOperation(value = "新增数据字典", httpMethod = "POST", produces = "application/json", response = Result.class) @RequiresPermissions("data:insert") @ResponseBody @RequestMapping(value = "data/insert", method = RequestMethod.POST) Result dataInsert(@RequestParam String key,
                             @RequestParam String value,
                             @RequestParam String description,
                             @RequestParam long groupId); @ApiOperation(value = "删除字典", httpMethod = "GET", produces = "application/json", response = Result.class) @RequiresPermissions("data:delete") @ResponseBody @RequestMapping(value = "data/delete", method = RequestMethod.GET) Result dataDelete(@RequestParam Long id); @ApiOperation(value = "更新字典", httpMethod = "POST", produces = "application/json", response = Result.class) @RequiresPermissions("data:update") @ResponseBody @RequestMapping(value = "data/update", method = RequestMethod.POST) Result dataUpdate(@RequestParam Long id,
                             @RequestParam String key,
                             @RequestParam String value,
                             @RequestParam String description,
                             @RequestParam long groupId); @ApiOperation(value = "查询字典详情", httpMethod = "GET", produces = "application/json", response = Result.class) @RequiresPermissions("data:select") @ResponseBody @RequestMapping(value = "data/select", method = RequestMethod.GET) Result dataSelect(); @ApiOperation(value = "字典列表", httpMethod = "GET", produces = "application/json", response = PageInfo.class) @RequiresPermissions("data:list") @ResponseBody @RequestMapping(value = "data/list", method = RequestMethod.GET) PageInfo dataList(@RequestParam(defaultValue = "1") int page,
                             @RequestParam(defaultValue = "30") int rows); @ApiOperation(value = "跳转至ip模块", httpMethod = "GET", produces = "text/html") @RequiresPermissions("ip:list") @RequestMapping(value = "ip", method = RequestMethod.GET) String ip(); @ApiOperation(value = "插入ip", httpMethod = "POST", produces = "application/json", response = Result.class) @RequiresPermissions("ip:insert") @ResponseBody @RequestMapping(value = "ip/insert", method = RequestMethod.POST) Result ipInsert(@RequestParam String ip,
                           @RequestParam String expireTime,
                           @RequestParam String description); @ApiOperation(value = "删除ip", httpMethod = "GET", produces = "application/json", response = Result.class) @RequiresPermissions("ip:delete") @ResponseBody @RequestMapping(value = "ip/delete", method = RequestMethod.GET) Result ipDelete(@RequestParam long id); @ApiOperation(value = "更新ip", httpMethod = "POST", produces = "application/json", response = Result.class) @RequiresPermissions("ip:update") @ResponseBody @RequestMapping(value = "ip/update", method = RequestMethod.POST) Result ipUpdate(@RequestParam long id,
                           @RequestParam String ip,
                           @RequestParam String expireTime,
                           @RequestParam String description); @ApiOperation(value = "查询ip列表", httpMethod = "GET", produces = "application/json", response = PageInfo.class) @RequiresPermissions("ip:list") @ResponseBody @RequestMapping(value = "ip/list", method = RequestMethod.GET) PageInfo ipSelect(@RequestParam(defaultValue = "1") int page,
                             @RequestParam(defaultValue = "30") int rows); @ApiOperation(value = "ip拦截开关", httpMethod = "GET", produces = "application/json", response = Result.class) @ResponseBody @RequestMapping(value = "ip/intercept", method = RequestMethod.GET) Result intercept(@RequestParam boolean open); @ApiOperation(value = "ip拦截开关状态", httpMethod = "GET", produces = "application/json", response = Result.class) @ResponseBody @RequestMapping(value = "ip/intercept/status") Result interceptStatus(); }
SystemController extends BaseController { @ApiOperation(value = "退出", httpMethod = "GET", produces = "application/json", response = Result.class) @ResponseBody @RequestMapping(value = "logout", method = RequestMethod.GET) public Result logout() { SecurityUtils.getSubject().logout(); return Result.success(); }  @ApiOperation(value = "跳转至引导页", httpMethod = "GET", produces = "text/html") @RequestMapping(value = "welcome", method = RequestMethod.GET) String index(); @ApiOperation(value = "登录", httpMethod = "POST", produces = "application/json", response = Result.class) @ResponseBody @RequestMapping(value = "login", method = RequestMethod.POST) Result login(@RequestParam String loginName,
                        @RequestParam String password,
                        @RequestParam int platform,
                        HttpServletRequest request); @ApiOperation(value = "退出", httpMethod = "GET", produces = "application/json", response = Result.class) @ResponseBody @RequestMapping(value = "logout", method = RequestMethod.GET) Result logout(); @ApiOperation(value = "极限验证", httpMethod = "GET", produces = "application/json", response = Result.class) @ResponseBody @RequestMapping(value = "captcha", method = RequestMethod.GET) String captcha(HttpServletRequest request); @ApiOperation(value = "跳转至用户状态模块", httpMethod = "GET", produces = "text/html") @RequiresPermissions("user:loginStatu:list") @RequestMapping(value = "online", method = RequestMethod.GET) String online(); @ApiOperation(value = "在线用户列表", httpMethod = "GET", produces = "application/json", response = PageInfo.class) @RequiresPermissions("user:loginStatu:list") @ResponseBody @RequestMapping(value = "online/list", method = RequestMethod.GET) PageInfo onlineList(@RequestParam(defaultValue = "1") int page,
                               @RequestParam(defaultValue = "30") int rows); @ApiOperation(value = "强制用户下线", httpMethod = "GET", produces = "application/json", response = Result.class) @RequiresPermissions("user:loginout") @ResponseBody @RequestMapping(value = "forceLogout", method = RequestMethod.GET) Result forceLogout(@RequestParam String userIds); @ApiOperation(value = "跳转至日志页面", httpMethod = "GET", produces = "text/html") @RequiresPermissions("log:list") @RequestMapping(value = "log") String log(); @ApiOperation(value = "查询日志列表", httpMethod = "GET", produces = "application/json", response = PageInfo.class) @RequiresPermissions("log:list") @ResponseBody @RequestMapping(value = "log/list", method = RequestMethod.GET) PageInfo logList(@RequestParam(defaultValue = "1") int page,
                            @RequestParam(defaultValue = "30") int rows,
                            @RequestParam(defaultValue = "id") String sort,
                            @RequestParam(defaultValue = "desc") String order,
                            @RequestParam(defaultValue = "", required = false) String method,
                            @RequestParam(defaultValue = "", required = false) String url,
                            @RequestParam(defaultValue = "", required = false) String param,
                            @RequestParam(defaultValue = "", required = false) String result); @ApiOperation(value = "新增字典组", httpMethod = "POST", produces = "application/json", response = Result.class) @RequiresPermissions("data:group:insert") @ResponseBody @RequestMapping(value = "dataGroup/insert", method = RequestMethod.POST) Result dataGroupInsert(@RequestParam String name,
                                  @RequestParam String description); @ApiOperation(value = "字典组列表", httpMethod = "GET", produces = "application/json", response = Result.class) @RequiresPermissions("data:group:list") @ResponseBody @RequestMapping(value = "dataGroup/list", method = RequestMethod.GET) List<SysDataGroup> dataGroupList(); @ApiOperation(value = "跳转至字典页面", httpMethod = "GET", produces = "text/html") @RequestMapping(value = "data", method = RequestMethod.GET) String data(); @ApiOperation(value = "新增数据字典", httpMethod = "POST", produces = "application/json", response = Result.class) @RequiresPermissions("data:insert") @ResponseBody @RequestMapping(value = "data/insert", method = RequestMethod.POST) Result dataInsert(@RequestParam String key,
                             @RequestParam String value,
                             @RequestParam String description,
                             @RequestParam long groupId); @ApiOperation(value = "删除字典", httpMethod = "GET", produces = "application/json", response = Result.class) @RequiresPermissions("data:delete") @ResponseBody @RequestMapping(value = "data/delete", method = RequestMethod.GET) Result dataDelete(@RequestParam Long id); @ApiOperation(value = "更新字典", httpMethod = "POST", produces = "application/json", response = Result.class) @RequiresPermissions("data:update") @ResponseBody @RequestMapping(value = "data/update", method = RequestMethod.POST) Result dataUpdate(@RequestParam Long id,
                             @RequestParam String key,
                             @RequestParam String value,
                             @RequestParam String description,
                             @RequestParam long groupId); @ApiOperation(value = "查询字典详情", httpMethod = "GET", produces = "application/json", response = Result.class) @RequiresPermissions("data:select") @ResponseBody @RequestMapping(value = "data/select", method = RequestMethod.GET) Result dataSelect(); @ApiOperation(value = "字典列表", httpMethod = "GET", produces = "application/json", response = PageInfo.class) @RequiresPermissions("data:list") @ResponseBody @RequestMapping(value = "data/list", method = RequestMethod.GET) PageInfo dataList(@RequestParam(defaultValue = "1") int page,
                             @RequestParam(defaultValue = "30") int rows); @ApiOperation(value = "跳转至ip模块", httpMethod = "GET", produces = "text/html") @RequiresPermissions("ip:list") @RequestMapping(value = "ip", method = RequestMethod.GET) String ip(); @ApiOperation(value = "插入ip", httpMethod = "POST", produces = "application/json", response = Result.class) @RequiresPermissions("ip:insert") @ResponseBody @RequestMapping(value = "ip/insert", method = RequestMethod.POST) Result ipInsert(@RequestParam String ip,
                           @RequestParam String expireTime,
                           @RequestParam String description); @ApiOperation(value = "删除ip", httpMethod = "GET", produces = "application/json", response = Result.class) @RequiresPermissions("ip:delete") @ResponseBody @RequestMapping(value = "ip/delete", method = RequestMethod.GET) Result ipDelete(@RequestParam long id); @ApiOperation(value = "更新ip", httpMethod = "POST", produces = "application/json", response = Result.class) @RequiresPermissions("ip:update") @ResponseBody @RequestMapping(value = "ip/update", method = RequestMethod.POST) Result ipUpdate(@RequestParam long id,
                           @RequestParam String ip,
                           @RequestParam String expireTime,
                           @RequestParam String description); @ApiOperation(value = "查询ip列表", httpMethod = "GET", produces = "application/json", response = PageInfo.class) @RequiresPermissions("ip:list") @ResponseBody @RequestMapping(value = "ip/list", method = RequestMethod.GET) PageInfo ipSelect(@RequestParam(defaultValue = "1") int page,
                             @RequestParam(defaultValue = "30") int rows); @ApiOperation(value = "ip拦截开关", httpMethod = "GET", produces = "application/json", response = Result.class) @ResponseBody @RequestMapping(value = "ip/intercept", method = RequestMethod.GET) Result intercept(@RequestParam boolean open); @ApiOperation(value = "ip拦截开关状态", httpMethod = "GET", produces = "application/json", response = Result.class) @ResponseBody @RequestMapping(value = "ip/intercept/status") Result interceptStatus();  }