-
Notifications
You must be signed in to change notification settings - Fork 9
/
AlibabaSeakingDiagnosistitleRequest.go
129 lines (98 loc) · 2.81 KB
/
AlibabaSeakingDiagnosistitleRequest.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
package seaking
import (
"net/url"
"github.com/bububa/opentaobao/model"
)
/*
标题诊断 APIRequest
alibaba.seaking.diagnosistitle
标题诊断
*/
type AlibabaSeakingDiagnosistitleRequest struct {
model.Params
// 类目id,没有的时候传-1
categoryId int64
// 扩展信息
extra *Extra
// erp用户id
identifier string
// 调用来源(erp名称)
identifierType string
// 语种
language string
// 商品所在平台(ae/icbu)
platform string
// 标题
title string
}
func NewAlibabaSeakingDiagnosistitleRequest() *AlibabaSeakingDiagnosistitleRequest{
return &AlibabaSeakingDiagnosistitleRequest{
Params: model.NewParams(),
}
}
func (r AlibabaSeakingDiagnosistitleRequest) GetApiMethodName() string {
return "alibaba.seaking.diagnosistitle"
}
func (r AlibabaSeakingDiagnosistitleRequest) GetApiParams() url.Values {
params := url.Values{}
for k, v := range r.GetRawParams() {
params.Set(k, v.String())
}
return params
}
func (r *AlibabaSeakingDiagnosistitleRequest) SetCategoryId(categoryId int64) error {
r.categoryId = categoryId
r.Set("category_id", categoryId)
return nil
}
func (r AlibabaSeakingDiagnosistitleRequest) GetCategoryId() int64 {
return r.categoryId
}
func (r *AlibabaSeakingDiagnosistitleRequest) SetExtra(extra *Extra) error {
r.extra = extra
r.Set("extra", extra)
return nil
}
func (r AlibabaSeakingDiagnosistitleRequest) GetExtra() *Extra {
return r.extra
}
func (r *AlibabaSeakingDiagnosistitleRequest) SetIdentifier(identifier string) error {
r.identifier = identifier
r.Set("identifier", identifier)
return nil
}
func (r AlibabaSeakingDiagnosistitleRequest) GetIdentifier() string {
return r.identifier
}
func (r *AlibabaSeakingDiagnosistitleRequest) SetIdentifierType(identifierType string) error {
r.identifierType = identifierType
r.Set("identifier_type", identifierType)
return nil
}
func (r AlibabaSeakingDiagnosistitleRequest) GetIdentifierType() string {
return r.identifierType
}
func (r *AlibabaSeakingDiagnosistitleRequest) SetLanguage(language string) error {
r.language = language
r.Set("language", language)
return nil
}
func (r AlibabaSeakingDiagnosistitleRequest) GetLanguage() string {
return r.language
}
func (r *AlibabaSeakingDiagnosistitleRequest) SetPlatform(platform string) error {
r.platform = platform
r.Set("platform", platform)
return nil
}
func (r AlibabaSeakingDiagnosistitleRequest) GetPlatform() string {
return r.platform
}
func (r *AlibabaSeakingDiagnosistitleRequest) SetTitle(title string) error {
r.title = title
r.Set("title", title)
return nil
}
func (r AlibabaSeakingDiagnosistitleRequest) GetTitle() string {
return r.title
}