diff --git a/base/res_condition.go b/base/res_condition.go index 277c11c..19187be 100644 --- a/base/res_condition.go +++ b/base/res_condition.go @@ -1,7 +1,8 @@ package base +import "git.fsdpf.net/go/contracts" + type ResCondition struct { - Uuid string `db:"id"` Id int `db:"id"` Pid int `db:"pid"` Type string `db:"type"` @@ -19,3 +20,5 @@ type ResCondition struct { } type GetResConditions func(categoryUuid string) []ResCondition + +type GetOrmConditionByRes func(items []ResCondition) contracts.Condition