From 188e420f6c966c38834ca71f07483b7a8f85642d Mon Sep 17 00:00:00 2001 From: jarrysix Date: Fri, 10 Mar 2023 18:15:04 +0800 Subject: [PATCH] item_service_test.go --- tests/service/item_service_test.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/tests/service/item_service_test.go b/tests/service/item_service_test.go index 5badae45f..668312c9e 100644 --- a/tests/service/item_service_test.go +++ b/tests/service/item_service_test.go @@ -15,3 +15,16 @@ func TestGetItem(t *testing.T) { }) t.Log(typeconv.MustJson(goods)) } +func TestGetItemSku(t *testing.T) { + goods, _ := impl.ItemService.GetSku(context.TODO(), &proto.SkuId{ + ItemId: 3272, + SkuId: 0, + }) + t.Log(typeconv.MustJson(goods)) + + goods2, _ := impl.ItemService.GetItemBySku(context.TODO(), &proto.ItemBySkuRequest{ + ProductId: 3272, + SkuId: 0, + }) + t.Log(typeconv.MustJson(goods2)) +}