Documentation ¶
Overview ¶
Package app is a generated GoMock package.
Index ¶
- func NewRegisteredUserEvent(user *User) *dataflow.Message
- type DeleteUserRequest
- type LoginUserRequest
- type MockUserRepository
- func (m *MockUserRepository) CreteUser(ctx context.Context, user *User) error
- func (m *MockUserRepository) DeleteUser(ctx context.Context, user *User) error
- func (m *MockUserRepository) EXPECT() *MockUserRepositoryMockRecorder
- func (m *MockUserRepository) LockUserById(ctx context.Context, userId string) (User, error)
- func (m *MockUserRepository) LoginUser(ctx context.Context, req *LoginUserRequest) (UserResponse, error)
- func (m *MockUserRepository) QueryMultiUserByFilter(ctx context.Context, filter *QueryMultiUserRequest) (MultiUserResponse, error)
- func (m *MockUserRepository) QueryUserById(ctx context.Context, userId string) (UserResponse, error)
- func (m *MockUserRepository) UpdateUser(ctx context.Context, user *User) error
- type MockUserRepositoryCreteUserCall
- func (c *MockUserRepositoryCreteUserCall) Do(f func(context.Context, *User) error) *MockUserRepositoryCreteUserCall
- func (c *MockUserRepositoryCreteUserCall) DoAndReturn(f func(context.Context, *User) error) *MockUserRepositoryCreteUserCall
- func (c *MockUserRepositoryCreteUserCall) Return(arg0 error) *MockUserRepositoryCreteUserCall
- type MockUserRepositoryDeleteUserCall
- func (c *MockUserRepositoryDeleteUserCall) Do(f func(context.Context, *User) error) *MockUserRepositoryDeleteUserCall
- func (c *MockUserRepositoryDeleteUserCall) DoAndReturn(f func(context.Context, *User) error) *MockUserRepositoryDeleteUserCall
- func (c *MockUserRepositoryDeleteUserCall) Return(arg0 error) *MockUserRepositoryDeleteUserCall
- type MockUserRepositoryLockUserByIdCall
- func (c *MockUserRepositoryLockUserByIdCall) Do(f func(context.Context, string) (User, error)) *MockUserRepositoryLockUserByIdCall
- func (c *MockUserRepositoryLockUserByIdCall) DoAndReturn(f func(context.Context, string) (User, error)) *MockUserRepositoryLockUserByIdCall
- func (c *MockUserRepositoryLockUserByIdCall) Return(arg0 User, arg1 error) *MockUserRepositoryLockUserByIdCall
- type MockUserRepositoryLoginUserCall
- func (c *MockUserRepositoryLoginUserCall) Do(f func(context.Context, *LoginUserRequest) (UserResponse, error)) *MockUserRepositoryLoginUserCall
- func (c *MockUserRepositoryLoginUserCall) DoAndReturn(f func(context.Context, *LoginUserRequest) (UserResponse, error)) *MockUserRepositoryLoginUserCall
- func (c *MockUserRepositoryLoginUserCall) Return(arg0 UserResponse, arg1 error) *MockUserRepositoryLoginUserCall
- type MockUserRepositoryMockRecorder
- func (mr *MockUserRepositoryMockRecorder) CreteUser(ctx, user any) *MockUserRepositoryCreteUserCall
- func (mr *MockUserRepositoryMockRecorder) DeleteUser(ctx, user any) *MockUserRepositoryDeleteUserCall
- func (mr *MockUserRepositoryMockRecorder) LockUserById(ctx, userId any) *MockUserRepositoryLockUserByIdCall
- func (mr *MockUserRepositoryMockRecorder) LoginUser(ctx, req any) *MockUserRepositoryLoginUserCall
- func (mr *MockUserRepositoryMockRecorder) QueryMultiUserByFilter(ctx, filter any) *MockUserRepositoryQueryMultiUserByFilterCall
- func (mr *MockUserRepositoryMockRecorder) QueryUserById(ctx, userId any) *MockUserRepositoryQueryUserByIdCall
- func (mr *MockUserRepositoryMockRecorder) UpdateUser(ctx, user any) *MockUserRepositoryUpdateUserCall
- type MockUserRepositoryQueryMultiUserByFilterCall
- func (c *MockUserRepositoryQueryMultiUserByFilterCall) Do(f func(context.Context, *QueryMultiUserRequest) (MultiUserResponse, error)) *MockUserRepositoryQueryMultiUserByFilterCall
- func (c *MockUserRepositoryQueryMultiUserByFilterCall) DoAndReturn(f func(context.Context, *QueryMultiUserRequest) (MultiUserResponse, error)) *MockUserRepositoryQueryMultiUserByFilterCall
- func (c *MockUserRepositoryQueryMultiUserByFilterCall) Return(arg0 MultiUserResponse, arg1 error) *MockUserRepositoryQueryMultiUserByFilterCall
- type MockUserRepositoryQueryUserByIdCall
- func (c *MockUserRepositoryQueryUserByIdCall) Do(f func(context.Context, string) (UserResponse, error)) *MockUserRepositoryQueryUserByIdCall
- func (c *MockUserRepositoryQueryUserByIdCall) DoAndReturn(f func(context.Context, string) (UserResponse, error)) *MockUserRepositoryQueryUserByIdCall
- func (c *MockUserRepositoryQueryUserByIdCall) Return(arg0 UserResponse, arg1 error) *MockUserRepositoryQueryUserByIdCall
- type MockUserRepositoryUpdateUserCall
- func (c *MockUserRepositoryUpdateUserCall) Do(f func(context.Context, *User) error) *MockUserRepositoryUpdateUserCall
- func (c *MockUserRepositoryUpdateUserCall) DoAndReturn(f func(context.Context, *User) error) *MockUserRepositoryUpdateUserCall
- func (c *MockUserRepositoryUpdateUserCall) Return(arg0 error) *MockUserRepositoryUpdateUserCall
- type MockUserService
- func (m *MockUserService) DeleteUser(ctx context.Context, req *DeleteUserRequest) error
- func (m *MockUserService) EXPECT() *MockUserServiceMockRecorder
- func (m *MockUserService) LoginUser(ctx context.Context, req *LoginUserRequest) (UserResponse, error)
- func (m *MockUserService) QueryMultiUser(ctx context.Context, filter *QueryMultiUserRequest) (MultiUserResponse, error)
- func (m *MockUserService) RegisterUser(ctx context.Context, req *RegisterUserRequest) error
- func (m *MockUserService) ResetUserPassword(ctx context.Context, req *ResetUserPasswordRequest) error
- func (m *MockUserService) UpdateUserInfo(ctx context.Context, userId string, req *UpdateUserInfoRequest) error
- func (m *MockUserService) UpdateUserPassword(ctx context.Context, req *UpdateUserPasswordRequest) error
- type MockUserServiceDeleteUserCall
- func (c *MockUserServiceDeleteUserCall) Do(f func(context.Context, *DeleteUserRequest) error) *MockUserServiceDeleteUserCall
- func (c *MockUserServiceDeleteUserCall) DoAndReturn(f func(context.Context, *DeleteUserRequest) error) *MockUserServiceDeleteUserCall
- func (c *MockUserServiceDeleteUserCall) Return(arg0 error) *MockUserServiceDeleteUserCall
- type MockUserServiceLoginUserCall
- func (c *MockUserServiceLoginUserCall) Do(f func(context.Context, *LoginUserRequest) (UserResponse, error)) *MockUserServiceLoginUserCall
- func (c *MockUserServiceLoginUserCall) DoAndReturn(f func(context.Context, *LoginUserRequest) (UserResponse, error)) *MockUserServiceLoginUserCall
- func (c *MockUserServiceLoginUserCall) Return(arg0 UserResponse, arg1 error) *MockUserServiceLoginUserCall
- type MockUserServiceMockRecorder
- func (mr *MockUserServiceMockRecorder) DeleteUser(ctx, req any) *MockUserServiceDeleteUserCall
- func (mr *MockUserServiceMockRecorder) LoginUser(ctx, req any) *MockUserServiceLoginUserCall
- func (mr *MockUserServiceMockRecorder) QueryMultiUser(ctx, filter any) *MockUserServiceQueryMultiUserCall
- func (mr *MockUserServiceMockRecorder) RegisterUser(ctx, req any) *MockUserServiceRegisterUserCall
- func (mr *MockUserServiceMockRecorder) ResetUserPassword(ctx, req any) *MockUserServiceResetUserPasswordCall
- func (mr *MockUserServiceMockRecorder) UpdateUserInfo(ctx, userId, req any) *MockUserServiceUpdateUserInfoCall
- func (mr *MockUserServiceMockRecorder) UpdateUserPassword(ctx, req any) *MockUserServiceUpdateUserPasswordCall
- type MockUserServiceQueryMultiUserCall
- func (c *MockUserServiceQueryMultiUserCall) Do(f func(context.Context, *QueryMultiUserRequest) (MultiUserResponse, error)) *MockUserServiceQueryMultiUserCall
- func (c *MockUserServiceQueryMultiUserCall) DoAndReturn(f func(context.Context, *QueryMultiUserRequest) (MultiUserResponse, error)) *MockUserServiceQueryMultiUserCall
- func (c *MockUserServiceQueryMultiUserCall) Return(arg0 MultiUserResponse, arg1 error) *MockUserServiceQueryMultiUserCall
- type MockUserServiceRegisterUserCall
- func (c *MockUserServiceRegisterUserCall) Do(f func(context.Context, *RegisterUserRequest) error) *MockUserServiceRegisterUserCall
- func (c *MockUserServiceRegisterUserCall) DoAndReturn(f func(context.Context, *RegisterUserRequest) error) *MockUserServiceRegisterUserCall
- func (c *MockUserServiceRegisterUserCall) Return(arg0 error) *MockUserServiceRegisterUserCall
- type MockUserServiceResetUserPasswordCall
- func (c *MockUserServiceResetUserPasswordCall) Do(f func(context.Context, *ResetUserPasswordRequest) error) *MockUserServiceResetUserPasswordCall
- func (c *MockUserServiceResetUserPasswordCall) DoAndReturn(f func(context.Context, *ResetUserPasswordRequest) error) *MockUserServiceResetUserPasswordCall
- func (c *MockUserServiceResetUserPasswordCall) Return(arg0 error) *MockUserServiceResetUserPasswordCall
- type MockUserServiceUpdateUserInfoCall
- func (c *MockUserServiceUpdateUserInfoCall) Do(f func(context.Context, string, *UpdateUserInfoRequest) error) *MockUserServiceUpdateUserInfoCall
- func (c *MockUserServiceUpdateUserInfoCall) DoAndReturn(f func(context.Context, string, *UpdateUserInfoRequest) error) *MockUserServiceUpdateUserInfoCall
- func (c *MockUserServiceUpdateUserInfoCall) Return(arg0 error) *MockUserServiceUpdateUserInfoCall
- type MockUserServiceUpdateUserPasswordCall
- func (c *MockUserServiceUpdateUserPasswordCall) Do(f func(context.Context, *UpdateUserPasswordRequest) error) *MockUserServiceUpdateUserPasswordCall
- func (c *MockUserServiceUpdateUserPasswordCall) DoAndReturn(f func(context.Context, *UpdateUserPasswordRequest) error) *MockUserServiceUpdateUserPasswordCall
- func (c *MockUserServiceUpdateUserPasswordCall) Return(arg0 error) *MockUserServiceUpdateUserPasswordCall
- type MultiUserResponse
- type QueryMultiUserRequest
- type RegisterUserRequest
- type RegisteredUserEvent
- type ResetUserPasswordRequest
- type UpdateUserInfoRequest
- type UpdateUserPasswordRequest
- type User
- type UserRepository
- type UserResponse
- type UserService
- type UserUseCase
- func (uc *UserUseCase) DeleteUser(ctx context.Context, req *DeleteUserRequest) error
- func (uc *UserUseCase) LoginUser(ctx context.Context, req *LoginUserRequest) (UserResponse, error)
- func (uc *UserUseCase) QueryMultiUser(ctx context.Context, filter *QueryMultiUserRequest) (MultiUserResponse, error)
- func (uc *UserUseCase) RegisterUser(ctx context.Context, req *RegisterUserRequest) error
- func (uc *UserUseCase) ResetUserPassword(ctx context.Context, req *ResetUserPasswordRequest) error
- func (uc *UserUseCase) UpdateUserInfo(ctx context.Context, userId string, req *UpdateUserInfoRequest) error
- func (uc *UserUseCase) UpdateUserPassword(ctx context.Context, req *UpdateUserPasswordRequest) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRegisteredUserEvent ¶
Types ¶
type DeleteUserRequest ¶
type DeleteUserRequest struct { }
type LoginUserRequest ¶
type MockUserRepository ¶
type MockUserRepository struct {
// contains filtered or unexported fields
}
MockUserRepository is a mock of UserRepository interface.
func NewMockUserRepository ¶
func NewMockUserRepository(ctrl *gomock.Controller) *MockUserRepository
NewMockUserRepository creates a new mock instance.
func (*MockUserRepository) CreteUser ¶
func (m *MockUserRepository) CreteUser(ctx context.Context, user *User) error
CreteUser mocks base method.
func (*MockUserRepository) DeleteUser ¶
func (m *MockUserRepository) DeleteUser(ctx context.Context, user *User) error
DeleteUser mocks base method.
func (*MockUserRepository) EXPECT ¶
func (m *MockUserRepository) EXPECT() *MockUserRepositoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockUserRepository) LockUserById ¶
LockUserById mocks base method.
func (*MockUserRepository) LoginUser ¶
func (m *MockUserRepository) LoginUser(ctx context.Context, req *LoginUserRequest) (UserResponse, error)
LoginUser mocks base method.
func (*MockUserRepository) QueryMultiUserByFilter ¶
func (m *MockUserRepository) QueryMultiUserByFilter(ctx context.Context, filter *QueryMultiUserRequest) (MultiUserResponse, error)
QueryMultiUserByFilter mocks base method.
func (*MockUserRepository) QueryUserById ¶
func (m *MockUserRepository) QueryUserById(ctx context.Context, userId string) (UserResponse, error)
QueryUserById mocks base method.
func (*MockUserRepository) UpdateUser ¶
func (m *MockUserRepository) UpdateUser(ctx context.Context, user *User) error
UpdateUser mocks base method.
type MockUserRepositoryCreteUserCall ¶
MockUserRepositoryCreteUserCall wrap *gomock.Call
func (*MockUserRepositoryCreteUserCall) Do ¶
func (c *MockUserRepositoryCreteUserCall) Do(f func(context.Context, *User) error) *MockUserRepositoryCreteUserCall
Do rewrite *gomock.Call.Do
func (*MockUserRepositoryCreteUserCall) DoAndReturn ¶
func (c *MockUserRepositoryCreteUserCall) DoAndReturn(f func(context.Context, *User) error) *MockUserRepositoryCreteUserCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockUserRepositoryCreteUserCall) Return ¶
func (c *MockUserRepositoryCreteUserCall) Return(arg0 error) *MockUserRepositoryCreteUserCall
Return rewrite *gomock.Call.Return
type MockUserRepositoryDeleteUserCall ¶
MockUserRepositoryDeleteUserCall wrap *gomock.Call
func (*MockUserRepositoryDeleteUserCall) Do ¶
func (c *MockUserRepositoryDeleteUserCall) Do(f func(context.Context, *User) error) *MockUserRepositoryDeleteUserCall
Do rewrite *gomock.Call.Do
func (*MockUserRepositoryDeleteUserCall) DoAndReturn ¶
func (c *MockUserRepositoryDeleteUserCall) DoAndReturn(f func(context.Context, *User) error) *MockUserRepositoryDeleteUserCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockUserRepositoryDeleteUserCall) Return ¶
func (c *MockUserRepositoryDeleteUserCall) Return(arg0 error) *MockUserRepositoryDeleteUserCall
Return rewrite *gomock.Call.Return
type MockUserRepositoryLockUserByIdCall ¶
MockUserRepositoryLockUserByIdCall wrap *gomock.Call
func (*MockUserRepositoryLockUserByIdCall) Do ¶
func (c *MockUserRepositoryLockUserByIdCall) Do(f func(context.Context, string) (User, error)) *MockUserRepositoryLockUserByIdCall
Do rewrite *gomock.Call.Do
func (*MockUserRepositoryLockUserByIdCall) DoAndReturn ¶
func (c *MockUserRepositoryLockUserByIdCall) DoAndReturn(f func(context.Context, string) (User, error)) *MockUserRepositoryLockUserByIdCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockUserRepositoryLockUserByIdCall) Return ¶
func (c *MockUserRepositoryLockUserByIdCall) Return(arg0 User, arg1 error) *MockUserRepositoryLockUserByIdCall
Return rewrite *gomock.Call.Return
type MockUserRepositoryLoginUserCall ¶
MockUserRepositoryLoginUserCall wrap *gomock.Call
func (*MockUserRepositoryLoginUserCall) Do ¶
func (c *MockUserRepositoryLoginUserCall) Do(f func(context.Context, *LoginUserRequest) (UserResponse, error)) *MockUserRepositoryLoginUserCall
Do rewrite *gomock.Call.Do
func (*MockUserRepositoryLoginUserCall) DoAndReturn ¶
func (c *MockUserRepositoryLoginUserCall) DoAndReturn(f func(context.Context, *LoginUserRequest) (UserResponse, error)) *MockUserRepositoryLoginUserCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockUserRepositoryLoginUserCall) Return ¶
func (c *MockUserRepositoryLoginUserCall) Return(arg0 UserResponse, arg1 error) *MockUserRepositoryLoginUserCall
Return rewrite *gomock.Call.Return
type MockUserRepositoryMockRecorder ¶
type MockUserRepositoryMockRecorder struct {
// contains filtered or unexported fields
}
MockUserRepositoryMockRecorder is the mock recorder for MockUserRepository.
func (*MockUserRepositoryMockRecorder) CreteUser ¶
func (mr *MockUserRepositoryMockRecorder) CreteUser(ctx, user any) *MockUserRepositoryCreteUserCall
CreteUser indicates an expected call of CreteUser.
func (*MockUserRepositoryMockRecorder) DeleteUser ¶
func (mr *MockUserRepositoryMockRecorder) DeleteUser(ctx, user any) *MockUserRepositoryDeleteUserCall
DeleteUser indicates an expected call of DeleteUser.
func (*MockUserRepositoryMockRecorder) LockUserById ¶
func (mr *MockUserRepositoryMockRecorder) LockUserById(ctx, userId any) *MockUserRepositoryLockUserByIdCall
LockUserById indicates an expected call of LockUserById.
func (*MockUserRepositoryMockRecorder) LoginUser ¶
func (mr *MockUserRepositoryMockRecorder) LoginUser(ctx, req any) *MockUserRepositoryLoginUserCall
LoginUser indicates an expected call of LoginUser.
func (*MockUserRepositoryMockRecorder) QueryMultiUserByFilter ¶
func (mr *MockUserRepositoryMockRecorder) QueryMultiUserByFilter(ctx, filter any) *MockUserRepositoryQueryMultiUserByFilterCall
QueryMultiUserByFilter indicates an expected call of QueryMultiUserByFilter.
func (*MockUserRepositoryMockRecorder) QueryUserById ¶
func (mr *MockUserRepositoryMockRecorder) QueryUserById(ctx, userId any) *MockUserRepositoryQueryUserByIdCall
QueryUserById indicates an expected call of QueryUserById.
func (*MockUserRepositoryMockRecorder) UpdateUser ¶
func (mr *MockUserRepositoryMockRecorder) UpdateUser(ctx, user any) *MockUserRepositoryUpdateUserCall
UpdateUser indicates an expected call of UpdateUser.
type MockUserRepositoryQueryMultiUserByFilterCall ¶
MockUserRepositoryQueryMultiUserByFilterCall wrap *gomock.Call
func (*MockUserRepositoryQueryMultiUserByFilterCall) Do ¶
func (c *MockUserRepositoryQueryMultiUserByFilterCall) Do(f func(context.Context, *QueryMultiUserRequest) (MultiUserResponse, error)) *MockUserRepositoryQueryMultiUserByFilterCall
Do rewrite *gomock.Call.Do
func (*MockUserRepositoryQueryMultiUserByFilterCall) DoAndReturn ¶
func (c *MockUserRepositoryQueryMultiUserByFilterCall) DoAndReturn(f func(context.Context, *QueryMultiUserRequest) (MultiUserResponse, error)) *MockUserRepositoryQueryMultiUserByFilterCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockUserRepositoryQueryMultiUserByFilterCall) Return ¶
func (c *MockUserRepositoryQueryMultiUserByFilterCall) Return(arg0 MultiUserResponse, arg1 error) *MockUserRepositoryQueryMultiUserByFilterCall
Return rewrite *gomock.Call.Return
type MockUserRepositoryQueryUserByIdCall ¶
MockUserRepositoryQueryUserByIdCall wrap *gomock.Call
func (*MockUserRepositoryQueryUserByIdCall) Do ¶
func (c *MockUserRepositoryQueryUserByIdCall) Do(f func(context.Context, string) (UserResponse, error)) *MockUserRepositoryQueryUserByIdCall
Do rewrite *gomock.Call.Do
func (*MockUserRepositoryQueryUserByIdCall) DoAndReturn ¶
func (c *MockUserRepositoryQueryUserByIdCall) DoAndReturn(f func(context.Context, string) (UserResponse, error)) *MockUserRepositoryQueryUserByIdCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockUserRepositoryQueryUserByIdCall) Return ¶
func (c *MockUserRepositoryQueryUserByIdCall) Return(arg0 UserResponse, arg1 error) *MockUserRepositoryQueryUserByIdCall
Return rewrite *gomock.Call.Return
type MockUserRepositoryUpdateUserCall ¶
MockUserRepositoryUpdateUserCall wrap *gomock.Call
func (*MockUserRepositoryUpdateUserCall) Do ¶
func (c *MockUserRepositoryUpdateUserCall) Do(f func(context.Context, *User) error) *MockUserRepositoryUpdateUserCall
Do rewrite *gomock.Call.Do
func (*MockUserRepositoryUpdateUserCall) DoAndReturn ¶
func (c *MockUserRepositoryUpdateUserCall) DoAndReturn(f func(context.Context, *User) error) *MockUserRepositoryUpdateUserCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockUserRepositoryUpdateUserCall) Return ¶
func (c *MockUserRepositoryUpdateUserCall) Return(arg0 error) *MockUserRepositoryUpdateUserCall
Return rewrite *gomock.Call.Return
type MockUserService ¶
type MockUserService struct {
// contains filtered or unexported fields
}
MockUserService is a mock of UserService interface.
func NewMockUserService ¶
func NewMockUserService(ctrl *gomock.Controller) *MockUserService
NewMockUserService creates a new mock instance.
func (*MockUserService) DeleteUser ¶
func (m *MockUserService) DeleteUser(ctx context.Context, req *DeleteUserRequest) error
DeleteUser mocks base method.
func (*MockUserService) EXPECT ¶
func (m *MockUserService) EXPECT() *MockUserServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockUserService) LoginUser ¶
func (m *MockUserService) LoginUser(ctx context.Context, req *LoginUserRequest) (UserResponse, error)
LoginUser mocks base method.
func (*MockUserService) QueryMultiUser ¶
func (m *MockUserService) QueryMultiUser(ctx context.Context, filter *QueryMultiUserRequest) (MultiUserResponse, error)
QueryMultiUser mocks base method.
func (*MockUserService) RegisterUser ¶
func (m *MockUserService) RegisterUser(ctx context.Context, req *RegisterUserRequest) error
RegisterUser mocks base method.
func (*MockUserService) ResetUserPassword ¶
func (m *MockUserService) ResetUserPassword(ctx context.Context, req *ResetUserPasswordRequest) error
ResetUserPassword mocks base method.
func (*MockUserService) UpdateUserInfo ¶
func (m *MockUserService) UpdateUserInfo(ctx context.Context, userId string, req *UpdateUserInfoRequest) error
UpdateUserInfo mocks base method.
func (*MockUserService) UpdateUserPassword ¶
func (m *MockUserService) UpdateUserPassword(ctx context.Context, req *UpdateUserPasswordRequest) error
UpdateUserPassword mocks base method.
type MockUserServiceDeleteUserCall ¶
MockUserServiceDeleteUserCall wrap *gomock.Call
func (*MockUserServiceDeleteUserCall) Do ¶
func (c *MockUserServiceDeleteUserCall) Do(f func(context.Context, *DeleteUserRequest) error) *MockUserServiceDeleteUserCall
Do rewrite *gomock.Call.Do
func (*MockUserServiceDeleteUserCall) DoAndReturn ¶
func (c *MockUserServiceDeleteUserCall) DoAndReturn(f func(context.Context, *DeleteUserRequest) error) *MockUserServiceDeleteUserCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockUserServiceDeleteUserCall) Return ¶
func (c *MockUserServiceDeleteUserCall) Return(arg0 error) *MockUserServiceDeleteUserCall
Return rewrite *gomock.Call.Return
type MockUserServiceLoginUserCall ¶
MockUserServiceLoginUserCall wrap *gomock.Call
func (*MockUserServiceLoginUserCall) Do ¶
func (c *MockUserServiceLoginUserCall) Do(f func(context.Context, *LoginUserRequest) (UserResponse, error)) *MockUserServiceLoginUserCall
Do rewrite *gomock.Call.Do
func (*MockUserServiceLoginUserCall) DoAndReturn ¶
func (c *MockUserServiceLoginUserCall) DoAndReturn(f func(context.Context, *LoginUserRequest) (UserResponse, error)) *MockUserServiceLoginUserCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockUserServiceLoginUserCall) Return ¶
func (c *MockUserServiceLoginUserCall) Return(arg0 UserResponse, arg1 error) *MockUserServiceLoginUserCall
Return rewrite *gomock.Call.Return
type MockUserServiceMockRecorder ¶
type MockUserServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockUserServiceMockRecorder is the mock recorder for MockUserService.
func (*MockUserServiceMockRecorder) DeleteUser ¶
func (mr *MockUserServiceMockRecorder) DeleteUser(ctx, req any) *MockUserServiceDeleteUserCall
DeleteUser indicates an expected call of DeleteUser.
func (*MockUserServiceMockRecorder) LoginUser ¶
func (mr *MockUserServiceMockRecorder) LoginUser(ctx, req any) *MockUserServiceLoginUserCall
LoginUser indicates an expected call of LoginUser.
func (*MockUserServiceMockRecorder) QueryMultiUser ¶
func (mr *MockUserServiceMockRecorder) QueryMultiUser(ctx, filter any) *MockUserServiceQueryMultiUserCall
QueryMultiUser indicates an expected call of QueryMultiUser.
func (*MockUserServiceMockRecorder) RegisterUser ¶
func (mr *MockUserServiceMockRecorder) RegisterUser(ctx, req any) *MockUserServiceRegisterUserCall
RegisterUser indicates an expected call of RegisterUser.
func (*MockUserServiceMockRecorder) ResetUserPassword ¶
func (mr *MockUserServiceMockRecorder) ResetUserPassword(ctx, req any) *MockUserServiceResetUserPasswordCall
ResetUserPassword indicates an expected call of ResetUserPassword.
func (*MockUserServiceMockRecorder) UpdateUserInfo ¶
func (mr *MockUserServiceMockRecorder) UpdateUserInfo(ctx, userId, req any) *MockUserServiceUpdateUserInfoCall
UpdateUserInfo indicates an expected call of UpdateUserInfo.
func (*MockUserServiceMockRecorder) UpdateUserPassword ¶
func (mr *MockUserServiceMockRecorder) UpdateUserPassword(ctx, req any) *MockUserServiceUpdateUserPasswordCall
UpdateUserPassword indicates an expected call of UpdateUserPassword.
type MockUserServiceQueryMultiUserCall ¶
MockUserServiceQueryMultiUserCall wrap *gomock.Call
func (*MockUserServiceQueryMultiUserCall) Do ¶
func (c *MockUserServiceQueryMultiUserCall) Do(f func(context.Context, *QueryMultiUserRequest) (MultiUserResponse, error)) *MockUserServiceQueryMultiUserCall
Do rewrite *gomock.Call.Do
func (*MockUserServiceQueryMultiUserCall) DoAndReturn ¶
func (c *MockUserServiceQueryMultiUserCall) DoAndReturn(f func(context.Context, *QueryMultiUserRequest) (MultiUserResponse, error)) *MockUserServiceQueryMultiUserCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockUserServiceQueryMultiUserCall) Return ¶
func (c *MockUserServiceQueryMultiUserCall) Return(arg0 MultiUserResponse, arg1 error) *MockUserServiceQueryMultiUserCall
Return rewrite *gomock.Call.Return
type MockUserServiceRegisterUserCall ¶
MockUserServiceRegisterUserCall wrap *gomock.Call
func (*MockUserServiceRegisterUserCall) Do ¶
func (c *MockUserServiceRegisterUserCall) Do(f func(context.Context, *RegisterUserRequest) error) *MockUserServiceRegisterUserCall
Do rewrite *gomock.Call.Do
func (*MockUserServiceRegisterUserCall) DoAndReturn ¶
func (c *MockUserServiceRegisterUserCall) DoAndReturn(f func(context.Context, *RegisterUserRequest) error) *MockUserServiceRegisterUserCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockUserServiceRegisterUserCall) Return ¶
func (c *MockUserServiceRegisterUserCall) Return(arg0 error) *MockUserServiceRegisterUserCall
Return rewrite *gomock.Call.Return
type MockUserServiceResetUserPasswordCall ¶
MockUserServiceResetUserPasswordCall wrap *gomock.Call
func (*MockUserServiceResetUserPasswordCall) Do ¶
func (c *MockUserServiceResetUserPasswordCall) Do(f func(context.Context, *ResetUserPasswordRequest) error) *MockUserServiceResetUserPasswordCall
Do rewrite *gomock.Call.Do
func (*MockUserServiceResetUserPasswordCall) DoAndReturn ¶
func (c *MockUserServiceResetUserPasswordCall) DoAndReturn(f func(context.Context, *ResetUserPasswordRequest) error) *MockUserServiceResetUserPasswordCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockUserServiceResetUserPasswordCall) Return ¶
func (c *MockUserServiceResetUserPasswordCall) Return(arg0 error) *MockUserServiceResetUserPasswordCall
Return rewrite *gomock.Call.Return
type MockUserServiceUpdateUserInfoCall ¶
MockUserServiceUpdateUserInfoCall wrap *gomock.Call
func (*MockUserServiceUpdateUserInfoCall) Do ¶
func (c *MockUserServiceUpdateUserInfoCall) Do(f func(context.Context, string, *UpdateUserInfoRequest) error) *MockUserServiceUpdateUserInfoCall
Do rewrite *gomock.Call.Do
func (*MockUserServiceUpdateUserInfoCall) DoAndReturn ¶
func (c *MockUserServiceUpdateUserInfoCall) DoAndReturn(f func(context.Context, string, *UpdateUserInfoRequest) error) *MockUserServiceUpdateUserInfoCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockUserServiceUpdateUserInfoCall) Return ¶
func (c *MockUserServiceUpdateUserInfoCall) Return(arg0 error) *MockUserServiceUpdateUserInfoCall
Return rewrite *gomock.Call.Return
type MockUserServiceUpdateUserPasswordCall ¶
MockUserServiceUpdateUserPasswordCall wrap *gomock.Call
func (*MockUserServiceUpdateUserPasswordCall) Do ¶
func (c *MockUserServiceUpdateUserPasswordCall) Do(f func(context.Context, *UpdateUserPasswordRequest) error) *MockUserServiceUpdateUserPasswordCall
Do rewrite *gomock.Call.Do
func (*MockUserServiceUpdateUserPasswordCall) DoAndReturn ¶
func (c *MockUserServiceUpdateUserPasswordCall) DoAndReturn(f func(context.Context, *UpdateUserPasswordRequest) error) *MockUserServiceUpdateUserPasswordCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockUserServiceUpdateUserPasswordCall) Return ¶
func (c *MockUserServiceUpdateUserPasswordCall) Return(arg0 error) *MockUserServiceUpdateUserPasswordCall
Return rewrite *gomock.Call.Return
type MultiUserResponse ¶
type MultiUserResponse []UserResponse
type QueryMultiUserRequest ¶
type QueryMultiUserRequest struct { }
type RegisterUserRequest ¶
type RegisterUserRequest struct { }
type RegisteredUserEvent ¶
type RegisteredUserEvent struct { }
type ResetUserPasswordRequest ¶
type ResetUserPasswordRequest struct { }
type UpdateUserInfoRequest ¶
type UpdateUserInfoRequest struct { }
type UpdateUserPasswordRequest ¶
type UpdateUserPasswordRequest struct { }
type User ¶
func RegisterUser ¶
func RegisterUser(req *RegisterUserRequest) (*User, error)
func (*User) ResetPassword ¶
func (user *User) ResetPassword(req *ResetUserPasswordRequest) error
func (*User) UpdateInfo ¶
func (user *User) UpdateInfo(req *UpdateUserInfoRequest) error
type UserRepository ¶
type UserRepository interface { LockUserById(ctx context.Context, userId string) (User, error) CreteUser(ctx context.Context, user *User) error UpdateUser(ctx context.Context, user *User) error DeleteUser(ctx context.Context, user *User) error QueryUserById(ctx context.Context, userId string) (UserResponse, error) LoginUser(ctx context.Context, req *LoginUserRequest) (UserResponse, error) QueryMultiUserByFilter(ctx context.Context, filter *QueryMultiUserRequest) (MultiUserResponse, error) }
type UserResponse ¶
type UserResponse struct { }
func ConvertUserResponse ¶
func ConvertUserResponse(user *User) UserResponse
type UserService ¶
type UserService interface { RegisterUser(ctx context.Context, req *RegisterUserRequest) error UpdateUserInfo(ctx context.Context, userId string, req *UpdateUserInfoRequest) error UpdateUserPassword(ctx context.Context, req *UpdateUserPasswordRequest) error ResetUserPassword(ctx context.Context, req *ResetUserPasswordRequest) error DeleteUser(ctx context.Context, req *DeleteUserRequest) error LoginUser(ctx context.Context, req *LoginUserRequest) (UserResponse, error) QueryMultiUser(ctx context.Context, filter *QueryMultiUserRequest) (MultiUserResponse, error) }
type UserUseCase ¶
type UserUseCase struct {
// contains filtered or unexported fields
}
func NewUserUseCase ¶
func NewUserUseCase(userRepo UserRepository) *UserUseCase
func (*UserUseCase) DeleteUser ¶
func (uc *UserUseCase) DeleteUser(ctx context.Context, req *DeleteUserRequest) error
func (*UserUseCase) LoginUser ¶
func (uc *UserUseCase) LoginUser(ctx context.Context, req *LoginUserRequest) (UserResponse, error)
func (*UserUseCase) QueryMultiUser ¶
func (uc *UserUseCase) QueryMultiUser(ctx context.Context, filter *QueryMultiUserRequest) (MultiUserResponse, error)
func (*UserUseCase) RegisterUser ¶
func (uc *UserUseCase) RegisterUser(ctx context.Context, req *RegisterUserRequest) error
func (*UserUseCase) ResetUserPassword ¶
func (uc *UserUseCase) ResetUserPassword(ctx context.Context, req *ResetUserPasswordRequest) error
func (*UserUseCase) UpdateUserInfo ¶
func (uc *UserUseCase) UpdateUserInfo(ctx context.Context, userId string, req *UpdateUserInfoRequest) error
func (*UserUseCase) UpdateUserPassword ¶
func (uc *UserUseCase) UpdateUserPassword(ctx context.Context, req *UpdateUserPasswordRequest) error