-
Notifications
You must be signed in to change notification settings - Fork 11
/
TmallCarLeasePostsynchronizeAPIRequest.go
51 lines (43 loc) · 1.45 KB
/
TmallCarLeasePostsynchronizeAPIRequest.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 tmallcar
import (
"net/url"
"github.com/bububa/opentaobao/model"
)
// TmallCarLeasePostsynchronizeAPIRequest 天猫开新车租后信息同步 API请求
// tmall.car.lease.postsynchronize
//
// 商家同步天猫开新车租后方案
type TmallCarLeasePostsynchronizeAPIRequest struct {
model.Params
// 租后方案信息
_schemeDto *CarLeasePostSchemeSynchronizeDto
}
// NewTmallCarLeasePostsynchronizeRequest 初始化TmallCarLeasePostsynchronizeAPIRequest对象
func NewTmallCarLeasePostsynchronizeRequest() *TmallCarLeasePostsynchronizeAPIRequest {
return &TmallCarLeasePostsynchronizeAPIRequest{
Params: model.NewParams(),
}
}
// GetApiMethodName IRequest interface 方法, 获取Api method
func (r TmallCarLeasePostsynchronizeAPIRequest) GetApiMethodName() string {
return "tmall.car.lease.postsynchronize"
}
// GetApiParams IRequest interface 方法, 获取API参数
func (r TmallCarLeasePostsynchronizeAPIRequest) GetApiParams() url.Values {
params := url.Values{}
for k, v := range r.GetRawParams() {
params.Set(k, v.String())
}
return params
}
// SetSchemeDto is SchemeDto Setter
// 租后方案信息
func (r *TmallCarLeasePostsynchronizeAPIRequest) SetSchemeDto(_schemeDto *CarLeasePostSchemeSynchronizeDto) error {
r._schemeDto = _schemeDto
r.Set("scheme_dto", _schemeDto)
return nil
}
// GetSchemeDto SchemeDto Getter
func (r TmallCarLeasePostsynchronizeAPIRequest) GetSchemeDto() *CarLeasePostSchemeSynchronizeDto {
return r._schemeDto
}