package model import "time" type Message struct { ID int `gorm:"primary_key;AUTO_INCREMENT"` MsgTypeID int `gorm:"column:msg_type_id"` RemindTypeID int `gorm:"column:remind_type_id"` MsgContent string `gorm:"column:msg_content"` Target string `gorm:"column:target"` CreatedAt time.Time `gorm:"column:create_at"` UpdateAt time.Time `gorm:"column:update_at"` status int `gorm:"column:status"` PushCount int `gorm:"column:push_count"` PushLimit int `gorm:"column:push_limit"` } type MessageType struct { SysName string `json:"sys_name" gorm:"sys_name"` ID int `json:"id" gorm:"id"` PastureID int `json:"pasture_id" gorm:"pasture_id"` TypeName string `json:"type_name" gorm:"type_name"` RemindTypeID int `json:"remind_type_id" gorm:"remind_type_id"` RemindType string `json:"remind_type" gorm:"remind_type"` PushDate string `json:"push_date" gorm:"push_date"` PushTime string `json:"push_time" gorm:"push_time"` IntervalTime int `json:"interval_time" gorm:"interval_time"` PushLimit int `json:"push_limit" gorm:"push_limit"` TemplateID string `json:"template_id" gorm:"template_id"` Roles string `json:"roles_id" gorm:"roles_id"` Users string `json:"users_id" gorm:"users_id"` }