|
@@ -17,37 +17,38 @@ const (
|
|
|
)
|
|
|
|
|
|
type SubPushList struct {
|
|
|
- Id string `json:"_id"`
|
|
|
- Title string `json:"title"`
|
|
|
- Area string `json:"area"`
|
|
|
- BuyerClass string `json:"buyerClass"`
|
|
|
- Subtype string `json:"subtype"`
|
|
|
- Industry string `json:"industry"`
|
|
|
- PublishTime int64 `json:"publishTime"`
|
|
|
- Ca_index int64 `json:"ca_index"`
|
|
|
- Ca_date int64 `json:"ca_date"`
|
|
|
- Ca_isvisit int `json:"ca_isvisit"`
|
|
|
- Ca_isvip int `json:"ca_isvip"`
|
|
|
- Ca_type int `json:"ca_type"`
|
|
|
- Ca_fileExists bool `json:"ca_fileExists"`
|
|
|
- MatchKeys []string `json:"matchKeys"`
|
|
|
- Budget interface{} `json:"budget"`
|
|
|
- BidAmount interface{} `json:"bidAmount"`
|
|
|
- Collection int `json:"collection"`
|
|
|
- Buyer string `json:"buyer"`
|
|
|
- ProjectName string `json:"projectName"`
|
|
|
- Winner string `json:"winner"`
|
|
|
- BidOpenTime int64 `json:"bidOpenTime"`
|
|
|
- Source int64 `json:"source"`
|
|
|
- WinnerInfo []*WinnerInfo `json:"winnerInfo"`
|
|
|
- Site string `json:"site"`
|
|
|
- BuyerTel string `json:"buyerTel"`
|
|
|
- BuyerPerson string `json:"buyerPerson"`
|
|
|
- Agency string `json:"agency"`
|
|
|
- AgencyPerson string `json:"agencyPerson"`
|
|
|
- AgencyTel string `json:"agencyTel"`
|
|
|
- SignendTime int64 `json:"signendTime"`
|
|
|
- BidendTime int64 `json:"bidendTime"`
|
|
|
+ Id string `json:"_id"`
|
|
|
+ Title string `json:"title"`
|
|
|
+ Area string `json:"area"`
|
|
|
+ BuyerClass string `json:"buyerClass"`
|
|
|
+ Subtype string `json:"subtype"`
|
|
|
+ Industry string `json:"industry"`
|
|
|
+ PublishTime int64 `json:"publishTime"`
|
|
|
+ Ca_index int64 `json:"ca_index"`
|
|
|
+ Ca_date int64 `json:"ca_date"`
|
|
|
+ Ca_isvisit int `json:"ca_isvisit"`
|
|
|
+ Ca_isvip int `json:"ca_isvip"`
|
|
|
+ Ca_type int `json:"ca_type"`
|
|
|
+ Ca_fileExists bool `json:"ca_fileExists"`
|
|
|
+ MatchKeys []string `json:"matchKeys"`
|
|
|
+ Budget interface{} `json:"budget"`
|
|
|
+ BidAmount interface{} `json:"bidAmount"`
|
|
|
+ Collection int `json:"collection"`
|
|
|
+ Buyer string `json:"buyer"`
|
|
|
+ ProjectName string `json:"projectName"`
|
|
|
+ Winner string `json:"winner"`
|
|
|
+ BidOpenTime int64 `json:"bidOpenTime"`
|
|
|
+ Source int64 `json:"source"`
|
|
|
+ WinnerInfo []*WinnerInfo `json:"winnerInfo"`
|
|
|
+ Site string `json:"site"`
|
|
|
+ BuyerTel string `json:"buyerTel"`
|
|
|
+ BuyerPerson string `json:"buyerPerson"`
|
|
|
+ Agency string `json:"agency"`
|
|
|
+ AgencyPerson string `json:"agencyPerson"`
|
|
|
+ AgencyTel string `json:"agencyTel"`
|
|
|
+ SignendTime int64 `json:"signendTime"`
|
|
|
+ BidendTime int64 `json:"bidendTime"`
|
|
|
+ Filetext_search bool `json:"filetext_search"`
|
|
|
}
|
|
|
|
|
|
//
|
|
@@ -65,15 +66,16 @@ type SubPush struct {
|
|
|
}
|
|
|
|
|
|
type PushCa struct {
|
|
|
- Date int64
|
|
|
- InfoId string
|
|
|
- Visit int
|
|
|
- Keys []string
|
|
|
- Type int
|
|
|
- Isvip int
|
|
|
- FileExists bool
|
|
|
- Source int64
|
|
|
- Info *map[string]interface{}
|
|
|
+ Date int64
|
|
|
+ InfoId string
|
|
|
+ Visit int
|
|
|
+ Keys []string
|
|
|
+ Type int
|
|
|
+ Isvip int
|
|
|
+ FileExists bool
|
|
|
+ Source int64
|
|
|
+ Info *map[string]interface{}
|
|
|
+ Filetext_search bool
|
|
|
}
|
|
|
|
|
|
type Cache struct {
|
|
@@ -152,35 +154,36 @@ func NewSubPushList(pushCas []*PushCa) []*SubPushList {
|
|
|
}
|
|
|
}
|
|
|
subPushList = append(subPushList, &SubPushList{
|
|
|
- Id: EncodeArticleId2ByCheck(_id),
|
|
|
- Title: ObjToString((*info)["title"]),
|
|
|
- Area: area,
|
|
|
- BuyerClass: ObjToString((*info)["buyerclass"]),
|
|
|
- Subtype: infotype,
|
|
|
- Industry: industry,
|
|
|
- PublishTime: Int64All((*info)["publishtime"]),
|
|
|
- Ca_date: p.Date,
|
|
|
- Ca_isvisit: p.Visit,
|
|
|
- Ca_isvip: p.Isvip,
|
|
|
- Ca_type: p.Type,
|
|
|
- Ca_fileExists: p.FileExists,
|
|
|
- MatchKeys: p.Keys,
|
|
|
- Budget: (*info)["budget"],
|
|
|
- BidAmount: (*info)["bidamount"],
|
|
|
- Buyer: ObjToString((*info)["buyer"]),
|
|
|
- ProjectName: ObjToString((*info)["projectname"]),
|
|
|
- Winner: winner,
|
|
|
- BidOpenTime: Int64All((*info)["bidopentime"]),
|
|
|
- Source: p.Source,
|
|
|
- Site: ObjToString((*info)["site"]),
|
|
|
- BuyerTel: ObjToString((*info)["buyerTel"]),
|
|
|
- BuyerPerson: ObjToString((*info)["buyerPerson"]),
|
|
|
- Agency: ObjToString((*info)["agency"]),
|
|
|
- AgencyPerson: ObjToString((*info)["agencyPerson"]),
|
|
|
- AgencyTel: ObjToString((*info)["agencyTel"]),
|
|
|
- SignendTime: Int64All((*info)["signendTime"]),
|
|
|
- BidendTime: Int64All((*info)["bidendTime"]),
|
|
|
- WinnerInfo: winnerInfo,
|
|
|
+ Id: EncodeArticleId2ByCheck(_id),
|
|
|
+ Title: ObjToString((*info)["title"]),
|
|
|
+ Area: area,
|
|
|
+ BuyerClass: ObjToString((*info)["buyerclass"]),
|
|
|
+ Subtype: infotype,
|
|
|
+ Industry: industry,
|
|
|
+ PublishTime: Int64All((*info)["publishtime"]),
|
|
|
+ Ca_date: p.Date,
|
|
|
+ Ca_isvisit: p.Visit,
|
|
|
+ Ca_isvip: p.Isvip,
|
|
|
+ Ca_type: p.Type,
|
|
|
+ Ca_fileExists: p.FileExists,
|
|
|
+ MatchKeys: p.Keys,
|
|
|
+ Budget: (*info)["budget"],
|
|
|
+ BidAmount: (*info)["bidamount"],
|
|
|
+ Buyer: ObjToString((*info)["buyer"]),
|
|
|
+ ProjectName: ObjToString((*info)["projectname"]),
|
|
|
+ Winner: winner,
|
|
|
+ BidOpenTime: Int64All((*info)["bidopentime"]),
|
|
|
+ Source: p.Source,
|
|
|
+ Site: ObjToString((*info)["site"]),
|
|
|
+ BuyerTel: ObjToString((*info)["buyerTel"]),
|
|
|
+ BuyerPerson: ObjToString((*info)["buyerPerson"]),
|
|
|
+ Agency: ObjToString((*info)["agency"]),
|
|
|
+ AgencyPerson: ObjToString((*info)["agencyPerson"]),
|
|
|
+ AgencyTel: ObjToString((*info)["agencyTel"]),
|
|
|
+ SignendTime: Int64All((*info)["signendTime"]),
|
|
|
+ BidendTime: Int64All((*info)["bidendTime"]),
|
|
|
+ WinnerInfo: winnerInfo,
|
|
|
+ Filetext_search: p.Filetext_search,
|
|
|
})
|
|
|
}
|
|
|
return subPushList
|