微信修改
This commit is contained in:
25
urbanLifelineWeb/packages/workcase_wechat/api/sys/guest.ts
Normal file
25
urbanLifelineWeb/packages/workcase_wechat/api/sys/guest.ts
Normal file
@@ -0,0 +1,25 @@
|
||||
import { request } from '../base'
|
||||
import type { LoginParam, ResultDomain, LoginDomain, TbGuestDTO } from '../../types'
|
||||
// 来客 API
|
||||
export const guestAPI = {
|
||||
/**
|
||||
* 微信小程序用户识别登录
|
||||
*/
|
||||
identify(loginParam: LoginParam): Promise<ResultDomain<LoginDomain>> {
|
||||
return request<LoginDomain>({
|
||||
url: '/urban-lifeline/system/guest/identify',
|
||||
method: 'POST',
|
||||
data: loginParam
|
||||
})
|
||||
},
|
||||
|
||||
/**
|
||||
* 根据微信ID查询来客
|
||||
*/
|
||||
selectGuestByWechat(wechatId: string): Promise<ResultDomain<TbGuestDTO>> {
|
||||
return request<TbGuestDTO>({
|
||||
url: `/urban-lifeline/system/guest/wechat/${wechatId}`,
|
||||
method: 'GET'
|
||||
})
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
export * from './guest'
|
||||
Reference in New Issue
Block a user