34 lines
742 B
Go
34 lines
742 B
Go
package dto
|
|
|
|
import (
|
|
"rag-local/kb/model/entity"
|
|
|
|
"github.com/gogf/gf/v2/frame/g"
|
|
)
|
|
|
|
type ListConversationReq struct {
|
|
g.Meta `path:"/list" method:"get" tags:"会话" summary:"会话列表"`
|
|
}
|
|
|
|
type ListConversationRes struct {
|
|
List []*entity.Conversation `json:"list"`
|
|
}
|
|
|
|
type SaveConversationReq struct {
|
|
g.Meta `path:"/save" method:"post" tags:"会话" summary:"保存会话"`
|
|
Id int64 `json:"id"`
|
|
DatasetId int64 `json:"dataset_id"`
|
|
Title string `json:"title"`
|
|
}
|
|
|
|
type SaveConversationRes struct {
|
|
Id int64 `json:"id"`
|
|
}
|
|
|
|
type DeleteConversationReq struct {
|
|
g.Meta `path:"/delete" method:"post" tags:"会话" summary:"删除会话"`
|
|
Id int64 `v:"required" json:"id"`
|
|
}
|
|
|
|
type DeleteConversationRes struct{}
|