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