| | |
| | | import com.panzhihua.common.model.dtos.DataKanBansDto; |
| | | import com.panzhihua.common.model.dtos.community.convenient.ConvenientMerchantDTO; |
| | | import com.panzhihua.common.model.dtos.community.convenient.DisableOrEnableConvenientMerchantDTO; |
| | | import com.panzhihua.common.model.dtos.community.microCommercialStreet.BindUserPhoneDTO; |
| | | import com.panzhihua.common.model.dtos.community.microCommercialStreet.LoginWithPhoneDTO; |
| | | import com.panzhihua.common.model.dtos.community.microCommercialStreet.McsMerchantDTO; |
| | | import org.springframework.cloud.openfeign.FeignClient; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | |
| | | import com.panzhihua.common.model.vos.*; |
| | | import com.panzhihua.common.model.vos.shop.ShopStoreVO; |
| | | import com.panzhihua.common.model.vos.user.*; |
| | | |
| | | import javax.validation.Valid; |
| | | |
| | | /** |
| | | * @program: springcloud_k8s_panzhihuazhihuishequ |
| | |
| | | * @return 人员详情 |
| | | */ |
| | | @PostMapping("detailuser") |
| | | R detailUser(@RequestParam("userId") Long userId); |
| | | R<LoginUserInfoVO> detailUser(@RequestParam("userId") Long userId); |
| | | |
| | | /** |
| | | * 设置用户标签 |
| | |
| | | @PostMapping("adduserbackstageproperty") |
| | | R addUserBackstageProperty(@RequestBody AdministratorsUserVO administratorsUserVO); |
| | | |
| | | |
| | | /** |
| | | * 更新 |
| | | * |
| | | * @param administratorsUserVO |
| | | * 编辑账户内容 |
| | | * @return 编辑结果 |
| | | */ |
| | | @PostMapping("updateStreet") |
| | | R updateStreet(@RequestBody AdministratorsUserVO administratorsUserVO); |
| | | |
| | | /** |
| | | * 编辑运营、社区后台账户 |
| | | * |
| | |
| | | * @return 角色集合 |
| | | */ |
| | | @PostMapping("/role/listrolebackstage") |
| | | R listRoleBackstage(@RequestParam("communityId") Long communityId,@RequestParam("pageNum")Integer pageNum,@RequestParam("pageSize")Integer pageSize); |
| | | R listRoleBackstage(@RequestParam("communityId") Long communityId,@RequestParam("pageNum")Integer pageNum,@RequestParam("pageSize")Integer pageSize,@RequestParam("areaCode")String areaCode); |
| | | |
| | | /** |
| | | * 分页查询后台用户 |
| | |
| | | * @return 运营后台数据看板 |
| | | */ |
| | | @PostMapping("datakanban") |
| | | R dataKanban(); |
| | | R dataKanban(@RequestParam("areaCode")String areaCode); |
| | | |
| | | /** |
| | | * 用户菜单获取 |
| | |
| | | * @return 用户数据统计汇总 |
| | | */ |
| | | @GetMapping("community/statistics") |
| | | R communityStatistics(); |
| | | R communityStatistics(@RequestParam("areaCode") String areaCode); |
| | | |
| | | /** |
| | | * 运营后台-用户数据统计导出 |
| | | * @return 用户数据 |
| | | */ |
| | | @GetMapping("community/statistics/export") |
| | | R communityStatisticsExport(); |
| | | R communityStatisticsExport(@RequestParam("areaCode") String areaCode); |
| | | |
| | | /** |
| | | * 通过UnionId获取用户信息 |
| | | * @param unionId |
| | | * @return |
| | | */ |
| | | @GetMapping("/getByUnionId") |
| | | R getUserInfoByUnionId(@RequestParam("unionId") String unionId); |
| | | |
| | | /** |
| | | * 小程序id获取相关信息 |
| | | * @param appId |
| | | * @return |
| | | */ |
| | | @GetMapping("/sysAppConfig/selectByAppid") |
| | | R<SysAppConfigVO> selectByAppid(@RequestParam("appId")String appId); |
| | | |
| | | /** |
| | | * 通过区域编码 类型获取动态模板id |
| | | * @param areaCode |
| | | * @param type |
| | | * @return |
| | | */ |
| | | @GetMapping("/sysTemplateConfig/selectTemplate") |
| | | R<SysTemplateConfigVO> selectTemplate(@RequestParam("areaCode")String areaCode,@RequestParam("type")Integer type); |
| | | |
| | | /** |
| | | * 微商业街新增商家账号 |
| | | * @param mcsMerchantDTO |
| | | * @return 商家用户id |
| | | */ |
| | | @PostMapping("insertMcsMerchantAccount") |
| | | R addMcsMerchantUser(@RequestBody McsMerchantDTO mcsMerchantDTO); |
| | | |
| | | /** |
| | | * 微商业街修改商家账号 |
| | | * @param mcsMerchantDTO |
| | | * @return |
| | | */ |
| | | @PutMapping("putMcsMerchantUser") |
| | | R putMcsMerchantUser(@RequestBody McsMerchantDTO mcsMerchantDTO); |
| | | |
| | | /** |
| | | * 检查用户是否有效 |
| | | * @param userId |
| | | * @param type |
| | | * @return |
| | | */ |
| | | @PutMapping("checkUserIsValid") |
| | | Boolean checkUserIsValid(@RequestParam("userId") Long userId, @RequestParam("type") Integer type); |
| | | |
| | | /** |
| | | * 根据手机号、用户类型查询用户 |
| | | * @param phone |
| | | * @param type |
| | | * @return |
| | | */ |
| | | @GetMapping("/getSysUserByPhone") |
| | | R getSysUserByPhone(@RequestParam("phone") String phone, @RequestParam("type") Integer type); |
| | | |
| | | /** |
| | | * 发送验证码 |
| | | * @param phone 手机号 |
| | | * @param clientIP 用户ip |
| | | * @param prefixKey redis Key 前缀 |
| | | * @param limit 获取次数限制 |
| | | * @param timeout 超次数获取时间等待 |
| | | * @return |
| | | */ |
| | | @GetMapping("/sendMessageCode") |
| | | R sendMessageCode(@RequestParam("phone") String phone, |
| | | @RequestParam(value = "clientIP", required = false) String clientIP, |
| | | @RequestParam("prefixKey") String prefixKey, |
| | | @RequestParam("limit") Integer limit, |
| | | @RequestParam("timeout") Integer timeout); |
| | | |
| | | /** |
| | | * 根据openId获取微商业街用户 |
| | | * @param openid |
| | | * @return |
| | | */ |
| | | @GetMapping("/getMcsUserByOpenId") |
| | | R getMcsUserByOpenId(@RequestParam("openid") String openid); |
| | | |
| | | /** |
| | | * 商业街用户微信授权-绑定手机号 |
| | | * @param bindUserPhoneDTO |
| | | * @return |
| | | */ |
| | | @PostMapping("/mcs/bindPhone") |
| | | R bindOrAddMcsUser(@RequestBody @Valid BindUserPhoneDTO bindUserPhoneDTO); |
| | | |
| | | /** |
| | | * 删除用户信息缓存 |
| | | * @param phone |
| | | */ |
| | | @DeleteMapping("/deleteUserCashByPhone") |
| | | R deleteUserCashByPhone(@RequestParam("phone") String phone); |
| | | } |