fix: springdoc注解问题修复
This commit is contained in:
1
pom.xml
1
pom.xml
@@ -164,6 +164,7 @@
|
|||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
|
<finalName>${project.artifactId}</finalName>
|
||||||
<plugins>
|
<plugins>
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.springframework.boot</groupId>
|
<groupId>org.springframework.boot</groupId>
|
||||||
|
|||||||
@@ -25,8 +25,8 @@ public class AuthController {
|
|||||||
@Operation(summary = "登录")
|
@Operation(summary = "登录")
|
||||||
@PostMapping("/login")
|
@PostMapping("/login")
|
||||||
public Result<LoginResult> login(
|
public Result<LoginResult> login(
|
||||||
@Parameter(name = "用户名",example = "admin") @RequestParam String username,
|
@Parameter( description= "用户名",example = "admin") @RequestParam String username,
|
||||||
@Parameter(name = "密码") @RequestParam String password
|
@Parameter(description = "密码") @RequestParam String password
|
||||||
) {
|
) {
|
||||||
UsernamePasswordAuthenticationToken authenticationToken = new UsernamePasswordAuthenticationToken(
|
UsernamePasswordAuthenticationToken authenticationToken = new UsernamePasswordAuthenticationToken(
|
||||||
username.toLowerCase().trim(),
|
username.toLowerCase().trim(),
|
||||||
|
|||||||
@@ -1,16 +1,21 @@
|
|||||||
package com.youlai.system.pojo.dto;
|
package com.youlai.system.pojo.dto;
|
||||||
|
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
import lombok.Builder;
|
import lombok.Builder;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
|
@Schema(description ="登录响应对象")
|
||||||
@Data
|
@Data
|
||||||
@Builder
|
@Builder
|
||||||
public class LoginResult {
|
public class LoginResult {
|
||||||
|
|
||||||
|
@Schema(description = "访问token")
|
||||||
private String accessToken;
|
private String accessToken;
|
||||||
|
|
||||||
|
@Schema(description = "刷新token")
|
||||||
private String refreshToken;
|
private String refreshToken;
|
||||||
|
|
||||||
|
@Schema(description = "过期时间(单位:毫秒)")
|
||||||
private Long expires;
|
private Long expires;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -21,5 +21,4 @@ public class ResourceVO {
|
|||||||
private List<ResourceVO> children;
|
private List<ResourceVO> children;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user