PMail/server/models/rule.go
Jinnrry 2660fc7b13
V2.4.7 (#112)
1、添加单测用例
2、mysql初始化bug修复
3、邮件删除bug修复
2024-04-30 14:43:37 +08:00

16 lines
706 B
Go
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package models
type Rule struct {
Id int `xorm:"id int unsigned not null pk autoincr" json:"id"`
UserId int `xorm:"user_id notnull default(0) comment('用户id')" json:"user_id"`
Name string `xorm:"name notnull default('') comment('规则名称')" json:"name"`
Value string `xorm:"value text comment('规则内容')" json:"value"`
Action int `xorm:"action notnull default(0) comment('执行动作,1已读2转发3删除')" json:"action"`
Params string `xorm:"params notnull default('') comment('执行参数')" json:"params"`
Sort int `xorm:"sort notnull default(0) comment('排序,越大约优先')" json:"sort"`
}
func (p *Rule) TableName() string {
return "rule"
}