-
Notifications
You must be signed in to change notification settings - Fork 9
/
AlibabaSeakingServicepackRequest.go
64 lines (48 loc) · 1.35 KB
/
AlibabaSeakingServicepackRequest.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 seaking
import (
"net/url"
"github.com/bububa/opentaobao/model"
)
/*
获取海王用户权限包 APIRequest
alibaba.seaking.servicepack
获取海王用户权限包
*/
type AlibabaSeakingServicepackRequest struct {
model.Params
// 验证类型
identifyType string
// 验证类型下的唯一id
identifier string
}
func NewAlibabaSeakingServicepackRequest() *AlibabaSeakingServicepackRequest{
return &AlibabaSeakingServicepackRequest{
Params: model.NewParams(),
}
}
func (r AlibabaSeakingServicepackRequest) GetApiMethodName() string {
return "alibaba.seaking.servicepack"
}
func (r AlibabaSeakingServicepackRequest) GetApiParams() url.Values {
params := url.Values{}
for k, v := range r.GetRawParams() {
params.Set(k, v.String())
}
return params
}
func (r *AlibabaSeakingServicepackRequest) SetIdentifyType(identifyType string) error {
r.identifyType = identifyType
r.Set("identify_type", identifyType)
return nil
}
func (r AlibabaSeakingServicepackRequest) GetIdentifyType() string {
return r.identifyType
}
func (r *AlibabaSeakingServicepackRequest) SetIdentifier(identifier string) error {
r.identifier = identifier
r.Set("identifier", identifier)
return nil
}
func (r AlibabaSeakingServicepackRequest) GetIdentifier() string {
return r.identifier
}