|
@@ -0,0 +1,33 @@
|
|
|
|
+package models
|
|
|
|
+
|
|
|
|
+import (
|
|
|
|
+ "github.com/beego/beego/v2/client/orm"
|
|
|
|
+)
|
|
|
|
+
|
|
|
|
+// BusinessConf 商户配置表
|
|
|
|
+type BusinessConf struct {
|
|
|
|
+ Id int `orm:"column(id);pk"`
|
|
|
|
+ CompanyName string `description:"公司名称"`
|
|
|
|
+ CompanyWatermark string `description:"公司水印"`
|
|
|
|
+ WatermarkChart int `description:"是否在研报图表使用水印"`
|
|
|
|
+ CnPptCoverImgs string `description:"中文PPT封面图(多图)"`
|
|
|
|
+ CnPptBackgroundImg string `description:"中文PPT背景图"`
|
|
|
|
+ CnPptBottomImg string `description:"中文PPT封底图"`
|
|
|
|
+ Disclaimer string `description:"免责声明"`
|
|
|
|
+ EnPptCoverImgs string `description:"英文PPT封面图(多图)"`
|
|
|
|
+ EnPptBackgroundImg string `description:"英文PPT背景图"`
|
|
|
|
+ EnPptBottomImg string `description:"英文PPT封底图"`
|
|
|
|
+ UseXf int `description:"是否使用科大讯飞:0-否;1-是"`
|
|
|
|
+ XfAppid string `description:"科大讯飞Appid"`
|
|
|
|
+ XfApiKey string `description:"科大讯飞ApiKey"`
|
|
|
|
+ XfApiSecret string `description:"科大讯飞ApiSecret"`
|
|
|
|
+ XfVcn string `description:"科大讯飞Vcn"`
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+// GetBusinessConf 获取商家配置
|
|
|
|
+func GetBusinessConf() (item *BusinessConf, err error) {
|
|
|
|
+ o := orm.NewOrmUsingDB("eta")
|
|
|
|
+ sql := `SELECT * FROM business_conf LIMIT 1`
|
|
|
|
+ err = o.Raw(sql).QueryRow(&item)
|
|
|
|
+ return
|
|
|
|
+}
|