Kaynağa Gözat

接口整理

Aslee 4 yıl önce
ebeveyn
işleme
d03a6d46b6

+ 21 - 0
src/main/java/com/caimei365/user/controller/UserApi.java

@@ -4,6 +4,7 @@ import com.caimei365.user.model.JsonModel;
 import com.caimei365.user.service.UserService;
 import lombok.RequiredArgsConstructor;
 import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.PostMapping;
 import org.springframework.web.bind.annotation.RequestMapping;
 import org.springframework.web.bind.annotation.RestController;
 
@@ -47,5 +48,25 @@ public class UserApi {
         return null;//loginService.activateCodeByReg(mobile, activateCodeType, imgCode, token, platformType);
     }
 
+    //club
+    /**
+     * 微信授权登录
+     *
+     * @param code          微信授权code
+     * @param encryptedData 微信加密数据
+     * @param iv            加密算法的初始向量
+     */
+    @PostMapping("/authorization")
+    public JsonModel authorizationLogin(String code, String encryptedData, String iv, HttpServletRequest request) {
+        return null;
+    }
+
+    /**
+     * 邀请码授权登录
+     */
+    @PostMapping("/invitationCode")
+    public JsonModel invitationCode(OperationVo operation, HttpServletRequest request) {
+        return null;
+    }
 
 }