feat(规则): 支持名称代号,便于区分和管理
创建与更新规则时必填全局唯一 name,已有规则迁移回填为 rule-{id}。
This commit is contained in:
@@ -37,6 +37,7 @@ type Channel struct {
|
||||
|
||||
type Rule struct {
|
||||
ID int `db:"id" json:"id"`
|
||||
Name string `db:"name" json:"name"`
|
||||
SourceID int `db:"source_id" json:"source_id"`
|
||||
Event string `db:"event" json:"event"`
|
||||
TemplateID int `db:"template_id" json:"template_id"`
|
||||
|
||||
Reference in New Issue
Block a user