feat: manually mirror opencoze's code from bytedance

Change-Id: I09a73aadda978ad9511264a756b2ce51f5761adf
This commit is contained in:
fanlv
2025-07-20 17:36:12 +08:00
commit 890153324f
14811 changed files with 1923430 additions and 0 deletions

View 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"
)