WH01243 1 rok pred
rodič
commit
896ef9ba39

+ 3 - 0
jyBXSubscribe/rpc/bxsubscribe.go

@@ -39,6 +39,9 @@ func main() {
 	conf.MustLoad(*logFile, &IC.Logc)
 	IC.InitC()
 
+	log.Println(IC.MainMysql)
+	log.Println(IC.MainMysql.FindOne("contract", map[string]interface{}{"id": 1}, "", ""))
+	log.Println(IC.CkJy.SelectBySql("select bitmapToArray(infoids) infoids, userid from jianyu.sub_recommend_list where userid = ?", "1001"))
 	go func() {
 		err := endless.ListenAndServe(":"+MC.InterfaceToStr(IC.C.Webrpcport), nil, func() {})
 		if err != nil {

+ 4 - 5
jyBXSubscribe/rpc/internal/config/config.go

@@ -25,9 +25,8 @@ type Config struct {
 }
 
 type Db struct {
-	Mysql      entity.Mysql      `json:"mysql"`
-	Redis      entity.RedisStuct `json:"redis"`
-	Es         entity.EsStruct   `json:"es"`
-	Mongo      entity.Mongo      `json:"mongo"`
-	ClickHouse entity.Mysql      `json:"clickhouse"`
+	Mysql entity.Mysql      `json:"mysql"`
+	Redis entity.RedisStuct `json:"redis"`
+	Es    entity.EsStruct   `json:"es"`
+	Mongo entity.Mongo      `json:"mongo"`
 }