Files
baseapi/platformapi/tao_vegetable/sdk/ability304/request/TaobaoTopAuthTokenCreateRequest.go
邹宗楠 65976332fc 1
2023-06-15 09:08:54 +08:00

36 lines
981 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
}