aa
This commit is contained in:
@@ -3,10 +3,11 @@ package pddapi
|
||||
import (
|
||||
"git.rosy.net.cn/baseapi/utils"
|
||||
"testing"
|
||||
"time"
|
||||
)
|
||||
|
||||
func TestOrderListRangeGet(t *testing.T) {
|
||||
result, err := api.OrderListRangeGet("2021-04-28 00:00:00", "2021-04-29:23:59:59", "", 100)
|
||||
result, err := api.OrderListRangeGet("2021-05-05 00:00:00", "2021-05-06:23:59:59", "", 100)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
@@ -14,7 +15,15 @@ func TestOrderListRangeGet(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestOrderDetailGet(t *testing.T) {
|
||||
result, err := api.OrderDetailGet("")
|
||||
result, err := api.OrderDetailGet("210429-173092373722098")
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
t.Log(utils.Format4Output(result, false))
|
||||
}
|
||||
|
||||
func TestOrderListIncrementGet(t *testing.T) {
|
||||
result, err := api.OrderListIncrementGet(time.Now().Add(-time.Hour*24).Unix(), time.Now().Unix(), 1, 10)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user