|
@@ -113,17 +113,10 @@ public class StoreUserController {
|
|
|
|
|
|
@ApiOperation("修改用户信息")
|
|
|
@ApiOperationSupport(order = 3)
|
|
|
- @ApiImplicitParams({@ApiImplicitParam(name = "id", value = "主键", dataType = "String", paramType = "query", required = true),
|
|
|
- @ApiImplicitParam(name = "name", value = "姓名", dataType = "String", paramType = "query", required = true),
|
|
|
- @ApiImplicitParam(name = "idCard", value = "身份证", dataType = "String", paramType = "query", required = true),
|
|
|
- @ApiImplicitParam(name = "nickName", value = "昵称", dataType = "String", paramType = "query", required = true),
|
|
|
- @ApiImplicitParam(name = "accountBlurb", value = "账号简介", dataType = "String", paramType = "query", required = true),
|
|
|
- @ApiImplicitParam(name = "headImg", value = "头像", dataType = "String", paramType = "query", required = false)})
|
|
|
-
|
|
|
- @GetMapping("/setUserInfo")
|
|
|
- public R<Boolean> setUserInfo(Integer id, String name, String idCard, String nickName, String accountBlurb, String headImg) {
|
|
|
- log.info("StoreUserController.setUserInfo?id={}&name={}&idCard={}&nickName={}}&accountBlurb={}&headImg={}", id, name, idCard, nickName, accountBlurb, headImg);
|
|
|
- if (storeUserService.setUserInfo(id, name, idCard, nickName, accountBlurb, headImg)) {
|
|
|
+ @PostMapping("/setUserInfo")
|
|
|
+ public R<Boolean> setUserInfo(@RequestBody StoreUser storeUserVo) {
|
|
|
+ log.info("StoreUserController.setUserInfo?storeUserVo={}", storeUserVo);
|
|
|
+ if (storeUserService.setUserInfo(storeUserVo)) {
|
|
|
return R.success("修改成功");
|
|
|
}
|
|
|
return R.fail("修改失败");
|