协议修改

This commit is contained in:
chen wei bo
2025-09-08 19:44:58 +08:00
parent e7cb527ca0
commit d4d3e986b3
17 changed files with 878 additions and 66 deletions
@@ -26,8 +26,18 @@ export class ChatService implements IChatService {
this.impl = useMock ? new MockChatService() : new HttpChatService();
}
// 对外 API 保持不变
public async reqBuyChat(req: proto.cs.ICSBuyChatReq): Promise<ApiResponse<proto.cs.ICSBuyChatRes>> {
return this.impl.reqBuyChat(req);
// 上报聊天数据
public async reqChatMsg(req: proto.cs.ICSChatMsgReq): Promise<ApiResponse<proto.cs.ICSChatMsgRes>> {
return this.impl.reqChatMsg(req);
}
// 获取聊天数据
public async reqGetChatMsg(req: proto.cs.ICSGetChatMsgReq): Promise<ApiResponse<proto.cs.ICSGetChatMsgRes>> {
return this.impl.reqGetChatMsg(req);
}
// 获取技师聊天次数
public async reqChatCountData(req: proto.cs.ICSGetChatRemainCountReq): Promise<ApiResponse<proto.cs.ICSGetChatRemainCountRes>> {
return this.impl.reqChatCountData(req);
}
}