微信修改

This commit is contained in:
2025-12-22 19:16:53 +08:00
parent ae16757984
commit cfb160cf09
70 changed files with 4697 additions and 1839 deletions

View 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'
})
}
}

View File

@@ -0,0 +1 @@
export * from './guest'