package models import "time" type WechatMiniConfig struct { ID uint64 `orm:"column(id);pk;auto" json:"id"` AppID string `orm:"column(app_id);size(64)" json:"app_id"` AppSecret string `orm:"column(app_secret);size(512)" json:"-"` Enabled int8 `orm:"column(enabled);default(0)" json:"enabled"` AutoBind int8 `orm:"column(auto_bind);default(1)" json:"auto_bind"` Remark string `orm:"column(remark);size(255)" json:"remark"` CreateTime time.Time `orm:"column(create_time);type(datetime);auto_now_add" json:"create_time"` UpdateTime *time.Time `orm:"column(update_time);type(datetime);null" json:"update_time"` } func (m *WechatMiniConfig) TableName() string { return "yz_platform_wechat_mini_config" } type WechatMiniApp struct { ID uint64 `orm:"column(id);pk;auto" json:"id"` Name string `orm:"column(name);size(128);default('')" json:"name"` AppID string `orm:"column(app_id);size(64)" json:"app_id"` AppSecret string `orm:"column(app_secret);size(512)" json:"-"` QrcodeURL string `orm:"column(qrcode_url);size(512);default('')" json:"qrcode_url"` Token string `orm:"column(token);size(128);default('')" json:"token"` AESKey string `orm:"column(aes_key);size(512);default('')" json:"-"` EncryptMode string `orm:"column(encrypt_mode);size(16);default('plain')" json:"encrypt_mode"` DataFormat string `orm:"column(data_format);size(16);default('xml')" json:"data_format"` PushReply string `orm:"column(push_reply);size(512);default('')" json:"push_reply"` Enabled int8 `orm:"column(enabled);default(0)" json:"enabled"` AutoBind int8 `orm:"column(auto_bind);default(1)" json:"auto_bind"` Remark string `orm:"column(remark);size(255)" json:"remark"` CreateTime time.Time `orm:"column(create_time);type(datetime);auto_now_add" json:"create_time"` UpdateTime *time.Time `orm:"column(update_time);type(datetime);null" json:"update_time"` DeleteTime *time.Time `orm:"column(delete_time);type(datetime);null" json:"delete_time"` } func (m *WechatMiniApp) TableName() string { return "yz_platform_wechat_mini_app" } type WechatMiniTemplate struct { ID uint64 `orm:"column(id);pk;auto" json:"id"` AppID string `orm:"column(app_id);size(64)" json:"app_id"` Code string `orm:"column(code);size(64)" json:"code"` TemplateID string `orm:"column(template_id);size(128)" json:"template_id"` Title string `orm:"column(title);size(255);default('')" json:"title"` Page string `orm:"column(page);size(255);default('')" json:"page"` Fields string `orm:"column(fields);type(text);null" json:"fields"` Enabled int8 `orm:"column(enabled);default(1)" json:"enabled"` Remark string `orm:"column(remark);size(255)" json:"remark"` CreateTime time.Time `orm:"column(create_time);type(datetime);auto_now_add" json:"create_time"` UpdateTime *time.Time `orm:"column(update_time);type(datetime);null" json:"update_time"` DeleteTime *time.Time `orm:"column(delete_time);type(datetime);null" json:"delete_time"` } func (m *WechatMiniTemplate) TableName() string { return "yz_platform_wechat_mini_template" } type WechatMiniSubscribe struct { ID uint64 `orm:"column(id);pk;auto" json:"id"` IdentityID uint64 `orm:"column(identity_id)" json:"identity_id"` AppID string `orm:"column(app_id);size(64)" json:"app_id"` TemplateID string `orm:"column(template_id);size(128)" json:"template_id"` Remain int `orm:"column(remain);default(0)" json:"remain"` UpdateTime *time.Time `orm:"column(update_time);type(datetime);null" json:"update_time"` CreateTime time.Time `orm:"column(create_time);type(datetime);auto_now_add" json:"create_time"` } func (m *WechatMiniSubscribe) TableName() string { return "yz_platform_wechat_mini_subscribe" }