123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- import { FUserInfo } from "../base";
- /**
- * 请求接口
- */
- export interface ReqChatSend {
- channelType:ChannelType //渠道类型(合服hefu|所有服all|世家club|跨服kua)
- str:string //语句
- }
- /**
- * 返回信息
- */
- export interface ResChatSend {
- [channelType_id: string]: ChatInfo
- }
- export interface ChatInfo {
- channelType: ChannelType; //聊天渠道
- id: number; //聊天编号ID
- chatType: ChatType; //聊天类型
- fuuid: string; //玩家ID
- fuser: FUserInfo; //玩家信息
-
- msg: string; //消息体
- time: number; //时间
- }
- export enum ChannelType {
- hefu = "hefu", //合服聊天
- }
- export enum ChatType {
- moren = "1", //默认基础聊天
- moon = "moon", //购买月卡
- adver = "adver", //购买免广告卡
- fever = "fever", //购买终身卡
- }
- export const conf = {
- connet: "ws"
- }
|