bxcol.go 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. // Code generated by goctl. DO NOT EDIT!
  2. // Source: bxcollection.proto
  3. package bxcol
  4. import (
  5. "context"
  6. "github.com/zeromicro/go-zero/zrpc"
  7. "google.golang.org/grpc"
  8. )
  9. type (
  10. Bxcol interface {
  11. // 新增标签
  12. Addlabel(ctx context.Context, in *AddlabelReq, opts ...grpc.CallOption) (*AddlabelRes, error)
  13. // 获取标签
  14. GetLabelAction(ctx context.Context, in *GetLabelActionReq, opts ...grpc.CallOption) (*GetLabelActionRes, error)
  15. // 标签新增或删除
  16. LabelAction(ctx context.Context, in *LabelActionReq, opts ...grpc.CallOption) (*LabelActionRes, error)
  17. // 招标信息收藏
  18. BCAction(ctx context.Context, in *BCActionReq, opts ...grpc.CallOption) (*LabelActionRes, error)
  19. // 招标信息是否被收藏
  20. IsCollAction(ctx context.Context, in *IsCollActionReq, opts ...grpc.CallOption) (*IsCollActionRes, error)
  21. // 获取收藏列表
  22. List(ctx context.Context, in *ListReq, opts ...grpc.CallOption) (*ListRes, error)
  23. }
  24. defaultBxcol struct {
  25. cli zrpc.Client
  26. }
  27. )
  28. func NewBxcol(cli zrpc.Client) Bxcol {
  29. return &defaultBxcol{
  30. cli: cli,
  31. }
  32. }
  33. // 新增标签
  34. func (m *defaultBxcol) Addlabel(ctx context.Context, in *AddlabelReq, opts ...grpc.CallOption) (*AddlabelRes, error) {
  35. client := NewBxcolClient(m.cli.Conn())
  36. return client.Addlabel(ctx, in, opts...)
  37. }
  38. // 获取标签
  39. func (m *defaultBxcol) GetLabelAction(ctx context.Context, in *GetLabelActionReq, opts ...grpc.CallOption) (*GetLabelActionRes, error) {
  40. client := NewBxcolClient(m.cli.Conn())
  41. return client.GetLabelAction(ctx, in, opts...)
  42. }
  43. // 标签新增或删除
  44. func (m *defaultBxcol) LabelAction(ctx context.Context, in *LabelActionReq, opts ...grpc.CallOption) (*LabelActionRes, error) {
  45. client := NewBxcolClient(m.cli.Conn())
  46. return client.LabelAction(ctx, in, opts...)
  47. }
  48. // 招标信息收藏
  49. func (m *defaultBxcol) BCAction(ctx context.Context, in *BCActionReq, opts ...grpc.CallOption) (*LabelActionRes, error) {
  50. client := NewBxcolClient(m.cli.Conn())
  51. return client.BCAction(ctx, in, opts...)
  52. }
  53. // 招标信息是否被收藏
  54. func (m *defaultBxcol) IsCollAction(ctx context.Context, in *IsCollActionReq, opts ...grpc.CallOption) (*IsCollActionRes, error) {
  55. client := NewBxcolClient(m.cli.Conn())
  56. return client.IsCollAction(ctx, in, opts...)
  57. }
  58. // 获取收藏列表
  59. func (m *defaultBxcol) List(ctx context.Context, in *ListReq, opts ...grpc.CallOption) (*ListRes, error) {
  60. client := NewBxcolClient(m.cli.Conn())
  61. return client.List(ctx, in, opts...)
  62. }