Commit e24924e6557ff45fc438793fe32a27a74c04f1f2
1 parent
9856e58b
fix: add tags
Showing
1 changed file
with
7 additions
and
0 deletions
ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysLoginController.java
| @@ -2,6 +2,9 @@ package com.ruoyi.web.controller.system; | @@ -2,6 +2,9 @@ package com.ruoyi.web.controller.system; | ||
| 2 | 2 | ||
| 3 | import java.util.List; | 3 | import java.util.List; |
| 4 | import java.util.Set; | 4 | import java.util.Set; |
| 5 | + | ||
| 6 | +import io.swagger.annotations.Api; | ||
| 7 | +import io.swagger.annotations.ApiOperation; | ||
| 5 | import org.springframework.beans.factory.annotation.Autowired; | 8 | import org.springframework.beans.factory.annotation.Autowired; |
| 6 | import org.springframework.web.bind.annotation.GetMapping; | 9 | import org.springframework.web.bind.annotation.GetMapping; |
| 7 | import org.springframework.web.bind.annotation.PostMapping; | 10 | import org.springframework.web.bind.annotation.PostMapping; |
| @@ -23,6 +26,7 @@ import com.ruoyi.system.service.ISysMenuService; | @@ -23,6 +26,7 @@ import com.ruoyi.system.service.ISysMenuService; | ||
| 23 | * @author ruoyi | 26 | * @author ruoyi |
| 24 | */ | 27 | */ |
| 25 | @RestController | 28 | @RestController |
| 29 | +@Api(tags = "登录管理") | ||
| 26 | public class SysLoginController | 30 | public class SysLoginController |
| 27 | { | 31 | { |
| 28 | @Autowired | 32 | @Autowired |
| @@ -41,6 +45,7 @@ public class SysLoginController | @@ -41,6 +45,7 @@ public class SysLoginController | ||
| 41 | * @return 结果 | 45 | * @return 结果 |
| 42 | */ | 46 | */ |
| 43 | @PostMapping("/login") | 47 | @PostMapping("/login") |
| 48 | + @ApiOperation("登录") | ||
| 44 | public AjaxResult login(@RequestBody LoginBody loginBody) | 49 | public AjaxResult login(@RequestBody LoginBody loginBody) |
| 45 | { | 50 | { |
| 46 | AjaxResult ajax = AjaxResult.success(); | 51 | AjaxResult ajax = AjaxResult.success(); |
| @@ -56,6 +61,7 @@ public class SysLoginController | @@ -56,6 +61,7 @@ public class SysLoginController | ||
| 56 | * | 61 | * |
| 57 | * @return 用户信息 | 62 | * @return 用户信息 |
| 58 | */ | 63 | */ |
| 64 | + @ApiOperation("获取用户信息") | ||
| 59 | @GetMapping("getInfo") | 65 | @GetMapping("getInfo") |
| 60 | public AjaxResult getInfo() | 66 | public AjaxResult getInfo() |
| 61 | { | 67 | { |
| @@ -76,6 +82,7 @@ public class SysLoginController | @@ -76,6 +82,7 @@ public class SysLoginController | ||
| 76 | * | 82 | * |
| 77 | * @return 路由信息 | 83 | * @return 路由信息 |
| 78 | */ | 84 | */ |
| 85 | + @ApiOperation("获取路由信息") | ||
| 79 | @GetMapping("getRouters") | 86 | @GetMapping("getRouters") |
| 80 | public AjaxResult getRouters() | 87 | public AjaxResult getRouters() |
| 81 | { | 88 | { |