diff --git a/src/common/apis/ab98/index.ts b/src/common/apis/ab98/index.ts index e7a91d6..a993332 100644 --- a/src/common/apis/ab98/index.ts +++ b/src/common/apis/ab98/index.ts @@ -1,6 +1,7 @@ import { request } from '@/http/axios' import { BindQyUserCommand, + BindWxMpUserCommand, GetTokenParams, LoginData, LogoutResponse, @@ -71,4 +72,12 @@ export function bindQyUserApi(data: BindQyUserCommand) { method: 'post', data }) +} + +export function bindWxMpUser(data: BindWxMpUserCommand) { + return request>({ + url: '/wx/login/bindWxMpUser', + method: 'post', + data + }) } \ No newline at end of file diff --git a/src/common/apis/ab98/type.ts b/src/common/apis/ab98/type.ts index c27e65b..706d4d9 100644 --- a/src/common/apis/ab98/type.ts +++ b/src/common/apis/ab98/type.ts @@ -64,4 +64,10 @@ export interface BindQyUserCommand { qyUserId: number; name: string; idNum: string; +} + +export interface BindWxMpUserCommand { + dynamicCode: string; + name: string; + idNum: string; } \ No newline at end of file