Documentation ¶
Index ¶
- type App
- func (app *App) CommissionIntegralToInt64(GoodsPrice, CouponProportion int64) int64
- func (app *App) CommissionRateParseInt64(CommissionRate string) int64
- func (app *App) CouponAmountToInt64(CouponAmount int64) int64
- func (app *App) Sign(p Params)
- func (app *App) TbkActivityInfoGet(notMustParams ...Params) *TbkActivityInfoGetResult
- func (app *App) TbkDgMaterialOptional(notMustParams ...Params) *TbkDgMaterialOptionalResult
- func (app *App) TbkDgOptimusMaterial(notMustParams ...Params) *TbkDgOptimusMaterialResult
- func (app *App) TbkItemInfoGet(notMustParams ...Params) *TbkItemInfoGetResult
- func (app *App) TbkSpreadGet(notMustParams ...Params) *TbkSpreadGetResult
- func (app *App) TbkTPwdCreate(notMustParams ...Params) *TbkTPwdCreateResult
- func (app *App) ZkFinalPriceParseInt64(ZkFinalPrice string) int64
- type ErrResp
- type Params
- type TbkActivityInfoGetResponse
- type TbkActivityInfoGetResult
- type TbkDgMaterialOptionalResponse
- type TbkDgMaterialOptionalResult
- type TbkDgOptimusMaterialResponse
- type TbkDgOptimusMaterialResult
- type TbkItemInfoGetResponse
- type TbkItemInfoGetResult
- type TbkSpreadGetResponse
- type TbkSpreadGetResult
- type TbkTPwdCreateResponse
- type TbkTPwdCreateResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct { AppKey string // 应用Key AppSecret string // 密钥 ZapLog *zap.Logger // 日志服务 Db *gorm.DB // 关系数据库服务 RDb *redis.Client // 缓存数据库服务 MDb *mongo.Client // 非关系数据库服务 }
App 公共请求参数
func (*App) CommissionIntegralToInt64 ¶
func (*App) CommissionRateParseInt64 ¶
func (*App) CouponAmountToInt64 ¶
func (*App) TbkActivityInfoGet ¶
func (app *App) TbkActivityInfoGet(notMustParams ...Params) *TbkActivityInfoGetResult
TbkActivityInfoGet 淘宝客-推广者-官方活动转链 https://open.taobao.com/api.htm?spm=a219a.7386797.0.0.5a83669a7rURsF&source=search&docId=48340&docType=2
func (*App) TbkDgMaterialOptional ¶
func (app *App) TbkDgMaterialOptional(notMustParams ...Params) *TbkDgMaterialOptionalResult
TbkDgMaterialOptional 淘宝客-推广者-物料搜索 https://open.taobao.com/api.htm?docId=35896&docType=2&source=search
func (*App) TbkDgOptimusMaterial ¶
func (app *App) TbkDgOptimusMaterial(notMustParams ...Params) *TbkDgOptimusMaterialResult
TbkDgOptimusMaterial 淘宝客-推广者-物料精选 https://open.taobao.com/api.htm?spm=a219a.7386797.0.0.5d67669aIeQeVI&source=search&docId=33947&docType=2
func (*App) TbkItemInfoGet ¶
func (app *App) TbkItemInfoGet(notMustParams ...Params) *TbkItemInfoGetResult
TbkItemInfoGet 淘宝客-公用-淘宝客商品详情查询(简版) https://open.taobao.com/api.htm?docId=24518&docType=2&source=search
func (*App) TbkSpreadGet ¶
func (app *App) TbkSpreadGet(notMustParams ...Params) *TbkSpreadGetResult
TbkSpreadGet 淘宝客-公用-长链转短链 https://open.taobao.com/api.htm?docId=27832&docType=2&source=search
func (*App) TbkTPwdCreate ¶
func (app *App) TbkTPwdCreate(notMustParams ...Params) *TbkTPwdCreateResult
TbkTPwdCreate 淘宝客-公用-淘口令生成 https://open.taobao.com/api.htm?docId=31127&docType=2&source=search
func (*App) ZkFinalPriceParseInt64 ¶
type TbkActivityInfoGetResponse ¶
type TbkActivityInfoGetResponse struct { TbkActivityInfoGetResponse struct { Data struct { WxQrcodeUrl string `json:"wx_qrcode_url"` ClickUrl string `json:"click_url"` ShortClickUrl string `json:"short_click_url"` TerminalType string `json:"terminal_type"` MaterialOssUrl string `json:"material_oss_url"` PageName string `json:"page_name"` PageStartTime string `json:"page_start_time"` PageEndTime string `json:"page_end_time"` WxMiniprogramPath string `json:"wx_miniprogram_path"` } `json:"data"` } `json:"tbk_activity_info_get_response"` }
type TbkActivityInfoGetResult ¶
type TbkActivityInfoGetResult struct { Result TbkActivityInfoGetResponse // 结果 Body []byte // 内容 Err error // 错误 }
func NewTbkActivityInfoGetResult ¶
func NewTbkActivityInfoGetResult(result TbkActivityInfoGetResponse, body []byte, err error) *TbkActivityInfoGetResult
type TbkDgMaterialOptionalResponse ¶
type TbkDgMaterialOptionalResponse struct { TbkDgMaterialOptionalResponse struct { ResultList struct { MapData []struct { CategoryId int `json:"category_id"` CategoryName string `json:"category_name"` CommissionRate string `json:"commission_rate"` CommissionType string `json:"commission_type"` CouponId string `json:"coupon_id"` CouponInfo string `json:"coupon_info"` CouponRemainCount int `json:"coupon_remain_count"` CouponCount int `json:"coupon__count"` CpaRewardType string `json:"cpa_reward_type"` IncludeDxjh string `json:"include_dxjh"` IncludeMkt string `json:"include_mkt"` InfoDxjh string `json:"info_dxjh"` ItemDescription string `json:"item_description"` ItemId int64 `json:"item_id"` ItemUrl string `json:"item_url"` LevelOneCategoryId int64 `json:"level_one_category_id"` LevelOneCategoryName string `json:"level_one_category_name"` Nick string `json:"nick"` NumIid int64 `json:"num_iid"` PictUrl string `json:"pict_url"` Presale int `json:"presale"` PresaleDiscountFeeText string `json:"presale_discount_fee_text"` PresaleEndTime int64 `json:"presale_end_time"` PresaleStartTime int64 `json:"presale_start_time"` PresaleTailEndTime int64 `json:"presale_tail_end_time"` PresaleTailStartTime int64 `json:"presale_tail_start_time"` Provcity string `json:"provcity"` RealPostFe int `json:"real_post_fe"` ReservePrice string `json:"reserve_price"` SellerId int64 `json:"seller_id"` ShopDsr int `json:"shop_dsr"` ShopTitle string `json:"shop_title"` ShortTitle string `json:"short_title"` SmallImages struct { String []string `json:"string"` } `json:"small_images"` SuperiorBrand string `json:"superior_brand"` Title string `json:"title"` TkTotalCommi string `json:"tk_total_commi"` TkTotalSales string `json:"tk_total_sales"` Url string `json:"url"` UserType int `json:"user_type"` Volume int64 `json:"volume"` WhiteImage string `json:"white_image"` XId string `json:"x_id"` ZkFinalPrice string `json:"zk_final_price"` CouponShareUrl string `json:"coupon_share_url"` CouponAmount string `json:"coupon_amount"` } `json:"map_data"` } `json:"result_list"` TotalResults int `json:"total_results"` RequestId string `json:"request_id"` } `json:"tbk_dg_material_optional_response"` }
type TbkDgMaterialOptionalResult ¶
type TbkDgMaterialOptionalResult struct { Result TbkDgMaterialOptionalResponse // 结果 Body []byte // 内容 Err error // 错误 }
func NewTbkDgMaterialOptionalResult ¶
func NewTbkDgMaterialOptionalResult(result TbkDgMaterialOptionalResponse, body []byte, err error) *TbkDgMaterialOptionalResult
type TbkDgOptimusMaterialResponse ¶
type TbkDgOptimusMaterialResponse struct { TbkDgOptimusMaterialResponse struct { IsDefault string `json:"is_default"` ResultList struct { MapData []struct { CategoryId int `json:"category_id"` ClickUrl string `json:"click_url"` CommissionRate string `json:"commission_rate"` CouponAmount int64 `json:"coupon_amount"` CouponClickUrl string `json:"coupon_click_url"` CouponEndTime string `json:"coupon_end_time"` CouponRemainCount int `json:"coupon_remain_count"` CouponShareUrl string `json:"coupon_share_url"` CouponStartFee string `json:"coupon_start_fee"` CouponStartTime string `json:"coupon_start_time"` CouponTotalCount int `json:"coupon_total_count"` CpaRewardType string `json:"cpa_reward_type"` ItemDescription string `json:"item_description"` ItemId int64 `json:"item_id"` JhsPriceUspList string `json:"jhs_price_usp_list"` LevelOneCategoryId int64 `json:"level_one_category_id"` LevelOneCategoryName string `json:"level_one_category_name"` Nick string `json:"nick"` PictUrl string `json:"pict_url"` ReservePrice string `json:"reserve_price"` SellerId int64 `json:"seller_id"` ShopTitle string `json:"shop_title"` ShortTitle string `json:"short_title"` SmallImages struct { String []string `json:"string"` } `json:"small_images"` SubTitle string `json:"sub_title"` Title string `json:"title"` UserType int `json:"user_type"` Volume int64 `json:"volume"` WhiteImage string `json:"white_image"` ZkFinalPrice string `json:"zk_final_price"` } `json:"map_data"` } `json:"result_list"` RequestId string `json:"request_id"` } `json:"tbk_dg_optimus_material_response"` }
type TbkDgOptimusMaterialResult ¶
type TbkDgOptimusMaterialResult struct { Result TbkDgOptimusMaterialResponse // 结果 Body []byte // 内容 Err error // 错误 }
func NewTbkDgOptimusMaterialResult ¶
func NewTbkDgOptimusMaterialResult(result TbkDgOptimusMaterialResponse, body []byte, err error) *TbkDgOptimusMaterialResult
type TbkItemInfoGetResponse ¶
type TbkItemInfoGetResponse struct { TbkItemInfoGetResponse struct { Results struct { NTbkItem []struct { CatLeafName string `json:"cat_leaf_name"` CatName string `json:"cat_name"` FreeShipment bool `json:"free_shipment"` HotFlag string `json:"hot_flag"` ItemUrl string `json:"item_url"` JuOnlineEnd string `json:"ju_online_end"` JuOnlineStartTime string `json:"ju_online_start_time"` JuPreShowEndTime string `json:"ju_pre_show_end_time"` JuPreShowStartTime string `json:"ju_pre_show_start_time"` MaterialLibType string `json:"material_lib_type"` Nick string `json:"nick"` NumIid int64 `json:"num_iid"` PictUrl string `json:"pict_url"` PresaleDeposit string `json:"presale_deposit"` PresaleEndTime int `json:"presale_end_time"` PresaleStartTime int `json:"presale_start_time"` PresaleTailEndTime int `json:"presale_tail_end_time"` PresaleTailStartTime int `json:"presale_tail_start_time"` Provcity string `json:"provcity"` ReservePrice string `json:"reserve_price"` SellerId int64 `json:"seller_id"` SmallImages struct { String []string `json:"string"` } `json:"small_images"` SuperiorBrand string `json:"superior_brand"` Title string `json:"title"` TmallPllPlayActivityStartTime int `json:"tmall_pll_play_activity_start_time"` UserType int `json:"user_type"` Volume int64 `json:"volume"` ZkFinalPrice string `json:"zk_final_price"` } `json:"n_tbk_item"` } `json:"results"` RequestId string `json:"request_id"` } `json:"tbk_item_info_get_response"` }
type TbkItemInfoGetResult ¶
type TbkItemInfoGetResult struct { Result TbkItemInfoGetResponse // 结果 Body []byte // 内容 Err error // 错误 }
func NewTbkItemInfoGetResult ¶
func NewTbkItemInfoGetResult(result TbkItemInfoGetResponse, body []byte, err error) *TbkItemInfoGetResult
type TbkSpreadGetResponse ¶
type TbkSpreadGetResponse struct { TbkSpreadGetResponse struct { Results struct { TbkSpread []struct { Content string `json:"content"` ErrMsg string `json:"err_msg"` } `json:"tbk_spread"` } `json:"results"` TotalResults int `json:"total_results"` RequestId string `json:"request_id"` } `json:"tbk_spread_get_response"` }
type TbkSpreadGetResult ¶
type TbkSpreadGetResult struct { Result TbkSpreadGetResponse // 结果 Body []byte // 内容 Err error // 错误 }
func NewTbkSpreadGetResult ¶
func NewTbkSpreadGetResult(result TbkSpreadGetResponse, body []byte, err error) *TbkSpreadGetResult
type TbkTPwdCreateResponse ¶
type TbkTPwdCreateResult ¶
type TbkTPwdCreateResult struct { Result TbkTPwdCreateResponse // 结果 Body []byte // 内容 Err error // 错误 }
func NewTbkTPwdCreateResult ¶
func NewTbkTPwdCreateResult(result TbkTPwdCreateResponse, body []byte, err error) *TbkTPwdCreateResult