aa
This commit is contained in:
@@ -114,6 +114,18 @@ type RefundSkuDetail struct {
|
||||
Spec string `json:"spec"`
|
||||
}
|
||||
|
||||
type RefundDetail struct {
|
||||
TotalFoodAmount string `json:"total_food_amount"`
|
||||
BoxAmount string `json:"box_amount"`
|
||||
ActivityPoiAmount string `json:"activity_poi_amount"`
|
||||
ActivityMeituanAmount string `json:"activity_meituan_amount"`
|
||||
ActivityAgentAmount string `json:"activity_agent_amount"`
|
||||
PlatformChargeFee string `json:"platform_charge_fee"`
|
||||
SettleAmount string `json:"settle_amount"`
|
||||
Productpreferences string `json:"productpreferences"`
|
||||
NotProductpreferences string `json:"not_productpreferences"`
|
||||
}
|
||||
|
||||
type RefundOrderDetail struct {
|
||||
ApplyReason string `json:"apply_reason"`
|
||||
ApplyType int `json:"apply_type"`
|
||||
@@ -128,6 +140,7 @@ type RefundOrderDetail struct {
|
||||
UTime int64 `json:"utime"`
|
||||
WmAppRetailForOrderPartRefundList []*RefundSkuDetail `json:"wmAppRetailForOrderPartRefundList"`
|
||||
WmOrderIDView int64 `json:"wm_order_id_view"`
|
||||
RefundPartialEstimateCharge *RefundDetail `json:"refund_partial_estimate_charge"`
|
||||
}
|
||||
|
||||
type OrderExtraInfo struct {
|
||||
|
||||
@@ -97,7 +97,7 @@ func TestOrderGetRiderInfoPhoneNumber(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestGetOrderRefundDetail(t *testing.T) {
|
||||
result, err := api.GetOrderRefundDetail(94310371440052951, 0)
|
||||
result, err := api.GetOrderRefundDetail(115082650031169457, 0)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
@@ -36,16 +36,14 @@ func TestPoiMGet(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestPoiSave(t *testing.T) {
|
||||
result, err := api.PoiMGet([]string{testPoiCode})
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
poiParams := utils.FilterMapNilMembers(utils.Struct2FlatMap(result[0]))
|
||||
poiParams["name"] = "中国"
|
||||
err = api.PoiSave(testPoiCode, poiParams)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
//result, err := api.PoiMGet([]string{testPoiCode})
|
||||
//if err != nil {
|
||||
// t.Fatal(err)
|
||||
//}
|
||||
poiParams := map[string]interface{}{}
|
||||
//utils.FilterMapNilMembers(utils.Struct2FlatMap(result[0]))
|
||||
poiParams["name"] = "京西果园·果切·水果捞(宝山店)"
|
||||
api.PoiSave("9202094", poiParams)
|
||||
}
|
||||
|
||||
func TestPoiTagList(t *testing.T) {
|
||||
@@ -60,7 +58,7 @@ func TestPoiTagList(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestImageUploadByURL(t *testing.T) {
|
||||
result, err := api.ImageUploadByURL(testPoiCode, "hello.jpg", "http://image.jxc4.com/56cd1e88ada3660f37548c2d29ea2158.jpg")
|
||||
result, err := api.ImageUploadByURL("11918886", "菜市800x600.jpg", "http://image.jxc4.com/image/ff8c9443c894bfb4822f7d2f742718df.jpg")
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user