From f04f35b562760afbac0c477357e2a29f77aec3b9 Mon Sep 17 00:00:00 2001
From: lrj <owen.stl@gmail.com>
Date: 星期四, 02 十月 2025 13:51:47 +0800
Subject: [PATCH] fix: 修复评审次数重复显示问题
---
backend/src/main/java/com/rongyichuang/auth/api/AuthGraphqlApi.java | 31 +++++++++++++++++++++++++++++++
1 files changed, 31 insertions(+), 0 deletions(-)
diff --git a/backend/src/main/java/com/rongyichuang/auth/api/AuthGraphqlApi.java b/backend/src/main/java/com/rongyichuang/auth/api/AuthGraphqlApi.java
index fab4042..a49349c 100644
--- a/backend/src/main/java/com/rongyichuang/auth/api/AuthGraphqlApi.java
+++ b/backend/src/main/java/com/rongyichuang/auth/api/AuthGraphqlApi.java
@@ -2,7 +2,12 @@
import com.rongyichuang.auth.dto.LoginRequest;
import com.rongyichuang.auth.dto.LoginResponse;
+import com.rongyichuang.auth.dto.PhoneDecryptResponse;
+import com.rongyichuang.auth.dto.WxLoginRequest;
+import com.rongyichuang.auth.dto.WxLoginResponse;
import com.rongyichuang.auth.service.AuthService;
+import com.fasterxml.jackson.core.JsonProcessingException;
+import com.fasterxml.jackson.databind.JsonMappingException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.graphql.data.method.annotation.Argument;
import org.springframework.graphql.data.method.annotation.MutationMapping;
@@ -24,4 +29,30 @@
public LoginResponse webLogin(@Argument LoginRequest input) {
return authService.login(input);
}
+
+ /**
+ * 寰俊灏忕▼搴忕櫥褰�
+ */
+ @MutationMapping
+ public WxLoginResponse wxLogin(@Argument WxLoginRequest input) throws JsonProcessingException, JsonMappingException {
+ return authService.wxLogin(input);
+ }
+
+ /**
+ * 瑙e瘑寰俊鎵嬫満鍙凤紙鏃х増API锛�
+ */
+ @MutationMapping
+ public PhoneDecryptResponse decryptPhoneNumber(@Argument String encryptedData,
+ @Argument String iv,
+ @Argument String sessionKey) {
+ return authService.decryptPhoneNumber(encryptedData, iv, sessionKey);
+ }
+
+ /**
+ * 鑾峰彇寰俊鎵嬫満鍙凤紙鏂扮増API锛�
+ */
+ @MutationMapping
+ public PhoneDecryptResponse getPhoneNumberByCode(@Argument String code) {
+ return authService.getPhoneNumberByCode(code);
+ }
}
\ No newline at end of file
--
Gitblit v1.8.0