Files
18xchat/assets/Scripts/chat18x/network/services/IChatService.ts
T
2025-09-08 19:44:58 +08:00

13 lines
586 B
TypeScript

// assets/Scripts/services/logic/IChatService.ts
import type { ApiResponse } from "../client/types";
import proto from "db://assets/Scripts/proto/proto.pb.js";
export interface IChatService {
// 上报聊天数据
reqChatMsg(req: proto.cs.ICSChatMsgReq): Promise<ApiResponse<proto.cs.ICSChatMsgRes>>;
// 获取聊天数据
reqGetChatMsg(req: proto.cs.ICSGetChatMsgReq): Promise<ApiResponse<proto.cs.ICSGetChatMsgRes>>;
// 获取技师聊天次数
reqChatCountData(req: proto.cs.ICSGetChatRemainCountReq): Promise<ApiResponse<proto.cs.ICSGetChatRemainCountRes>>;
}