|
@@ -3,8 +3,7 @@ package v1
|
|
|
import "github.com/gogf/gf/v2/frame/g"
|
|
|
|
|
|
type CreateNewSessionReq struct {
|
|
|
- g.Meta `path:"/session/newCreate" tags:"AiSearch" method:"post" summary:"创建新会话"`
|
|
|
- positionId int64 `json:"positionId" dc:"职位id"`
|
|
|
+ g.Meta `path:"/session/newCreate" tags:"AiSearch" method:"post" summary:"创建新会话"`
|
|
|
}
|
|
|
|
|
|
type CreateNewSessionRes struct {
|
|
@@ -13,20 +12,20 @@ type CreateNewSessionRes struct {
|
|
|
Data interface{} `dc:"返回数据"`
|
|
|
}
|
|
|
|
|
|
-type LikeSessionReq struct {
|
|
|
- g.Meta `path:"/session/answer/like" tags:"AiSearch" method:"post" summary:"回复点赞"`
|
|
|
- SId string `json:"sId" dc:"当前会话id"`
|
|
|
- QId string `json:"qId" dc:"问题id"`
|
|
|
+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 LikeSessionRes struct {
|
|
|
+type LikeAnswerRes struct {
|
|
|
ErrorCode int `dc:"状态码"`
|
|
|
ErrorMsg string `dc:"错误信息"`
|
|
|
Data interface{} `dc:"返回数据"`
|
|
|
}
|
|
|
|
|
|
type HistorySsListReq struct {
|
|
|
- g.Meta `path:"/session/list" tags:"AiSearch" method:"get" summary:"历史会话列表"`
|
|
|
+ g.Meta `path:"/session/history/list" tags:"AiSearch" method:"get" summary:"历史会话列表"`
|
|
|
}
|
|
|
|
|
|
type HistorySsListRes struct {
|