36 lines
862 B
Go
36 lines
862 B
Go
package dto
|
|
|
|
import (
|
|
"rag-local/kb/model/entity"
|
|
|
|
"github.com/gogf/gf/v2/frame/g"
|
|
)
|
|
|
|
type ListKgEntityReq struct {
|
|
g.Meta `path:"/list" method:"get" tags:"知识图谱" summary:"实体列表"`
|
|
DatasetId int64 `json:"dataset_id"`
|
|
Page int `json:"page"`
|
|
PageSize int `json:"page_size"`
|
|
}
|
|
|
|
type ListKgEntityRes struct {
|
|
List []*entity.KgEntity `json:"list"`
|
|
Total int `json:"total"`
|
|
Page int `json:"page"`
|
|
PageSize int `json:"page_size"`
|
|
}
|
|
|
|
type SourcesKgEntityReq struct {
|
|
g.Meta `path:"/sources" method:"get" tags:"知识图谱" summary:"实体来源文件清单"`
|
|
DatasetId int64 `json:"dataset_id"`
|
|
}
|
|
|
|
type KgEntitySourceItem struct {
|
|
Name string `json:"name"`
|
|
Files []string `json:"files"`
|
|
}
|
|
|
|
type SourcesKgEntityRes struct {
|
|
List []*KgEntitySourceItem `json:"list"`
|
|
}
|