feat: import services and standardize Go 1.26.5

This commit is contained in:
2026-08-09 10:43:45 +08:00
parent 689c74b28f
commit 86024fa81d
1456 changed files with 220765 additions and 2 deletions

View File

@@ -0,0 +1,30 @@
//go:build integration
package rpc
import (
"encoding/json"
"fmt"
"testing"
pb "git.apinb.com/bsm-ec/order/pb"
)
func TestOrderListByStore(t *testing.T) {
conn, ctx := GetCoon()
client := pb.NewMgtClient(conn)
defer conn.Close()
data := pb.OrderListByStoreRequest{
PageNo: 1,
PageSize: 5,
}
re, _ := json.Marshal(&data)
fmt.Printf("发送的测试消息: %s\n", re)
res, err := client.OrderListByStore(ctx, &data)
if err != nil {
panic(err)
}
s, _ := json.Marshal(res)
fmt.Printf("返回的测试消息: %s", s)
}