银豹api,eclp库存api修改
This commit is contained in:
@@ -1 +1,37 @@
|
||||
package yinbaoapi
|
||||
|
||||
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("682628966212343269", "18C0E0867E467DBC26EFF5E957B02EC4")
|
||||
}
|
||||
|
||||
func TestAddProductInfo(t *testing.T) {
|
||||
api.AddProductInfo(&AddProductInfoParam{
|
||||
ProductInfo: &ProductInfo{
|
||||
Name: "测试商品",
|
||||
Barcode: "12138",
|
||||
BuyPrice: 5,
|
||||
SellPrice: 5,
|
||||
Stock: 99,
|
||||
},
|
||||
})
|
||||
// result, err :=
|
||||
// if err != nil {
|
||||
// t.Fatal(err)
|
||||
// }
|
||||
// t.Log(utils.Format4Output(result, false))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user