//go:build integration package rpc import ( "fmt" "testing" pb "bsm/full/module/ec/order/pb" ) func TestByStatus(t *testing.T) { coon, ctx := GetCoon() clent := pb.NewCouponClient(coon) defer coon.Close() res, err := clent.ByStatus(ctx, &pb.Status{ Status: 1, }) if err != nil { fmt.Println(err) } fmt.Printf("返回的测试消息: %s", res) }