-
Notifications
You must be signed in to change notification settings - Fork 9
/
TmallServicecenterServicestoreDeleteservicestorecapacityAPIRequest.go
95 lines (80 loc) · 3.75 KB
/
TmallServicecenterServicestoreDeleteservicestorecapacityAPIRequest.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
package tmallsc
import (
"net/url"
"sync"
"github.com/bububa/opentaobao/model"
)
// TmallServicecenterServicestoreDeleteservicestorecapacityAPIRequest 删除网点容量 API请求
// tmall.servicecenter.servicestore.deleteservicestorecapacity
//
// 删除网点覆盖的服务,无法恢复,如果只是暂时屏蔽网点的某个能力,可以将此能力对应的网点容量的capacity字段更新为0
// 必选字段:serviceStoreCode、bizType
type TmallServicecenterServicestoreDeleteservicestorecapacityAPIRequest struct {
model.Params
// 网点编码
_serviceStoreCode string
// 业务类型
_bizType string
}
// NewTmallServicecenterServicestoreDeleteservicestorecapacityRequest 初始化TmallServicecenterServicestoreDeleteservicestorecapacityAPIRequest对象
func NewTmallServicecenterServicestoreDeleteservicestorecapacityRequest() *TmallServicecenterServicestoreDeleteservicestorecapacityAPIRequest {
return &TmallServicecenterServicestoreDeleteservicestorecapacityAPIRequest{
Params: model.NewParams(2),
}
}
// Reset IRequest interface 方法, 清空结构体
func (r *TmallServicecenterServicestoreDeleteservicestorecapacityAPIRequest) Reset() {
r._serviceStoreCode = ""
r._bizType = ""
r.Params.ToZero()
}
// GetApiMethodName IRequest interface 方法, 获取Api method
func (r TmallServicecenterServicestoreDeleteservicestorecapacityAPIRequest) GetApiMethodName() string {
return "tmall.servicecenter.servicestore.deleteservicestorecapacity"
}
// GetApiParams IRequest interface 方法, 获取API参数
func (r TmallServicecenterServicestoreDeleteservicestorecapacityAPIRequest) GetApiParams(params url.Values) {
for k, v := range r.Params {
params.Set(k, v.String())
}
}
// GetRawParams IRequest interface 方法, 获取API原始参数
func (r TmallServicecenterServicestoreDeleteservicestorecapacityAPIRequest) GetRawParams() model.Params {
return r.Params
}
// SetServiceStoreCode is ServiceStoreCode Setter
// 网点编码
func (r *TmallServicecenterServicestoreDeleteservicestorecapacityAPIRequest) SetServiceStoreCode(_serviceStoreCode string) error {
r._serviceStoreCode = _serviceStoreCode
r.Set("service_store_code", _serviceStoreCode)
return nil
}
// GetServiceStoreCode ServiceStoreCode Getter
func (r TmallServicecenterServicestoreDeleteservicestorecapacityAPIRequest) GetServiceStoreCode() string {
return r._serviceStoreCode
}
// SetBizType is BizType Setter
// 业务类型
func (r *TmallServicecenterServicestoreDeleteservicestorecapacityAPIRequest) SetBizType(_bizType string) error {
r._bizType = _bizType
r.Set("biz_type", _bizType)
return nil
}
// GetBizType BizType Getter
func (r TmallServicecenterServicestoreDeleteservicestorecapacityAPIRequest) GetBizType() string {
return r._bizType
}
var poolTmallServicecenterServicestoreDeleteservicestorecapacityAPIRequest = sync.Pool{
New: func() any {
return NewTmallServicecenterServicestoreDeleteservicestorecapacityRequest()
},
}
// GetTmallServicecenterServicestoreDeleteservicestorecapacityRequest 从 sync.Pool 获取 TmallServicecenterServicestoreDeleteservicestorecapacityAPIRequest
func GetTmallServicecenterServicestoreDeleteservicestorecapacityAPIRequest() *TmallServicecenterServicestoreDeleteservicestorecapacityAPIRequest {
return poolTmallServicecenterServicestoreDeleteservicestorecapacityAPIRequest.Get().(*TmallServicecenterServicestoreDeleteservicestorecapacityAPIRequest)
}
// ReleaseTmallServicecenterServicestoreDeleteservicestorecapacityAPIRequest 将 TmallServicecenterServicestoreDeleteservicestorecapacityAPIRequest 放入 sync.Pool
func ReleaseTmallServicecenterServicestoreDeleteservicestorecapacityAPIRequest(v *TmallServicecenterServicestoreDeleteservicestorecapacityAPIRequest) {
v.Reset()
poolTmallServicecenterServicestoreDeleteservicestorecapacityAPIRequest.Put(v)
}