修复文件插入参数传递问题并优化租户OSS总量查询接口

This commit is contained in:
2026-01-12 09:11:32 +08:00
parent 8e82851b65
commit 383cccf55f
3 changed files with 7 additions and 13 deletions

View File

@@ -15,6 +15,6 @@ type file struct {
// Insert 插入
func (d *file) Insert(ctx context.Context, entity *entity.File) (err error) {
_, err = mongo.DB().Insert(ctx, []interface{}{entity}, consts.FileCollection)
_, err = mongo.DB().Insert(ctx, []interface{}{&entity}, consts.FileCollection)
return
}