|
|
@@ -37,14 +37,14 @@ public class UserAuthController { |
|
|
|
private final ObjectMapper objectMapper; |
|
|
|
|
|
|
|
@PostMapping(value = "/login", consumes = MediaType.APPLICATION_FORM_URLENCODED_VALUE) |
|
|
|
@ApiOperation(value = "账号密码的登陆方式") |
|
|
|
@ApiOperation(value = "登陆") |
|
|
|
@ApiImplicitParams({ |
|
|
|
@ApiImplicitParam(name = "identifier", value = "用户名", required = true, paramType = "form", dataType = "String"), |
|
|
|
@ApiImplicitParam(name = "identifier", value = "账号", required = true, paramType = "form", dataType = "String"), |
|
|
|
@ApiImplicitParam(name = "credential", value = "凭证", required = true, paramType = "form", dataType = "String"), |
|
|
|
@ApiImplicitParam(name = "loginType", value = "DING_QR_LOGIN 浙政钉扫码登陆,PHONE_VERIFICATION_CODE_LOGIN 手机号验证码登陆" |
|
|
|
, required = true, paramType = "form", dataType = "String")}) |
|
|
|
public void loginByUsernameAndPassword(@RequestParam("username") String username, |
|
|
|
@RequestParam("credential") String credential, |
|
|
|
public void loginByUsernameAndPassword(@RequestParam(value = "identifier",required = false) String identifier, |
|
|
|
@RequestParam(value = "credential",required = false) String credential, |
|
|
|
@RequestParam("loginType") String loginType) { |
|
|
|
// 不实现任何内容,只是为了出api文档 |
|
|
|
} |
|
|
|