PtlChatSend.ts 859 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. import { FUserInfo } from "../base";
  2. /**
  3. * 请求接口
  4. */
  5. export interface ReqChatSend {
  6. channelType:ChannelType //渠道类型(合服hefu|所有服all|世家club|跨服kua)
  7. str:string //语句
  8. }
  9. /**
  10. * 返回信息
  11. */
  12. export interface ResChatSend {
  13. [channelType_id: string]: ChatInfo
  14. }
  15. export interface ChatInfo {
  16. channelType: ChannelType; //聊天渠道
  17. id: number; //聊天编号ID
  18. chatType: ChatType; //聊天类型
  19. fuuid: string; //玩家ID
  20. fuser: FUserInfo; //玩家信息
  21. msg: string; //消息体
  22. time: number; //时间
  23. }
  24. export enum ChannelType {
  25. hefu = "hefu", //合服聊天
  26. }
  27. export enum ChatType {
  28. moren = "1", //默认基础聊天
  29. moon = "moon", //购买月卡
  30. adver = "adver", //购买免广告卡
  31. fever = "fever", //购买终身卡
  32. }
  33. export const conf = {
  34. connet: "ws"
  35. }