diff --git a/src/model/aliyun_sms_record.go b/src/model/aliyun_sms_record.go index f0888dd..1a3e532 100644 --- a/src/model/aliyun_sms_record.go +++ b/src/model/aliyun_sms_record.go @@ -9,7 +9,7 @@ type AliyunSmsRecord struct { Platform string `json:"platform" xorm:"VARCHAR(255)"` Target string `json:"target" xorm:"VARCHAR(255)"` UserId string `json:"user_id" xorm:"TEXT"` - Level int `json:"level" xorm:"default 0 INT(11)"` + Level string `json:"level" xorm:"TEXT"` Title string `json:"title" xorm:"VARCHAR(255)"` Content string `json:"content" xorm:"VARCHAR(255)"` Skip string `json:"skip" xorm:"TEXT"` diff --git a/src/model/jpush_record.go b/src/model/jpush_record.go index 38e10a0..99a7736 100644 --- a/src/model/jpush_record.go +++ b/src/model/jpush_record.go @@ -9,7 +9,7 @@ type JpushRecord struct { Platform string `json:"platform" xorm:"VARCHAR(255)"` Target string `json:"target" xorm:"VARCHAR(255)"` UserId string `json:"user_id" xorm:"TEXT"` - Level int `json:"level" xorm:"default 0 INT(11)"` + Level string `json:"level" xorm:"TEXT"` Title string `json:"title" xorm:"VARCHAR(255)"` Content string `json:"content" xorm:"VARCHAR(255)"` Skip string `json:"skip" xorm:"TEXT"`