1
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
package request
|
||||
|
||||
|
||||
type TaobaoAppipGetRequest struct {
|
||||
}
|
||||
|
||||
|
||||
func (req *TaobaoAppipGetRequest) ToMap() map[string]interface{} {
|
||||
paramMap := make(map[string]interface{})
|
||||
return paramMap
|
||||
}
|
||||
|
||||
func (req *TaobaoAppipGetRequest) ToFileMap() map[string]interface{} {
|
||||
fileMap := make(map[string]interface{})
|
||||
return fileMap
|
||||
}
|
||||
@@ -0,0 +1,49 @@
|
||||
package request
|
||||
|
||||
import (
|
||||
"git.rosy.net.cn/baseapi/platformapi/tao_vegetable/sdk/util"
|
||||
)
|
||||
|
||||
type TaobaoFilesGetRequest struct {
|
||||
/*
|
||||
下载链接状态。1:未下载。2:已下载 */
|
||||
Status *int64 `json:"status,omitempty" required:"false" `
|
||||
/*
|
||||
搜索开始时间 */
|
||||
StartDate *util.LocalTime `json:"start_date" required:"true" `
|
||||
/*
|
||||
搜索结束时间 */
|
||||
EndDate *util.LocalTime `json:"end_date" required:"true" `
|
||||
}
|
||||
|
||||
func (s *TaobaoFilesGetRequest) SetStatus(v int64) *TaobaoFilesGetRequest {
|
||||
s.Status = &v
|
||||
return s
|
||||
}
|
||||
func (s *TaobaoFilesGetRequest) SetStartDate(v util.LocalTime) *TaobaoFilesGetRequest {
|
||||
s.StartDate = &v
|
||||
return s
|
||||
}
|
||||
func (s *TaobaoFilesGetRequest) SetEndDate(v util.LocalTime) *TaobaoFilesGetRequest {
|
||||
s.EndDate = &v
|
||||
return s
|
||||
}
|
||||
|
||||
func (req *TaobaoFilesGetRequest) ToMap() map[string]interface{} {
|
||||
paramMap := make(map[string]interface{})
|
||||
if req.Status != nil {
|
||||
paramMap["status"] = *req.Status
|
||||
}
|
||||
if req.StartDate != nil {
|
||||
paramMap["start_date"] = *req.StartDate
|
||||
}
|
||||
if req.EndDate != nil {
|
||||
paramMap["end_date"] = *req.EndDate
|
||||
}
|
||||
return paramMap
|
||||
}
|
||||
|
||||
func (req *TaobaoFilesGetRequest) ToFileMap() map[string]interface{} {
|
||||
fileMap := make(map[string]interface{})
|
||||
return fileMap
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
package request
|
||||
|
||||
|
||||
type TaobaoHttpdnsGetRequest struct {
|
||||
}
|
||||
|
||||
|
||||
func (req *TaobaoHttpdnsGetRequest) ToMap() map[string]interface{} {
|
||||
paramMap := make(map[string]interface{})
|
||||
return paramMap
|
||||
}
|
||||
|
||||
func (req *TaobaoHttpdnsGetRequest) ToFileMap() map[string]interface{} {
|
||||
fileMap := make(map[string]interface{})
|
||||
return fileMap
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
package request
|
||||
|
||||
|
||||
type TaobaoOpenuidGetBymixnickRequest struct {
|
||||
/*
|
||||
无线类应用获取到的混淆的nick */
|
||||
MixNick *string `json:"mix_nick" required:"true" `
|
||||
}
|
||||
|
||||
func (s *TaobaoOpenuidGetBymixnickRequest) SetMixNick(v string) *TaobaoOpenuidGetBymixnickRequest {
|
||||
s.MixNick = &v
|
||||
return s
|
||||
}
|
||||
|
||||
func (req *TaobaoOpenuidGetBymixnickRequest) ToMap() map[string]interface{} {
|
||||
paramMap := make(map[string]interface{})
|
||||
if(req.MixNick != nil) {
|
||||
paramMap["mix_nick"] = *req.MixNick
|
||||
}
|
||||
return paramMap
|
||||
}
|
||||
|
||||
func (req *TaobaoOpenuidGetBymixnickRequest) ToFileMap() map[string]interface{} {
|
||||
fileMap := make(map[string]interface{})
|
||||
return fileMap
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
package request
|
||||
|
||||
|
||||
type TaobaoOpenuidGetBytradeRequest struct {
|
||||
/*
|
||||
订单ID */
|
||||
Tid *int64 `json:"tid" required:"true" `
|
||||
}
|
||||
|
||||
func (s *TaobaoOpenuidGetBytradeRequest) SetTid(v int64) *TaobaoOpenuidGetBytradeRequest {
|
||||
s.Tid = &v
|
||||
return s
|
||||
}
|
||||
|
||||
func (req *TaobaoOpenuidGetBytradeRequest) ToMap() map[string]interface{} {
|
||||
paramMap := make(map[string]interface{})
|
||||
if(req.Tid != nil) {
|
||||
paramMap["tid"] = *req.Tid
|
||||
}
|
||||
return paramMap
|
||||
}
|
||||
|
||||
func (req *TaobaoOpenuidGetBytradeRequest) ToFileMap() map[string]interface{} {
|
||||
fileMap := make(map[string]interface{})
|
||||
return fileMap
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
package request
|
||||
|
||||
|
||||
type TaobaoOpenuidGetRequest struct {
|
||||
}
|
||||
|
||||
|
||||
func (req *TaobaoOpenuidGetRequest) ToMap() map[string]interface{} {
|
||||
paramMap := make(map[string]interface{})
|
||||
return paramMap
|
||||
}
|
||||
|
||||
func (req *TaobaoOpenuidGetRequest) ToFileMap() map[string]interface{} {
|
||||
fileMap := make(map[string]interface{})
|
||||
return fileMap
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
package request
|
||||
|
||||
|
||||
type TaobaoTopAuthTokenCreateRequest struct {
|
||||
/*
|
||||
授权code,grantType==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
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
package request
|
||||
|
||||
|
||||
type TaobaoTopAuthTokenRefreshRequest struct {
|
||||
/*
|
||||
grantType==refresh_token 时需要 */
|
||||
RefreshToken *string `json:"refresh_token" required:"true" `
|
||||
}
|
||||
|
||||
func (s *TaobaoTopAuthTokenRefreshRequest) SetRefreshToken(v string) *TaobaoTopAuthTokenRefreshRequest {
|
||||
s.RefreshToken = &v
|
||||
return s
|
||||
}
|
||||
|
||||
func (req *TaobaoTopAuthTokenRefreshRequest) ToMap() map[string]interface{} {
|
||||
paramMap := make(map[string]interface{})
|
||||
if(req.RefreshToken != nil) {
|
||||
paramMap["refresh_token"] = *req.RefreshToken
|
||||
}
|
||||
return paramMap
|
||||
}
|
||||
|
||||
func (req *TaobaoTopAuthTokenRefreshRequest) ToFileMap() map[string]interface{} {
|
||||
fileMap := make(map[string]interface{})
|
||||
return fileMap
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
package request
|
||||
|
||||
|
||||
type TaobaoTopSdkFeedbackUploadRequest struct {
|
||||
/*
|
||||
1、回传加密信息 */
|
||||
Type *string `json:"type" required:"true" `
|
||||
/*
|
||||
具体内容,json形式 */
|
||||
Content *string `json:"content,omitempty" required:"false" `
|
||||
}
|
||||
|
||||
func (s *TaobaoTopSdkFeedbackUploadRequest) SetType(v string) *TaobaoTopSdkFeedbackUploadRequest {
|
||||
s.Type = &v
|
||||
return s
|
||||
}
|
||||
func (s *TaobaoTopSdkFeedbackUploadRequest) SetContent(v string) *TaobaoTopSdkFeedbackUploadRequest {
|
||||
s.Content = &v
|
||||
return s
|
||||
}
|
||||
|
||||
func (req *TaobaoTopSdkFeedbackUploadRequest) ToMap() map[string]interface{} {
|
||||
paramMap := make(map[string]interface{})
|
||||
if(req.Type != nil) {
|
||||
paramMap["type"] = *req.Type
|
||||
}
|
||||
if(req.Content != nil) {
|
||||
paramMap["content"] = *req.Content
|
||||
}
|
||||
return paramMap
|
||||
}
|
||||
|
||||
func (req *TaobaoTopSdkFeedbackUploadRequest) ToFileMap() map[string]interface{} {
|
||||
fileMap := make(map[string]interface{})
|
||||
return fileMap
|
||||
}
|
||||
@@ -0,0 +1,46 @@
|
||||
package request
|
||||
|
||||
|
||||
type TaobaoTopSecretGetRequest struct {
|
||||
/*
|
||||
秘钥版本号 */
|
||||
SecretVersion *int64 `json:"secret_version,omitempty" required:"false" `
|
||||
/*
|
||||
伪随机数 */
|
||||
RandomNum *string `json:"random_num" required:"true" `
|
||||
/*
|
||||
自定义用户id */
|
||||
CustomerUserId *int64 `json:"customer_user_id,omitempty" required:"false" `
|
||||
}
|
||||
|
||||
func (s *TaobaoTopSecretGetRequest) SetSecretVersion(v int64) *TaobaoTopSecretGetRequest {
|
||||
s.SecretVersion = &v
|
||||
return s
|
||||
}
|
||||
func (s *TaobaoTopSecretGetRequest) SetRandomNum(v string) *TaobaoTopSecretGetRequest {
|
||||
s.RandomNum = &v
|
||||
return s
|
||||
}
|
||||
func (s *TaobaoTopSecretGetRequest) SetCustomerUserId(v int64) *TaobaoTopSecretGetRequest {
|
||||
s.CustomerUserId = &v
|
||||
return s
|
||||
}
|
||||
|
||||
func (req *TaobaoTopSecretGetRequest) ToMap() map[string]interface{} {
|
||||
paramMap := make(map[string]interface{})
|
||||
if(req.SecretVersion != nil) {
|
||||
paramMap["secret_version"] = *req.SecretVersion
|
||||
}
|
||||
if(req.RandomNum != nil) {
|
||||
paramMap["random_num"] = *req.RandomNum
|
||||
}
|
||||
if(req.CustomerUserId != nil) {
|
||||
paramMap["customer_user_id"] = *req.CustomerUserId
|
||||
}
|
||||
return paramMap
|
||||
}
|
||||
|
||||
func (req *TaobaoTopSecretGetRequest) ToFileMap() map[string]interface{} {
|
||||
fileMap := make(map[string]interface{})
|
||||
return fileMap
|
||||
}
|
||||
Reference in New Issue
Block a user