cmdbff.api 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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 csFetchPlayerQueue
  27. post /cs/fetch-player-queue (CsFetchPlayerQueueReq) returns (CsFetchPlayerQueueResp)
  28. @doc "客服连接玩家"
  29. @handler csConnectPlayer
  30. post /cs/connect-player (CsConnectPlayerReq)
  31. @doc "客服获取历史会话列表"
  32. @handler csFetchHistoryList
  33. post /cs/fetch-history-list (CsFetchHistoryChatReq) returns (CsFetchHistoryChatResp)
  34. @doc "客服获取历史消息"
  35. @handler csFetchHistoryMsg
  36. post /cs/fetch-history-msg (CsFetchHistoryMsgReq) returns (CsFetchHistoryMsgResp)
  37. @doc "客服发送消息"
  38. @handler csSendMsg
  39. post /cs/send-msg (CsSendMsgReq)
  40. }