|
@@ -3,9 +3,20 @@ package pdd_union |
|
|
import ( |
|
|
import ( |
|
|
"code.fnuoos.com/go_rely_warehouse/zyos_go_third_party_api.git/md/cps_pdd" |
|
|
"code.fnuoos.com/go_rely_warehouse/zyos_go_third_party_api.git/md/cps_pdd" |
|
|
"encoding/json" |
|
|
"encoding/json" |
|
|
|
|
|
"github.com/tidwall/gjson" |
|
|
) |
|
|
) |
|
|
|
|
|
|
|
|
//https://open.pinduoduo.com/application/document/api?id=pdd.ddk.oauth.goods.prom.url.generate |
|
|
|
|
|
|
|
|
// https://open.pinduoduo.com/application/document/api?id=pdd.ddk.oauth.cashgift.create |
|
|
|
|
|
func CashgiftUrl(keyArr map[string]string, param map[string]interface{}) map[string]string { |
|
|
|
|
|
send, _ := Send(keyArr, "pdd.ddk.oauth.goods.prom.url.generate", param) |
|
|
|
|
|
tmp := map[string]string{ |
|
|
|
|
|
"cashgift_id": gjson.Get(send, "create_cashgift_response.cash_gift_id").String(), |
|
|
|
|
|
} |
|
|
|
|
|
return tmp |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// https://open.pinduoduo.com/application/document/api?id=pdd.ddk.oauth.goods.prom.url.generate |
|
|
func ExtendUrl(keyArr map[string]string, param map[string]interface{}) map[string]string { |
|
|
func ExtendUrl(keyArr map[string]string, param map[string]interface{}) map[string]string { |
|
|
send, _ := Send(keyArr, "pdd.ddk.oauth.goods.prom.url.generate", param) |
|
|
send, _ := Send(keyArr, "pdd.ddk.oauth.goods.prom.url.generate", param) |
|
|
var res cps_pdd.ExtendUrl |
|
|
var res cps_pdd.ExtendUrl |
|
@@ -42,7 +53,7 @@ func ExtendUrl(keyArr map[string]string, param map[string]interface{}) map[strin |
|
|
return tmp |
|
|
return tmp |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
//https://open.pinduoduo.com/application/document/api?id=pdd.ddk.oauth.resource.url.gen |
|
|
|
|
|
|
|
|
// https://open.pinduoduo.com/application/document/api?id=pdd.ddk.oauth.resource.url.gen |
|
|
func MainThemeUrl(keyArr map[string]string, param map[string]interface{}) map[string]string { |
|
|
func MainThemeUrl(keyArr map[string]string, param map[string]interface{}) map[string]string { |
|
|
send, _ := Send(keyArr, "pdd.ddk.oauth.resource.url.gen", param) |
|
|
send, _ := Send(keyArr, "pdd.ddk.oauth.resource.url.gen", param) |
|
|
var res cps_pdd.MainThemeUrl |
|
|
var res cps_pdd.MainThemeUrl |
|
@@ -81,7 +92,7 @@ func MainThemeUrl(keyArr map[string]string, param map[string]interface{}) map[st |
|
|
return tmp |
|
|
return tmp |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
//https://open.pinduoduo.com/application/document/api?id=pdd.ddk.oauth.goods.zs.unit.url.gen |
|
|
|
|
|
|
|
|
// https://open.pinduoduo.com/application/document/api?id=pdd.ddk.oauth.goods.zs.unit.url.gen |
|
|
func WnMainThemeUrl(keyArr map[string]string, param map[string]interface{}) map[string]string { |
|
|
func WnMainThemeUrl(keyArr map[string]string, param map[string]interface{}) map[string]string { |
|
|
send, _ := Send(keyArr, "pdd.ddk.oauth.goods.zs.unit.url.gen", param) |
|
|
send, _ := Send(keyArr, "pdd.ddk.oauth.goods.zs.unit.url.gen", param) |
|
|
var res cps_pdd.WnMainThemeUrl |
|
|
var res cps_pdd.WnMainThemeUrl |
|
@@ -120,7 +131,7 @@ func WnMainThemeUrl(keyArr map[string]string, param map[string]interface{}) map[ |
|
|
return tmp |
|
|
return tmp |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
//https://open.pinduoduo.com/application/document/api?id=pdd.ddk.oauth.rp.prom.url.generate |
|
|
|
|
|
|
|
|
// https://open.pinduoduo.com/application/document/api?id=pdd.ddk.oauth.rp.prom.url.generate |
|
|
func RpUrl(keyArr map[string]string, param map[string]interface{}) map[string]string { |
|
|
func RpUrl(keyArr map[string]string, param map[string]interface{}) map[string]string { |
|
|
send, _ := Send(keyArr, "pdd.ddk.oauth.rp.prom.url.generate", param) |
|
|
send, _ := Send(keyArr, "pdd.ddk.oauth.rp.prom.url.generate", param) |
|
|
var res cps_pdd.RpUrl |
|
|
var res cps_pdd.RpUrl |
|
@@ -162,7 +173,7 @@ func RpUrl(keyArr map[string]string, param map[string]interface{}) map[string]st |
|
|
return tmp |
|
|
return tmp |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
//https://open.pinduoduo.com/application/document/api?id=pdd.ddk.oauth.cms.prom.url.generate |
|
|
|
|
|
|
|
|
// https://open.pinduoduo.com/application/document/api?id=pdd.ddk.oauth.cms.prom.url.generate |
|
|
func PromUrl(keyArr map[string]string, param map[string]interface{}) map[string]string { |
|
|
func PromUrl(keyArr map[string]string, param map[string]interface{}) map[string]string { |
|
|
send, _ := Send(keyArr, "pdd.ddk.oauth.cms.prom.url.generate", param) |
|
|
send, _ := Send(keyArr, "pdd.ddk.oauth.cms.prom.url.generate", param) |
|
|
var res cps_pdd.PromUrl |
|
|
var res cps_pdd.PromUrl |
|
|