|
@@ -1,5 +1,10 @@
|
|
|
package init
|
|
|
|
|
|
+import (
|
|
|
+ "app.yhyue.com/moapp/jybase/common"
|
|
|
+ "log"
|
|
|
+)
|
|
|
+
|
|
|
var PushMapping = &pushMapping{}
|
|
|
|
|
|
type pushMapping struct {
|
|
@@ -13,7 +18,7 @@ type pushMapping struct {
|
|
|
|
|
|
//推送数据 在mysql中 信息类型和地区等存的对应id;查询的时候需进行转化;
|
|
|
func (p *pushMapping) Init() {
|
|
|
- /*infotype := pushServiceMysql.SelectBySql("select id,type,name from infotype")
|
|
|
+ infotype := pushServiceMysql.SelectBySql("select id,type,name from infotype")
|
|
|
p.Toptype = map[string]int{}
|
|
|
p.Subtype = map[string]int{}
|
|
|
p.Buyerclass = map[string]int{}
|
|
@@ -67,5 +72,5 @@ func (p *pushMapping) Init() {
|
|
|
if len(p.City) == 0 {
|
|
|
log.Fatalln("PushMapping City Init Error")
|
|
|
}
|
|
|
- }*/
|
|
|
+ }
|
|
|
}
|