PtlChatSend.ts 839 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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:string]:{
  14. [id: string]: ChatInfo
  15. }
  16. }
  17. export interface ChatInfo {
  18. id: number; //聊天编号ID
  19. chatType: ChatType; //聊天类型
  20. fuuid: string; //玩家ID
  21. fuser: FUserInfo; //玩家信息
  22. msg: string; //消息体
  23. time: number; //时间
  24. }
  25. export enum ChannelType {
  26. hefu = "hefu", //合服聊天
  27. }
  28. export enum ChatType {
  29. moren = "1", //默认基础聊天
  30. moon = "moon", //购买月卡
  31. adver = "adver", //购买免广告卡
  32. fever = "fever", //购买终身卡
  33. }
  34. export const conf = {
  35. connet: "ws"
  36. }