Browse Source

feat: 新增更新用户OPENID接口

await 7 months ago
parent
commit
3e38cc3bc4
1 changed files with 10 additions and 1 deletions
  1. 10 1
      src/apis/userApi.ts

+ 10 - 1
src/apis/userApi.ts

@@ -185,6 +185,11 @@ export type GetJumpUrlPostBody = {
 export type GetJumpUrlPostResponse = {
     adJumpLink: string
 }
+
+export type WxMpUpdateOpenIdBody = {
+    jsCode: string
+}
+
     
         
         export default class UserApi {
@@ -223,5 +228,9 @@ export type GetJumpUrlPostResponse = {
         static getJumpUrlPost(options: AxiosRequestConfigFunc<GetJumpUrlPostBody, any>): RequestUtil<GetJumpUrlPostResponse> {
             return new RequestUtil<any>('/h5/get/product/jump/url', 'POST' ,options)
         }
+
+        static wxUpdateOpenIdGet(options: AxiosRequestConfigFunc<any, WxMpUpdateOpenIdBody>):RequestUtil<any> {
+            return new RequestUtil<any>(`/wxMp/updateOpenId`, 'GET', options)
+        }
         }
-        
+