bxbuyer.go 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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. BuyerSupplyInfoReq = bxbuyer.BuyerSupplyInfoReq
  16. BuyerSupplyResp = bxbuyer.BuyerSupplyResp
  17. InfoList = bxbuyer.InfoList
  18. RelatesInformation = bxbuyer.RelatesInformation
  19. RelatesInformationReq = bxbuyer.RelatesInformationReq
  20. RelatesInformationResp = bxbuyer.RelatesInformationResp
  21. SupplyData = bxbuyer.SupplyData
  22. Bxbuyer interface {
  23. // 采购单位搜索
  24. BuyerList(ctx context.Context, in *BuyerListReq, opts ...grpc.CallOption) (*BuyerListResp, error)
  25. // 采购单位搜索补充信息 招标动态数量 、历史联系人数量、项目数量、采购规模
  26. BuyerSupplyInfo(ctx context.Context, in *BuyerSupplyInfoReq, opts ...grpc.CallOption) (*BuyerSupplyResp, error)
  27. // 采购单位画像 关联信息
  28. RelatesInfo(ctx context.Context, in *RelatesInformationReq, opts ...grpc.CallOption) (*RelatesInformationResp, error)
  29. }
  30. defaultBxbuyer struct {
  31. cli zrpc.Client
  32. }
  33. )
  34. func NewBxbuyer(cli zrpc.Client) Bxbuyer {
  35. return &defaultBxbuyer{
  36. cli: cli,
  37. }
  38. }
  39. // 采购单位搜索
  40. func (m *defaultBxbuyer) BuyerList(ctx context.Context, in *BuyerListReq, opts ...grpc.CallOption) (*BuyerListResp, error) {
  41. client := bxbuyer.NewBxbuyerClient(m.cli.Conn())
  42. return client.BuyerList(ctx, in, opts...)
  43. }
  44. // 采购单位搜索补充信息 招标动态数量 、历史联系人数量、项目数量、采购规模
  45. func (m *defaultBxbuyer) BuyerSupplyInfo(ctx context.Context, in *BuyerSupplyInfoReq, opts ...grpc.CallOption) (*BuyerSupplyResp, error) {
  46. client := bxbuyer.NewBxbuyerClient(m.cli.Conn())
  47. return client.BuyerSupplyInfo(ctx, in, opts...)
  48. }
  49. // 采购单位画像 关联信息
  50. func (m *defaultBxbuyer) RelatesInfo(ctx context.Context, in *RelatesInformationReq, opts ...grpc.CallOption) (*RelatesInformationResp, error) {
  51. client := bxbuyer.NewBxbuyerClient(m.cli.Conn())
  52. return client.RelatesInfo(ctx, in, opts...)
  53. }