refactor: 重命名集合常量并优化配置注释

This commit is contained in:
2026-03-27 10:59:54 +08:00
parent 12a743d8da
commit 7b8caaca53
5 changed files with 28 additions and 24 deletions

View File

@@ -20,7 +20,7 @@ func (d *file) Insert(ctx context.Context, req *dto.UploadFile) (id int64, err e
if err = gconv.Struct(req, &res); err != nil {
return
}
r, err := gfdb.DB(ctx).Model(ctx, consts.FileCollection).Insert(&res)
r, err := gfdb.DB(ctx).Model(ctx, consts.TableNameFile).Insert(&res)
if err != nil {
return
}