From c7ec5e7a2762eb9cd2c9d2a23fc1de4677161a30 Mon Sep 17 00:00:00 2001 From: zhangzengfei <zhangzengfei@smartai.com> Date: 星期二, 11 二月 2025 10:14:08 +0800 Subject: [PATCH] 完善参数 --- db/model_rule.go | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/db/model_rule.go b/db/model_rule.go index a6aab41..9244338 100644 --- a/db/model_rule.go +++ b/db/model_rule.go @@ -17,19 +17,20 @@ RuleArg struct { Alias string `gorm:"column:alias" json:"alias"` // 鍙傛暟鐨勫埆鍚� Name string `gorm:"column:name" json:"name"` // 鍙傛暟鍚嶇О - Type string `gorm:"column:type" json:"type"` // 鍙傛暟绫诲瀷: input, option, range, image + Type string `gorm:"column:type" json:"type"` // 鍙傛暟绫诲瀷: input, select, range, image Must bool `gorm:"column:must" json:"must"` // 鏄惁蹇呭~ Unit string `gorm:"column:unit" json:"unit"` // 鍗曚綅 Range string `gorm:"column:range" json:"range"` // 鍊肩殑鑼冨洿锛宔g锛�0,100琛ㄧず浠�0鍒�100 Value string `gorm:"column:value" json:"value"` // 鍙傛暟鍊� ValType string `gorm:"column:val_type" json:"valType"` // 鍙傛暟鍊肩被鍨� int, string, bool Operator string `gorm:"column:operator" json:"operator"` // 杩愮畻绗� + Options string `gorm:"column:options" json:"options"` // 閫夐」鐨勫閫夊弬鏁� Sort int `gorm:"column:sort;default:0" json:"sort"` // 鍙傛暟椤哄簭 } ModelRuleSet struct { Alias string `json:"alias"` // 鍙傛暟鐨勫埆鍚� - Type string `json:"type"` // 鍙傛暟绫诲瀷: input, option, range, image + Type string `json:"type"` // 鍙傛暟绫诲瀷: input, select, range, image Name string `json:"name"` // 鍙傛暟鍚嶇О Value interface{} `json:"value"` // 鍙傛暟鍊� ValType string `json:"valType"` // 鍊肩被鍨� -- Gitblit v1.8.0