-
Notifications
You must be signed in to change notification settings - Fork 9
/
TaobaoAilabAicloudTopEarthquakeSendAPIRequest.go
111 lines (95 loc) · 3.07 KB
/
TaobaoAilabAicloudTopEarthquakeSendAPIRequest.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
package tmallgenie
import (
"net/url"
"github.com/bububa/opentaobao/model"
)
// TaobaoAilabAicloudTopEarthquakeSendAPIRequest 地震局发送地震消息 API请求
// taobao.ailab.aicloud.top.earthquake.send
//
// 地震局发送地震消息给天猫精灵,天猫精灵根据地震消息判断发送地震消息给危险区域用户
type TaobaoAilabAicloudTopEarthquakeSendAPIRequest struct {
model.Params
// 扩展占位字段
_ext string
// 签名
_signature string
// 随机值
_nonceStr string
// 时间戳
_timestampStr string
// 地震信息
_earthquakeInfo string
}
// NewTaobaoAilabAicloudTopEarthquakeSendRequest 初始化TaobaoAilabAicloudTopEarthquakeSendAPIRequest对象
func NewTaobaoAilabAicloudTopEarthquakeSendRequest() *TaobaoAilabAicloudTopEarthquakeSendAPIRequest {
return &TaobaoAilabAicloudTopEarthquakeSendAPIRequest{
Params: model.NewParams(),
}
}
// GetApiMethodName IRequest interface 方法, 获取Api method
func (r TaobaoAilabAicloudTopEarthquakeSendAPIRequest) GetApiMethodName() string {
return "taobao.ailab.aicloud.top.earthquake.send"
}
// GetApiParams IRequest interface 方法, 获取API参数
func (r TaobaoAilabAicloudTopEarthquakeSendAPIRequest) GetApiParams() url.Values {
params := url.Values{}
for k, v := range r.GetRawParams() {
params.Set(k, v.String())
}
return params
}
// SetExt is Ext Setter
// 扩展占位字段
func (r *TaobaoAilabAicloudTopEarthquakeSendAPIRequest) SetExt(_ext string) error {
r._ext = _ext
r.Set("ext", _ext)
return nil
}
// GetExt Ext Getter
func (r TaobaoAilabAicloudTopEarthquakeSendAPIRequest) GetExt() string {
return r._ext
}
// SetSignature is Signature Setter
// 签名
func (r *TaobaoAilabAicloudTopEarthquakeSendAPIRequest) SetSignature(_signature string) error {
r._signature = _signature
r.Set("signature", _signature)
return nil
}
// GetSignature Signature Getter
func (r TaobaoAilabAicloudTopEarthquakeSendAPIRequest) GetSignature() string {
return r._signature
}
// SetNonceStr is NonceStr Setter
// 随机值
func (r *TaobaoAilabAicloudTopEarthquakeSendAPIRequest) SetNonceStr(_nonceStr string) error {
r._nonceStr = _nonceStr
r.Set("nonce_str", _nonceStr)
return nil
}
// GetNonceStr NonceStr Getter
func (r TaobaoAilabAicloudTopEarthquakeSendAPIRequest) GetNonceStr() string {
return r._nonceStr
}
// SetTimestampStr is TimestampStr Setter
// 时间戳
func (r *TaobaoAilabAicloudTopEarthquakeSendAPIRequest) SetTimestampStr(_timestampStr string) error {
r._timestampStr = _timestampStr
r.Set("timestamp_str", _timestampStr)
return nil
}
// GetTimestampStr TimestampStr Getter
func (r TaobaoAilabAicloudTopEarthquakeSendAPIRequest) GetTimestampStr() string {
return r._timestampStr
}
// SetEarthquakeInfo is EarthquakeInfo Setter
// 地震信息
func (r *TaobaoAilabAicloudTopEarthquakeSendAPIRequest) SetEarthquakeInfo(_earthquakeInfo string) error {
r._earthquakeInfo = _earthquakeInfo
r.Set("earthquake_info", _earthquakeInfo)
return nil
}
// GetEarthquakeInfo EarthquakeInfo Getter
func (r TaobaoAilabAicloudTopEarthquakeSendAPIRequest) GetEarthquakeInfo() string {
return r._earthquakeInfo
}