-
Notifications
You must be signed in to change notification settings - Fork 12
/
TaobaoPlaceStoreDeleteRequest.go
52 lines (44 loc) · 1.13 KB
/
TaobaoPlaceStoreDeleteRequest.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
package alsc
import (
"net/url"
"github.com/bububa/opentaobao/model"
)
/*
线下门店删除 API请求
taobao.place.store.delete
用于商家删除线下门店
*/
type TaobaoPlaceStoreDeleteRequest struct {
model.Params
// 门店id
storeId int64
}
// 初始化TaobaoPlaceStoreDeleteRequest对象
func NewTaobaoPlaceStoreDeleteRequest() *TaobaoPlaceStoreDeleteRequest{
return &TaobaoPlaceStoreDeleteRequest{
Params: model.NewParams(),
}
}
// IRequest interface 方法, 获取Api method
func (r TaobaoPlaceStoreDeleteRequest) GetApiMethodName() string {
return "taobao.place.store.delete"
}
// IRequest interface 方法, 获取API参数
func (r TaobaoPlaceStoreDeleteRequest) GetApiParams() url.Values {
params := url.Values{}
for k, v := range r.GetRawParams() {
params.Set(k, v.String())
}
return params
}
// StoreId Setter
// 门店id
func (r *TaobaoPlaceStoreDeleteRequest) SetStoreId(storeId int64) error {
r.storeId = storeId
r.Set("store_id", storeId)
return nil
}
// StoreId Getter
func (r TaobaoPlaceStoreDeleteRequest) GetStoreId() int64 {
return r.storeId
}