-
Notifications
You must be signed in to change notification settings - Fork 10
/
AlibabaMjMoscarnivalReceiveencryptRequest.go
64 lines (48 loc) · 1.39 KB
/
AlibabaMjMoscarnivalReceiveencryptRequest.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
package mos
import (
"net/url"
"github.com/bububa/opentaobao/model"
)
/*
根据加密手机号领券 APIRequest
alibaba.mj.moscarnival.receiveencrypt
根据加密手机号领券
*/
type AlibabaMjMoscarnivalReceiveencryptRequest struct {
model.Params
// 加密手机号码
mobile string
// 活动id
activityId int64
}
func NewAlibabaMjMoscarnivalReceiveencryptRequest() *AlibabaMjMoscarnivalReceiveencryptRequest{
return &AlibabaMjMoscarnivalReceiveencryptRequest{
Params: model.NewParams(),
}
}
func (r AlibabaMjMoscarnivalReceiveencryptRequest) GetApiMethodName() string {
return "alibaba.mj.moscarnival.receiveencrypt"
}
func (r AlibabaMjMoscarnivalReceiveencryptRequest) GetApiParams() url.Values {
params := url.Values{}
for k, v := range r.GetRawParams() {
params.Set(k, v.String())
}
return params
}
func (r *AlibabaMjMoscarnivalReceiveencryptRequest) SetMobile(mobile string) error {
r.mobile = mobile
r.Set("mobile", mobile)
return nil
}
func (r AlibabaMjMoscarnivalReceiveencryptRequest) GetMobile() string {
return r.mobile
}
func (r *AlibabaMjMoscarnivalReceiveencryptRequest) SetActivityId(activityId int64) error {
r.activityId = activityId
r.Set("activity_id", activityId)
return nil
}
func (r AlibabaMjMoscarnivalReceiveencryptRequest) GetActivityId() int64 {
return r.activityId
}