文件存储-定时同步租户文件存储容量信息接口优化

This commit is contained in:
2025-12-29 14:42:56 +08:00
parent 36c9b61db0
commit e65bdeb229
5 changed files with 71 additions and 69 deletions

View File

@@ -7,9 +7,17 @@ import (
"oss/model/entity"
)
var File = &file{}
var File = &file{
NoCache: false,
}
type file struct{}
type file struct {
NoCache bool
}
func (d *file) SetNoCache() {
File.NoCache = true
}
// Insert 插入
func (d *file) Insert(ctx context.Context, entity *entity.File) (err error) {