From 32ba1995209c8cbe9ddd8a5f595d6023e7fdd99a Mon Sep 17 00:00:00 2001 From: puhanshu <a9236326> Date: 星期三, 12 一月 2022 14:08:36 +0800 Subject: [PATCH] 商业街支付修改 --- springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/service/user/UserService.java | 34 ++++++++++++++++++++++++++++++++++ 1 files changed, 34 insertions(+), 0 deletions(-) diff --git a/springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/service/user/UserService.java b/springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/service/user/UserService.java index b356d2e..273543b 100644 --- a/springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/service/user/UserService.java +++ b/springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/service/user/UserService.java @@ -1109,4 +1109,38 @@ */ @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("/sendMessageCodeForLogin") + R sendMessageCodeForLogin(@RequestParam("phone") String phone, + @RequestParam(value = "clientIP", required = false) String clientIP, + @RequestParam("prefixKey") String prefixKey, + @RequestParam("limit") Integer limit, + @RequestParam("timeout") Integer timeout); } -- Gitblit v1.7.1