[fix] 修正 ResCondition 字段

This commit is contained in:
what 2023-04-22 01:35:38 +08:00
parent 64c1088c25
commit cf81f7ff43

View File

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