bxbuyer.go 883 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. // Code generated by goctl. DO NOT EDIT!
  2. // Source: bxbuyer.proto
  3. package bxbuyer
  4. import (
  5. "context"
  6. "jyBXBuyer/rpc/type/bxbuyer"
  7. "github.com/zeromicro/go-zero/zrpc"
  8. "google.golang.org/grpc"
  9. )
  10. type (
  11. BuyerData = bxbuyer.BuyerData
  12. BuyerList = bxbuyer.BuyerList
  13. BuyerListReq = bxbuyer.BuyerListReq
  14. BuyerListResp = bxbuyer.BuyerListResp
  15. Bxbuyer interface {
  16. // 采购单位搜索
  17. BuyerList(ctx context.Context, in *BuyerListReq, opts ...grpc.CallOption) (*BuyerListResp, error)
  18. }
  19. defaultBxbuyer struct {
  20. cli zrpc.Client
  21. }
  22. )
  23. func NewBxbuyer(cli zrpc.Client) Bxbuyer {
  24. return &defaultBxbuyer{
  25. cli: cli,
  26. }
  27. }
  28. // 采购单位搜索
  29. func (m *defaultBxbuyer) BuyerList(ctx context.Context, in *BuyerListReq, opts ...grpc.CallOption) (*BuyerListResp, error) {
  30. client := bxbuyer.NewBxbuyerClient(m.cli.Conn())
  31. return client.BuyerList(ctx, in, opts...)
  32. }