|
|
@@ -9,9 +9,8 @@ import com.railway.common.utils.SecurityUtils;
|
|
|
import com.railway.framework.web.service.SysLoginService;
|
|
|
import com.railway.framework.web.service.SysPermissionService;
|
|
|
import com.railway.system.service.ISysMenuService;
|
|
|
-import io.swagger.v3.oas.annotations.Operation;
|
|
|
-import io.swagger.v3.oas.annotations.Parameter;
|
|
|
-import io.swagger.v3.oas.annotations.tags.Tag;
|
|
|
+import io.swagger.annotations.Api;
|
|
|
+import io.swagger.annotations.ApiOperation;
|
|
|
import java.util.List;
|
|
|
import java.util.Set;
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
|
@@ -24,7 +23,7 @@ import org.springframework.web.bind.annotation.RestController;
|
|
|
*
|
|
|
* @author railway
|
|
|
*/
|
|
|
-@Tag(name = "登录验证")
|
|
|
+@Api(tags = "登录验证")
|
|
|
@RestController
|
|
|
public class SysLoginController {
|
|
|
|
|
|
@@ -46,8 +45,7 @@ public class SysLoginController {
|
|
|
* @param loginBody 登录信息
|
|
|
* @return 结果
|
|
|
*/
|
|
|
- @Operation(summary = "登录方法")
|
|
|
- @Parameter(description = "用户登录对象")
|
|
|
+ @ApiOperation(value = "登录", notes = "登录方法", tags = {"用户登录 tags"}, response = AjaxResult.class)
|
|
|
@PostMapping("/login")
|
|
|
public AjaxResult login(@RequestBody LoginBody loginBody) {
|
|
|
AjaxResult ajax = AjaxResult.success();
|