-
Notifications
You must be signed in to change notification settings - Fork 0
/
taobao_request.go
105 lines (85 loc) · 2.46 KB
/
taobao_request.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
package taobao
type TaobaoRequest interface {
Check() *ApiRuleError
GetApiMethodName() string
GetBatchApiOrder() int
GetBatchApiSession() string
GetHeaderMap() map[string]string
GetTargetAppKey() string
GetTextParams() map[string]interface{}
GetTimestamp() int64
GetTopApiCallType() string
GetTopApiFormat() string
GetTopApiVersion() string
GetTopContentType() string
GetTopHttpMethod() string
GetTopResponseType() string
SetBatchApiOrder(i int)
SetBatchApiSession(str string)
SetTopApiCallType(str string)
SetTopApiFormat(str string)
SetTopApiVersion(str string)
SetTopContentType(str string)
SetTopHttpMethod(str string)
SetTopResponseType(str string)
// Response
GetRespInstance() interface{}
GetTaobaoResp() *TaobaoResponse
}
type SimpleTaobaoRequest struct{}
func (str *SimpleTaobaoRequest) Check() *ApiRuleError {
return nil
}
func (str *SimpleTaobaoRequest) GetApiMethodName() string {
return ""
}
func (str *SimpleTaobaoRequest) GetBatchApiOrder() int {
return 0
}
func (str *SimpleTaobaoRequest) GetBatchApiSession() string {
return ""
}
func (str *SimpleTaobaoRequest) GetHeaderMap() map[string]string {
return nil
}
func (str *SimpleTaobaoRequest) GetTargetAppKey() string {
return ""
}
func (str *SimpleTaobaoRequest) GetTextParams() map[string]interface{} {
return nil
}
func (str *SimpleTaobaoRequest) GetTimestamp() int64 {
return 0
}
func (str *SimpleTaobaoRequest) GetTopApiCallType() string {
return ""
}
func (str *SimpleTaobaoRequest) GetTopApiFormat() string {
return ""
}
func (str *SimpleTaobaoRequest) GetTopApiVersion() string {
return ""
}
func (str *SimpleTaobaoRequest) GetTopContentType() string {
return ""
}
func (str *SimpleTaobaoRequest) GetTopHttpMethod() string {
return ""
}
func (str *SimpleTaobaoRequest) GetTopResponseType() string {
return ""
}
func (str *SimpleTaobaoRequest) GetRespInstance() interface{} {
return nil
}
func (str *SimpleTaobaoRequest) GetTaobaoResp() *TaobaoResponse {
return nil
}
func (str *SimpleTaobaoRequest) SetBatchApiOrder(i int) {}
func (str *SimpleTaobaoRequest) SetBatchApiSession(s string) {}
func (str *SimpleTaobaoRequest) SetTopApiCallType(s string) {}
func (str *SimpleTaobaoRequest) SetTopApiFormat(s string) {}
func (str *SimpleTaobaoRequest) SetTopApiVersion(s string) {}
func (str *SimpleTaobaoRequest) SetTopContentType(s string) {}
func (str *SimpleTaobaoRequest) SetTopHttpMethod(s string) {}
func (str *SimpleTaobaoRequest) SetTopResponseType(s string) {}