1
This commit is contained in:
218
platformapi/tao_vegetable/sdk/ability304/Ability304.go
Normal file
218
platformapi/tao_vegetable/sdk/ability304/Ability304.go
Normal file
@@ -0,0 +1,218 @@
|
||||
package ability304
|
||||
|
||||
import (
|
||||
"errors"
|
||||
topsdk "git.rosy.net.cn/baseapi/platformapi/tao_vegetable/sdk"
|
||||
request2 "git.rosy.net.cn/baseapi/platformapi/tao_vegetable/sdk/ability304/request"
|
||||
response2 "git.rosy.net.cn/baseapi/platformapi/tao_vegetable/sdk/ability304/response"
|
||||
"git.rosy.net.cn/baseapi/platformapi/tao_vegetable/sdk/util"
|
||||
"log"
|
||||
)
|
||||
|
||||
type Ability304 struct {
|
||||
Client *topsdk.TopClient
|
||||
}
|
||||
|
||||
func NewAbility304(client *topsdk.TopClient) *Ability304 {
|
||||
return &Ability304{client}
|
||||
}
|
||||
|
||||
/*
|
||||
获取ISV发起请求服务器IP
|
||||
*/
|
||||
func (ability *Ability304) TaobaoAppipGet(req *request2.TaobaoAppipGetRequest) (*response2.TaobaoAppipGetResponse, error) {
|
||||
if ability.Client == nil {
|
||||
return nil, errors.New("Ability304 topClient is nil")
|
||||
}
|
||||
var jsonStr, err = ability.Client.Execute("taobao.appip.get", req.ToMap(), req.ToFileMap())
|
||||
var respStruct = response2.TaobaoAppipGetResponse{}
|
||||
if err != nil {
|
||||
log.Println("taobaoAppipGet error", err)
|
||||
return &respStruct, err
|
||||
}
|
||||
err = util.HandleJsonResponse(jsonStr, &respStruct)
|
||||
if respStruct.Body == "" || len(respStruct.Body) == 0 {
|
||||
respStruct.Body = jsonStr
|
||||
}
|
||||
return &respStruct, err
|
||||
}
|
||||
|
||||
/*
|
||||
获取授权账号对应的OpenUid
|
||||
*/
|
||||
func (ability *Ability304) TaobaoOpenuidGet(req *request2.TaobaoOpenuidGetRequest, session string) (*response2.TaobaoOpenuidGetResponse, error) {
|
||||
if ability.Client == nil {
|
||||
return nil, errors.New("Ability304 topClient is nil")
|
||||
}
|
||||
var jsonStr, err = ability.Client.ExecuteWithSession("taobao.openuid.get", req.ToMap(), req.ToFileMap(), session)
|
||||
var respStruct = response2.TaobaoOpenuidGetResponse{}
|
||||
if err != nil {
|
||||
log.Println("taobaoOpenuidGet error", err)
|
||||
return &respStruct, err
|
||||
}
|
||||
err = util.HandleJsonResponse(jsonStr, &respStruct)
|
||||
if respStruct.Body == "" || len(respStruct.Body) == 0 {
|
||||
respStruct.Body = jsonStr
|
||||
}
|
||||
return &respStruct, err
|
||||
}
|
||||
|
||||
/*
|
||||
通过订单获取对应买家的openUID
|
||||
*/
|
||||
func (ability *Ability304) TaobaoOpenuidGetBytrade(req *request2.TaobaoOpenuidGetBytradeRequest, session string) (*response2.TaobaoOpenuidGetBytradeResponse, error) {
|
||||
if ability.Client == nil {
|
||||
return nil, errors.New("Ability304 topClient is nil")
|
||||
}
|
||||
var jsonStr, err = ability.Client.ExecuteWithSession("taobao.openuid.get.bytrade", req.ToMap(), req.ToFileMap(), session)
|
||||
var respStruct = response2.TaobaoOpenuidGetBytradeResponse{}
|
||||
if err != nil {
|
||||
log.Println("taobaoOpenuidGetBytrade error", err)
|
||||
return &respStruct, err
|
||||
}
|
||||
err = util.HandleJsonResponse(jsonStr, &respStruct)
|
||||
if respStruct.Body == "" || len(respStruct.Body) == 0 {
|
||||
respStruct.Body = jsonStr
|
||||
}
|
||||
return &respStruct, err
|
||||
}
|
||||
|
||||
/*
|
||||
通过mixnick转换openuid
|
||||
*/
|
||||
func (ability *Ability304) TaobaoOpenuidGetBymixnick(req *request2.TaobaoOpenuidGetBymixnickRequest) (*response2.TaobaoOpenuidGetBymixnickResponse, error) {
|
||||
if ability.Client == nil {
|
||||
return nil, errors.New("Ability304 topClient is nil")
|
||||
}
|
||||
var jsonStr, err = ability.Client.Execute("taobao.openuid.get.bymixnick", req.ToMap(), req.ToFileMap())
|
||||
var respStruct = response2.TaobaoOpenuidGetBymixnickResponse{}
|
||||
if err != nil {
|
||||
log.Println("taobaoOpenuidGetBymixnick error", err)
|
||||
return &respStruct, err
|
||||
}
|
||||
err = util.HandleJsonResponse(jsonStr, &respStruct)
|
||||
if respStruct.Body == "" || len(respStruct.Body) == 0 {
|
||||
respStruct.Body = jsonStr
|
||||
}
|
||||
return &respStruct, err
|
||||
}
|
||||
|
||||
/*
|
||||
业务文件获取
|
||||
*/
|
||||
func (ability *Ability304) TaobaoFilesGet(req *request2.TaobaoFilesGetRequest) (*response2.TaobaoFilesGetResponse, error) {
|
||||
if ability.Client == nil {
|
||||
return nil, errors.New("Ability304 topClient is nil")
|
||||
}
|
||||
var jsonStr, err = ability.Client.Execute("taobao.files.get", req.ToMap(), req.ToFileMap())
|
||||
var respStruct = response2.TaobaoFilesGetResponse{}
|
||||
if err != nil {
|
||||
log.Println("taobaoFilesGet error", err)
|
||||
return &respStruct, err
|
||||
}
|
||||
err = util.HandleJsonResponse(jsonStr, &respStruct)
|
||||
if respStruct.Body == "" || len(respStruct.Body) == 0 {
|
||||
respStruct.Body = jsonStr
|
||||
}
|
||||
return &respStruct, err
|
||||
}
|
||||
|
||||
/*
|
||||
刷新Access Token
|
||||
*/
|
||||
func (ability *Ability304) TaobaoTopAuthTokenRefresh(req *request2.TaobaoTopAuthTokenRefreshRequest) (*response2.TaobaoTopAuthTokenRefreshResponse, error) {
|
||||
if ability.Client == nil {
|
||||
return nil, errors.New("Ability304 topClient is nil")
|
||||
}
|
||||
var jsonStr, err = ability.Client.Execute("taobao.top.auth.token.refresh", req.ToMap(), req.ToFileMap())
|
||||
var respStruct = response2.TaobaoTopAuthTokenRefreshResponse{}
|
||||
if err != nil {
|
||||
log.Println("taobaoTopAuthTokenRefresh error", err)
|
||||
return &respStruct, err
|
||||
}
|
||||
err = util.HandleJsonResponse(jsonStr, &respStruct)
|
||||
if respStruct.Body == "" || len(respStruct.Body) == 0 {
|
||||
respStruct.Body = jsonStr
|
||||
}
|
||||
return &respStruct, err
|
||||
}
|
||||
|
||||
/*
|
||||
获取Access Token
|
||||
*/
|
||||
func (ability *Ability304) TaobaoTopAuthTokenCreate(req *request2.TaobaoTopAuthTokenCreateRequest) (*response2.TaobaoTopAuthTokenCreateResponse, error) {
|
||||
if ability.Client == nil {
|
||||
return nil, errors.New("Ability304 topClient is nil")
|
||||
}
|
||||
var jsonStr, err = ability.Client.Execute("taobao.top.auth.token.create", req.ToMap(), req.ToFileMap())
|
||||
var respStruct = response2.TaobaoTopAuthTokenCreateResponse{}
|
||||
if err != nil {
|
||||
log.Println("taobaoTopAuthTokenCreate error", err)
|
||||
return &respStruct, err
|
||||
}
|
||||
err = util.HandleJsonResponse(jsonStr, &respStruct)
|
||||
if respStruct.Body == "" || len(respStruct.Body) == 0 {
|
||||
respStruct.Body = jsonStr
|
||||
}
|
||||
return &respStruct, err
|
||||
}
|
||||
|
||||
/*
|
||||
TOPDNS配置
|
||||
*/
|
||||
func (ability *Ability304) TaobaoHttpdnsGet(req *request2.TaobaoHttpdnsGetRequest) (*response2.TaobaoHttpdnsGetResponse, error) {
|
||||
if ability.Client == nil {
|
||||
return nil, errors.New("Ability304 topClient is nil")
|
||||
}
|
||||
var jsonStr, err = ability.Client.Execute("taobao.httpdns.get", req.ToMap(), req.ToFileMap())
|
||||
var respStruct = response2.TaobaoHttpdnsGetResponse{}
|
||||
if err != nil {
|
||||
log.Println("taobaoHttpdnsGet error", err)
|
||||
return &respStruct, err
|
||||
}
|
||||
err = util.HandleJsonResponse(jsonStr, &respStruct)
|
||||
if respStruct.Body == "" || len(respStruct.Body) == 0 {
|
||||
respStruct.Body = jsonStr
|
||||
}
|
||||
return &respStruct, err
|
||||
}
|
||||
|
||||
/*
|
||||
sdk信息回调
|
||||
*/
|
||||
func (ability *Ability304) TaobaoTopSdkFeedbackUpload(req *request2.TaobaoTopSdkFeedbackUploadRequest) (*response2.TaobaoTopSdkFeedbackUploadResponse, error) {
|
||||
if ability.Client == nil {
|
||||
return nil, errors.New("Ability304 topClient is nil")
|
||||
}
|
||||
var jsonStr, err = ability.Client.Execute("taobao.top.sdk.feedback.upload", req.ToMap(), req.ToFileMap())
|
||||
var respStruct = response2.TaobaoTopSdkFeedbackUploadResponse{}
|
||||
if err != nil {
|
||||
log.Println("taobaoTopSdkFeedbackUpload error", err)
|
||||
return &respStruct, err
|
||||
}
|
||||
err = util.HandleJsonResponse(jsonStr, &respStruct)
|
||||
if respStruct.Body == "" || len(respStruct.Body) == 0 {
|
||||
respStruct.Body = jsonStr
|
||||
}
|
||||
return &respStruct, err
|
||||
}
|
||||
|
||||
/*
|
||||
获取TOP通道解密秘钥
|
||||
*/
|
||||
func (ability *Ability304) TaobaoTopSecretGet(req *request2.TaobaoTopSecretGetRequest) (*response2.TaobaoTopSecretGetResponse, error) {
|
||||
if ability.Client == nil {
|
||||
return nil, errors.New("Ability304 topClient is nil")
|
||||
}
|
||||
var jsonStr, err = ability.Client.Execute("taobao.top.secret.get", req.ToMap(), req.ToFileMap())
|
||||
var respStruct = response2.TaobaoTopSecretGetResponse{}
|
||||
if err != nil {
|
||||
log.Println("taobaoTopSecretGet error", err)
|
||||
return &respStruct, err
|
||||
}
|
||||
err = util.HandleJsonResponse(jsonStr, &respStruct)
|
||||
if respStruct.Body == "" || len(respStruct.Body) == 0 {
|
||||
respStruct.Body = jsonStr
|
||||
}
|
||||
return &respStruct, err
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
package domain
|
||||
|
||||
import (
|
||||
"git.rosy.net.cn/baseapi/platformapi/tao_vegetable/sdk/util"
|
||||
)
|
||||
|
||||
type TaobaoFilesGetTopDownloadRecordDo struct {
|
||||
/*
|
||||
下载链接 */
|
||||
Url *string `json:"url,omitempty" `
|
||||
|
||||
/*
|
||||
文件创建时间 */
|
||||
Created *util.LocalTime `json:"created,omitempty" `
|
||||
|
||||
/*
|
||||
下载链接状态。1:未下载。2:已下载 */
|
||||
Status *int64 `json:"status,omitempty" `
|
||||
}
|
||||
|
||||
func (s *TaobaoFilesGetTopDownloadRecordDo) SetUrl(v string) *TaobaoFilesGetTopDownloadRecordDo {
|
||||
s.Url = &v
|
||||
return s
|
||||
}
|
||||
func (s *TaobaoFilesGetTopDownloadRecordDo) SetCreated(v util.LocalTime) *TaobaoFilesGetTopDownloadRecordDo {
|
||||
s.Created = &v
|
||||
return s
|
||||
}
|
||||
func (s *TaobaoFilesGetTopDownloadRecordDo) SetStatus(v int64) *TaobaoFilesGetTopDownloadRecordDo {
|
||||
s.Status = &v
|
||||
return s
|
||||
}
|
||||
@@ -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
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
package response
|
||||
|
||||
type TaobaoAppipGetResponse struct {
|
||||
|
||||
/*
|
||||
System request id
|
||||
*/
|
||||
RequestId string `json:"request_id,omitempty" `
|
||||
|
||||
/*
|
||||
System body
|
||||
*/
|
||||
Body string
|
||||
|
||||
/*
|
||||
ISV发起请求服务器IP
|
||||
*/
|
||||
Ip string `json:"ip,omitempty" `
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
package response
|
||||
|
||||
import (
|
||||
"git.rosy.net.cn/baseapi/platformapi/tao_vegetable/sdk/ability304/domain"
|
||||
)
|
||||
|
||||
type TaobaoFilesGetResponse struct {
|
||||
|
||||
/*
|
||||
System request id
|
||||
*/
|
||||
RequestId string `json:"request_id,omitempty" `
|
||||
|
||||
/*
|
||||
System body
|
||||
*/
|
||||
Body string
|
||||
|
||||
/*
|
||||
results
|
||||
*/
|
||||
Results []domain.TaobaoFilesGetTopDownloadRecordDo `json:"results,omitempty" `
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
package response
|
||||
|
||||
type TaobaoHttpdnsGetResponse struct {
|
||||
|
||||
/*
|
||||
System request id
|
||||
*/
|
||||
RequestId string `json:"request_id,omitempty" `
|
||||
|
||||
/*
|
||||
System body
|
||||
*/
|
||||
Body string
|
||||
|
||||
/*
|
||||
HTTP DNS配置信息
|
||||
*/
|
||||
Result string `json:"result,omitempty" `
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
package response
|
||||
|
||||
type TaobaoOpenuidGetBymixnickResponse struct {
|
||||
|
||||
/*
|
||||
System request id
|
||||
*/
|
||||
RequestId string `json:"request_id,omitempty" `
|
||||
|
||||
/*
|
||||
System body
|
||||
*/
|
||||
Body string
|
||||
|
||||
/*
|
||||
OpenUID
|
||||
*/
|
||||
OpenUid string `json:"open_uid,omitempty" `
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
package response
|
||||
|
||||
type TaobaoOpenuidGetBytradeResponse struct {
|
||||
|
||||
/*
|
||||
System request id
|
||||
*/
|
||||
RequestId string `json:"request_id,omitempty" `
|
||||
|
||||
/*
|
||||
System body
|
||||
*/
|
||||
Body string
|
||||
|
||||
/*
|
||||
当前交易tid对应买家的openuid
|
||||
*/
|
||||
OpenUid string `json:"open_uid,omitempty" `
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
package response
|
||||
|
||||
type TaobaoOpenuidGetResponse struct {
|
||||
|
||||
/*
|
||||
System request id
|
||||
*/
|
||||
RequestId string `json:"request_id,omitempty" `
|
||||
|
||||
/*
|
||||
System body
|
||||
*/
|
||||
Body string
|
||||
|
||||
/*
|
||||
OpenUID
|
||||
*/
|
||||
OpenUid string `json:"open_uid,omitempty" `
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
package response
|
||||
|
||||
type TaobaoTopAuthTokenCreateResponse struct {
|
||||
|
||||
/*
|
||||
System request id
|
||||
*/
|
||||
RequestId string `json:"request_id,omitempty" `
|
||||
|
||||
/*
|
||||
System body
|
||||
*/
|
||||
Body string
|
||||
|
||||
/*
|
||||
返回的是json信息,和之前调用https://oauth.taobao.com/tac/token https://oauth.alibaba.com/token 换token返回的字段信息一致
|
||||
*/
|
||||
TokenResult string `json:"token_result,omitempty" `
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
package response
|
||||
|
||||
type TaobaoTopAuthTokenRefreshResponse struct {
|
||||
|
||||
/*
|
||||
System request id
|
||||
*/
|
||||
RequestId string `json:"request_id,omitempty" `
|
||||
|
||||
/*
|
||||
System body
|
||||
*/
|
||||
Body string
|
||||
|
||||
/*
|
||||
返回的是json信息
|
||||
*/
|
||||
TokenResult string `json:"token_result,omitempty" `
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
package response
|
||||
|
||||
type TaobaoTopSdkFeedbackUploadResponse struct {
|
||||
|
||||
/*
|
||||
System request id
|
||||
*/
|
||||
RequestId string `json:"request_id,omitempty" `
|
||||
|
||||
/*
|
||||
System body
|
||||
*/
|
||||
Body string
|
||||
|
||||
/*
|
||||
控制回传间隔(单位:秒)
|
||||
*/
|
||||
UploadInterval int64 `json:"upload_interval,omitempty" `
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
package response
|
||||
|
||||
type TaobaoTopSecretGetResponse struct {
|
||||
|
||||
/*
|
||||
System request id
|
||||
*/
|
||||
RequestId string `json:"request_id,omitempty" `
|
||||
|
||||
/*
|
||||
System body
|
||||
*/
|
||||
Body string
|
||||
|
||||
/*
|
||||
下次更新秘钥间隔,单位(秒)
|
||||
*/
|
||||
Interval int64 `json:"interval,omitempty" `
|
||||
/*
|
||||
最长有效期,容灾使用,单位(秒)
|
||||
*/
|
||||
MaxInterval int64 `json:"max_interval,omitempty" `
|
||||
/*
|
||||
秘钥值
|
||||
*/
|
||||
Secret string `json:"secret,omitempty" `
|
||||
/*
|
||||
秘钥版本号
|
||||
*/
|
||||
SecretVersion int64 `json:"secret_version,omitempty" `
|
||||
/*
|
||||
app配置信息
|
||||
*/
|
||||
AppConfig string `json:"app_config,omitempty" `
|
||||
}
|
||||
Reference in New Issue
Block a user