1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980 |
- package v1
- import "github.com/gogf/gf/v2/frame/g"
- type CreateNewSessionReq struct {
- g.Meta `path:"/session/newCreate" tags:"AiSearch" method:"get" summary:"创建新会话"`
- }
- type CreateNewSessionRes struct {
- ErrorCode int `dc:"状态码"`
- ErrorMsg string `dc:"错误信息"`
- Data interface{} `dc:"返回数据"`
- }
- type LikeAnswerReq struct {
- g.Meta `path:"/answer/like" tags:"AiSearch" method:"post" summary:"回复点赞"`
- Cid int64 `json:"cid" dc:"聊天id"`
- Val int `json:"val" dc:"点赞:0:未点赞 1:已点赞"`
- }
- type LikeAnswerRes struct {
- ErrorCode int `dc:"状态码"`
- ErrorMsg string `dc:"错误信息"`
- Data interface{} `dc:"返回数据"`
- }
- type HistorySsListReq struct {
- g.Meta `path:"/session/history/list" tags:"AiSearch" method:"get" summary:"历史会话列表"`
- }
- type HistorySsListRes struct {
- ErrorCode int `dc:"状态码"`
- ErrorMsg string `dc:"错误信息"`
- Data interface{} `dc:"返回数据"`
- }
- type SessionDetailReq struct {
- g.Meta `path:"/session/detail" tags:"AiSearch" method:"post" summary:"会话详情"`
- Sid int64 `json:"sid" dc:"当前会话id"`
- }
- type SessionDetailRes struct {
- ErrorCode int `dc:"状态码"`
- ErrorMsg string `dc:"错误信息"`
- Data interface{} `dc:"返回数据"`
- }
- type ProblemConfigurationReq struct {
- g.Meta `path:"/problem/configuration" tags:"AiSearch" method:"post" summary:"问题配置"`
- }
- type ProblemConfigurationRes struct {
- ErrorCode int `dc:"状态码"`
- ErrorMsg string `dc:"错误信息"`
- Data interface{} `dc:"返回数据"`
- }
- type ChatReq struct {
- g.Meta `path:"/chat" tags:"AiSearch" method:"post" summary:"聊天"`
- SId string `json:"sId" v:"required" dc:"当前会话id"`
- Question string `json:"question" v:"required" dc:"用户发送内容"`
- Item int `json:"item" v:"required" dc:"分类"`
- }
- type ChatRes struct {
- ErrorCode int `dc:"状态码"`
- Answer string `dc:"答案"`
- Count int `dc:"列表长度"`
- List []map[string]interface{} `dc:"列表"`
- }
- type BiddingListReq struct {
- g.Meta `path:"/bidding/List" tags:"AiSearch" method:"post" summary:"报讯列表"`
- ChatId int64 `json:"chatId" dc:"聊天Id"`
- }
- type BiddingListRes struct {
- ErrorCode int `dc:"状态码"`
- ErrorMsg string `dc:"错误信息"`
- Data interface{} `dc:"返回数据"`
- }
|