|
@@ -78,7 +78,7 @@ public class UserController extends BaseController {
|
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "设置密码")
|
|
|
- @PostMapping(value = "/setPassword", consumes = MediaType.APPLICATION_FORM_URLENCODED_VALUE)
|
|
|
+ @PostMapping(value = "/setPassword", consumes = MediaType.APPLICATION_FORM_URLENCODED_VALUE, produces = MediaType.APPLICATION_JSON_VALUE)
|
|
|
@ApiImplicitParams({ @ApiImplicitParam(name = "mobile", value = "手机号", required = true, dataType = "String"),
|
|
|
@ApiImplicitParam(name = "password", value = "密码", required = true, dataType = "String") })
|
|
|
public Object setPassword(String mobile, String password) {
|
|
@@ -95,7 +95,7 @@ public class UserController extends BaseController {
|
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "修改密码")
|
|
|
- @PostMapping(value = "/updatePassword", consumes = MediaType.APPLICATION_FORM_URLENCODED_VALUE)
|
|
|
+ @PostMapping(value = "/updatePassword", consumes = MediaType.APPLICATION_FORM_URLENCODED_VALUE, produces = MediaType.APPLICATION_JSON_VALUE)
|
|
|
@ApiImplicitParams({ @ApiImplicitParam(name = "mobile", value = "手机号", required = true, dataType = "String"),
|
|
|
@ApiImplicitParam(name = "authCode", value = "验证码", required = true, dataType = "String"),
|
|
|
@ApiImplicitParam(name = "newPassword", value = "新密码", required = true, dataType = "String") })
|