修复文件插入参数传递问题并优化租户OSS总量查询接口
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user