-
Notifications
You must be signed in to change notification settings - Fork 9
/
TmallServicecenterWorkcardRepairprogressUpdateAPIRequest.go
158 lines (135 loc) · 5.3 KB
/
TmallServicecenterWorkcardRepairprogressUpdateAPIRequest.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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
package tmallservice
import (
"net/url"
"sync"
"github.com/bububa/opentaobao/model"
)
// TmallServicecenterWorkcardRepairprogressUpdateAPIRequest 更新维修进度 API请求
// tmall.servicecenter.workcard.repairprogress.update
//
// 提供给外部合作服务商的维修进度更改接口
type TmallServicecenterWorkcardRepairprogressUpdateAPIRequest struct {
model.Params
// 图片列表
_picUrlList []string
// 真实接单服务商账号Nick
_realTpNick string
// 请求节点的动作描述,唯一标识一个节点
_action string
// 衣服,鞋子
_receivedGoods string
// 服务目标物瑕疵信息
_targetGoodsDefects string
// 工单id
_workcardId int64
}
// NewTmallServicecenterWorkcardRepairprogressUpdateRequest 初始化TmallServicecenterWorkcardRepairprogressUpdateAPIRequest对象
func NewTmallServicecenterWorkcardRepairprogressUpdateRequest() *TmallServicecenterWorkcardRepairprogressUpdateAPIRequest {
return &TmallServicecenterWorkcardRepairprogressUpdateAPIRequest{
Params: model.NewParams(6),
}
}
// Reset IRequest interface 方法, 清空结构体
func (r *TmallServicecenterWorkcardRepairprogressUpdateAPIRequest) Reset() {
r._picUrlList = r._picUrlList[:0]
r._realTpNick = ""
r._action = ""
r._receivedGoods = ""
r._targetGoodsDefects = ""
r._workcardId = 0
r.Params.ToZero()
}
// GetApiMethodName IRequest interface 方法, 获取Api method
func (r TmallServicecenterWorkcardRepairprogressUpdateAPIRequest) GetApiMethodName() string {
return "tmall.servicecenter.workcard.repairprogress.update"
}
// GetApiParams IRequest interface 方法, 获取API参数
func (r TmallServicecenterWorkcardRepairprogressUpdateAPIRequest) GetApiParams(params url.Values) {
for k, v := range r.Params {
params.Set(k, v.String())
}
}
// GetRawParams IRequest interface 方法, 获取API原始参数
func (r TmallServicecenterWorkcardRepairprogressUpdateAPIRequest) GetRawParams() model.Params {
return r.Params
}
// SetPicUrlList is PicUrlList Setter
// 图片列表
func (r *TmallServicecenterWorkcardRepairprogressUpdateAPIRequest) SetPicUrlList(_picUrlList []string) error {
r._picUrlList = _picUrlList
r.Set("pic_url_list", _picUrlList)
return nil
}
// GetPicUrlList PicUrlList Getter
func (r TmallServicecenterWorkcardRepairprogressUpdateAPIRequest) GetPicUrlList() []string {
return r._picUrlList
}
// SetRealTpNick is RealTpNick Setter
// 真实接单服务商账号Nick
func (r *TmallServicecenterWorkcardRepairprogressUpdateAPIRequest) SetRealTpNick(_realTpNick string) error {
r._realTpNick = _realTpNick
r.Set("real_tp_nick", _realTpNick)
return nil
}
// GetRealTpNick RealTpNick Getter
func (r TmallServicecenterWorkcardRepairprogressUpdateAPIRequest) GetRealTpNick() string {
return r._realTpNick
}
// SetAction is Action Setter
// 请求节点的动作描述,唯一标识一个节点
func (r *TmallServicecenterWorkcardRepairprogressUpdateAPIRequest) SetAction(_action string) error {
r._action = _action
r.Set("action", _action)
return nil
}
// GetAction Action Getter
func (r TmallServicecenterWorkcardRepairprogressUpdateAPIRequest) GetAction() string {
return r._action
}
// SetReceivedGoods is ReceivedGoods Setter
// 衣服,鞋子
func (r *TmallServicecenterWorkcardRepairprogressUpdateAPIRequest) SetReceivedGoods(_receivedGoods string) error {
r._receivedGoods = _receivedGoods
r.Set("received_goods", _receivedGoods)
return nil
}
// GetReceivedGoods ReceivedGoods Getter
func (r TmallServicecenterWorkcardRepairprogressUpdateAPIRequest) GetReceivedGoods() string {
return r._receivedGoods
}
// SetTargetGoodsDefects is TargetGoodsDefects Setter
// 服务目标物瑕疵信息
func (r *TmallServicecenterWorkcardRepairprogressUpdateAPIRequest) SetTargetGoodsDefects(_targetGoodsDefects string) error {
r._targetGoodsDefects = _targetGoodsDefects
r.Set("target_goods_defects", _targetGoodsDefects)
return nil
}
// GetTargetGoodsDefects TargetGoodsDefects Getter
func (r TmallServicecenterWorkcardRepairprogressUpdateAPIRequest) GetTargetGoodsDefects() string {
return r._targetGoodsDefects
}
// SetWorkcardId is WorkcardId Setter
// 工单id
func (r *TmallServicecenterWorkcardRepairprogressUpdateAPIRequest) SetWorkcardId(_workcardId int64) error {
r._workcardId = _workcardId
r.Set("workcard_id", _workcardId)
return nil
}
// GetWorkcardId WorkcardId Getter
func (r TmallServicecenterWorkcardRepairprogressUpdateAPIRequest) GetWorkcardId() int64 {
return r._workcardId
}
var poolTmallServicecenterWorkcardRepairprogressUpdateAPIRequest = sync.Pool{
New: func() any {
return NewTmallServicecenterWorkcardRepairprogressUpdateRequest()
},
}
// GetTmallServicecenterWorkcardRepairprogressUpdateRequest 从 sync.Pool 获取 TmallServicecenterWorkcardRepairprogressUpdateAPIRequest
func GetTmallServicecenterWorkcardRepairprogressUpdateAPIRequest() *TmallServicecenterWorkcardRepairprogressUpdateAPIRequest {
return poolTmallServicecenterWorkcardRepairprogressUpdateAPIRequest.Get().(*TmallServicecenterWorkcardRepairprogressUpdateAPIRequest)
}
// ReleaseTmallServicecenterWorkcardRepairprogressUpdateAPIRequest 将 TmallServicecenterWorkcardRepairprogressUpdateAPIRequest 放入 sync.Pool
func ReleaseTmallServicecenterWorkcardRepairprogressUpdateAPIRequest(v *TmallServicecenterWorkcardRepairprogressUpdateAPIRequest) {
v.Reset()
poolTmallServicecenterWorkcardRepairprogressUpdateAPIRequest.Put(v)
}