pdd.ddk.goods.promotion.url.generate.go 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. package pdd
  2. type WxDdkGoodsPromotionUrlGenerateRequest struct {
  3. PId string `json:"p_id"`
  4. SearchId string `json:"search_id"`
  5. GoodsSignList []string `json:"goods_sign_list"`
  6. GenerateWeApp string `json:"generate_we_app"`
  7. }
  8. //type AutoGenerated struct {
  9. // PID string `json:"p_id"`
  10. // SearchID string `json:"search_id"`
  11. // GoodsSignList []string `json:"goods_sign_list"`
  12. //}
  13. type PddDdkGoodsPromotionUrlGenerateRequest struct {
  14. PddDdkBase
  15. PId string `json:"p_id"`
  16. SearchId string `json:"search_id"`
  17. GoodsSignList string `json:"goods_sign_list"`
  18. GenerateWeApp string `json:"generate_we_app"`
  19. GenerateAuthorityUrl string `json:"generate_authority_url"`
  20. }
  21. type PddDdkGoodsPromotionUrlGenerateResponse struct {
  22. GoodsPromotionURLGenerateResponse GoodsPromotionURLGenerateResponse `json:"goods_promotion_url_generate_response"`
  23. }
  24. //type GoodsPromotionURLList struct {
  25. // MobileURL string `json:"mobile_url"`
  26. // MobileShortURL string `json:"mobile_short_url"`
  27. // WeAppWebViewURL string `json:"we_app_web_view_url"`
  28. // URL string `json:"url"`
  29. // ShortURL string `json:"short_url"`
  30. // WeAppWebViewShortURL string `json:"we_app_web_view_short_url"`
  31. //}
  32. //type GoodsPromotionURLGenerateResponse struct {
  33. // GoodsPromotionURLList []GoodsPromotionURLList `json:"goods_promotion_url_list"`
  34. // RequestID string `json:"request_id"`
  35. //}
  36. type WeAppInfo struct {
  37. WeAppIconURL string `json:"we_app_icon_url"`
  38. UserName string `json:"user_name"`
  39. PagePath string `json:"page_path"`
  40. SourceDisplayName string `json:"source_display_name"`
  41. Title string `json:"title"`
  42. AppID string `json:"app_id"`
  43. Desc string `json:"desc"`
  44. }
  45. type GoodsPromotionURLList struct {
  46. MobileURL string `json:"mobile_url"`
  47. WeAppInfo WeAppInfo `json:"we_app_info"`
  48. MobileShortURL string `json:"mobile_short_url"`
  49. WeAppWebViewURL string `json:"we_app_web_view_url"`
  50. URL string `json:"url"`
  51. ShortURL string `json:"short_url"`
  52. WeAppWebViewShortURL string `json:"we_app_web_view_short_url"`
  53. }
  54. type GoodsPromotionURLGenerateResponse struct {
  55. GoodsPromotionURLList []GoodsPromotionURLList `json:"goods_promotion_url_list"`
  56. RequestID string `json:"request_id"`
  57. }