| | |
| | | import com.panzhihua.service_user.service.SysUserInputService; |
| | | import com.panzhihua.service_user.service.UserService; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | |
| | | @PostMapping("putuserisvolunteer") |
| | | R putUserIsVolunteer(@RequestParam("phone")String phone,@RequestParam("type")int type){ |
| | | return userService.putUserIsVolunteer(phone,type); |
| | | } |
| | | |
| | | /** |
| | | * 修改用户志愿者状态 |
| | | * @param userId 志愿者ID |
| | | * @param type 1是志愿者 0 不是 |
| | | */ |
| | | @PostMapping("putuserisvolunteerbyid") |
| | | R putUserIsVolunteerById(@RequestParam("userId")Long userId,@RequestParam("type")int type){ |
| | | return userService.putUserIsVolunteerById(userId, type); |
| | | } |
| | | |
| | | /** |
| | |
| | | public R editSysUser(@RequestBody ShopStoreVO storeVO){ |
| | | return userService.editSysUser(storeVO); |
| | | } |
| | | |
| | | /** |
| | | * 修改用户小程序首页活动提示 |
| | | * @param userEditTipsDTO 请求参数 |
| | | * @return 修改结果 |
| | | */ |
| | | @PostMapping("editUserTips") |
| | | 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); |
| | | } |
| | | } |