PtlChatSend.ts 603 B

123456789101112131415161718192021222324252627282930313233343536
  1. import { FUserInfo } from "../base";
  2. /**
  3. * 请求接口
  4. */
  5. export interface ReqChatSend {
  6. type:ChatType //渠道类型(合服hefu|所有服all|世家club|跨服kua)
  7. str:string //语句
  8. }
  9. /**
  10. * 返回信息
  11. */
  12. export interface ResChatSend {
  13. [xbid: string]: ChatInfo
  14. }
  15. export interface ChatInfo {
  16. id: number; //聊天编号ID
  17. type: ChatType; //聊天类型
  18. fuuid: string; //玩家ID
  19. fuser: FUserInfo; //玩家信息
  20. msg: string; //消息体
  21. time: number; //时间
  22. }
  23. export enum ChatType {
  24. hefu = "hefu", //合服聊天
  25. }
  26. export const conf = {
  27. connet: "ws"
  28. }