Files
urbanLifeline/urbanLifelineWeb/packages/workcase_wechat/api/sys/guest.ts

25 lines
741 B
TypeScript
Raw Normal View History

2025-12-22 19:16:53 +08:00
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'
})
}
}