topsdk/ability304/request/TaobaoTopAuthTokenCreateReq...

36 lines
948 B
Go
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package request
type TaobaoTopAuthTokenCreateRequest struct {
/*
授权codegrantType==authorization_code 时需要 */
Code *string `json:"code" required:"true" `
/*
非必填与生成code的uuid配对使用方式参考文档 */
Uuid *string `json:"uuid,omitempty" required:"false" `
}
func (s *TaobaoTopAuthTokenCreateRequest) SetCode(v string) *TaobaoTopAuthTokenCreateRequest {
s.Code = &v
return s
}
func (s *TaobaoTopAuthTokenCreateRequest) SetUuid(v string) *TaobaoTopAuthTokenCreateRequest {
s.Uuid = &v
return s
}
func (req *TaobaoTopAuthTokenCreateRequest) ToMap() map[string]interface{} {
paramMap := make(map[string]interface{})
if req.Code != nil {
paramMap["code"] = *req.Code
}
if req.Uuid != nil {
paramMap["uuid"] = *req.Uuid
}
return paramMap
}
func (req *TaobaoTopAuthTokenCreateRequest) ToFileMap() map[string]interface{} {
fileMap := make(map[string]interface{})
return fileMap
}