From 10cc0db30a1be5377e4c09bce349014a667849b6 Mon Sep 17 00:00:00 2001
From: puhanshu <a9236326>
Date: 星期三, 12 一月 2022 13:21:08 +0800
Subject: [PATCH] Merge branch 'phs' into test

---
 springcloud_k8s_panzhihuazhihuishequ/service_user/src/main/java/com/panzhihua/service_user/api/UserApi.java |   29 +++++++++++++++++++++++++++++
 1 files changed, 29 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 f7bb273..8c23141 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
@@ -1268,4 +1268,33 @@
     public Boolean checkUserIsValid(@RequestParam("userId") Long userId, @RequestParam("type") Integer type) {
         return userService.checkUserIsValid(userId, type);
     }
+
+    /**
+     * 根据手机号、用户类型查询用户
+     * @param phone
+     * @param type
+     * @return
+     */
+    @GetMapping("/getSysUserByPhone")
+    public R getSysUserByPhone(@RequestParam("phone") String phone, @RequestParam("type") Integer type) {
+        return userService.getSysUserByPhone(phone, type);
+    }
+
+    /**
+     * 发送验证码登录
+     * @param phone 手机号
+     * @param clientIP 用户ip
+     * @param prefixKey redis Key 前缀
+     * @param limit 获取次数限制
+     * @param timeout 超次数获取时间等待
+     * @return
+     */
+    @GetMapping("/sendMessageCodeForLogin")
+    public 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) {
+        return userService.sendMessageCodeForLogin(phone, clientIP, prefixKey, limit, timeout);
+    }
 }

--
Gitblit v1.7.1