apibff.api 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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. group: player/cmd
  13. prefix: api/v1
  14. jwt: JwtAuth
  15. )
  16. service apibff {
  17. @doc "玩家获取客服信息"
  18. @handler playerFetchCsInfo
  19. post /player/fetch_cs_info (PlayerFetchCsInfoReq) returns (CommResp)
  20. @doc "玩家获取历史消息"
  21. @handler playerFetchHistoryMsg
  22. post /player/fetch_history_msg (PlayerFetchHistoryMsgReq) returns (CommResp)
  23. @doc "玩家获取消息"
  24. @handler playerFetchMsg
  25. post /player/fetch_msg returns (CommResp)
  26. @doc "玩家发送消息"
  27. @handler playerSendMsg
  28. post /player/send_msg (PlayerSendMsgReq) returns (CommResp)
  29. @doc "玩家断开连接客服"
  30. @handler playerDisconnect
  31. post /player/disconnect returns (CommResp)
  32. }
  33. @server(
  34. group : cs/cmd
  35. prefix : api/v1
  36. jwt : JwtAuth
  37. )
  38. service apibff {
  39. @doc "客服获取玩家等待队列"
  40. @handler csFetchPlayerQueue
  41. post /cs/fetch_player_queue (CsFetchPlayerQueueReq) returns (CommResp)
  42. @doc "客服连接玩家"
  43. @handler csConnectPlayer
  44. post /cs/connect_player (CsConnectPlayerReq) returns (CommResp)
  45. @doc "客服获取历史会话列表"
  46. @handler csFetchHistoryList
  47. post /cs/fetch_history_list (CsFetchHistoryChatReq) returns (CommResp)
  48. @doc "客服获取历史消息"
  49. @handler csFetchHistoryMsg
  50. post /cs/fetch_history_msg (CsFetchHistoryMsgReq) returns (CommResp)
  51. @doc "客服获取消息"
  52. @handler csFetchMsg
  53. post /cs/fetch_msg (CsFetchMsgReq) returns (CommResp)
  54. @doc "客服发送消息"
  55. @handler csSendMsg
  56. post /cs/send_msg (CsSendMsgReq) returns (CommResp)
  57. }