-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathjd_other.go
186 lines (166 loc) · 8.21 KB
/
jd_other.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
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
package jd
// Deprecated: 使用新接口: PositionService 和 ActivityService
type OtherService interface {
// 查询推广位【申请】
// Deprecated: 使用新接口: PositionService.PositionQuery
// 文档: https://union.jd.com/openplatform/api/10428
PositionQuery(*PositionQueryRequest) (*PositionQueryResult, error)
// 创建推广位【申请】
// Deprecated: 使用新接口: PositionService.PositionCreate
// 文档: https://union.jd.com/openplatform/api/10429
PositionCreate(*PositionCreateRequest) (*PositionCreateResult, error)
// 获取PID【申请】
// Deprecated: 使用新接口: PositionService.UserPidGet
// 文档: https://union.jd.com/openplatform/api/10430
UserPidGet(*UserPidGetRequest) (*UserPidGetResult, error)
// 活动查询接口
// Deprecated: 使用新接口: ActivityService.ActivityQuery
// 文档: https://union.jd.com/openplatform/api/12667
ActivityQuery(*ActivityQueryRequest) (*ActivityQueryResult, error)
// 京享红包效果数据
// Deprecated: 使用新接口: ActivityService.StatisticsRedpacketQuery
// 文档: https://union.jd.com/openplatform/api/14416
StatisticsRedpacketQuery(*StatisticsRedpacketQueryRequest) (*StatisticsRedpacketQueryResult, error)
// 查询推广位【申请】
// Deprecated: 使用新接口: PositionService.PositionQueryResult
// 文档: https://union.jd.com/openplatform/api/10428
PositionQueryResult(*PositionQueryRequest) ([]byte, error)
// 创建推广位【申请】
// Deprecated: 使用新接口: PositionService.PositionCreateResult
// 文档: https://union.jd.com/openplatform/api/10429
PositionCreateResult(*PositionCreateRequest) ([]byte, error)
// 获取PID【申请】
// Deprecated: 使用新接口: PositionService.UserPidGetResult
// 文档: https://union.jd.com/openplatform/api/10430
UserPidGetResult(*UserPidGetRequest) ([]byte, error)
// 活动查询接口
// Deprecated: 使用新接口: ActivityService.ActivityQueryResult
// 文档: https://union.jd.com/openplatform/api/12667
ActivityQueryResult(request *ActivityQueryRequest) ([]byte, error)
// 京享红包效果数据
// Deprecated: 使用新接口: ActivityService.StatisticsRedpacketQueryResult
// 文档: https://union.jd.com/openplatform/api/14416
StatisticsRedpacketQueryResult(request *StatisticsRedpacketQueryRequest) ([]byte, error)
// 查询推广位【申请】
// Deprecated: 使用新接口: PositionService.PositionQueryMap
// 文档: https://union.jd.com/openplatform/api/10428
PositionQueryMap(*PositionQueryRequest) (map[string]interface{}, error)
// 创建推广位【申请】
// Deprecated: 使用新接口: PositionService.PositionCreateMap
// 文档: https://union.jd.com/openplatform/api/10429
PositionCreateMap(*PositionCreateRequest) (map[string]interface{}, error)
// 获取PID【申请】
// Deprecated: 使用新接口: PositionService.UserPidGetMap
// 文档: https://union.jd.com/openplatform/api/10430
UserPidGetMap(*UserPidGetRequest) (map[string]interface{}, error)
// 活动查询接口
// Deprecated: 使用新接口: ActivityService.ActivityQueryMap
// 文档: https://union.jd.com/openplatform/api/12667
ActivityQueryMap(request *ActivityQueryRequest) (map[string]interface{}, error)
// 京享红包效果数据
// Deprecated: 使用新接口: ActivityService.StatisticsRedpacketQueryMap
// 文档: https://union.jd.com/openplatform/api/14416
StatisticsRedpacketQueryMap(request *StatisticsRedpacketQueryRequest) (map[string]interface{}, error)
}
// Deprecated: 使用新接口: OtherServiceImpl 和 ActivityServiceImpl
type OtherServiceImpl struct {
p PositionService
a ActivityService
}
func newOtherService(p PositionService, a ActivityService) OtherService {
return &OtherServiceImpl{
p: p,
a: a,
}
}
// 查询推广位【申请】
// Deprecated: 使用新接口: PositionService.PositionQuery
// 文档: https://union.jd.com/openplatform/api/10428
func (oth *OtherServiceImpl) PositionQuery(request *PositionQueryRequest) (*PositionQueryResult, error) {
return oth.p.PositionQuery(request)
}
// 创建推广位【申请】
// Deprecated: 使用新接口: PositionService.PositionCreate
// 文档: https://union.jd.com/openplatform/api/10429
func (oth *OtherServiceImpl) PositionCreate(request *PositionCreateRequest) (*PositionCreateResult, error) {
return oth.p.PositionCreate(request)
}
// 获取PID【申请】
// Deprecated: 使用新接口: PositionService.UserPidGet
// 文档: https://union.jd.com/openplatform/api/10430
func (oth *OtherServiceImpl) UserPidGet(request *UserPidGetRequest) (*UserPidGetResult, error) {
return oth.p.UserPidGet(request)
}
// 活动查询接口
// Deprecated: 使用新接口: ActivityService.ActivityQuery
// 文档: https://union.jd.com/openplatform/api/12667
func (oth *OtherServiceImpl) ActivityQuery(request *ActivityQueryRequest) (*ActivityQueryResult, error) {
return oth.a.ActivityQuery(request)
}
// 京享红包效果数据
// Deprecated: 使用新接口: ActivityService.StatisticsRedpacketQuery
// 文档: https://union.jd.com/openplatform/api/14416
func (oth *OtherServiceImpl) StatisticsRedpacketQuery(request *StatisticsRedpacketQueryRequest) (*StatisticsRedpacketQueryResult, error) {
return oth.a.StatisticsRedpacketQuery(request)
}
// 查询推广位【申请】
// Deprecated: 使用新接口: PositionService.PositionQueryResult
// 文档: https://union.jd.com/openplatform/api/10428
func (oth *OtherServiceImpl) PositionQueryResult(request *PositionQueryRequest) ([]byte, error) {
return oth.p.PositionQueryResult(request)
}
// 创建推广位【申请】
// Deprecated: 使用新接口: PositionService.PositionCreateResult
// 文档: https://union.jd.com/openplatform/api/10429
func (oth *OtherServiceImpl) PositionCreateResult(request *PositionCreateRequest) ([]byte, error) {
return oth.p.PositionCreateResult(request)
}
// 获取PID【申请】
// Deprecated: 使用新接口: PositionService.UserPidGetResult
// 文档: https://union.jd.com/openplatform/api/10430
func (oth *OtherServiceImpl) UserPidGetResult(request *UserPidGetRequest) ([]byte, error) {
return oth.p.UserPidGetResult(request)
}
// 活动查询接口
// Deprecated: 使用新接口: ActivityService.ActivityQueryResult
// 文档: https://union.jd.com/openplatform/api/12667
func (oth *OtherServiceImpl) ActivityQueryResult(request *ActivityQueryRequest) ([]byte, error) {
return oth.a.ActivityQueryResult(request)
}
// 京享红包效果数据
// Deprecated: 使用新接口: ActivityService.StatisticsRedpacketQueryResult
// 文档: https://union.jd.com/openplatform/api/14416
func (oth *OtherServiceImpl) StatisticsRedpacketQueryResult(request *StatisticsRedpacketQueryRequest) ([]byte, error) {
return oth.a.StatisticsRedpacketQueryResult(request)
}
// 查询推广位【申请】
// Deprecated: 使用新接口: PositionService.PositionQueryMap
// 文档: https://union.jd.com/openplatform/api/10428
func (oth *OtherServiceImpl) PositionQueryMap(request *PositionQueryRequest) (map[string]interface{}, error) {
return oth.p.PositionQueryMap(request)
}
// 创建推广位【申请】
// Deprecated: 使用新接口: PositionService.PositionCreateMap
// 文档: https://union.jd.com/openplatform/api/10429
func (oth *OtherServiceImpl) PositionCreateMap(request *PositionCreateRequest) (map[string]interface{}, error) {
return oth.p.PositionCreateMap(request)
}
// 获取PID【申请】
// Deprecated: 使用新接口: PositionService.UserPidGetMap
// 文档: https://union.jd.com/openplatform/api/10430
func (oth *OtherServiceImpl) UserPidGetMap(request *UserPidGetRequest) (map[string]interface{}, error) {
return oth.p.UserPidGetMap(request)
}
// 活动查询接口
//
// Deprecated: 使用新接口: ActivityService.ActivityQueryMap
// 文档: https://union.jd.com/openplatform/api/12667
func (oth *OtherServiceImpl) ActivityQueryMap(request *ActivityQueryRequest) (map[string]interface{}, error) {
return oth.a.ActivityQueryMap(request)
}
// 京享红包效果数据
// Deprecated: 使用新接口: ActivityService.StatisticsRedpacketQueryMap
// 文档: https://union.jd.com/openplatform/api/14416
func (oth *OtherServiceImpl) StatisticsRedpacketQueryMap(request *StatisticsRedpacketQueryRequest) (map[string]interface{}, error) {
return oth.a.StatisticsRedpacketQueryMap(request)
}