[feat] 命名规范 GetOrmConditionByRes => GetOrmConditions
This commit is contained in:
@@ -43,7 +43,7 @@ type OperationAccess struct {
|
||||
}
|
||||
|
||||
func (o Operation) ToDBColumn(model contracts.Model, container *do.Injector) (column db.Expression, field reflect.StructField) {
|
||||
GetOrmConditionByRes := do.MustInvoke[contracts.GetOrmConditionByRes](container)
|
||||
GetOrmConditions := do.MustInvoke[contracts.GetOrmConditions](container)
|
||||
|
||||
uuid := strings.ReplaceAll(o.Uuid, "-", "_")
|
||||
|
||||
@@ -52,7 +52,7 @@ func (o Operation) ToDBColumn(model contracts.Model, container *do.Injector) (co
|
||||
|
||||
cond := lo.Ternary(o.AccessCondition != nil, o.AccessCondition, condition.New(condition.Describe("operation access condition "+uuid)))
|
||||
|
||||
if c := GetOrmConditionByRes(o.Uuid, "operation access condition "+uuid); c.IsNotEmpty() {
|
||||
if c := GetOrmConditions(o.Uuid, "operation access condition "+uuid); c.IsNotEmpty() {
|
||||
cond.SetCondition(c)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user