Salon 侧全场景脱敏与拨号单次取号改造:收掉预约选择客户的完整手机号出口,新增按门店与订单上下文授权的拨号取号端点及隐私号占位渠道,前端改为脱敏展示加呼叫取号,并同步更新协议条款
自动发布开发环境 Nacos 配置 / publish (push) Successful in 24s

This commit is contained in:
2026-11-04 22:02:51 +08:00
parent bbe1473b70
commit 05493923e4
33 changed files with 697 additions and 28 deletions
+17
View File
@@ -261,11 +261,28 @@ export interface ContactInfoVO {
platformContactText?: string
}
/**
* 后台单次拨号取号响应。
*/
export interface CustomerDialResult {
mode: 'DIRECT' | 'PRIVACY_NUMBER'
dialNumber: string
expiresInSeconds: number
}
/**
* userApi groups all API calls for this page domain.
* Call guide: pass the typed payload or identifier into the method below, and use the returned Promise in the page script.
*/
export const userApi = {
/**
* 后台管理员按预约/订单上下文单次取号,号码不入库、不缓存。
*/
dialCustomer: async (customerId: IdType, orderId: IdType): Promise<CustomerDialResult> => {
return await api.post<CustomerDialResult>(`/manager/customers/${customerId}/dial`, null, {
params: { orderId }
}) as unknown as CustomerDialResult
},
getUserInfo: async (): Promise<UserVO> => {
return await api.get<UserVO>('/user/info') as unknown as UserVO
},