feat(微信绑定): 添加微信小程序用户绑定接口
新增微信小程序用户绑定接口 bindWxMpUser 及相关类型定义 BindWxMpUserCommand
This commit is contained in:
parent
f8b616a064
commit
1e5315377e
|
|
@ -1,6 +1,7 @@
|
||||||
import { request } from '@/http/axios'
|
import { request } from '@/http/axios'
|
||||||
import {
|
import {
|
||||||
BindQyUserCommand,
|
BindQyUserCommand,
|
||||||
|
BindWxMpUserCommand,
|
||||||
GetTokenParams,
|
GetTokenParams,
|
||||||
LoginData,
|
LoginData,
|
||||||
LogoutResponse,
|
LogoutResponse,
|
||||||
|
|
@ -72,3 +73,11 @@ export function bindQyUserApi(data: BindQyUserCommand) {
|
||||||
data
|
data
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export function bindWxMpUser(data: BindWxMpUserCommand) {
|
||||||
|
return request<ApiResponseData<string>>({
|
||||||
|
url: '/wx/login/bindWxMpUser',
|
||||||
|
method: 'post',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
@ -65,3 +65,9 @@ export interface BindQyUserCommand {
|
||||||
name: string;
|
name: string;
|
||||||
idNum: string;
|
idNum: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface BindWxMpUserCommand {
|
||||||
|
dynamicCode: string;
|
||||||
|
name: string;
|
||||||
|
idNum: string;
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue