-
Notifications
You must be signed in to change notification settings - Fork 174
/
responseStore.go
151 lines (112 loc) · 3.54 KB
/
responseStore.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
package response
import (
"github.com/ArtisanCloud/PowerWeChat/v3/src/kernel/response"
response2 "github.com/ArtisanCloud/PowerWeChat/v3/src/officialAccount/poi/response"
)
type Inner struct {
Name string `json:"name"`
}
type Exter struct {
InnerList []*Inner `json:"inner_list"`
}
type Qualify struct {
ExterList []*Exter `json:"exter_list"`
}
type Category struct {
ID int `json:"id"`
Name string `json:"name"`
Level int `json:"level"`
Children []int `json:"children"`
Father int `json:"father,omitempty"`
Qualify *Qualify `json:"qualify,omitempty"`
Scene int `json:"scene,omitempty"`
SensitiveType int `json:"sensitive_type,omitempty"`
}
type AllCategoryInfo struct {
Categories []*Category `json:"categories"`
}
type Store struct {
AllCategoryInfo *AllCategoryInfo `json:"all_category_info"`
}
type ResponseStoreCategory struct {
*response.ResponseOfficialAccount
Data Store `json:"data"`
}
// -------------------------------------------------------
type Location struct {
Lat float64 `json:"lat"`
Lng float64 `json:"lng"`
}
type Result struct {
ID string `json:"id"`
Name string `json:"name,omitempty"`
FullName string `json:"fullname"`
PinYin []string `json:"pinyin,omitempty"`
Location *Location `json:"location"`
CIDX []int `json:"cidx,omitempty"`
}
type ResponseStoreDistrict struct {
*response.ResponseOfficialAccount
Status int `json:"status"`
Message string `json:"message"`
DataVersion string `json:"data_version"`
Result [][]*Result `json:"result"`
}
// -------------------------------------------------------
type DataPIO struct {
Item []interface{} `json:"item"`
}
type ResponseStoreSearchMapPIO struct {
*response.ResponseOfficialAccount
Data *DataPIO `json:"data"`
}
// -------------------------------------------------------
type ResponseStoreGetStatus struct {
*response.ResponseOfficialAccount
FirstCatID int `json:"first_catid"`
SecondCatID int `json:"second_catid"`
QualificationList string `json:"qualification_list"`
HeadImgMediaID string `json:"headimg_mediaid"`
NickName string `json:"nickname"`
Intro string `json:"intro"`
OrgCode string `json:"org_code"`
OtherFiles string `json:"other_files"`
}
// -------------------------------------------------------
type CreateStoreFromMap struct {
BaseID int `json:"base_id"`
RichID int `json:"rich_id"`
}
type ResponseStoreCreateFromMap struct {
*response.ResponseOfficialAccount
Error interface{} `json:"error"`
Data CreateStoreFromMap `json:"data"`
}
// -------------------------------------------------------
type CreateStore struct {
AuditID int `json:"audit_id"`
}
type ResponseStoreCreate struct {
*response.ResponseOfficialAccount
Data CreateStore `json:"data"`
}
// -------------------------------------------------------
type UpdateStore struct {
HasAuditId int `json:"has_audit_id"`
AuditId int `json:"audit_id"`
}
type ResponseStoreUpdate struct {
*response.ResponseOfficialAccount
Data UpdateStore `json:"data"`
}
// -------------------------------------------------------
type ResponseStoreInfo struct {
*response.ResponseOfficialAccount
Business response2.Business `json:"business"`
}
// -------------------------------------------------------
type ResponseStoreList struct {
*response.ResponseOfficialAccount
BusinessList []*response2.Business `json:"business_list"`
TotalCount int `json:"total_count"`
}