This commit is contained in:
邹宗楠
2021-12-06 18:04:48 +08:00
parent 35649eda6e
commit 2c0ed04ed9
2 changed files with 25 additions and 21 deletions

View File

@@ -17,6 +17,7 @@ import (
"sort"
"strconv"
"testing"
"time"
)
func TestCreateShopCategory(t *testing.T) {
@@ -64,21 +65,22 @@ func Test11(t *testing.T) {
}
func TestAllOrders(t *testing.T) {
result, err := api.AllOrders(&AllOrdersParam{
Current: 1,
PageSize: 10,
//OrderID: "230931583395",
//StoreID: "",
//OrderStatusArray: nil,
//OrderID: "",
OrderCreateDateRange: []string{"2021-12-06 00:00:46", "2021-12-06 17:19:46"},
//SelectedTabName: "allOrders",
//SortName: "desc",
})
if err != nil {
t.Fatal(err)
}
t.Log(utils.Format4Output(result, false))
//result, err := api.AllOrders(&AllOrdersParam{
// Current: 1,
// PageSize: 10,
// //OrderID: "230931583395",
// //StoreID: "",
// //OrderStatusArray: nil,
// //OrderID: "",
// OrderCreateDateRange: []string{"2021-12-06 00:00:46", "2021-12-06 17:19:46"},
// //SelectedTabName: "allOrders",
// //SortName: "desc",
//})
//if err != nil {
// t.Fatal(err)
//}
//t.Log(utils.Format4Output(result, false))
fmt.Println(time.Now().UnixNano() / 1000000)
}
func TestOrderDetail(t *testing.T) {