This commit is contained in:
cuijiawang
2025-10-23 10:47:44 +08:00
parent 189930f0ab
commit 979f2aa5f0
2 changed files with 3 additions and 3 deletions

View File

@@ -54,7 +54,7 @@ public class AuthController {
public R<?> login(@RequestBody String body) {
LoginBody loginBody = JSONObject.parseObject(body, LoginBody.class);
ValidatorUtils.validate(loginBody);
Long clientId = loginBody.getClientId();
Long clientId = Long.parseLong(loginBody.getClientId());
String grantType = loginBody.getGrantType();
SysClientVO clientVo = sysClientService.queryByClientId(clientId);

View File

@@ -22,8 +22,8 @@ public class LoginBody implements Serializable {
/**
* 客户端id
*/
@NotNull(message = "Auth clientid cannot be blank")
private Long clientId;
@NotBlank(message = "Auth clientid cannot be blank")
private String clientId;
/**
* 授权类型