PtlChatHistory.ts 438 B

1234567891011121314151617181920212223242526
  1. import { ChannelType, ChatInfo } from "./PtlChatSend"
  2. /**
  3. * 请求接口
  4. */
  5. export interface ReqChatHistory {
  6. channelType:ChannelType //渠道类型(合服hefu|所有服all|世家club|跨服kua)
  7. xbid:number //0:获取最新10条 其他历史最后一条
  8. }
  9. /**
  10. * 返回信息
  11. */
  12. export interface ResChatHistory {
  13. [channelType:string]:{
  14. [id: string]: ChatInfo
  15. }
  16. }
  17. export const conf = {
  18. connet: "ws"
  19. }