京东eclp物流接口
This commit is contained in:
40
platformapi/jdeclpapi/jdeclpapi_test.go
Normal file
40
platformapi/jdeclpapi/jdeclpapi_test.go
Normal file
@@ -0,0 +1,40 @@
|
||||
package jdeclpapi
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"git.rosy.net.cn/baseapi"
|
||||
"go.uber.org/zap"
|
||||
)
|
||||
|
||||
var (
|
||||
api *API
|
||||
sugarLogger *zap.SugaredLogger
|
||||
)
|
||||
|
||||
func init() {
|
||||
logger, _ := zap.NewDevelopment()
|
||||
sugarLogger = logger.Sugar()
|
||||
baseapi.Init(sugarLogger)
|
||||
api = New("", "", "")
|
||||
}
|
||||
|
||||
func TestQuerySpSource(t *testing.T) {
|
||||
api.QuerySpSource()
|
||||
}
|
||||
|
||||
func TestAddOrder(t *testing.T) {
|
||||
api.AddOrder(&AddOrderParam{})
|
||||
}
|
||||
func TestCancelOrder(t *testing.T) {
|
||||
api.CancelOrder("")
|
||||
}
|
||||
func TestQueryOrderStatus(t *testing.T) {
|
||||
api.QueryOrderStatus("")
|
||||
}
|
||||
func TestGetTrackMessagePlusByOrder(t *testing.T) {
|
||||
api.GetTrackMessagePlusByOrder("")
|
||||
}
|
||||
func TestSearchShopStock(t *testing.T) {
|
||||
api.SearchShopStock(&SearchShopStockParam{})
|
||||
}
|
||||
Reference in New Issue
Block a user