-
Notifications
You must be signed in to change notification settings - Fork 156
/
responsePOI.go
53 lines (44 loc) · 1.69 KB
/
responsePOI.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
package response
import "github.com/ArtisanCloud/PowerWeChat/v3/src/kernel/response"
type Photo struct {
PhotoUrl string `json:"photo_url"`
}
type BusinessInfo struct {
PoiID string `json:"poi_id"`
SID string `json:"sid"`
BusinessName string `json:"business_name"`
BranchName string `json:"branch_name"`
Province string `json:"province"`
City string `json:"city"`
Address string `json:"address"`
Telephone string `json:"telephone"`
Categories []string `json:"categories"`
OffsetType int `json:"offset_type"`
Longitude float64 `json:"longitude"`
Latitude float64 `json:"latitude"`
PhotoList []*Photo `json:"photo_list"`
Recommend string `json:"recommend"`
Special string `json:"special"`
Introduction string `json:"introduction"`
OpenTime string `json:"open_time"`
AvgPrice int `json:"avg_price"`
AvailableState int `json:"available_state"`
UpdateStatus int `json:"update_status"`
Status int `json:"status"`
District string `json:"district"`
QualificationNum string `json:"qualification_num"`
QualificationName string `json:"qualification_name"`
}
type Business struct {
BaseInfo *BusinessInfo `json:"base_info"`
}
type ResponsePOIGet struct {
response.ResponseOfficialAccount
Business *Business `json:"business"`
}
// ------------------------------------------------------------
type ResponsePOIList struct {
BaseInfo *BusinessInfo `json:"base_info"`
BusinessList []*Business `json:"business_list"`
TotalCount string `json:"total_count"`
}