Documentation ¶
Overview ¶
Package store is a generated GoMock package.
Index ¶
- func SetClient(factory Factory)
- type ArticleStore
- type Factory
- type MockArticleStore
- func (m *MockArticleStore) Count(arg0 context.Context, arg1 *model.ListOption) (int64, error)
- func (m *MockArticleStore) Create(arg0 context.Context, arg1 *model.Article) error
- func (m *MockArticleStore) Delete(arg0 context.Context, arg1 int) error
- func (m *MockArticleStore) EXPECT() *MockArticleStoreMockRecorder
- func (m *MockArticleStore) Get(arg0 context.Context, arg1 int) (*model.Article, error)
- func (m *MockArticleStore) List(arg0 context.Context, arg1 *model.ListOption) ([]model.Article, error)
- func (m *MockArticleStore) Update(arg0 context.Context, arg1 *model.Article) error
- type MockArticleStoreMockRecorder
- func (mr *MockArticleStoreMockRecorder) Count(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockArticleStoreMockRecorder) Create(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockArticleStoreMockRecorder) Delete(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockArticleStoreMockRecorder) Get(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockArticleStoreMockRecorder) List(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockArticleStoreMockRecorder) Update(arg0, arg1 interface{}) *gomock.Call
- type MockFactory
- func (m *MockFactory) Articles() ArticleStore
- func (m *MockFactory) Close() error
- func (m *MockFactory) EXPECT() *MockFactoryMockRecorder
- func (m *MockFactory) Operations() OperationStore
- func (m *MockFactory) Resources() ResourceStore
- func (m *MockFactory) RoleMenus() RoleMenuStore
- func (m *MockFactory) RoleRests() RoleRestStore
- func (m *MockFactory) Roles() RoleStore
- func (m *MockFactory) SysMenus() SysMenuStore
- func (m *MockFactory) SysRests() SysRestStore
- func (m *MockFactory) Systems() SystemConfigStore
- func (m *MockFactory) Tags() TagStore
- func (m *MockFactory) Tx(arg0 context.Context, arg1 func(context.Context, Factory) error) error
- func (m *MockFactory) UserRole() UserRoleStore
- func (m *MockFactory) Users() UserStore
- type MockFactoryMockRecorder
- func (mr *MockFactoryMockRecorder) Articles() *gomock.Call
- func (mr *MockFactoryMockRecorder) Close() *gomock.Call
- func (mr *MockFactoryMockRecorder) Operations() *gomock.Call
- func (mr *MockFactoryMockRecorder) Resources() *gomock.Call
- func (mr *MockFactoryMockRecorder) RoleMenus() *gomock.Call
- func (mr *MockFactoryMockRecorder) RoleRests() *gomock.Call
- func (mr *MockFactoryMockRecorder) Roles() *gomock.Call
- func (mr *MockFactoryMockRecorder) SysMenus() *gomock.Call
- func (mr *MockFactoryMockRecorder) SysRests() *gomock.Call
- func (mr *MockFactoryMockRecorder) Systems() *gomock.Call
- func (mr *MockFactoryMockRecorder) Tags() *gomock.Call
- func (mr *MockFactoryMockRecorder) Tx(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockFactoryMockRecorder) UserRole() *gomock.Call
- func (mr *MockFactoryMockRecorder) Users() *gomock.Call
- type MockOperationStore
- func (m *MockOperationStore) Count(arg0 context.Context, arg1 *entity.ListOption) (int64, error)
- func (m *MockOperationStore) Create(arg0 context.Context, arg1 *entity.OperationLog) error
- func (m *MockOperationStore) Delete(arg0 context.Context, arg1 int) error
- func (m *MockOperationStore) EXPECT() *MockOperationStoreMockRecorder
- func (m *MockOperationStore) Get(arg0 context.Context, arg1 int) (*entity.OperationLog, error)
- func (m *MockOperationStore) List(arg0 context.Context, arg1 *entity.ListOption) ([]model.OperationLog, error)
- type MockOperationStoreMockRecorder
- func (mr *MockOperationStoreMockRecorder) Count(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockOperationStoreMockRecorder) Create(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockOperationStoreMockRecorder) Delete(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockOperationStoreMockRecorder) Get(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockOperationStoreMockRecorder) List(arg0, arg1 interface{}) *gomock.Call
- type MockResourceStore
- func (m *MockResourceStore) Count(arg0 context.Context, arg1 *entity.ListOption) (int64, error)
- func (m *MockResourceStore) Create(arg0 context.Context, arg1 *entity.Resource) error
- func (m *MockResourceStore) Delete(arg0 context.Context, arg1 int) error
- func (m *MockResourceStore) EXPECT() *MockResourceStoreMockRecorder
- func (m *MockResourceStore) Get(arg0 context.Context, arg1 int) (*entity.Resource, error)
- func (m *MockResourceStore) List(arg0 context.Context, arg1 *entity.ListOption) ([]entity.Resource, error)
- func (m *MockResourceStore) Update(arg0 context.Context, arg1 *entity.Resource) error
- type MockResourceStoreMockRecorder
- func (mr *MockResourceStoreMockRecorder) Count(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockResourceStoreMockRecorder) Create(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockResourceStoreMockRecorder) Delete(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockResourceStoreMockRecorder) Get(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockResourceStoreMockRecorder) List(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockResourceStoreMockRecorder) Update(arg0, arg1 interface{}) *gomock.Call
- type MockRoleStore
- func (m *MockRoleStore) Count(arg0 context.Context, arg1 *entity.ListOption) (int64, error)
- func (m *MockRoleStore) Create(arg0 context.Context, arg1 *entity.Role) error
- func (m *MockRoleStore) Delete(arg0 context.Context, arg1 int) error
- func (m *MockRoleStore) EXPECT() *MockRoleStoreMockRecorder
- func (m *MockRoleStore) Get(arg0 context.Context, arg1 int) (*entity.Role, error)
- func (m *MockRoleStore) List(arg0 context.Context, arg1 *entity.ListOption) ([]entity.Role, error)
- func (m *MockRoleStore) Update(arg0 context.Context, arg1 *entity.Role) error
- type MockRoleStoreMockRecorder
- func (mr *MockRoleStoreMockRecorder) Count(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockRoleStoreMockRecorder) Create(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockRoleStoreMockRecorder) Delete(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockRoleStoreMockRecorder) Get(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockRoleStoreMockRecorder) List(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockRoleStoreMockRecorder) Update(arg0, arg1 interface{}) *gomock.Call
- type MockSysMenuStore
- func (m *MockSysMenuStore) Count(arg0 context.Context, arg1 *entity.ListOption) (int64, error)
- func (m *MockSysMenuStore) Create(arg0 context.Context, arg1 *model.SysMenu) error
- func (m *MockSysMenuStore) Delete(arg0 context.Context, arg1 int) error
- func (m *MockSysMenuStore) EXPECT() *MockSysMenuStoreMockRecorder
- func (m *MockSysMenuStore) Get(arg0 context.Context, arg1 int) (*model.SysMenu, error)
- func (m *MockSysMenuStore) List(arg0 context.Context, arg1 *entity.ListOption) ([]model.SysMenu, error)
- func (m *MockSysMenuStore) Update(arg0 context.Context, arg1 *model.SysMenu) error
- type MockSysMenuStoreMockRecorder
- func (mr *MockSysMenuStoreMockRecorder) Count(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockSysMenuStoreMockRecorder) Create(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockSysMenuStoreMockRecorder) Delete(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockSysMenuStoreMockRecorder) Get(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockSysMenuStoreMockRecorder) List(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockSysMenuStoreMockRecorder) Update(arg0, arg1 interface{}) *gomock.Call
- type MockSysRestStore
- func (m *MockSysRestStore) Count(arg0 context.Context, arg1 *entity.ListOption) (int64, error)
- func (m *MockSysRestStore) Create(arg0 context.Context, arg1 *model.SysRest) error
- func (m *MockSysRestStore) Delete(arg0 context.Context, arg1 int) error
- func (m *MockSysRestStore) EXPECT() *MockSysRestStoreMockRecorder
- func (m *MockSysRestStore) Get(arg0 context.Context, arg1 int) (*model.SysRest, error)
- func (m *MockSysRestStore) List(arg0 context.Context, arg1 *entity.ListOption) ([]model.SysRest, error)
- func (m *MockSysRestStore) Update(arg0 context.Context, arg1 *model.SysRest) error
- type MockSysRestStoreMockRecorder
- func (mr *MockSysRestStoreMockRecorder) Count(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockSysRestStoreMockRecorder) Create(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockSysRestStoreMockRecorder) Delete(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockSysRestStoreMockRecorder) Get(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockSysRestStoreMockRecorder) List(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockSysRestStoreMockRecorder) Update(arg0, arg1 interface{}) *gomock.Call
- type MockSystemConfigStore
- type MockSystemConfigStoreMockRecorder
- type MockTagStore
- func (m *MockTagStore) Count(arg0 context.Context, arg1 *entity.ListOption) (int64, error)
- func (m *MockTagStore) Create(arg0 context.Context, arg1 *entity.Tag) error
- func (m *MockTagStore) Delete(arg0 context.Context, arg1 int) error
- func (m *MockTagStore) EXPECT() *MockTagStoreMockRecorder
- func (m *MockTagStore) Get(arg0 context.Context, arg1 int) (*entity.Tag, error)
- func (m *MockTagStore) List(arg0 context.Context, arg1 *entity.ListOption) ([]entity.Tag, error)
- func (m *MockTagStore) Update(arg0 context.Context, arg1 *entity.Tag) error
- type MockTagStoreMockRecorder
- func (mr *MockTagStoreMockRecorder) Count(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockTagStoreMockRecorder) Create(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockTagStoreMockRecorder) Delete(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockTagStoreMockRecorder) Get(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockTagStoreMockRecorder) List(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockTagStoreMockRecorder) Update(arg0, arg1 interface{}) *gomock.Call
- type MockUserRoleStore
- func (m *MockUserRoleStore) Create(arg0 context.Context, arg1, arg2 int) error
- func (m *MockUserRoleStore) Delete(arg0 context.Context, arg1, arg2 int) error
- func (m *MockUserRoleStore) DeleteByUser(arg0 context.Context, arg1 int) error
- func (m *MockUserRoleStore) EXPECT() *MockUserRoleStoreMockRecorder
- func (m *MockUserRoleStore) ListUserRole(arg0 context.Context, arg1 int) ([]entity.Role, error)
- type MockUserRoleStoreMockRecorder
- func (mr *MockUserRoleStoreMockRecorder) Create(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockUserRoleStoreMockRecorder) Delete(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockUserRoleStoreMockRecorder) DeleteByUser(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockUserRoleStoreMockRecorder) ListUserRole(arg0, arg1 interface{}) *gomock.Call
- type MockUserStore
- func (m *MockUserStore) Count(arg0 context.Context, arg1 *entity.ListOption) (int64, error)
- func (m *MockUserStore) Create(arg0 context.Context, arg1 *entity.User) (int, error)
- func (m *MockUserStore) Delete(arg0 context.Context, arg1 int) error
- func (m *MockUserStore) EXPECT() *MockUserStoreMockRecorder
- func (m *MockUserStore) GetById(arg0 context.Context, arg1 int) (*entity.User, error)
- func (m *MockUserStore) GetByName(arg0 context.Context, arg1 string) (*entity.User, error)
- func (m *MockUserStore) List(arg0 context.Context, arg1 *entity.ListOption) ([]entity.User, error)
- func (m *MockUserStore) Update(arg0 context.Context, arg1 *entity.User) error
- type MockUserStoreMockRecorder
- func (mr *MockUserStoreMockRecorder) Count(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockUserStoreMockRecorder) Create(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockUserStoreMockRecorder) Delete(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockUserStoreMockRecorder) GetById(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockUserStoreMockRecorder) GetByName(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockUserStoreMockRecorder) List(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockUserStoreMockRecorder) Update(arg0, arg1 interface{}) *gomock.Call
- type OperationStore
- type Option
- type ResourceStore
- type RoleMenuStore
- type RoleRestStore
- type RoleStore
- type SysMenuStore
- type SysRestStore
- type SystemConfigStore
- type TagStore
- type TxFunc
- type UserRoleStore
- type UserStore
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ArticleStore ¶
type ArticleStore interface { Create(ctx context.Context, article *model.Article) error Update(ctx context.Context, article *model.Article) error Delete(ctx context.Context, id int) error Get(ctx context.Context, id int) (*model.Article, error) List(ctx context.Context, opt *model.ListOption) ([]model.Article, error) Count(ctx context.Context, opt *model.ListOption) (int64, error) }
type Factory ¶
type Factory interface { Articles() ArticleStore Tags() TagStore Users() UserStore Roles() RoleStore Systems() SystemConfigStore Resources() ResourceStore Operations() OperationStore UserRole() UserRoleStore SysRests() SysRestStore SysMenus() SysMenuStore RoleMenus() RoleMenuStore RoleRests() RoleRestStore Close() error Tx(ctx context.Context, f TxFunc) error }
type MockArticleStore ¶
type MockArticleStore struct {
// contains filtered or unexported fields
}
MockArticleStore is a mock of ArticleStore interface.
func NewMockArticleStore ¶
func NewMockArticleStore(ctrl *gomock.Controller) *MockArticleStore
NewMockArticleStore creates a new mock instance.
func (*MockArticleStore) Count ¶
func (m *MockArticleStore) Count(arg0 context.Context, arg1 *model.ListOption) (int64, error)
Count mocks base method.
func (*MockArticleStore) Delete ¶
func (m *MockArticleStore) Delete(arg0 context.Context, arg1 int) error
Delete mocks base method.
func (*MockArticleStore) EXPECT ¶
func (m *MockArticleStore) EXPECT() *MockArticleStoreMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockArticleStore) List ¶
func (m *MockArticleStore) List(arg0 context.Context, arg1 *model.ListOption) ([]model.Article, error)
List mocks base method.
type MockArticleStoreMockRecorder ¶
type MockArticleStoreMockRecorder struct {
// contains filtered or unexported fields
}
MockArticleStoreMockRecorder is the mock recorder for MockArticleStore.
func (*MockArticleStoreMockRecorder) Count ¶
func (mr *MockArticleStoreMockRecorder) Count(arg0, arg1 interface{}) *gomock.Call
Count indicates an expected call of Count.
func (*MockArticleStoreMockRecorder) Create ¶
func (mr *MockArticleStoreMockRecorder) Create(arg0, arg1 interface{}) *gomock.Call
Create indicates an expected call of Create.
func (*MockArticleStoreMockRecorder) Delete ¶
func (mr *MockArticleStoreMockRecorder) Delete(arg0, arg1 interface{}) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockArticleStoreMockRecorder) Get ¶
func (mr *MockArticleStoreMockRecorder) Get(arg0, arg1 interface{}) *gomock.Call
Get indicates an expected call of Get.
func (*MockArticleStoreMockRecorder) List ¶
func (mr *MockArticleStoreMockRecorder) List(arg0, arg1 interface{}) *gomock.Call
List indicates an expected call of List.
func (*MockArticleStoreMockRecorder) Update ¶
func (mr *MockArticleStoreMockRecorder) Update(arg0, arg1 interface{}) *gomock.Call
Update indicates an expected call of Update.
type MockFactory ¶
type MockFactory struct {
// contains filtered or unexported fields
}
MockFactory is a mock of Factory interface.
func NewMockFactory ¶
func NewMockFactory(ctrl *gomock.Controller) *MockFactory
NewMockFactory creates a new mock instance.
func (*MockFactory) Articles ¶
func (m *MockFactory) Articles() ArticleStore
Articles mocks base method.
func (*MockFactory) EXPECT ¶
func (m *MockFactory) EXPECT() *MockFactoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockFactory) Operations ¶
func (m *MockFactory) Operations() OperationStore
Operations mocks base method.
func (*MockFactory) Resources ¶
func (m *MockFactory) Resources() ResourceStore
Resources mocks base method.
func (*MockFactory) RoleMenus ¶
func (m *MockFactory) RoleMenus() RoleMenuStore
RoleMenus mocks base method.
func (*MockFactory) RoleRests ¶
func (m *MockFactory) RoleRests() RoleRestStore
RoleRests mocks base method.
func (*MockFactory) SysMenus ¶
func (m *MockFactory) SysMenus() SysMenuStore
SysMenus mocks base method.
func (*MockFactory) SysRests ¶
func (m *MockFactory) SysRests() SysRestStore
SysRests mocks base method.
func (*MockFactory) Systems ¶
func (m *MockFactory) Systems() SystemConfigStore
Systems mocks base method.
func (*MockFactory) UserRole ¶
func (m *MockFactory) UserRole() UserRoleStore
UserRole mocks base method.
type MockFactoryMockRecorder ¶
type MockFactoryMockRecorder struct {
// contains filtered or unexported fields
}
MockFactoryMockRecorder is the mock recorder for MockFactory.
func (*MockFactoryMockRecorder) Articles ¶
func (mr *MockFactoryMockRecorder) Articles() *gomock.Call
Articles indicates an expected call of Articles.
func (*MockFactoryMockRecorder) Close ¶
func (mr *MockFactoryMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
func (*MockFactoryMockRecorder) Operations ¶
func (mr *MockFactoryMockRecorder) Operations() *gomock.Call
Operations indicates an expected call of Operations.
func (*MockFactoryMockRecorder) Resources ¶
func (mr *MockFactoryMockRecorder) Resources() *gomock.Call
Resources indicates an expected call of Resources.
func (*MockFactoryMockRecorder) RoleMenus ¶
func (mr *MockFactoryMockRecorder) RoleMenus() *gomock.Call
RoleMenus indicates an expected call of RoleMenus.
func (*MockFactoryMockRecorder) RoleRests ¶
func (mr *MockFactoryMockRecorder) RoleRests() *gomock.Call
RoleRests indicates an expected call of RoleRests.
func (*MockFactoryMockRecorder) Roles ¶
func (mr *MockFactoryMockRecorder) Roles() *gomock.Call
Roles indicates an expected call of Roles.
func (*MockFactoryMockRecorder) SysMenus ¶
func (mr *MockFactoryMockRecorder) SysMenus() *gomock.Call
SysMenus indicates an expected call of SysMenus.
func (*MockFactoryMockRecorder) SysRests ¶
func (mr *MockFactoryMockRecorder) SysRests() *gomock.Call
SysRests indicates an expected call of SysRests.
func (*MockFactoryMockRecorder) Systems ¶
func (mr *MockFactoryMockRecorder) Systems() *gomock.Call
Systems indicates an expected call of Systems.
func (*MockFactoryMockRecorder) Tags ¶
func (mr *MockFactoryMockRecorder) Tags() *gomock.Call
Tags indicates an expected call of Tags.
func (*MockFactoryMockRecorder) Tx ¶
func (mr *MockFactoryMockRecorder) Tx(arg0, arg1 interface{}) *gomock.Call
Tx indicates an expected call of Tx.
func (*MockFactoryMockRecorder) UserRole ¶
func (mr *MockFactoryMockRecorder) UserRole() *gomock.Call
UserRole indicates an expected call of UserRole.
func (*MockFactoryMockRecorder) Users ¶
func (mr *MockFactoryMockRecorder) Users() *gomock.Call
Users indicates an expected call of Users.
type MockOperationStore ¶
type MockOperationStore struct {
// contains filtered or unexported fields
}
MockOperationStore is a mock of OperationStore interface.
func NewMockOperationStore ¶
func NewMockOperationStore(ctrl *gomock.Controller) *MockOperationStore
NewMockOperationStore creates a new mock instance.
func (*MockOperationStore) Count ¶
func (m *MockOperationStore) Count(arg0 context.Context, arg1 *entity.ListOption) (int64, error)
Count mocks base method.
func (*MockOperationStore) Create ¶
func (m *MockOperationStore) Create(arg0 context.Context, arg1 *entity.OperationLog) error
Create mocks base method.
func (*MockOperationStore) Delete ¶
func (m *MockOperationStore) Delete(arg0 context.Context, arg1 int) error
Delete mocks base method.
func (*MockOperationStore) EXPECT ¶
func (m *MockOperationStore) EXPECT() *MockOperationStoreMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockOperationStore) Get ¶
func (m *MockOperationStore) Get(arg0 context.Context, arg1 int) (*entity.OperationLog, error)
Get mocks base method.
func (*MockOperationStore) List ¶
func (m *MockOperationStore) List(arg0 context.Context, arg1 *entity.ListOption) ([]model.OperationLog, error)
List mocks base method.
type MockOperationStoreMockRecorder ¶
type MockOperationStoreMockRecorder struct {
// contains filtered or unexported fields
}
MockOperationStoreMockRecorder is the mock recorder for MockOperationStore.
func (*MockOperationStoreMockRecorder) Count ¶
func (mr *MockOperationStoreMockRecorder) Count(arg0, arg1 interface{}) *gomock.Call
Count indicates an expected call of Count.
func (*MockOperationStoreMockRecorder) Create ¶
func (mr *MockOperationStoreMockRecorder) Create(arg0, arg1 interface{}) *gomock.Call
Create indicates an expected call of Create.
func (*MockOperationStoreMockRecorder) Delete ¶
func (mr *MockOperationStoreMockRecorder) Delete(arg0, arg1 interface{}) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockOperationStoreMockRecorder) Get ¶
func (mr *MockOperationStoreMockRecorder) Get(arg0, arg1 interface{}) *gomock.Call
Get indicates an expected call of Get.
func (*MockOperationStoreMockRecorder) List ¶
func (mr *MockOperationStoreMockRecorder) List(arg0, arg1 interface{}) *gomock.Call
List indicates an expected call of List.
type MockResourceStore ¶
type MockResourceStore struct {
// contains filtered or unexported fields
}
MockResourceStore is a mock of ResourceStore interface.
func NewMockResourceStore ¶
func NewMockResourceStore(ctrl *gomock.Controller) *MockResourceStore
NewMockResourceStore creates a new mock instance.
func (*MockResourceStore) Count ¶
func (m *MockResourceStore) Count(arg0 context.Context, arg1 *entity.ListOption) (int64, error)
Count mocks base method.
func (*MockResourceStore) Delete ¶
func (m *MockResourceStore) Delete(arg0 context.Context, arg1 int) error
Delete mocks base method.
func (*MockResourceStore) EXPECT ¶
func (m *MockResourceStore) EXPECT() *MockResourceStoreMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockResourceStore) List ¶
func (m *MockResourceStore) List(arg0 context.Context, arg1 *entity.ListOption) ([]entity.Resource, error)
List mocks base method.
type MockResourceStoreMockRecorder ¶
type MockResourceStoreMockRecorder struct {
// contains filtered or unexported fields
}
MockResourceStoreMockRecorder is the mock recorder for MockResourceStore.
func (*MockResourceStoreMockRecorder) Count ¶
func (mr *MockResourceStoreMockRecorder) Count(arg0, arg1 interface{}) *gomock.Call
Count indicates an expected call of Count.
func (*MockResourceStoreMockRecorder) Create ¶
func (mr *MockResourceStoreMockRecorder) Create(arg0, arg1 interface{}) *gomock.Call
Create indicates an expected call of Create.
func (*MockResourceStoreMockRecorder) Delete ¶
func (mr *MockResourceStoreMockRecorder) Delete(arg0, arg1 interface{}) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockResourceStoreMockRecorder) Get ¶
func (mr *MockResourceStoreMockRecorder) Get(arg0, arg1 interface{}) *gomock.Call
Get indicates an expected call of Get.
func (*MockResourceStoreMockRecorder) List ¶
func (mr *MockResourceStoreMockRecorder) List(arg0, arg1 interface{}) *gomock.Call
List indicates an expected call of List.
func (*MockResourceStoreMockRecorder) Update ¶
func (mr *MockResourceStoreMockRecorder) Update(arg0, arg1 interface{}) *gomock.Call
Update indicates an expected call of Update.
type MockRoleStore ¶
type MockRoleStore struct {
// contains filtered or unexported fields
}
MockRoleStore is a mock of RoleStore interface.
func NewMockRoleStore ¶
func NewMockRoleStore(ctrl *gomock.Controller) *MockRoleStore
NewMockRoleStore creates a new mock instance.
func (*MockRoleStore) Count ¶
func (m *MockRoleStore) Count(arg0 context.Context, arg1 *entity.ListOption) (int64, error)
Count mocks base method.
func (*MockRoleStore) Delete ¶
func (m *MockRoleStore) Delete(arg0 context.Context, arg1 int) error
Delete mocks base method.
func (*MockRoleStore) EXPECT ¶
func (m *MockRoleStore) EXPECT() *MockRoleStoreMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockRoleStore) List ¶
func (m *MockRoleStore) List(arg0 context.Context, arg1 *entity.ListOption) ([]entity.Role, error)
List mocks base method.
type MockRoleStoreMockRecorder ¶
type MockRoleStoreMockRecorder struct {
// contains filtered or unexported fields
}
MockRoleStoreMockRecorder is the mock recorder for MockRoleStore.
func (*MockRoleStoreMockRecorder) Count ¶
func (mr *MockRoleStoreMockRecorder) Count(arg0, arg1 interface{}) *gomock.Call
Count indicates an expected call of Count.
func (*MockRoleStoreMockRecorder) Create ¶
func (mr *MockRoleStoreMockRecorder) Create(arg0, arg1 interface{}) *gomock.Call
Create indicates an expected call of Create.
func (*MockRoleStoreMockRecorder) Delete ¶
func (mr *MockRoleStoreMockRecorder) Delete(arg0, arg1 interface{}) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockRoleStoreMockRecorder) Get ¶
func (mr *MockRoleStoreMockRecorder) Get(arg0, arg1 interface{}) *gomock.Call
Get indicates an expected call of Get.
func (*MockRoleStoreMockRecorder) List ¶
func (mr *MockRoleStoreMockRecorder) List(arg0, arg1 interface{}) *gomock.Call
List indicates an expected call of List.
func (*MockRoleStoreMockRecorder) Update ¶
func (mr *MockRoleStoreMockRecorder) Update(arg0, arg1 interface{}) *gomock.Call
Update indicates an expected call of Update.
type MockSysMenuStore ¶
type MockSysMenuStore struct {
// contains filtered or unexported fields
}
MockSysMenuStore is a mock of SysMenuStore interface.
func NewMockSysMenuStore ¶
func NewMockSysMenuStore(ctrl *gomock.Controller) *MockSysMenuStore
NewMockSysMenuStore creates a new mock instance.
func (*MockSysMenuStore) Count ¶
func (m *MockSysMenuStore) Count(arg0 context.Context, arg1 *entity.ListOption) (int64, error)
Count mocks base method.
func (*MockSysMenuStore) Delete ¶
func (m *MockSysMenuStore) Delete(arg0 context.Context, arg1 int) error
Delete mocks base method.
func (*MockSysMenuStore) EXPECT ¶
func (m *MockSysMenuStore) EXPECT() *MockSysMenuStoreMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockSysMenuStore) List ¶
func (m *MockSysMenuStore) List(arg0 context.Context, arg1 *entity.ListOption) ([]model.SysMenu, error)
List mocks base method.
type MockSysMenuStoreMockRecorder ¶
type MockSysMenuStoreMockRecorder struct {
// contains filtered or unexported fields
}
MockSysMenuStoreMockRecorder is the mock recorder for MockSysMenuStore.
func (*MockSysMenuStoreMockRecorder) Count ¶
func (mr *MockSysMenuStoreMockRecorder) Count(arg0, arg1 interface{}) *gomock.Call
Count indicates an expected call of Count.
func (*MockSysMenuStoreMockRecorder) Create ¶
func (mr *MockSysMenuStoreMockRecorder) Create(arg0, arg1 interface{}) *gomock.Call
Create indicates an expected call of Create.
func (*MockSysMenuStoreMockRecorder) Delete ¶
func (mr *MockSysMenuStoreMockRecorder) Delete(arg0, arg1 interface{}) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockSysMenuStoreMockRecorder) Get ¶
func (mr *MockSysMenuStoreMockRecorder) Get(arg0, arg1 interface{}) *gomock.Call
Get indicates an expected call of Get.
func (*MockSysMenuStoreMockRecorder) List ¶
func (mr *MockSysMenuStoreMockRecorder) List(arg0, arg1 interface{}) *gomock.Call
List indicates an expected call of List.
func (*MockSysMenuStoreMockRecorder) Update ¶
func (mr *MockSysMenuStoreMockRecorder) Update(arg0, arg1 interface{}) *gomock.Call
Update indicates an expected call of Update.
type MockSysRestStore ¶
type MockSysRestStore struct {
// contains filtered or unexported fields
}
MockSysRestStore is a mock of SysRestStore interface.
func NewMockSysRestStore ¶
func NewMockSysRestStore(ctrl *gomock.Controller) *MockSysRestStore
NewMockSysRestStore creates a new mock instance.
func (*MockSysRestStore) Count ¶
func (m *MockSysRestStore) Count(arg0 context.Context, arg1 *entity.ListOption) (int64, error)
Count mocks base method.
func (*MockSysRestStore) Delete ¶
func (m *MockSysRestStore) Delete(arg0 context.Context, arg1 int) error
Delete mocks base method.
func (*MockSysRestStore) EXPECT ¶
func (m *MockSysRestStore) EXPECT() *MockSysRestStoreMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockSysRestStore) List ¶
func (m *MockSysRestStore) List(arg0 context.Context, arg1 *entity.ListOption) ([]model.SysRest, error)
List mocks base method.
type MockSysRestStoreMockRecorder ¶
type MockSysRestStoreMockRecorder struct {
// contains filtered or unexported fields
}
MockSysRestStoreMockRecorder is the mock recorder for MockSysRestStore.
func (*MockSysRestStoreMockRecorder) Count ¶
func (mr *MockSysRestStoreMockRecorder) Count(arg0, arg1 interface{}) *gomock.Call
Count indicates an expected call of Count.
func (*MockSysRestStoreMockRecorder) Create ¶
func (mr *MockSysRestStoreMockRecorder) Create(arg0, arg1 interface{}) *gomock.Call
Create indicates an expected call of Create.
func (*MockSysRestStoreMockRecorder) Delete ¶
func (mr *MockSysRestStoreMockRecorder) Delete(arg0, arg1 interface{}) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockSysRestStoreMockRecorder) Get ¶
func (mr *MockSysRestStoreMockRecorder) Get(arg0, arg1 interface{}) *gomock.Call
Get indicates an expected call of Get.
func (*MockSysRestStoreMockRecorder) List ¶
func (mr *MockSysRestStoreMockRecorder) List(arg0, arg1 interface{}) *gomock.Call
List indicates an expected call of List.
func (*MockSysRestStoreMockRecorder) Update ¶
func (mr *MockSysRestStoreMockRecorder) Update(arg0, arg1 interface{}) *gomock.Call
Update indicates an expected call of Update.
type MockSystemConfigStore ¶
type MockSystemConfigStore struct {
// contains filtered or unexported fields
}
MockSystemConfigStore is a mock of SystemConfigStore interface.
func NewMockSystemConfigStore ¶
func NewMockSystemConfigStore(ctrl *gomock.Controller) *MockSystemConfigStore
NewMockSystemConfigStore creates a new mock instance.
func (*MockSystemConfigStore) EXPECT ¶
func (m *MockSystemConfigStore) EXPECT() *MockSystemConfigStoreMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockSystemConfigStoreMockRecorder ¶
type MockSystemConfigStoreMockRecorder struct {
// contains filtered or unexported fields
}
MockSystemConfigStoreMockRecorder is the mock recorder for MockSystemConfigStore.
func (*MockSystemConfigStoreMockRecorder) Get ¶
func (mr *MockSystemConfigStoreMockRecorder) Get(arg0, arg1 interface{}) *gomock.Call
Get indicates an expected call of Get.
type MockTagStore ¶
type MockTagStore struct {
// contains filtered or unexported fields
}
MockTagStore is a mock of TagStore interface.
func NewMockTagStore ¶
func NewMockTagStore(ctrl *gomock.Controller) *MockTagStore
NewMockTagStore creates a new mock instance.
func (*MockTagStore) Count ¶
func (m *MockTagStore) Count(arg0 context.Context, arg1 *entity.ListOption) (int64, error)
Count mocks base method.
func (*MockTagStore) Delete ¶
func (m *MockTagStore) Delete(arg0 context.Context, arg1 int) error
Delete mocks base method.
func (*MockTagStore) EXPECT ¶
func (m *MockTagStore) EXPECT() *MockTagStoreMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockTagStore) List ¶
func (m *MockTagStore) List(arg0 context.Context, arg1 *entity.ListOption) ([]entity.Tag, error)
List mocks base method.
type MockTagStoreMockRecorder ¶
type MockTagStoreMockRecorder struct {
// contains filtered or unexported fields
}
MockTagStoreMockRecorder is the mock recorder for MockTagStore.
func (*MockTagStoreMockRecorder) Count ¶
func (mr *MockTagStoreMockRecorder) Count(arg0, arg1 interface{}) *gomock.Call
Count indicates an expected call of Count.
func (*MockTagStoreMockRecorder) Create ¶
func (mr *MockTagStoreMockRecorder) Create(arg0, arg1 interface{}) *gomock.Call
Create indicates an expected call of Create.
func (*MockTagStoreMockRecorder) Delete ¶
func (mr *MockTagStoreMockRecorder) Delete(arg0, arg1 interface{}) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockTagStoreMockRecorder) Get ¶
func (mr *MockTagStoreMockRecorder) Get(arg0, arg1 interface{}) *gomock.Call
Get indicates an expected call of Get.
func (*MockTagStoreMockRecorder) List ¶
func (mr *MockTagStoreMockRecorder) List(arg0, arg1 interface{}) *gomock.Call
List indicates an expected call of List.
func (*MockTagStoreMockRecorder) Update ¶
func (mr *MockTagStoreMockRecorder) Update(arg0, arg1 interface{}) *gomock.Call
Update indicates an expected call of Update.
type MockUserRoleStore ¶
type MockUserRoleStore struct {
// contains filtered or unexported fields
}
MockUserRoleStore is a mock of UserRoleStore interface.
func NewMockUserRoleStore ¶
func NewMockUserRoleStore(ctrl *gomock.Controller) *MockUserRoleStore
NewMockUserRoleStore creates a new mock instance.
func (*MockUserRoleStore) Create ¶
func (m *MockUserRoleStore) Create(arg0 context.Context, arg1, arg2 int) error
Create mocks base method.
func (*MockUserRoleStore) Delete ¶
func (m *MockUserRoleStore) Delete(arg0 context.Context, arg1, arg2 int) error
Delete mocks base method.
func (*MockUserRoleStore) DeleteByUser ¶
func (m *MockUserRoleStore) DeleteByUser(arg0 context.Context, arg1 int) error
DeleteByUser mocks base method.
func (*MockUserRoleStore) EXPECT ¶
func (m *MockUserRoleStore) EXPECT() *MockUserRoleStoreMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockUserRoleStore) ListUserRole ¶
ListUserRole mocks base method.
type MockUserRoleStoreMockRecorder ¶
type MockUserRoleStoreMockRecorder struct {
// contains filtered or unexported fields
}
MockUserRoleStoreMockRecorder is the mock recorder for MockUserRoleStore.
func (*MockUserRoleStoreMockRecorder) Create ¶
func (mr *MockUserRoleStoreMockRecorder) Create(arg0, arg1, arg2 interface{}) *gomock.Call
Create indicates an expected call of Create.
func (*MockUserRoleStoreMockRecorder) Delete ¶
func (mr *MockUserRoleStoreMockRecorder) Delete(arg0, arg1, arg2 interface{}) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockUserRoleStoreMockRecorder) DeleteByUser ¶
func (mr *MockUserRoleStoreMockRecorder) DeleteByUser(arg0, arg1 interface{}) *gomock.Call
DeleteByUser indicates an expected call of DeleteByUser.
func (*MockUserRoleStoreMockRecorder) ListUserRole ¶
func (mr *MockUserRoleStoreMockRecorder) ListUserRole(arg0, arg1 interface{}) *gomock.Call
ListUserRole indicates an expected call of ListUserRole.
type MockUserStore ¶
type MockUserStore struct {
// contains filtered or unexported fields
}
MockUserStore is a mock of UserStore interface.
func NewMockUserStore ¶
func NewMockUserStore(ctrl *gomock.Controller) *MockUserStore
NewMockUserStore creates a new mock instance.
func (*MockUserStore) Count ¶
func (m *MockUserStore) Count(arg0 context.Context, arg1 *entity.ListOption) (int64, error)
Count mocks base method.
func (*MockUserStore) Delete ¶
func (m *MockUserStore) Delete(arg0 context.Context, arg1 int) error
Delete mocks base method.
func (*MockUserStore) EXPECT ¶
func (m *MockUserStore) EXPECT() *MockUserStoreMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockUserStore) List ¶
func (m *MockUserStore) List(arg0 context.Context, arg1 *entity.ListOption) ([]entity.User, error)
List mocks base method.
type MockUserStoreMockRecorder ¶
type MockUserStoreMockRecorder struct {
// contains filtered or unexported fields
}
MockUserStoreMockRecorder is the mock recorder for MockUserStore.
func (*MockUserStoreMockRecorder) Count ¶
func (mr *MockUserStoreMockRecorder) Count(arg0, arg1 interface{}) *gomock.Call
Count indicates an expected call of Count.
func (*MockUserStoreMockRecorder) Create ¶
func (mr *MockUserStoreMockRecorder) Create(arg0, arg1 interface{}) *gomock.Call
Create indicates an expected call of Create.
func (*MockUserStoreMockRecorder) Delete ¶
func (mr *MockUserStoreMockRecorder) Delete(arg0, arg1 interface{}) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockUserStoreMockRecorder) GetById ¶
func (mr *MockUserStoreMockRecorder) GetById(arg0, arg1 interface{}) *gomock.Call
GetById indicates an expected call of GetById.
func (*MockUserStoreMockRecorder) GetByName ¶
func (mr *MockUserStoreMockRecorder) GetByName(arg0, arg1 interface{}) *gomock.Call
GetByName indicates an expected call of GetByName.
func (*MockUserStoreMockRecorder) List ¶
func (mr *MockUserStoreMockRecorder) List(arg0, arg1 interface{}) *gomock.Call
List indicates an expected call of List.
func (*MockUserStoreMockRecorder) Update ¶
func (mr *MockUserStoreMockRecorder) Update(arg0, arg1 interface{}) *gomock.Call
Update indicates an expected call of Update.
type OperationStore ¶
type OperationStore interface { Create(ctx context.Context, log *entity.OperationLog) error Delete(ctx context.Context, id int) error Get(ctx context.Context, id int) (*entity.OperationLog, error) List(ctx context.Context, opt *entity.ListOption) ([]model.OperationLog, error) Count(ctx context.Context, opt *entity.ListOption) (int64, error) }
type ResourceStore ¶
type ResourceStore interface { Create(ctx context.Context, article *entity.Resource) error Update(ctx context.Context, article *entity.Resource) error Delete(ctx context.Context, id int) error Get(ctx context.Context, id int) (*entity.Resource, error) List(ctx context.Context, opt *entity.ListOption) ([]entity.Resource, error) Count(ctx context.Context, opt *entity.ListOption) (int64, error) }
type RoleMenuStore ¶
type RoleRestStore ¶
type RoleStore ¶
type RoleStore interface { Get(ctx context.Context, id int) (*entity.Role, error) Create(ctx context.Context, user *entity.Role) error Update(ctx context.Context, user *entity.Role) error Delete(ctx context.Context, id int) error List(ctx context.Context, opt *entity.ListOption) ([]entity.Role, error) Count(ctx context.Context, opt *entity.ListOption) (int64, error) }
type SysMenuStore ¶
type SysMenuStore interface { Create(ctx context.Context, sysMenu *model.SysMenu) error Update(ctx context.Context, sysMenu *model.SysMenu) error Delete(ctx context.Context, id int) error Get(ctx context.Context, id int) (*model.SysMenu, error) List(ctx context.Context, opt *entity.ListOption) ([]model.SysMenu, error) Count(ctx context.Context, opt *entity.ListOption) (int64, error) }
type SysRestStore ¶
type SysRestStore interface { Create(ctx context.Context, sysRest *model.SysRest) error Update(ctx context.Context, sysRest *model.SysRest) error Delete(ctx context.Context, id int) error Get(ctx context.Context, id int) (*model.SysRest, error) List(ctx context.Context, opt *entity.ListOption) ([]model.SysRest, error) Count(ctx context.Context, opt *entity.ListOption) (int64, error) }
type SystemConfigStore ¶
type TagStore ¶
type TagStore interface { Create(ctx context.Context, tag *entity.Tag) error Update(ctx context.Context, tag *entity.Tag) error Delete(ctx context.Context, id int) error Get(ctx context.Context, id int) (*entity.Tag, error) List(ctx context.Context, opt *entity.ListOption) ([]entity.Tag, error) Count(ctx context.Context, opt *entity.ListOption) (int64, error) }
type UserRoleStore ¶
type UserStore ¶
type UserStore interface { GetByName(ctx context.Context, username string) (*entity.User, error) GetById(ctx context.Context, id int) (*entity.User, error) Create(ctx context.Context, user *entity.User) (int, error) Update(ctx context.Context, user *entity.User) error Delete(ctx context.Context, id int) error List(ctx context.Context, opt *entity.ListOption) ([]entity.User, error) Count(ctx context.Context, opt *entity.ListOption) (int64, error) }