| | |
| | | import com.panzhihua.common.model.vos.LoginUserInfoVO; |
| | | import com.panzhihua.common.model.vos.R; |
| | | import com.panzhihua.common.model.vos.SystemmanagementConfigVO; |
| | | import com.panzhihua.common.model.vos.shop.ShopStoreVO; |
| | | import com.panzhihua.common.model.vos.user.*; |
| | | import com.panzhihua.service_user.service.SysUserInputService; |
| | | import com.panzhihua.service_user.service.UserService; |
| | |
| | | } |
| | | |
| | | /** |
| | | * 查询当前社区所有标签以及预设标签 |
| | | * @return 标签集合 |
| | | */ |
| | | @PostMapping("listtag/getTag") |
| | | public R listTags(@RequestParam("communityId") Long communityId){ |
| | | return userService.listTags(communityId); |
| | | } |
| | | |
| | | /** |
| | | * 人员详情 |
| | | * @param userId 用户id |
| | | * @return 人员详情 |
| | |
| | | @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); |
| | | } |
| | | |
| | | /** |
| | |
| | | } |
| | | |
| | | /** |
| | | * 通过账号和渠道查询用户信息 |
| | | * @param account |
| | | * @return |
| | | */ |
| | | @GetMapping("getUserByAccount") |
| | | public R getSysUserVOByAccount(@RequestParam(value = "account") String account,@RequestParam(value = "type") Integer type){ |
| | | return userService.getSysUserVOByAccount(account, type); |
| | | } |
| | | |
| | | /** |
| | | *分页查询人口管理 |
| | | * @param pageInputUserDTO 查询参数 |
| | | * @return 分页数据 |
| | |
| | | R specialUserExport(@RequestBody ExportSpecialUserDTO exportSpecialUserDTO) { |
| | | return sysUserInputService.specialUserExport(exportSpecialUserDTO); |
| | | } |
| | | |
| | | /** |
| | | * 创建SysUser用户信息以及权限 |
| | | * @param storeVO 请求参数 |
| | | * @return 创建结果 |
| | | */ |
| | | @PostMapping("addSysUser") |
| | | public R addSysUser(@RequestBody ShopStoreVO storeVO){ |
| | | return userService.addSysUser(storeVO); |
| | | } |
| | | |
| | | /** |
| | | * 修改SysUser用户信息 |
| | | * @param storeVO 请求参数 |
| | | * @return 修改结果 |
| | | */ |
| | | @PostMapping("editSysUser") |
| | | 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); |
| | | } |
| | | } |