30 lines
770 B
Go
30 lines
770 B
Go
package dto
|
|
|
|
import (
|
|
"rag-local/kb/model/entity"
|
|
|
|
"github.com/gogf/gf/v2/frame/g"
|
|
)
|
|
|
|
type ListChunkReq struct {
|
|
g.Meta `path:"/list" method:"get" tags:"分块" summary:"分块列表"`
|
|
DocumentId int64 `v:"required" json:"document_id"`
|
|
Page int `json:"page"`
|
|
PageSize int `json:"page_size"`
|
|
}
|
|
|
|
type ListChunkRes struct {
|
|
List []*entity.Chunk `json:"list"`
|
|
Total int `json:"total"`
|
|
Page int `json:"page"`
|
|
PageSize int `json:"page_size"`
|
|
}
|
|
|
|
type UpdateChunkReq struct {
|
|
g.Meta `path:"/update" method:"post" tags:"分块" summary:"编辑分块(改文本后重新向量化)"`
|
|
Id int64 `v:"required" json:"id"`
|
|
Content string `v:"required" json:"content"`
|
|
}
|
|
|
|
type UpdateChunkRes struct{}
|