refactor: 接口文档添加example值

This commit is contained in:
haoxr committed 2023-03-03 18:19:17 +08:00
1 parent ea95898f9c
commit fd12734d1b
1 file changed
+2 -2
@@ -25,8 +25,8 @@ public class AuthController {
@Operation(summary = "登录")
@PostMapping("/login")
public Result<LoginResult> login(
@Parameter( description= "用户名",example = "admin") @RequestParam String username,
@Parameter(description = "密码") @RequestParam String password
@Parameter(description = "用户名", example = "admin") @RequestParam String username,
@Parameter(description = "密码",example = "123456") @RequestParam String password
) {
UsernamePasswordAuthenticationToken authenticationToken = new UsernamePasswordAuthenticationToken(
username.toLowerCase().trim(),