feat: 角色创建与赋权、文件管理单页多级目录与上传可下载、api上传目录可写卷
Made-with: Cursor
This commit is contained in:
@@ -56,11 +56,12 @@ type FeatureItem struct {
|
||||
|
||||
// SiteAsset 站点功能模块/上传文件
|
||||
type SiteAsset struct {
|
||||
ID bson.ObjectID `bson:"_id,omitempty" json:"id"`
|
||||
SiteID string `bson:"site_id" json:"site_id"`
|
||||
Name string `bson:"name" json:"name"`
|
||||
FilePath string `bson:"file_path" json:"file_path"` // 相对路径
|
||||
Size int64 `bson:"size" json:"size"`
|
||||
ContentType string `bson:"content_type" json:"content_type"`
|
||||
CreatedAt string `bson:"created_at" json:"created_at"`
|
||||
ID bson.ObjectID `bson:"_id,omitempty" json:"id"`
|
||||
SiteID string `bson:"site_id" json:"site_id"`
|
||||
Name string `bson:"name" json:"name"`
|
||||
FilePath string `bson:"file_path" json:"file_path"` // 相对路径,可含多级目录
|
||||
Size int64 `bson:"size" json:"size"`
|
||||
ContentType string `bson:"content_type" json:"content_type"`
|
||||
Downloadable bool `bson:"downloadable" json:"downloadable"` // 是否允许下载
|
||||
CreatedAt string `bson:"created_at" json:"created_at"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user