This commit is contained in:
1 parent
deba430f2f
commit
9be7a6f990
22 files changed
+1024
-7
No files matched your search
@@ -0,0 +1,19 @@
|
||||
package models
|
||||
|
||||
// NotificationGrant 与业务数据共用数据库,只保存通知发信授权及不可逆凭据摘要。
|
||||
type NotificationGrant struct {
|
||||
UserID int `xorm:"user_id pk" json:"user_id"`
|
||||
Enabled int `xorm:"enabled" json:"-"`
|
||||
CodeVersion int `xorm:"code_version" json:"version"`
|
||||
CodeHash string `xorm:"code_hash" json:"-"`
|
||||
SessionVersion int `xorm:"session_version" json:"-"`
|
||||
SecurityVersion int `xorm:"security_version" json:"-"`
|
||||
MinuteLimit int `xorm:"minute_limit" json:"minute_limit"`
|
||||
DayLimit int `xorm:"day_limit" json:"day_limit"`
|
||||
MinuteKey string `xorm:"minute_key" json:"-"`
|
||||
MinuteCount int `xorm:"minute_count" json:"-"`
|
||||
DayKey string `xorm:"day_key" json:"-"`
|
||||
DayCount int `xorm:"day_count" json:"-"`
|
||||
}
|
||||
|
||||
func (NotificationGrant) TableName() string { return "notification_grant" }
|
||||
Reference in new issue
Block a user