From cf3b4b7fc95fd5b83cae6842e8c24b99e70068e0 Mon Sep 17 00:00:00 2001 From: huanghongfa <huanghongfa123456> Date: 星期二, 27 四月 2021 16:55:07 +0800 Subject: [PATCH] 修复bug --- springcloud_k8s_panzhihuazhihuishequ/service_user/src/main/java/com/panzhihua/service_user/api/UserApi.java | 30 ++++++++++++++++++++++++++++++ 1 files changed, 30 insertions(+), 0 deletions(-) diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_user/src/main/java/com/panzhihua/service_user/api/UserApi.java b/springcloud_k8s_panzhihuazhihuishequ/service_user/src/main/java/com/panzhihua/service_user/api/UserApi.java index fd73d64..e30843c 100644 --- a/springcloud_k8s_panzhihuazhihuishequ/service_user/src/main/java/com/panzhihua/service_user/api/UserApi.java +++ b/springcloud_k8s_panzhihuazhihuishequ/service_user/src/main/java/com/panzhihua/service_user/api/UserApi.java @@ -192,6 +192,16 @@ } /** + * 修改用户志愿者状态 + * @param userId 志愿者ID + * @param type 1是志愿者 0 不是 + */ + @PostMapping("putuserisvolunteerbyid") + R putUserIsVolunteerById(@RequestParam("userId")Long userId,@RequestParam("type")int type){ + return userService.putUserIsVolunteerById(userId, type); + } + + /** * 用户绑定社区、小区 * @param loginUserInfoVO 社区小区数据 * @return 绑定结果 @@ -776,4 +786,24 @@ public R editUserTips(@RequestBody SysUserEditTipsDTO userEditTipsDTO) { return userService.editUserTips(userEditTipsDTO); } + + /** + * 获取用户电子档案 + * @param userId 家庭成员信息 + * @return 结果 + */ + @GetMapping("getUserArchives") + public R getUserArchives(@RequestParam("userId") Long userId){ + return userService.getUserArchives(userId); + } + + /** + * 编辑用户电子档案 + * @param userArchivesVO 编辑的信息 + * @return 编辑结果 + */ + @PostMapping("updateUserArchives") + public R updateUserArchives(@RequestBody UpdateUserArchivesVO userArchivesVO){ + return userService.updateUserArchives(userArchivesVO); + } } -- Gitblit v1.7.1