aiSearchApi.go 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. package v1
  2. import "github.com/gogf/gf/v2/frame/g"
  3. type CreateNewSessionReq struct {
  4. g.Meta `path:"/session/newCreate" tags:"AiSearch" method:"post" summary:"创建新会话"`
  5. positionId int64 `json:"positionId" dc:"职位id"`
  6. }
  7. type CreateNewSessionRes struct {
  8. ErrorCode int `dc:"状态码"`
  9. ErrorMsg string `dc:"错误信息"`
  10. Data interface{} `dc:"返回数据"`
  11. }
  12. type LikeSessionReq struct {
  13. g.Meta `path:"/session/answer/like" tags:"AiSearch" method:"post" summary:"回复点赞"`
  14. SId string `json:"sId" dc:"当前会话id"`
  15. QId string `json:"qId" dc:"问题id"`
  16. }
  17. type LikeSessionRes struct {
  18. ErrorCode int `dc:"状态码"`
  19. ErrorMsg string `dc:"错误信息"`
  20. Data interface{} `dc:"返回数据"`
  21. }
  22. type HistorySsListReq struct {
  23. g.Meta `path:"/session/list" tags:"AiSearch" method:"get" summary:"历史会话列表"`
  24. }
  25. type HistorySsListRes struct {
  26. ErrorCode int `dc:"状态码"`
  27. ErrorMsg string `dc:"错误信息"`
  28. Data interface{} `dc:"返回数据"`
  29. }
  30. type SessionDetailReq struct {
  31. g.Meta `path:"/session/detail" tags:"AiSearch" method:"post" summary:"会话详情"`
  32. SId string `json:"sId" dc:"当前会话id"`
  33. }
  34. type SessionDetailRes struct {
  35. ErrorCode int `dc:"状态码"`
  36. ErrorMsg string `dc:"错误信息"`
  37. Data interface{} `dc:"返回数据"`
  38. }
  39. type ProblemConfigurationReq struct {
  40. g.Meta `path:"/problem/configuration" tags:"AiSearch" method:"post" summary:"问题配置"`
  41. }
  42. type ProblemConfigurationRes struct {
  43. ErrorCode int `dc:"状态码"`
  44. ErrorMsg string `dc:"错误信息"`
  45. Data interface{} `dc:"返回数据"`
  46. }
  47. type ChatReq struct {
  48. g.Meta `path:"/chat" tags:"AiSearch" method:"post" summary:"聊天"`
  49. SId int `json:"sId" v:"required" dc:"当前会话id"`
  50. Content string `json:"content" v:"required" dc:"用户发送内容"`
  51. }
  52. type ChatRes struct {
  53. ErrorCode int `dc:"状态码"`
  54. ErrorMsg string `dc:"错误信息"`
  55. Data interface{} `dc:"返回数据"`
  56. }
  57. type BiddingListReq struct {
  58. g.Meta `path:"/bidding/List" tags:"AiSearch" method:"post" summary:"报讯列表"`
  59. ChatId int64 `json:"chatId" dc:"聊天Id"`
  60. }
  61. type BiddingListRes struct {
  62. ErrorCode int `dc:"状态码"`
  63. ErrorMsg string `dc:"错误信息"`
  64. Data interface{} `dc:"返回数据"`
  65. }