1
This commit is contained in:
98
platformapi/tao_vegetable/sdk/ability1475/Ability1475.go
Normal file
98
platformapi/tao_vegetable/sdk/ability1475/Ability1475.go
Normal file
@@ -0,0 +1,98 @@
|
||||
package ability1475
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"git.rosy.net.cn/baseapi/platformapi/tao_vegetable/sdk"
|
||||
request2 "git.rosy.net.cn/baseapi/platformapi/tao_vegetable/sdk/ability1475/request"
|
||||
response2 "git.rosy.net.cn/baseapi/platformapi/tao_vegetable/sdk/ability1475/response"
|
||||
"git.rosy.net.cn/baseapi/platformapi/tao_vegetable/sdk/util"
|
||||
"log"
|
||||
)
|
||||
|
||||
type Ability1475 struct {
|
||||
Client *topsdk.TopClient
|
||||
}
|
||||
|
||||
func NewAbility1475(client *topsdk.TopClient) *Ability1475 {
|
||||
return &Ability1475{client}
|
||||
}
|
||||
|
||||
/*
|
||||
rt回传采购价
|
||||
*/
|
||||
func (ability *Ability1475) AlibabaWdkPurchasePrice(req *request2.AlibabaWdkPurchasePriceRequest, session string) (*response2.AlibabaWdkPurchasePriceResponse, error) {
|
||||
if ability.Client == nil {
|
||||
return nil, errors.New("Ability1475 topClient is nil")
|
||||
}
|
||||
var jsonStr, err = ability.Client.ExecuteWithSession("alibaba.wdk.purchase.price", req.ToMap(), req.ToFileMap(), session)
|
||||
var respStruct = response2.AlibabaWdkPurchasePriceResponse{}
|
||||
if err != nil {
|
||||
log.Println("alibabaWdkPurchasePrice 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 *Ability1475) AlibabaWdkMerchantRoutingRegister(req *request2.AlibabaWdkMerchantRoutingRegisterRequest, session string) (*response2.AlibabaWdkMerchantRoutingRegisterResponse, error) {
|
||||
if ability.Client == nil {
|
||||
return nil, errors.New("Ability1475 topClient is nil")
|
||||
}
|
||||
var jsonStr, err = ability.Client.ExecuteWithSession("alibaba.wdk.merchant.routing.register", req.ToMap(), req.ToFileMap(), session)
|
||||
var respStruct = response2.AlibabaWdkMerchantRoutingRegisterResponse{}
|
||||
if err != nil {
|
||||
log.Println("alibabaWdkMerchantRoutingRegister 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 *Ability1475) AlibabaWdkTimeGet(req *request2.AlibabaWdkTimeGetRequest) (*response2.AlibabaWdkTimeGetResponse, error) {
|
||||
if ability.Client == nil {
|
||||
return nil, errors.New("Ability1475 topClient is nil")
|
||||
}
|
||||
var jsonStr, err = ability.Client.Execute("alibaba.wdk.time.get", req.ToMap(), req.ToFileMap())
|
||||
var respStruct = response2.AlibabaWdkTimeGetResponse{}
|
||||
if err != nil {
|
||||
log.Println("alibabaWdkTimeGet 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 *Ability1475) AlibabaWdkPictureUpload(req *request2.AlibabaWdkPictureUploadRequest, session string) (*response2.AlibabaWdkPictureUploadResponse, error) {
|
||||
if ability.Client == nil {
|
||||
return nil, errors.New("Ability1475 topClient is nil")
|
||||
}
|
||||
var jsonStr, err = ability.Client.ExecuteWithSession("alibaba.wdk.picture.upload", req.ToMap(), req.ToFileMap(), session)
|
||||
var respStruct = response2.AlibabaWdkPictureUploadResponse{}
|
||||
if err != nil {
|
||||
log.Println("alibabaWdkPictureUpload 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,38 @@
|
||||
package domain
|
||||
|
||||
|
||||
type AlibabaWdkMerchantRoutingRegisterApiResult struct {
|
||||
/*
|
||||
调用结果返回成功失败 */
|
||||
Model *bool `json:"model,omitempty" `
|
||||
|
||||
/*
|
||||
调用接口错误信息 */
|
||||
ErrMsg *string `json:"err_msg,omitempty" `
|
||||
|
||||
/*
|
||||
调用接口错误码 */
|
||||
ErrCode *string `json:"err_code,omitempty" `
|
||||
|
||||
/*
|
||||
调用接口成功失败 */
|
||||
Success *bool `json:"success,omitempty" `
|
||||
|
||||
}
|
||||
|
||||
func (s *AlibabaWdkMerchantRoutingRegisterApiResult) SetModel(v bool) *AlibabaWdkMerchantRoutingRegisterApiResult {
|
||||
s.Model = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaWdkMerchantRoutingRegisterApiResult) SetErrMsg(v string) *AlibabaWdkMerchantRoutingRegisterApiResult {
|
||||
s.ErrMsg = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaWdkMerchantRoutingRegisterApiResult) SetErrCode(v string) *AlibabaWdkMerchantRoutingRegisterApiResult {
|
||||
s.ErrCode = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaWdkMerchantRoutingRegisterApiResult) SetSuccess(v bool) *AlibabaWdkMerchantRoutingRegisterApiResult {
|
||||
s.Success = &v
|
||||
return s
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
package domain
|
||||
|
||||
|
||||
type AlibabaWdkMerchantRoutingRegisterMerchantRoutingInfoRegisterDo struct {
|
||||
/*
|
||||
仓code,为空时路由为商家维度 */
|
||||
WarehouseCode *string `json:"warehouse_code,omitempty" `
|
||||
|
||||
/*
|
||||
操作状态1-注册;2-删除 */
|
||||
Status *int64 `json:"status,omitempty" `
|
||||
|
||||
}
|
||||
|
||||
func (s *AlibabaWdkMerchantRoutingRegisterMerchantRoutingInfoRegisterDo) SetWarehouseCode(v string) *AlibabaWdkMerchantRoutingRegisterMerchantRoutingInfoRegisterDo {
|
||||
s.WarehouseCode = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaWdkMerchantRoutingRegisterMerchantRoutingInfoRegisterDo) SetStatus(v int64) *AlibabaWdkMerchantRoutingRegisterMerchantRoutingInfoRegisterDo {
|
||||
s.Status = &v
|
||||
return s
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
package domain
|
||||
|
||||
|
||||
type AlibabaWdkPictureUploadApiResult struct {
|
||||
/*
|
||||
success */
|
||||
Success *bool `json:"success,omitempty" `
|
||||
|
||||
/*
|
||||
model */
|
||||
Model *AlibabaWdkPictureUploadPictureDo `json:"model,omitempty" `
|
||||
|
||||
/*
|
||||
错误code */
|
||||
ErrCode *string `json:"err_code,omitempty" `
|
||||
|
||||
/*
|
||||
错误原因 */
|
||||
ErrMsg *string `json:"err_msg,omitempty" `
|
||||
|
||||
}
|
||||
|
||||
func (s *AlibabaWdkPictureUploadApiResult) SetSuccess(v bool) *AlibabaWdkPictureUploadApiResult {
|
||||
s.Success = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaWdkPictureUploadApiResult) SetModel(v AlibabaWdkPictureUploadPictureDo) *AlibabaWdkPictureUploadApiResult {
|
||||
s.Model = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaWdkPictureUploadApiResult) SetErrCode(v string) *AlibabaWdkPictureUploadApiResult {
|
||||
s.ErrCode = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaWdkPictureUploadApiResult) SetErrMsg(v string) *AlibabaWdkPictureUploadApiResult {
|
||||
s.ErrMsg = &v
|
||||
return s
|
||||
}
|
||||
@@ -0,0 +1,94 @@
|
||||
package domain
|
||||
|
||||
|
||||
type AlibabaWdkPictureUploadPictureDo struct {
|
||||
/*
|
||||
图片ID */
|
||||
PictureId *int64 `json:"picture_id,omitempty" `
|
||||
|
||||
/*
|
||||
图片分类ID */
|
||||
PictureCategoryId *int64 `json:"picture_category_id,omitempty" `
|
||||
|
||||
/*
|
||||
返回的是相对路劲 */
|
||||
PicturePath *string `json:"picture_path,omitempty" `
|
||||
|
||||
/*
|
||||
图片标题 */
|
||||
Title *string `json:"title,omitempty" `
|
||||
|
||||
/*
|
||||
图片大小,bite单位 */
|
||||
Sizes *int64 `json:"sizes,omitempty" `
|
||||
|
||||
/*
|
||||
图片状态,unfroze代表没有被冻结,froze代表被冻结,pass代表排查通过 */
|
||||
Status *string `json:"status,omitempty" `
|
||||
|
||||
/*
|
||||
图片是否删除的标记 */
|
||||
Deleted *string `json:"deleted,omitempty" `
|
||||
|
||||
/*
|
||||
图片的创建时间 */
|
||||
Created *string `json:"created,omitempty" `
|
||||
|
||||
/*
|
||||
图片的修改时间 */
|
||||
Modified *string `json:"modified,omitempty" `
|
||||
|
||||
/*
|
||||
图片相素,格式:长x宽,如450x150 */
|
||||
Pixel *string `json:"pixel,omitempty" `
|
||||
|
||||
/*
|
||||
完整的路劲 */
|
||||
FullUrl *string `json:"full_url,omitempty" `
|
||||
|
||||
}
|
||||
|
||||
func (s *AlibabaWdkPictureUploadPictureDo) SetPictureId(v int64) *AlibabaWdkPictureUploadPictureDo {
|
||||
s.PictureId = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaWdkPictureUploadPictureDo) SetPictureCategoryId(v int64) *AlibabaWdkPictureUploadPictureDo {
|
||||
s.PictureCategoryId = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaWdkPictureUploadPictureDo) SetPicturePath(v string) *AlibabaWdkPictureUploadPictureDo {
|
||||
s.PicturePath = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaWdkPictureUploadPictureDo) SetTitle(v string) *AlibabaWdkPictureUploadPictureDo {
|
||||
s.Title = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaWdkPictureUploadPictureDo) SetSizes(v int64) *AlibabaWdkPictureUploadPictureDo {
|
||||
s.Sizes = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaWdkPictureUploadPictureDo) SetStatus(v string) *AlibabaWdkPictureUploadPictureDo {
|
||||
s.Status = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaWdkPictureUploadPictureDo) SetDeleted(v string) *AlibabaWdkPictureUploadPictureDo {
|
||||
s.Deleted = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaWdkPictureUploadPictureDo) SetCreated(v string) *AlibabaWdkPictureUploadPictureDo {
|
||||
s.Created = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaWdkPictureUploadPictureDo) SetModified(v string) *AlibabaWdkPictureUploadPictureDo {
|
||||
s.Modified = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaWdkPictureUploadPictureDo) SetPixel(v string) *AlibabaWdkPictureUploadPictureDo {
|
||||
s.Pixel = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaWdkPictureUploadPictureDo) SetFullUrl(v string) *AlibabaWdkPictureUploadPictureDo {
|
||||
s.FullUrl = &v
|
||||
return s
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
package domain
|
||||
|
||||
|
||||
type AlibabaWdkPurchasePriceWdkOpenPurchasePrice struct {
|
||||
/*
|
||||
经营店id,必填 */
|
||||
StoreId *string `json:"store_id,omitempty" `
|
||||
|
||||
/*
|
||||
淘系主订单号,必填 */
|
||||
TbOrderId *string `json:"tb_order_id,omitempty" `
|
||||
|
||||
/*
|
||||
子单信息 */
|
||||
WdkOpenPurchasePriceSubs *[]AlibabaWdkPurchasePriceWdkopenpurchasepricesubs `json:"wdk_open_purchase_price_subs,omitempty" `
|
||||
|
||||
/*
|
||||
渠道标识45=猫超,100=共享零售 */
|
||||
OrderFrom *int64 `json:"order_from,omitempty" `
|
||||
|
||||
}
|
||||
|
||||
func (s *AlibabaWdkPurchasePriceWdkOpenPurchasePrice) SetStoreId(v string) *AlibabaWdkPurchasePriceWdkOpenPurchasePrice {
|
||||
s.StoreId = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaWdkPurchasePriceWdkOpenPurchasePrice) SetTbOrderId(v string) *AlibabaWdkPurchasePriceWdkOpenPurchasePrice {
|
||||
s.TbOrderId = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaWdkPurchasePriceWdkOpenPurchasePrice) SetWdkOpenPurchasePriceSubs(v []AlibabaWdkPurchasePriceWdkopenpurchasepricesubs) *AlibabaWdkPurchasePriceWdkOpenPurchasePrice {
|
||||
s.WdkOpenPurchasePriceSubs = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaWdkPurchasePriceWdkOpenPurchasePrice) SetOrderFrom(v int64) *AlibabaWdkPurchasePriceWdkOpenPurchasePrice {
|
||||
s.OrderFrom = &v
|
||||
return s
|
||||
}
|
||||
@@ -0,0 +1,54 @@
|
||||
package domain
|
||||
|
||||
|
||||
type AlibabaWdkPurchasePriceWdkopenpurchasepricesubs struct {
|
||||
/*
|
||||
确认标识,0:核对 1:确认,必填 */
|
||||
Confirm *string `json:"confirm,omitempty" `
|
||||
|
||||
/*
|
||||
去税采购价,单位分,必填 */
|
||||
PriceWithoutTax *string `json:"price_without_tax,omitempty" `
|
||||
|
||||
/*
|
||||
含税采购价,单位分,必填 */
|
||||
PriceWithTax *string `json:"price_with_tax,omitempty" `
|
||||
|
||||
/*
|
||||
税率,必填 */
|
||||
TaxRate *string `json:"tax_rate,omitempty" `
|
||||
|
||||
/*
|
||||
商品编码,必填 */
|
||||
SkuCode *string `json:"sku_code,omitempty" `
|
||||
|
||||
/*
|
||||
淘系子订单号,必填 */
|
||||
TbSubOrderId *string `json:"tb_sub_order_id,omitempty" `
|
||||
|
||||
}
|
||||
|
||||
func (s *AlibabaWdkPurchasePriceWdkopenpurchasepricesubs) SetConfirm(v string) *AlibabaWdkPurchasePriceWdkopenpurchasepricesubs {
|
||||
s.Confirm = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaWdkPurchasePriceWdkopenpurchasepricesubs) SetPriceWithoutTax(v string) *AlibabaWdkPurchasePriceWdkopenpurchasepricesubs {
|
||||
s.PriceWithoutTax = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaWdkPurchasePriceWdkopenpurchasepricesubs) SetPriceWithTax(v string) *AlibabaWdkPurchasePriceWdkopenpurchasepricesubs {
|
||||
s.PriceWithTax = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaWdkPurchasePriceWdkopenpurchasepricesubs) SetTaxRate(v string) *AlibabaWdkPurchasePriceWdkopenpurchasepricesubs {
|
||||
s.TaxRate = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaWdkPurchasePriceWdkopenpurchasepricesubs) SetSkuCode(v string) *AlibabaWdkPurchasePriceWdkopenpurchasepricesubs {
|
||||
s.SkuCode = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaWdkPurchasePriceWdkopenpurchasepricesubs) SetTbSubOrderId(v string) *AlibabaWdkPurchasePriceWdkopenpurchasepricesubs {
|
||||
s.TbSubOrderId = &v
|
||||
return s
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
package request
|
||||
|
||||
import (
|
||||
"git.rosy.net.cn/baseapi/platformapi/tao_vegetable/sdk/ability1475/domain"
|
||||
"git.rosy.net.cn/baseapi/platformapi/tao_vegetable/sdk/util"
|
||||
)
|
||||
|
||||
type AlibabaWdkMerchantRoutingRegisterRequest struct {
|
||||
/*
|
||||
接口入参 */
|
||||
MerchantRoutingInfoRegister *domain.AlibabaWdkMerchantRoutingRegisterMerchantRoutingInfoRegisterDo `json:"merchant_routing_info_register" required:"true" `
|
||||
}
|
||||
|
||||
func (s *AlibabaWdkMerchantRoutingRegisterRequest) SetMerchantRoutingInfoRegister(v domain.AlibabaWdkMerchantRoutingRegisterMerchantRoutingInfoRegisterDo) *AlibabaWdkMerchantRoutingRegisterRequest {
|
||||
s.MerchantRoutingInfoRegister = &v
|
||||
return s
|
||||
}
|
||||
|
||||
func (req *AlibabaWdkMerchantRoutingRegisterRequest) ToMap() map[string]interface{} {
|
||||
paramMap := make(map[string]interface{})
|
||||
if req.MerchantRoutingInfoRegister != nil {
|
||||
paramMap["merchant_routing_info_register"] = util.ConvertStruct(*req.MerchantRoutingInfoRegister)
|
||||
}
|
||||
return paramMap
|
||||
}
|
||||
|
||||
func (req *AlibabaWdkMerchantRoutingRegisterRequest) ToFileMap() map[string]interface{} {
|
||||
fileMap := make(map[string]interface{})
|
||||
return fileMap
|
||||
}
|
||||
@@ -0,0 +1,55 @@
|
||||
package request
|
||||
|
||||
type AlibabaWdkPictureUploadRequest struct {
|
||||
/*
|
||||
图片分类ID,设置具体某个分类ID或设置0上传到默认分类,只能传入一个分类 */
|
||||
PictureCategoryId *int64 `json:"picture_category_id" required:"true" `
|
||||
/*
|
||||
图片二进制文件流,不能为空,允许png、jpg、gif图片格式,3M以内 */
|
||||
Img *[]byte `json:"img" required:"true" `
|
||||
/*
|
||||
包括后缀名的图片标题,不能为空,如Bule.jpg,有些卖家希望图片上传后取图片文件的默认名 */
|
||||
ImgInputTitle *string `json:"img_input_title,omitempty" required:"false" `
|
||||
/*
|
||||
图片标题,如果为空,传的图片标题就取去掉后缀名的image_input_title,超过50字符长度会截取50字符,重名会在标题末尾加"(1)";标题末尾已经有"(数字)"了,则数字加1 */
|
||||
Title *string `json:"title,omitempty" required:"false" `
|
||||
}
|
||||
|
||||
func (s *AlibabaWdkPictureUploadRequest) SetPictureCategoryId(v int64) *AlibabaWdkPictureUploadRequest {
|
||||
s.PictureCategoryId = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaWdkPictureUploadRequest) SetImg(v []byte) *AlibabaWdkPictureUploadRequest {
|
||||
s.Img = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaWdkPictureUploadRequest) SetImgInputTitle(v string) *AlibabaWdkPictureUploadRequest {
|
||||
s.ImgInputTitle = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaWdkPictureUploadRequest) SetTitle(v string) *AlibabaWdkPictureUploadRequest {
|
||||
s.Title = &v
|
||||
return s
|
||||
}
|
||||
|
||||
func (req *AlibabaWdkPictureUploadRequest) ToMap() map[string]interface{} {
|
||||
paramMap := make(map[string]interface{})
|
||||
if req.PictureCategoryId != nil {
|
||||
paramMap["picture_category_id"] = *req.PictureCategoryId
|
||||
}
|
||||
if req.ImgInputTitle != nil {
|
||||
paramMap["img_input_title"] = *req.ImgInputTitle
|
||||
}
|
||||
if req.Title != nil {
|
||||
paramMap["title"] = *req.Title
|
||||
}
|
||||
return paramMap
|
||||
}
|
||||
|
||||
func (req *AlibabaWdkPictureUploadRequest) ToFileMap() map[string]interface{} {
|
||||
fileMap := make(map[string]interface{})
|
||||
if req.Img != nil {
|
||||
fileMap["img"] = *req.Img
|
||||
}
|
||||
return fileMap
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
package request
|
||||
|
||||
import (
|
||||
"git.rosy.net.cn/baseapi/platformapi/tao_vegetable/sdk/ability1475/domain"
|
||||
"git.rosy.net.cn/baseapi/platformapi/tao_vegetable/sdk/util"
|
||||
)
|
||||
|
||||
type AlibabaWdkPurchasePriceRequest struct {
|
||||
/*
|
||||
入参 */
|
||||
WdkOpenPurchasePrice *domain.AlibabaWdkPurchasePriceWdkOpenPurchasePrice `json:"wdk_open_purchase_price,omitempty" required:"false" `
|
||||
}
|
||||
|
||||
func (s *AlibabaWdkPurchasePriceRequest) SetWdkOpenPurchasePrice(v domain.AlibabaWdkPurchasePriceWdkOpenPurchasePrice) *AlibabaWdkPurchasePriceRequest {
|
||||
s.WdkOpenPurchasePrice = &v
|
||||
return s
|
||||
}
|
||||
|
||||
func (req *AlibabaWdkPurchasePriceRequest) ToMap() map[string]interface{} {
|
||||
paramMap := make(map[string]interface{})
|
||||
if req.WdkOpenPurchasePrice != nil {
|
||||
paramMap["wdk_open_purchase_price"] = util.ConvertStruct(*req.WdkOpenPurchasePrice)
|
||||
}
|
||||
return paramMap
|
||||
}
|
||||
|
||||
func (req *AlibabaWdkPurchasePriceRequest) ToFileMap() map[string]interface{} {
|
||||
fileMap := make(map[string]interface{})
|
||||
return fileMap
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
package request
|
||||
|
||||
|
||||
type AlibabaWdkTimeGetRequest struct {
|
||||
}
|
||||
|
||||
|
||||
func (req *AlibabaWdkTimeGetRequest) ToMap() map[string]interface{} {
|
||||
paramMap := make(map[string]interface{})
|
||||
return paramMap
|
||||
}
|
||||
|
||||
func (req *AlibabaWdkTimeGetRequest) ToFileMap() map[string]interface{} {
|
||||
fileMap := make(map[string]interface{})
|
||||
return fileMap
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
package response
|
||||
|
||||
import (
|
||||
"git.rosy.net.cn/baseapi/platformapi/tao_vegetable/sdk/ability1475/domain"
|
||||
)
|
||||
|
||||
type AlibabaWdkMerchantRoutingRegisterResponse struct {
|
||||
|
||||
/*
|
||||
System request id
|
||||
*/
|
||||
RequestId string `json:"request_id,omitempty" `
|
||||
|
||||
/*
|
||||
System body
|
||||
*/
|
||||
Body string
|
||||
|
||||
/*
|
||||
返回结果
|
||||
*/
|
||||
Result domain.AlibabaWdkMerchantRoutingRegisterApiResult `json:"result,omitempty" `
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
package response
|
||||
|
||||
import (
|
||||
"git.rosy.net.cn/baseapi/platformapi/tao_vegetable/sdk/ability1475/domain"
|
||||
)
|
||||
|
||||
type AlibabaWdkPictureUploadResponse struct {
|
||||
|
||||
/*
|
||||
System request id
|
||||
*/
|
||||
RequestId string `json:"request_id,omitempty" `
|
||||
|
||||
/*
|
||||
System body
|
||||
*/
|
||||
Body string
|
||||
|
||||
/*
|
||||
apiresult
|
||||
*/
|
||||
Result domain.AlibabaWdkPictureUploadApiResult `json:"result,omitempty" `
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
package response
|
||||
|
||||
type AlibabaWdkPurchasePriceResponse struct {
|
||||
|
||||
/*
|
||||
System request id
|
||||
*/
|
||||
RequestId string `json:"request_id,omitempty" `
|
||||
|
||||
/*
|
||||
System body
|
||||
*/
|
||||
Body string
|
||||
|
||||
/*
|
||||
SYSTEM ERROR
|
||||
*/
|
||||
ReturnMsg string `json:"return_msg,omitempty" `
|
||||
/*
|
||||
ERROR
|
||||
*/
|
||||
ReturnCode string `json:"return_code,omitempty" `
|
||||
/*
|
||||
true
|
||||
*/
|
||||
ReturnSuccess bool `json:"return_success,omitempty" `
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
package response
|
||||
|
||||
import (
|
||||
"git.rosy.net.cn/baseapi/platformapi/tao_vegetable/sdk/util"
|
||||
)
|
||||
|
||||
type AlibabaWdkTimeGetResponse struct {
|
||||
|
||||
/*
|
||||
System request id
|
||||
*/
|
||||
RequestId string `json:"request_id,omitempty" `
|
||||
|
||||
/*
|
||||
System body
|
||||
*/
|
||||
Body string
|
||||
|
||||
/*
|
||||
dateTime
|
||||
*/
|
||||
DateTime int64 `json:"date_time,omitempty" `
|
||||
/*
|
||||
date
|
||||
*/
|
||||
Date util.LocalTime `json:"date,omitempty" `
|
||||
}
|
||||
Reference in New Issue
Block a user