Documentation ¶
Index ¶
- type MockIAuthService
- func (_m *MockIAuthService) EXPECT() *MockIAuthServiceMockRecorder
- func (_m *MockIAuthService) Login(ctx context.Context, bodyParam *schema.LoginBodyParams) (*schema.UserTokenInfo, error)
- func (_m *MockIAuthService) Logout(ctx context.Context) error
- func (_m *MockIAuthService) Refresh(ctx context.Context, bodyParam *schema.RefreshBodyParams) (*schema.UserTokenInfo, error)
- func (_m *MockIAuthService) Register(ctx context.Context, bodyParam *schema.RegisterBodyParams) (*schema.UserTokenInfo, error)
- type MockIAuthServiceMockRecorder
- func (_mr *MockIAuthServiceMockRecorder) Login(arg0, arg1 interface{}) *gomock.Call
- func (_mr *MockIAuthServiceMockRecorder) Logout(arg0 interface{}) *gomock.Call
- func (_mr *MockIAuthServiceMockRecorder) Refresh(arg0, arg1 interface{}) *gomock.Call
- func (_mr *MockIAuthServiceMockRecorder) Register(arg0, arg1 interface{}) *gomock.Call
- type MockIDatabase
- type MockIDatabaseMockRecorder
- type MockIRoleRepository
- type MockIRoleRepositoryMockRecorder
- type MockIRoleService
- type MockIRoleServiceMockRecorder
- type MockIUserRepository
- func (_m *MockIUserRepository) Create(user *models.User) error
- func (_m *MockIUserRepository) EXPECT() *MockIUserRepositoryMockRecorder
- func (_m *MockIUserRepository) GetByID(id string) (*models.User, error)
- func (_m *MockIUserRepository) GetUserByToken(token string) (*models.User, error)
- func (_m *MockIUserRepository) List(queryParam *schema.UserQueryParam) (*[]models.User, error)
- func (_m *MockIUserRepository) Login(item *schema.LoginBodyParams) (*models.User, error)
- func (_m *MockIUserRepository) RemoveToken(userId string) (*models.User, error)
- func (_m *MockIUserRepository) Update(userId string, bodyParam *schema.UserUpdateBodyParam) (*models.User, error)
- type MockIUserRepositoryMockRecorder
- func (_mr *MockIUserRepositoryMockRecorder) Create(arg0 interface{}) *gomock.Call
- func (_mr *MockIUserRepositoryMockRecorder) GetByID(arg0 interface{}) *gomock.Call
- func (_mr *MockIUserRepositoryMockRecorder) GetUserByToken(arg0 interface{}) *gomock.Call
- func (_mr *MockIUserRepositoryMockRecorder) List(arg0 interface{}) *gomock.Call
- func (_mr *MockIUserRepositoryMockRecorder) Login(arg0 interface{}) *gomock.Call
- func (_mr *MockIUserRepositoryMockRecorder) RemoveToken(arg0 interface{}) *gomock.Call
- func (_mr *MockIUserRepositoryMockRecorder) Update(arg0, arg1 interface{}) *gomock.Call
- type MockIUserService
- type MockIUserServiceMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockIAuthService ¶
type MockIAuthService struct {
// contains filtered or unexported fields
}
MockIAuthService is a mock of IAuthService interface
func NewMockIAuthService ¶
func NewMockIAuthService(ctrl *gomock.Controller) *MockIAuthService
NewMockIAuthService creates a new mock instance
func (*MockIAuthService) EXPECT ¶
func (_m *MockIAuthService) EXPECT() *MockIAuthServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockIAuthService) Login ¶
func (_m *MockIAuthService) Login(ctx context.Context, bodyParam *schema.LoginBodyParams) (*schema.UserTokenInfo, error)
Login mocks base method
func (*MockIAuthService) Logout ¶
func (_m *MockIAuthService) Logout(ctx context.Context) error
Logout mocks base method
func (*MockIAuthService) Refresh ¶
func (_m *MockIAuthService) Refresh(ctx context.Context, bodyParam *schema.RefreshBodyParams) (*schema.UserTokenInfo, error)
Refresh mocks base method
func (*MockIAuthService) Register ¶
func (_m *MockIAuthService) Register(ctx context.Context, bodyParam *schema.RegisterBodyParams) (*schema.UserTokenInfo, error)
Register mocks base method
type MockIAuthServiceMockRecorder ¶
type MockIAuthServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockIAuthServiceMockRecorder is the mock recorder for MockIAuthService
func (*MockIAuthServiceMockRecorder) Login ¶
func (_mr *MockIAuthServiceMockRecorder) Login(arg0, arg1 interface{}) *gomock.Call
Login indicates an expected call of Login
func (*MockIAuthServiceMockRecorder) Logout ¶
func (_mr *MockIAuthServiceMockRecorder) Logout(arg0 interface{}) *gomock.Call
Logout indicates an expected call of Logout
func (*MockIAuthServiceMockRecorder) Refresh ¶
func (_mr *MockIAuthServiceMockRecorder) Refresh(arg0, arg1 interface{}) *gomock.Call
Refresh indicates an expected call of Refresh
func (*MockIAuthServiceMockRecorder) Register ¶
func (_mr *MockIAuthServiceMockRecorder) Register(arg0, arg1 interface{}) *gomock.Call
Register indicates an expected call of Register
type MockIDatabase ¶
type MockIDatabase struct {
// contains filtered or unexported fields
}
MockIDatabase is a mock of IDatabase interface
func NewMockIDatabase ¶
func NewMockIDatabase(ctrl *gomock.Controller) *MockIDatabase
NewMockIDatabase creates a new mock instance
func (*MockIDatabase) EXPECT ¶
func (_m *MockIDatabase) EXPECT() *MockIDatabaseMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockIDatabase) GetInstance ¶
func (_m *MockIDatabase) GetInstance() *gorm.DB
GetInstance mocks base method
type MockIDatabaseMockRecorder ¶
type MockIDatabaseMockRecorder struct {
// contains filtered or unexported fields
}
MockIDatabaseMockRecorder is the mock recorder for MockIDatabase
func (*MockIDatabaseMockRecorder) GetInstance ¶
func (_mr *MockIDatabaseMockRecorder) GetInstance() *gomock.Call
GetInstance indicates an expected call of GetInstance
type MockIRoleRepository ¶
type MockIRoleRepository struct {
// contains filtered or unexported fields
}
MockIRoleRepository is a mock of IRoleRepository interface
func NewMockIRoleRepository ¶
func NewMockIRoleRepository(ctrl *gomock.Controller) *MockIRoleRepository
NewMockIRoleRepository creates a new mock instance
func (*MockIRoleRepository) Create ¶
func (_m *MockIRoleRepository) Create(role *models.Role) error
Create mocks base method
func (*MockIRoleRepository) EXPECT ¶
func (_m *MockIRoleRepository) EXPECT() *MockIRoleRepositoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
type MockIRoleRepositoryMockRecorder ¶
type MockIRoleRepositoryMockRecorder struct {
// contains filtered or unexported fields
}
MockIRoleRepositoryMockRecorder is the mock recorder for MockIRoleRepository
func (*MockIRoleRepositoryMockRecorder) Create ¶
func (_mr *MockIRoleRepositoryMockRecorder) Create(arg0 interface{}) *gomock.Call
Create indicates an expected call of Create
func (*MockIRoleRepositoryMockRecorder) GetByName ¶
func (_mr *MockIRoleRepositoryMockRecorder) GetByName(arg0 interface{}) *gomock.Call
GetByName indicates an expected call of GetByName
type MockIRoleService ¶
type MockIRoleService struct {
// contains filtered or unexported fields
}
MockIRoleService is a mock of IRoleService interface
func NewMockIRoleService ¶
func NewMockIRoleService(ctrl *gomock.Controller) *MockIRoleService
NewMockIRoleService creates a new mock instance
func (*MockIRoleService) Create ¶
func (_m *MockIRoleService) Create(ctx context.Context, item *schema.RoleBodyParams) (*models.Role, error)
CreateRole mocks base method
func (*MockIRoleService) EXPECT ¶
func (_m *MockIRoleService) EXPECT() *MockIRoleServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
type MockIRoleServiceMockRecorder ¶
type MockIRoleServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockIRoleServiceMockRecorder is the mock recorder for MockIRoleService
func (*MockIRoleServiceMockRecorder) CreateRole ¶
func (_mr *MockIRoleServiceMockRecorder) CreateRole(arg0, arg1 interface{}) *gomock.Call
CreateRole indicates an expected call of CreateRole
type MockIUserRepository ¶
type MockIUserRepository struct {
// contains filtered or unexported fields
}
MockIUserRepository is a mock of IUserRepository interface
func NewMockIUserRepository ¶
func NewMockIUserRepository(ctrl *gomock.Controller) *MockIUserRepository
NewMockIUserRepository creates a new mock instance
func (*MockIUserRepository) Create ¶
func (_m *MockIUserRepository) Create(user *models.User) error
Create mocks base method
func (*MockIUserRepository) EXPECT ¶
func (_m *MockIUserRepository) EXPECT() *MockIUserRepositoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockIUserRepository) GetByID ¶
func (_m *MockIUserRepository) GetByID(id string) (*models.User, error)
GetByID mocks base method
func (*MockIUserRepository) GetUserByToken ¶
func (_m *MockIUserRepository) GetUserByToken(token string) (*models.User, error)
GetUserByToken mocks base method
func (*MockIUserRepository) List ¶
func (_m *MockIUserRepository) List(queryParam *schema.UserQueryParam) (*[]models.User, error)
List mocks base method
func (*MockIUserRepository) Login ¶
func (_m *MockIUserRepository) Login(item *schema.LoginBodyParams) (*models.User, error)
Login mocks base method
func (*MockIUserRepository) RemoveToken ¶
func (_m *MockIUserRepository) RemoveToken(userId string) (*models.User, error)
RemoveToken mocks base method
func (*MockIUserRepository) Update ¶
func (_m *MockIUserRepository) Update(userId string, bodyParam *schema.UserUpdateBodyParam) (*models.User, error)
Update mocks base method
type MockIUserRepositoryMockRecorder ¶
type MockIUserRepositoryMockRecorder struct {
// contains filtered or unexported fields
}
MockIUserRepositoryMockRecorder is the mock recorder for MockIUserRepository
func (*MockIUserRepositoryMockRecorder) Create ¶
func (_mr *MockIUserRepositoryMockRecorder) Create(arg0 interface{}) *gomock.Call
Create indicates an expected call of Create
func (*MockIUserRepositoryMockRecorder) GetByID ¶
func (_mr *MockIUserRepositoryMockRecorder) GetByID(arg0 interface{}) *gomock.Call
GetByID indicates an expected call of GetByID
func (*MockIUserRepositoryMockRecorder) GetUserByToken ¶
func (_mr *MockIUserRepositoryMockRecorder) GetUserByToken(arg0 interface{}) *gomock.Call
GetUserByToken indicates an expected call of GetUserByToken
func (*MockIUserRepositoryMockRecorder) List ¶
func (_mr *MockIUserRepositoryMockRecorder) List(arg0 interface{}) *gomock.Call
List indicates an expected call of List
func (*MockIUserRepositoryMockRecorder) Login ¶
func (_mr *MockIUserRepositoryMockRecorder) Login(arg0 interface{}) *gomock.Call
Login indicates an expected call of Login
func (*MockIUserRepositoryMockRecorder) RemoveToken ¶
func (_mr *MockIUserRepositoryMockRecorder) RemoveToken(arg0 interface{}) *gomock.Call
RemoveToken indicates an expected call of RemoveToken
func (*MockIUserRepositoryMockRecorder) Update ¶
func (_mr *MockIUserRepositoryMockRecorder) Update(arg0, arg1 interface{}) *gomock.Call
Update indicates an expected call of Update
type MockIUserService ¶
type MockIUserService struct {
// contains filtered or unexported fields
}
MockIUserService is a mock of IUserService interface
func NewMockIUserService ¶
func NewMockIUserService(ctrl *gomock.Controller) *MockIUserService
NewMockIUserService creates a new mock instance
func (*MockIUserService) EXPECT ¶
func (_m *MockIUserService) EXPECT() *MockIUserServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockIUserService) List ¶
func (_m *MockIUserService) List(ctx context.Context, param *schema.UserQueryParam) (*[]models.User, error)
List mocks base method
type MockIUserServiceMockRecorder ¶
type MockIUserServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockIUserServiceMockRecorder is the mock recorder for MockIUserService
func (*MockIUserServiceMockRecorder) GetByID ¶
func (_mr *MockIUserServiceMockRecorder) GetByID(arg0, arg1 interface{}) *gomock.Call
GetByID indicates an expected call of GetByID
func (*MockIUserServiceMockRecorder) List ¶
func (_mr *MockIUserServiceMockRecorder) List(arg0, arg1 interface{}) *gomock.Call
List indicates an expected call of List