package platform import ( "gitea.redpowerfuture.com/red-future/common/beans" ) // CommercePlatformConfig 电商平台配置实体(下游商品平台对接配置) type CommercePlatformConfig struct { beans.SQLBaseDO `orm:",inherit"` // 业务字段 Name string `orm:"name" json:"name" description:"配置显示名"` Platform string `orm:"platform" json:"platform" description:"电商平台 jd/taobao"` AppKey string `orm:"app_key" json:"appKey" description:"应用Key"` AppSecret string `orm:"app_secret" json:"appSecret" description:"应用密钥"` CallbackURL string `orm:"callback_url" json:"callbackUrl" description:"订单回调接收URL"` Config string `orm:"config" json:"config" description:"平台特定配置(JSON)"` Enabled bool `orm:"enabled" json:"enabled" description:"是否启用"` } // CommercePlatformConfigCol 电商平台配置表字段定义 type CommercePlatformConfigCol struct { beans.SQLBaseCol Name string Platform string AppKey string AppSecret string CallbackURL string Config string Enabled string } // CommercePlatformConfigCols 电商平台配置表字段常量 var CommercePlatformConfigCols = CommercePlatformConfigCol{ SQLBaseCol: beans.DefSQLBaseCol, Name: "name", Platform: "platform", AppKey: "app_key", AppSecret: "app_secret", CallbackURL: "callback_url", Config: "config", Enabled: "enabled", }