go_pay_client.go 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. // Code generated by goctl. DO NOT EDIT.
  2. // goctl 1.10.1
  3. // Source: gorpc.proto
  4. package gopayclient
  5. import (
  6. "context"
  7. "code.flashlink.me/nomo-server/go-service-pb/pb/pb"
  8. "github.com/zeromicro/go-zero/zrpc"
  9. "google.golang.org/grpc"
  10. )
  11. type (
  12. Empty = pb.Empty
  13. UserAuthLogAddReq = pb.UserAuthLogAddReq
  14. UserAuthLogAddResp = pb.UserAuthLogAddResp
  15. UserAuthLogDelReq = pb.UserAuthLogDelReq
  16. UserAuthLogGetReq = pb.UserAuthLogGetReq
  17. UserAuthLogGetResp = pb.UserAuthLogGetResp
  18. UserAuthLogListReq = pb.UserAuthLogListReq
  19. UserAuthLogListResp = pb.UserAuthLogListResp
  20. UserAuthLogUpdateReq = pb.UserAuthLogUpdateReq
  21. UserAuthLogUpdateResp = pb.UserAuthLogUpdateResp
  22. UserPayOrderAddReq = pb.UserPayOrderAddReq
  23. UserPayOrderAddResp = pb.UserPayOrderAddResp
  24. UserPayOrderDelReq = pb.UserPayOrderDelReq
  25. UserPayOrderGetReq = pb.UserPayOrderGetReq
  26. UserPayOrderGetResp = pb.UserPayOrderGetResp
  27. UserPayOrderListReq = pb.UserPayOrderListReq
  28. UserPayOrderListResp = pb.UserPayOrderListResp
  29. UserPayOrderUpdateReq = pb.UserPayOrderUpdateReq
  30. UserPayOrderUpdateResp = pb.UserPayOrderUpdateResp
  31. GoPayClient interface {
  32. // UserAuthLog
  33. UserAuthLogAdd(ctx context.Context, in *UserAuthLogAddReq, opts ...grpc.CallOption) (*UserAuthLogAddResp, error)
  34. UserAuthLogList(ctx context.Context, in *UserAuthLogListReq, opts ...grpc.CallOption) (*UserAuthLogListResp, error)
  35. UserAuthLogGet(ctx context.Context, in *UserAuthLogGetReq, opts ...grpc.CallOption) (*UserAuthLogGetResp, error)
  36. UserAuthLogDel(ctx context.Context, in *UserAuthLogDelReq, opts ...grpc.CallOption) (*Empty, error)
  37. UserAuthLogUpdate(ctx context.Context, in *UserAuthLogUpdateReq, opts ...grpc.CallOption) (*UserAuthLogUpdateResp, error)
  38. // UserPayOrder
  39. UserPayOrderAdd(ctx context.Context, in *UserPayOrderAddReq, opts ...grpc.CallOption) (*UserPayOrderAddResp, error)
  40. UserPayOrderList(ctx context.Context, in *UserPayOrderListReq, opts ...grpc.CallOption) (*UserPayOrderListResp, error)
  41. UserPayOrderGet(ctx context.Context, in *UserPayOrderGetReq, opts ...grpc.CallOption) (*UserPayOrderGetResp, error)
  42. UserPayOrderDel(ctx context.Context, in *UserPayOrderDelReq, opts ...grpc.CallOption) (*Empty, error)
  43. UserPayOrderUpdate(ctx context.Context, in *UserPayOrderUpdateReq, opts ...grpc.CallOption) (*UserPayOrderUpdateResp, error)
  44. }
  45. defaultGoPayClient struct {
  46. cli zrpc.Client
  47. }
  48. )
  49. func NewGoPayClient(cli zrpc.Client) GoPayClient {
  50. return &defaultGoPayClient{
  51. cli: cli,
  52. }
  53. }
  54. // UserAuthLog
  55. func (m *defaultGoPayClient) UserAuthLogAdd(ctx context.Context, in *UserAuthLogAddReq, opts ...grpc.CallOption) (*UserAuthLogAddResp, error) {
  56. client := pb.NewGoPayClientClient(m.cli.Conn())
  57. return client.UserAuthLogAdd(ctx, in, opts...)
  58. }
  59. func (m *defaultGoPayClient) UserAuthLogList(ctx context.Context, in *UserAuthLogListReq, opts ...grpc.CallOption) (*UserAuthLogListResp, error) {
  60. client := pb.NewGoPayClientClient(m.cli.Conn())
  61. return client.UserAuthLogList(ctx, in, opts...)
  62. }
  63. func (m *defaultGoPayClient) UserAuthLogGet(ctx context.Context, in *UserAuthLogGetReq, opts ...grpc.CallOption) (*UserAuthLogGetResp, error) {
  64. client := pb.NewGoPayClientClient(m.cli.Conn())
  65. return client.UserAuthLogGet(ctx, in, opts...)
  66. }
  67. func (m *defaultGoPayClient) UserAuthLogDel(ctx context.Context, in *UserAuthLogDelReq, opts ...grpc.CallOption) (*Empty, error) {
  68. client := pb.NewGoPayClientClient(m.cli.Conn())
  69. return client.UserAuthLogDel(ctx, in, opts...)
  70. }
  71. func (m *defaultGoPayClient) UserAuthLogUpdate(ctx context.Context, in *UserAuthLogUpdateReq, opts ...grpc.CallOption) (*UserAuthLogUpdateResp, error) {
  72. client := pb.NewGoPayClientClient(m.cli.Conn())
  73. return client.UserAuthLogUpdate(ctx, in, opts...)
  74. }
  75. // UserPayOrder
  76. func (m *defaultGoPayClient) UserPayOrderAdd(ctx context.Context, in *UserPayOrderAddReq, opts ...grpc.CallOption) (*UserPayOrderAddResp, error) {
  77. client := pb.NewGoPayClientClient(m.cli.Conn())
  78. return client.UserPayOrderAdd(ctx, in, opts...)
  79. }
  80. func (m *defaultGoPayClient) UserPayOrderList(ctx context.Context, in *UserPayOrderListReq, opts ...grpc.CallOption) (*UserPayOrderListResp, error) {
  81. client := pb.NewGoPayClientClient(m.cli.Conn())
  82. return client.UserPayOrderList(ctx, in, opts...)
  83. }
  84. func (m *defaultGoPayClient) UserPayOrderGet(ctx context.Context, in *UserPayOrderGetReq, opts ...grpc.CallOption) (*UserPayOrderGetResp, error) {
  85. client := pb.NewGoPayClientClient(m.cli.Conn())
  86. return client.UserPayOrderGet(ctx, in, opts...)
  87. }
  88. func (m *defaultGoPayClient) UserPayOrderDel(ctx context.Context, in *UserPayOrderDelReq, opts ...grpc.CallOption) (*Empty, error) {
  89. client := pb.NewGoPayClientClient(m.cli.Conn())
  90. return client.UserPayOrderDel(ctx, in, opts...)
  91. }
  92. func (m *defaultGoPayClient) UserPayOrderUpdate(ctx context.Context, in *UserPayOrderUpdateReq, opts ...grpc.CallOption) (*UserPayOrderUpdateResp, error) {
  93. client := pb.NewGoPayClientClient(m.cli.Conn())
  94. return client.UserPayOrderUpdate(ctx, in, opts...)
  95. }