From d375a09ffb97bacc1bfc40d6c02819d9c1902865 Mon Sep 17 00:00:00 2001
From: lidongdong <1459917685@qq.com>
Date: 星期一, 01 四月 2024 14:14:56 +0800
Subject: [PATCH] 修改西区uu洗车登录接口500 10
---
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/service/auth/TokenService.java | 59 ++++++++++++++++++++++++++++++++++++++---------------------
1 files changed, 38 insertions(+), 21 deletions(-)
diff --git a/springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/service/auth/TokenService.java b/springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/service/auth/TokenService.java
index dd25f85..559d4a0 100644
--- a/springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/service/auth/TokenService.java
+++ b/springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/service/auth/TokenService.java
@@ -1,7 +1,10 @@
package com.panzhihua.common.service.auth;
+import com.panzhihua.common.model.vos.LoginUserInfoVO;
import org.springframework.cloud.openfeign.FeignClient;
+import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
import com.panzhihua.common.model.vos.R;
@@ -12,21 +15,21 @@
* @author: huang.hongfa weixin hhf9596 qq 959656820
* @create: 2020-11-24 09:18
**/
-@FeignClient(name = "auth")
+@FeignClient(name = "huacheng-auth")
public interface TokenService {
/**
* 小程序用户登录
- *
+ *
* @param openId
* 小程序唯一标识
* @return 登录结果
*/
@PostMapping("/loginApplets")
- R loginApplets(@RequestParam("openId") String openId);
+ R loginApplets(@RequestParam("openId") String openId,@RequestParam("appid")String appid);
/**
* 用户登出
- *
+ *
* @param token
* 登录用户token
* @return 登出结果
@@ -36,7 +39,7 @@
/**
* 社区后台登录
- *
+ *
* @param account
* 账户
* @param password
@@ -44,11 +47,11 @@
* @return 登录结果
*/
@PostMapping("/loginCommunityBackage")
- R loginCommunityBackage(@RequestParam("account") String account, @RequestParam("password") String password);
+ R loginCommunityBackage(@RequestParam("account") String account, @RequestParam("password") String password,@RequestParam("appid")String appid);
/**
* 小程序后台登录
- *
+ *
* @param account
* 账户
* @param password
@@ -56,11 +59,11 @@
* @return 登录结果
*/
@PostMapping("/loginAppletsBackStage")
- R loginAppletsBackStage(@RequestParam("account") String account, @RequestParam("password") String password);
+ R loginAppletsBackStage(@RequestParam("account") String account, @RequestParam("password") String password,@RequestParam("appid")String appid);
/**
* 认证中心刷新token
- *
+ *
* @param refreshToken
* 用户端保存的刷新token
* @return 新的token 和刷新token
@@ -68,9 +71,14 @@
@PostMapping("/refreshToken")
R refreshToken(@RequestParam("refreshToken") String refreshToken);
+
+
+ @PostMapping("/getNewToken")
+ public R getNewToken(@RequestBody LoginUserInfoVO loginUserInfoVO);
+
/**
* 商家后台登录
- *
+ *
* @param account
* 账户
* @param password
@@ -78,11 +86,11 @@
* @return 登录结果
*/
@PostMapping("/loginShopBackStage")
- R loginShopBackStage(@RequestParam("account") String account, @RequestParam("password") String password);
+ R loginShopBackStage(@RequestParam("account") String account, @RequestParam("password") String password,@RequestParam("appid")String appid);
/**
* 网格综治APP登录
- *
+ *
* @param account
* 账户
* @param password
@@ -90,11 +98,11 @@
* @return 登录结果
*/
@PostMapping("/loginGridApp")
- R loginGridApp(@RequestParam("account") String account, @RequestParam("password") String password);
+ R loginGridApp(@RequestParam("account") String account, @RequestParam("password") String password,@RequestParam("appid")String appid);
/**
* 网格综治后台登录
- *
+ *
* @param account
* 账户
* @param password
@@ -102,7 +110,7 @@
* @return 登录结果
*/
@PostMapping("/loginGridBackstage")
- R loginGridBackstage(@RequestParam("account") String account, @RequestParam("password") String password);
+ R loginGridBackstage(@RequestParam("account") String account, @RequestParam("password") String password,@RequestParam("appid")String appid);
/**
* 城管后台登录
@@ -111,7 +119,7 @@
* @return 登录结果
*/
@PostMapping("/loginCgBackage")
- R loginCgBackage(@RequestParam("account") String account, @RequestParam("password") String password);
+ R loginCgBackage(@RequestParam("account") String account, @RequestParam("password") String password,@RequestParam("appid")String appid);
/**
* 一键报警APP登录
@@ -120,7 +128,7 @@
* @return 登录结果
*/
@PostMapping("/loginAlarmApp")
- R loginAlarmApp(@RequestParam("account") String account, @RequestParam("password") String password);
+ R loginAlarmApp(@RequestParam("account") String account, @RequestParam("password") String password,@RequestParam("appid")String appid);
/**
* 便民服务商家后台登录
@@ -132,7 +140,7 @@
* @return 登录结果
*/
@PostMapping("/loginMerchantBackStage")
- R loginMerchantBackStage(@RequestParam("account") String account, @RequestParam("password") String password);
+ R loginMerchantBackStage(@RequestParam("account") String account, @RequestParam("password") String password,@RequestParam("appid")String appid);
/**
* 西区大屏登录
@@ -141,7 +149,7 @@
* @return 登录结果
*/
@PostMapping("/loginXQDP")
- R loginXQDP(@RequestParam("account") String account, @RequestParam("password") String password);
+ R loginXQDP(@RequestParam("account") String account, @RequestParam("password") String password,@RequestParam("appid")String appid);
/**
* 微商业街用户登录
@@ -153,8 +161,17 @@
* @return 登录结果
*/
@PostMapping("/loginMcsUser")
- R loginMcsUser(@RequestParam("account") String account, @RequestParam("password") String password);
+ R loginMcsUser(@RequestParam("account") String account, @RequestParam("password") String password,@RequestParam("appid")String appid);
+ /**
+ * 天府通办登录
+ * @param account
+ * @param password
+ * @param appid
+ * @return
+ */
+ @GetMapping("/tfLogin")
+ R tfLogin(@RequestParam("account")String account,@RequestParam("password")String password,@RequestParam("appid")String appid);
/**
* 电动车商城后台用户登录
*
@@ -165,5 +182,5 @@
* @return 登录结果
*/
@PostMapping("/loginBatteryUser")
- R loginBatteryUser(@RequestParam("account") String account, @RequestParam("password") String password);
+ R loginBatteryUser(@RequestParam("account") String account, @RequestParam("password") String password,@RequestParam("appid")String appid);
}
--
Gitblit v1.7.1