1
This commit is contained in:
29
platformapi/tao_vegetable/storeAct_test.go
Normal file
29
platformapi/tao_vegetable/storeAct_test.go
Normal file
@@ -0,0 +1,29 @@
|
||||
package tao_vegetable
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"git.rosy.net.cn/baseapi/platformapi/tao_vegetable/sdk/ability2770/domain"
|
||||
"git.rosy.net.cn/baseapi/utils"
|
||||
"testing"
|
||||
"time"
|
||||
)
|
||||
|
||||
/*
|
||||
商品活动
|
||||
*/
|
||||
//创建活动
|
||||
func TestActivityCreate(t *testing.T) {
|
||||
resp, err := apiTao.ActivityCreate(domain.AlibabaRetailMarketingItemdiscountActivityCreateItemDiscountActivityOperateRequest{
|
||||
ActivityName: utils.String2Pointer("创建单品特价活动测试616"),
|
||||
CreatorId: utils.String2Pointer("20230616112030"),
|
||||
CreatorName: utils.String2Pointer("京西菜市"),
|
||||
Description: utils.String2Pointer("特价活动很火热"),
|
||||
Terminals: &[]int32{1},
|
||||
StoreIds: &[]string{"JX668998"},
|
||||
DiscountType: utils.Int64ToPointer(3),
|
||||
StartTime: utils.Int64ToPointer(time.Now().Unix()),
|
||||
EndTime: utils.Int64ToPointer(time.Now().Unix() + time.Hour.Milliseconds()),
|
||||
})
|
||||
fmt.Println(resp)
|
||||
fmt.Println(err)
|
||||
}
|
||||
Reference in New Issue
Block a user