|
@@ -419,3 +419,30 @@ func IndustrialManagementHotMapGropuPermission() (mapResp map[int]bool, err erro
|
|
|
}
|
|
|
return
|
|
|
}
|
|
|
+
|
|
|
+// GetCygxIndustryFllowListTypeMapByMobile 根据手机号获取产业关注的信息
|
|
|
+func GetCygxIndustryFllowListTypeMapByMobile(mobile string) (mapFollowTypeResp map[int]int) {
|
|
|
+ if mobile == "" {
|
|
|
+ return
|
|
|
+ }
|
|
|
+ var err error
|
|
|
+ defer func() {
|
|
|
+ if err != nil {
|
|
|
+ fmt.Println("err:", err)
|
|
|
+ go utils.SendAlarmMsg(fmt.Sprint("根据手机号获取产业关注的信息 失败,GetCygxIndustryFllowListTypeMapByMobile Err:"+err.Error()+"mobile", mobile), 3)
|
|
|
+ }
|
|
|
+ }()
|
|
|
+
|
|
|
+ mapFollowTypeResp = make(map[int]int, 0)
|
|
|
+ fllowList, e := models.GetCygxIndustryFllowList(mobile)
|
|
|
+ //策略的处理
|
|
|
+ if e != nil {
|
|
|
+ err = errors.New("GetUserFllowIndustrialList, Err: " + err.Error())
|
|
|
+ return
|
|
|
+ }
|
|
|
+ for _, v := range fllowList {
|
|
|
+ mapFollowTypeResp[v.IndustrialManagementId] = v.FollowType
|
|
|
+ }
|
|
|
+
|
|
|
+ return
|
|
|
+}
|