|
@@ -121,5 +121,31 @@ public class MemberInfoController extends ApiBaseController {
|
|
|
return AjaxResult.error(305,"根据token获取用户id出错");
|
|
|
}
|
|
|
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @descption: 修改用户信息
|
|
|
+ * @param: token 用户信息
|
|
|
+ * @return:
|
|
|
+ * @auther: LiuLingChao
|
|
|
+ * @date: 2020-2-28 15:01
|
|
|
+ */
|
|
|
+ @PostMapping("/editMemberInfo")
|
|
|
+ public Object editMemberInfo(){
|
|
|
+ String userId = TokenUtil.getTokenUserId();
|
|
|
+
|
|
|
+ if(StringUtils.isNotEmpty(userId)){
|
|
|
+ ParameterObject obj = getParameterObject();
|
|
|
+ MemberInfo memberInfo = obj.parseBean(MemberInfo.class);
|
|
|
+ memberInfo.setId(Long.parseLong(userId));
|
|
|
+ int flag = iMemberInfoService.updateMemberInfo(memberInfo);
|
|
|
+ return toAjax(flag);
|
|
|
+ }else{
|
|
|
+ return AjaxResult.error(305,"根据token获取用户id出错");
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
}
|
|
|
}
|