You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
go-library/service/topsdk/ability371/request/TaobaoTbkItemInfoGetRequest.go

46 lines
1.2 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

package request
type TaobaoTbkItemInfoGetRequest struct {
/*
商品ID串用,分割最大40个 */
NumIids *string `json:"num_iids" required:"true" `
/*
链接形式1PC2无线默认 defalutValue<75><65>1 */
Platform *int64 `json:"platform,omitempty" required:"false" `
/*
ip地址影响邮费获取如果不传或者传入不准确邮费无法精准提供 */
Ip *string `json:"ip,omitempty" required:"false" `
}
func (s *TaobaoTbkItemInfoGetRequest) SetNumIids(v string) *TaobaoTbkItemInfoGetRequest {
s.NumIids = &v
return s
}
func (s *TaobaoTbkItemInfoGetRequest) SetPlatform(v int64) *TaobaoTbkItemInfoGetRequest {
s.Platform = &v
return s
}
func (s *TaobaoTbkItemInfoGetRequest) SetIp(v string) *TaobaoTbkItemInfoGetRequest {
s.Ip = &v
return s
}
func (req *TaobaoTbkItemInfoGetRequest) ToMap() map[string]interface{} {
paramMap := make(map[string]interface{})
if req.NumIids != nil {
paramMap["num_iids"] = *req.NumIids
}
if req.Platform != nil {
paramMap["platform"] = *req.Platform
}
if req.Ip != nil {
paramMap["ip"] = *req.Ip
}
return paramMap
}
func (req *TaobaoTbkItemInfoGetRequest) ToFileMap() map[string]interface{} {
fileMap := make(map[string]interface{})
return fileMap
}