From 90380298abd9781b3a51ba84bce3aba55ac405aa Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Mon, 25 Nov 2024 17:47:04 +0800 Subject: [PATCH] =?UTF-8?q?=E9=98=BF=E9=87=8C=E4=BA=91=E7=9F=AD=E4=BF=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/model/aliyun_sms_record.go | 7 ++++--- src/model/jpush_record.go | 5 +++-- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/model/aliyun_sms_record.go b/src/model/aliyun_sms_record.go index c828733..92dd018 100644 --- a/src/model/aliyun_sms_record.go +++ b/src/model/aliyun_sms_record.go @@ -9,15 +9,16 @@ type AliyunSmsRecord struct { Platform string `json:"platform" xorm:"VARCHAR(255)"` Target string `json:"target" xorm:"VARCHAR(255)"` UserId string `json:"user_id" xorm:"TEXT"` - Phone string `json:"phone" xorm:"TEXT"` Level int `json:"level" xorm:"default 0 INT(11)"` Title string `json:"title" xorm:"VARCHAR(255)"` Content string `json:"content" xorm:"VARCHAR(255)"` Skip string `json:"skip" xorm:"TEXT"` - SendType int `json:"send_type" xorm:"default 0 INT(1)"` - State int `json:"state" xorm:"default 0 INT(1)"` + SendType int `json:"send_type" xorm:"default 0 comment('0马上 1定时') INT(1)"` SendStartTime time.Time `json:"send_start_time" xorm:"DATETIME"` SendEndTime time.Time `json:"send_end_time" xorm:"DATETIME"` CreateAt time.Time `json:"create_at" xorm:"DATETIME"` UpdateAt time.Time `json:"update_at" xorm:"DATETIME"` + State int `json:"state" xorm:"default 0 INT(1)"` + Phone string `json:"phone" xorm:"TEXT"` + IsRun int `json:"is_run" xorm:"default 0 INT(1)"` } diff --git a/src/model/jpush_record.go b/src/model/jpush_record.go index 9c4a76c..a3ede4c 100644 --- a/src/model/jpush_record.go +++ b/src/model/jpush_record.go @@ -13,10 +13,11 @@ type JpushRecord struct { Title string `json:"title" xorm:"VARCHAR(255)"` Content string `json:"content" xorm:"VARCHAR(255)"` Skip string `json:"skip" xorm:"TEXT"` - SendType int `json:"send_type" xorm:"default 0 INT(1)"` - State int `json:"state" xorm:"default 0 INT(1)"` + SendType int `json:"send_type" xorm:"default 0 comment('0马上 1定时') INT(1)"` SendStartTime time.Time `json:"send_start_time" xorm:"DATETIME"` SendEndTime time.Time `json:"send_end_time" xorm:"DATETIME"` CreateAt time.Time `json:"create_at" xorm:"DATETIME"` UpdateAt time.Time `json:"update_at" xorm:"DATETIME"` + State int `json:"state" xorm:"default 0 INT(1)"` + IsRun int `json:"is_run" xorm:"default 0 INT(1)"` }