-
Notifications
You must be signed in to change notification settings - Fork 9
/
TmallTmjlappSapServiceorderCancelAPIRequest.go
51 lines (43 loc) · 1.55 KB
/
TmallTmjlappSapServiceorderCancelAPIRequest.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
package tmallgenie
import (
"net/url"
"github.com/bububa/opentaobao/model"
)
// TmallTmjlappSapServiceorderCancelAPIRequest 取消售后服务单 API请求
// tmall.tmjlapp.sap.serviceorder.cancel
//
// SAP跟天猫精灵app接口对接,用户在app取消sap售后服务工单
type TmallTmjlappSapServiceorderCancelAPIRequest struct {
model.Params
// 取消服务单请求
_cancelRequest *Dtcancelrequest
}
// NewTmallTmjlappSapServiceorderCancelRequest 初始化TmallTmjlappSapServiceorderCancelAPIRequest对象
func NewTmallTmjlappSapServiceorderCancelRequest() *TmallTmjlappSapServiceorderCancelAPIRequest {
return &TmallTmjlappSapServiceorderCancelAPIRequest{
Params: model.NewParams(),
}
}
// GetApiMethodName IRequest interface 方法, 获取Api method
func (r TmallTmjlappSapServiceorderCancelAPIRequest) GetApiMethodName() string {
return "tmall.tmjlapp.sap.serviceorder.cancel"
}
// GetApiParams IRequest interface 方法, 获取API参数
func (r TmallTmjlappSapServiceorderCancelAPIRequest) GetApiParams() url.Values {
params := url.Values{}
for k, v := range r.GetRawParams() {
params.Set(k, v.String())
}
return params
}
// SetCancelRequest is CancelRequest Setter
// 取消服务单请求
func (r *TmallTmjlappSapServiceorderCancelAPIRequest) SetCancelRequest(_cancelRequest *Dtcancelrequest) error {
r._cancelRequest = _cancelRequest
r.Set("cancel_request", _cancelRequest)
return nil
}
// GetCancelRequest CancelRequest Getter
func (r TmallTmjlappSapServiceorderCancelAPIRequest) GetCancelRequest() *Dtcancelrequest {
return r._cancelRequest
}