协议修改
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user