feat: manually mirror opencoze's code from bytedance
Change-Id: I09a73aadda978ad9511264a756b2ce51f5761adf
This commit is contained in:
38
backend/api/model/crossdomain/search/search.go
Normal file
38
backend/api/model/crossdomain/search/search.go
Normal file
@@ -0,0 +1,38 @@
|
||||
package search
|
||||
|
||||
import (
|
||||
resource "github.com/coze-dev/coze-studio/backend/api/model/resource/common"
|
||||
)
|
||||
|
||||
type SearchResourcesRequest struct {
|
||||
SpaceID int64
|
||||
OwnerID int64
|
||||
Name string
|
||||
APPID int64
|
||||
|
||||
OrderFiledName string
|
||||
OrderAsc bool
|
||||
ResTypeFilter []resource.ResType
|
||||
PublishStatusFilter resource.PublishStatus
|
||||
SearchKeys []string
|
||||
|
||||
Cursor string
|
||||
Page *int32
|
||||
Limit int32
|
||||
}
|
||||
|
||||
type SearchResourcesResponse struct {
|
||||
HasMore bool
|
||||
NextCursor string
|
||||
TotalHits *int64
|
||||
|
||||
Data []*ResourceDocument
|
||||
}
|
||||
|
||||
const (
|
||||
FieldOfCreateTime = "create_time"
|
||||
FieldOfUpdateTime = "update_time"
|
||||
FieldOfPublishTime = "publish_time"
|
||||
FieldOfFavTime = "fav_time"
|
||||
FieldOfRecentlyOpenTime = "recently_open_time"
|
||||
)
|
||||
Reference in New Issue
Block a user