cmdbff.api 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. syntax = "v1"
  2. info(
  3. title: "api前端服务"
  4. desc: "api前端服务 "
  5. author: "#Suyghur"
  6. version: "v1"
  7. )
  8. import (
  9. "bean.api"
  10. )
  11. @server(
  12. prefix: api/v1/cmd
  13. jwt: JwtAuth
  14. )
  15. service cmdbff {
  16. @doc "玩家获取客服信息"
  17. @handler playerFetchCsInfo
  18. post /player/fetch-cs-info (PlayerFetchCsInfoReq) returns (PlayerFetchCsInfoResp)
  19. @doc "玩家获取历史消息"
  20. @handler playerFetchHistoryMsg
  21. post /player/fetch-history-msg (PlayerFetchHistoryMsgReq) returns (PlayerFetchHistoryMsgResp)
  22. @doc "玩家发送消息"
  23. @handler playerSendMsg
  24. post /player/send-msg (PlayerSendMsgReq)
  25. @doc "玩家断开连接客服"
  26. @handler playerDisconnect
  27. post /player/disconnect
  28. @doc "客服获取玩家等待队列"
  29. @handler csFetchPlayerQueue
  30. post /cs/fetch-player-queue (CsFetchPlayerQueueReq) returns (CsFetchPlayerQueueResp)
  31. @doc "客服连接玩家"
  32. @handler csConnectPlayer
  33. post /cs/connect-player (CsConnectPlayerReq)
  34. @doc "客服获取历史会话列表"
  35. @handler csFetchHistoryList
  36. post /cs/fetch-history-list (CsFetchHistoryChatReq) returns (CsFetchHistoryChatResp)
  37. @doc "客服获取历史消息"
  38. @handler csFetchHistoryMsg
  39. post /cs/fetch-history-msg (CsFetchHistoryMsgReq) returns (CsFetchHistoryMsgResp)
  40. @doc "客服发送消息"
  41. @handler csSendMsg
  42. post /cs/send-msg (CsSendMsgReq)
  43. }