rpc_mock.go 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207
  1. // Code generated by MockGen. DO NOT EDIT.
  2. // Source: /Users/danbeiti/go/src/go-common/app/admin/main/aegis/dao/rpc/dao.go
  3. // Package mock is a generated GoMock package.
  4. package rpc
  5. import (
  6. context "context"
  7. reflect "reflect"
  8. api "go-common/app/service/main/account/api"
  9. model "go-common/app/service/main/relation/model"
  10. v1 "go-common/app/service/main/up/api/v1"
  11. gomock "github.com/golang/mock/gomock"
  12. grpc "google.golang.org/grpc"
  13. )
  14. // MockRelationRPC is a mock of RelationRPC interface
  15. type MockRelationRPC struct {
  16. ctrl *gomock.Controller
  17. recorder *MockRelationRPCMockRecorder
  18. }
  19. // MockRelationRPCMockRecorder is the mock recorder for MockRelationRPC
  20. type MockRelationRPCMockRecorder struct {
  21. mock *MockRelationRPC
  22. }
  23. // NewMockRelationRPC creates a new mock instance
  24. func NewMockRelationRPC(ctrl *gomock.Controller) *MockRelationRPC {
  25. mock := &MockRelationRPC{ctrl: ctrl}
  26. mock.recorder = &MockRelationRPCMockRecorder{mock}
  27. return mock
  28. }
  29. // EXPECT returns an object that allows the caller to indicate expected use
  30. func (m *MockRelationRPC) EXPECT() *MockRelationRPCMockRecorder {
  31. return m.recorder
  32. }
  33. // Stats mocks base method
  34. func (m *MockRelationRPC) Stats(c context.Context, arg *model.ArgMids) (map[int64]*model.Stat, error) {
  35. ret := m.ctrl.Call(m, "Stats", c, arg)
  36. ret0, _ := ret[0].(map[int64]*model.Stat)
  37. ret1, _ := ret[1].(error)
  38. return ret0, ret1
  39. }
  40. // Stats indicates an expected call of Stats
  41. func (mr *MockRelationRPCMockRecorder) Stats(c, arg interface{}) *gomock.Call {
  42. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Stats", reflect.TypeOf((*MockRelationRPC)(nil).Stats), c, arg)
  43. }
  44. // MockAccRPC is a mock of AccRPC interface
  45. type MockAccRPC struct {
  46. ctrl *gomock.Controller
  47. recorder *MockAccRPCMockRecorder
  48. }
  49. // MockAccRPCMockRecorder is the mock recorder for MockAccRPC
  50. type MockAccRPCMockRecorder struct {
  51. mock *MockAccRPC
  52. }
  53. // NewMockAccRPC creates a new mock instance
  54. func NewMockAccRPC(ctrl *gomock.Controller) *MockAccRPC {
  55. mock := &MockAccRPC{ctrl: ctrl}
  56. mock.recorder = &MockAccRPCMockRecorder{mock}
  57. return mock
  58. }
  59. // EXPECT returns an object that allows the caller to indicate expected use
  60. func (m *MockAccRPC) EXPECT() *MockAccRPCMockRecorder {
  61. return m.recorder
  62. }
  63. // Info3 mocks base method
  64. func (m *MockAccRPC) Info3(ctx context.Context, in *api.MidReq, opts ...grpc.CallOption) (*api.InfoReply, error) {
  65. varargs := []interface{}{ctx, in}
  66. for _, a := range opts {
  67. varargs = append(varargs, a)
  68. }
  69. ret := m.ctrl.Call(m, "Info3", varargs...)
  70. ret0, _ := ret[0].(*api.InfoReply)
  71. ret1, _ := ret[1].(error)
  72. return ret0, ret1
  73. }
  74. // Info3 indicates an expected call of Info3
  75. func (mr *MockAccRPCMockRecorder) Info3(ctx, in interface{}, opts ...interface{}) *gomock.Call {
  76. varargs := append([]interface{}{ctx, in}, opts...)
  77. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Info3", reflect.TypeOf((*MockAccRPC)(nil).Info3), varargs...)
  78. }
  79. // Cards3 mocks base method
  80. func (m *MockAccRPC) Cards3(ctx context.Context, in *api.MidsReq, opts ...grpc.CallOption) (*api.CardsReply, error) {
  81. varargs := []interface{}{ctx, in}
  82. for _, a := range opts {
  83. varargs = append(varargs, a)
  84. }
  85. ret := m.ctrl.Call(m, "Cards3", varargs...)
  86. ret0, _ := ret[0].(*api.CardsReply)
  87. ret1, _ := ret[1].(error)
  88. return ret0, ret1
  89. }
  90. // Cards3 indicates an expected call of Cards3
  91. func (mr *MockAccRPCMockRecorder) Cards3(ctx, in interface{}, opts ...interface{}) *gomock.Call {
  92. varargs := append([]interface{}{ctx, in}, opts...)
  93. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Cards3", reflect.TypeOf((*MockAccRPC)(nil).Cards3), varargs...)
  94. }
  95. // ProfileWithStat3 mocks base method
  96. func (m *MockAccRPC) ProfileWithStat3(ctx context.Context, in *api.MidReq, opts ...grpc.CallOption) (*api.ProfileStatReply, error) {
  97. varargs := []interface{}{ctx, in}
  98. for _, a := range opts {
  99. varargs = append(varargs, a)
  100. }
  101. ret := m.ctrl.Call(m, "ProfileWithStat3", varargs...)
  102. ret0, _ := ret[0].(*api.ProfileStatReply)
  103. ret1, _ := ret[1].(error)
  104. return ret0, ret1
  105. }
  106. // ProfileWithStat3 indicates an expected call of ProfileWithStat3
  107. func (mr *MockAccRPCMockRecorder) ProfileWithStat3(ctx, in interface{}, opts ...interface{}) *gomock.Call {
  108. varargs := append([]interface{}{ctx, in}, opts...)
  109. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ProfileWithStat3", reflect.TypeOf((*MockAccRPC)(nil).ProfileWithStat3), varargs...)
  110. }
  111. // MockUpRPC is a mock of UpRPC interface
  112. type MockUpRPC struct {
  113. ctrl *gomock.Controller
  114. recorder *MockUpRPCMockRecorder
  115. }
  116. // MockUpRPCMockRecorder is the mock recorder for MockUpRPC
  117. type MockUpRPCMockRecorder struct {
  118. mock *MockUpRPC
  119. }
  120. // NewMockUpRPC creates a new mock instance
  121. func NewMockUpRPC(ctrl *gomock.Controller) *MockUpRPC {
  122. mock := &MockUpRPC{ctrl: ctrl}
  123. mock.recorder = &MockUpRPCMockRecorder{mock}
  124. return mock
  125. }
  126. // EXPECT returns an object that allows the caller to indicate expected use
  127. func (m *MockUpRPC) EXPECT() *MockUpRPCMockRecorder {
  128. return m.recorder
  129. }
  130. // UpSpecial mocks base method
  131. func (m *MockUpRPC) UpSpecial(ctx context.Context, in *v1.UpSpecialReq, opts ...grpc.CallOption) (*v1.UpSpecialReply, error) {
  132. varargs := []interface{}{ctx, in}
  133. for _, a := range opts {
  134. varargs = append(varargs, a)
  135. }
  136. ret := m.ctrl.Call(m, "UpSpecial", varargs...)
  137. ret0, _ := ret[0].(*v1.UpSpecialReply)
  138. ret1, _ := ret[1].(error)
  139. return ret0, ret1
  140. }
  141. // UpSpecial indicates an expected call of UpSpecial
  142. func (mr *MockUpRPCMockRecorder) UpSpecial(ctx, in interface{}, opts ...interface{}) *gomock.Call {
  143. varargs := append([]interface{}{ctx, in}, opts...)
  144. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpSpecial", reflect.TypeOf((*MockUpRPC)(nil).UpSpecial), varargs...)
  145. }
  146. // UpsSpecial mocks base method
  147. func (m *MockUpRPC) UpsSpecial(ctx context.Context, in *v1.UpsSpecialReq, opts ...grpc.CallOption) (*v1.UpsSpecialReply, error) {
  148. varargs := []interface{}{ctx, in}
  149. for _, a := range opts {
  150. varargs = append(varargs, a)
  151. }
  152. ret := m.ctrl.Call(m, "UpsSpecial", varargs...)
  153. ret0, _ := ret[0].(*v1.UpsSpecialReply)
  154. ret1, _ := ret[1].(error)
  155. return ret0, ret1
  156. }
  157. // UpsSpecial indicates an expected call of UpsSpecial
  158. func (mr *MockUpRPCMockRecorder) UpsSpecial(ctx, in interface{}, opts ...interface{}) *gomock.Call {
  159. varargs := append([]interface{}{ctx, in}, opts...)
  160. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpsSpecial", reflect.TypeOf((*MockUpRPC)(nil).UpsSpecial), varargs...)
  161. }
  162. // UpGroups mocks base method
  163. func (m *MockUpRPC) UpGroups(ctx context.Context, in *v1.NoArgReq, opts ...grpc.CallOption) (*v1.UpGroupsReply, error) {
  164. varargs := []interface{}{ctx, in}
  165. for _, a := range opts {
  166. varargs = append(varargs, a)
  167. }
  168. ret := m.ctrl.Call(m, "UpGroups", varargs...)
  169. ret0, _ := ret[0].(*v1.UpGroupsReply)
  170. ret1, _ := ret[1].(error)
  171. return ret0, ret1
  172. }
  173. // UpGroups indicates an expected call of UpGroups
  174. func (mr *MockUpRPCMockRecorder) UpGroups(ctx, in interface{}, opts ...interface{}) *gomock.Call {
  175. varargs := append([]interface{}{ctx, in}, opts...)
  176. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpGroups", reflect.TypeOf((*MockUpRPC)(nil).UpGroups), varargs...)
  177. }