aiSearchApi.go 2.2 KB

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