代码拉取完成,页面将自动刷新
package ability376
import (
"errors"
"gitee.com/danlansky/go-library/union/topsdk"
"gitee.com/danlansky/go-library/union/topsdk/ability376/request"
"gitee.com/danlansky/go-library/union/topsdk/ability376/response"
"gitee.com/danlansky/go-library/union/topsdk/util"
"log"
)
type Ability376 struct {
Client *topsdk.TopClient
}
func NewAbility376(client *topsdk.TopClient) *Ability376 {
return &Ability376{client}
}
/*
淘宝客-公用-长链转短链
*/
func (ability *Ability376) TaobaoTbkSpreadGet(req *request.TaobaoTbkSpreadGetRequest) (*response.TaobaoTbkSpreadGetResponse, error) {
if ability.Client == nil {
return nil, errors.New("Ability376 topClient is nil")
}
var jsonStr, err = ability.Client.Execute("taobao.tbk.spread.get", req.ToMap(), req.ToFileMap())
var respStruct = response.TaobaoTbkSpreadGetResponse{}
if err != nil {
log.Println("taobaoTbkSpreadGet error", err)
return &respStruct, err
}
err = util.HandleJsonResponse(jsonStr, &respStruct)
if respStruct.Body == "" || len(respStruct.Body) == 0 {
respStruct.Body = jsonStr
}
return &respStruct, err
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。