From cf81f7ff43533472a7f12865287fdbad516a7a7c Mon Sep 17 00:00:00 2001 From: what Date: Sat, 22 Apr 2023 01:35:38 +0800 Subject: [PATCH] =?UTF-8?q?[fix]=20=E4=BF=AE=E6=AD=A3=20ResCondition=20?= =?UTF-8?q?=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- base/res_condition.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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