user.go 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. // Code generated by MockGen. DO NOT EDIT.
  2. // Source: internal/service/user.go
  3. // Package mock_service is a generated GoMock package.
  4. package mock_service
  5. import (
  6. context "context"
  7. reflect "reflect"
  8. v1 "github.com/go-nunu/nunu-layout-advanced/api/v1"
  9. gomock "github.com/golang/mock/gomock"
  10. )
  11. // MockUserService is a mock of UserService interface.
  12. type MockUserService struct {
  13. ctrl *gomock.Controller
  14. recorder *MockUserServiceMockRecorder
  15. }
  16. // MockUserServiceMockRecorder is the mock recorder for MockUserService.
  17. type MockUserServiceMockRecorder struct {
  18. mock *MockUserService
  19. }
  20. // NewMockUserService creates a new mock instance.
  21. func NewMockUserService(ctrl *gomock.Controller) *MockUserService {
  22. mock := &MockUserService{ctrl: ctrl}
  23. mock.recorder = &MockUserServiceMockRecorder{mock}
  24. return mock
  25. }
  26. // EXPECT returns an object that allows the caller to indicate expected use.
  27. func (m *MockUserService) EXPECT() *MockUserServiceMockRecorder {
  28. return m.recorder
  29. }
  30. // GetProfile mocks base method.
  31. func (m *MockUserService) GetProfile(ctx context.Context, userId string) (*v1.GetProfileResponseData, error) {
  32. m.ctrl.T.Helper()
  33. ret := m.ctrl.Call(m, "GetProfile", ctx, userId)
  34. ret0, _ := ret[0].(*v1.GetProfileResponseData)
  35. ret1, _ := ret[1].(error)
  36. return ret0, ret1
  37. }
  38. // GetProfile indicates an expected call of GetProfile.
  39. func (mr *MockUserServiceMockRecorder) GetProfile(ctx, userId interface{}) *gomock.Call {
  40. mr.mock.ctrl.T.Helper()
  41. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetProfile", reflect.TypeOf((*MockUserService)(nil).GetProfile), ctx, userId)
  42. }
  43. // Login mocks base method.
  44. func (m *MockUserService) Login(ctx context.Context, req *v1.LoginRequest) (string, error) {
  45. m.ctrl.T.Helper()
  46. ret := m.ctrl.Call(m, "Login", ctx, req)
  47. ret0, _ := ret[0].(string)
  48. ret1, _ := ret[1].(error)
  49. return ret0, ret1
  50. }
  51. // Login indicates an expected call of Login.
  52. func (mr *MockUserServiceMockRecorder) Login(ctx, req interface{}) *gomock.Call {
  53. mr.mock.ctrl.T.Helper()
  54. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Login", reflect.TypeOf((*MockUserService)(nil).Login), ctx, req)
  55. }
  56. // Register mocks base method.
  57. func (m *MockUserService) Register(ctx context.Context, req *v1.RegisterRequest) error {
  58. m.ctrl.T.Helper()
  59. ret := m.ctrl.Call(m, "Register", ctx, req)
  60. ret0, _ := ret[0].(error)
  61. return ret0
  62. }
  63. // Register indicates an expected call of Register.
  64. func (mr *MockUserServiceMockRecorder) Register(ctx, req interface{}) *gomock.Call {
  65. mr.mock.ctrl.T.Helper()
  66. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Register", reflect.TypeOf((*MockUserService)(nil).Register), ctx, req)
  67. }
  68. // UpdateProfile mocks base method.
  69. func (m *MockUserService) UpdateProfile(ctx context.Context, userId string, req *v1.UpdateProfileRequest) error {
  70. m.ctrl.T.Helper()
  71. ret := m.ctrl.Call(m, "UpdateProfile", ctx, userId, req)
  72. ret0, _ := ret[0].(error)
  73. return ret0
  74. }
  75. // UpdateProfile indicates an expected call of UpdateProfile.
  76. func (mr *MockUserServiceMockRecorder) UpdateProfile(ctx, userId, req interface{}) *gomock.Call {
  77. mr.mock.ctrl.T.Helper()
  78. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateProfile", reflect.TypeOf((*MockUserService)(nil).UpdateProfile), ctx, userId, req)
  79. }