store

package
v0.0.0-...-e272627 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 21, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package store is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetClient

func SetClient(factory Factory)

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
}

func Client

func Client() Factory

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) Create

func (m *MockArticleStore) Create(arg0 context.Context, arg1 *model.Article) error

Create mocks base method.

func (*MockArticleStore) Delete

func (m *MockArticleStore) Delete(arg0 context.Context, arg1 int) error

Delete mocks base method.

func (*MockArticleStore) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockArticleStore) Get

func (m *MockArticleStore) Get(arg0 context.Context, arg1 int) (*model.Article, error)

Get mocks base method.

func (*MockArticleStore) List

func (m *MockArticleStore) List(arg0 context.Context, arg1 *model.ListOption) ([]model.Article, error)

List mocks base method.

func (*MockArticleStore) Update

func (m *MockArticleStore) Update(arg0 context.Context, arg1 *model.Article) error

Update 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) Close

func (m *MockFactory) Close() error

Close 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) Roles

func (m *MockFactory) Roles() RoleStore

Roles 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) Tags

func (m *MockFactory) Tags() TagStore

Tags mocks base method.

func (*MockFactory) Tx

func (m *MockFactory) Tx(arg0 context.Context, arg1 func(context.Context, Factory) error) error

Tx mocks base method.

func (*MockFactory) UserRole

func (m *MockFactory) UserRole() UserRoleStore

UserRole mocks base method.

func (*MockFactory) Users

func (m *MockFactory) Users() UserStore

Users 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

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockOperationStore) Get

Get mocks base method.

func (*MockOperationStore) List

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) Create

func (m *MockResourceStore) Create(arg0 context.Context, arg1 *entity.Resource) error

Create mocks base method.

func (*MockResourceStore) Delete

func (m *MockResourceStore) Delete(arg0 context.Context, arg1 int) error

Delete mocks base method.

func (*MockResourceStore) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockResourceStore) Get

func (m *MockResourceStore) Get(arg0 context.Context, arg1 int) (*entity.Resource, error)

Get mocks base method.

func (*MockResourceStore) List

List mocks base method.

func (*MockResourceStore) Update

func (m *MockResourceStore) Update(arg0 context.Context, arg1 *entity.Resource) error

Update 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) Create

func (m *MockRoleStore) Create(arg0 context.Context, arg1 *entity.Role) error

Create mocks base method.

func (*MockRoleStore) Delete

func (m *MockRoleStore) Delete(arg0 context.Context, arg1 int) error

Delete mocks base method.

func (*MockRoleStore) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockRoleStore) Get

func (m *MockRoleStore) Get(arg0 context.Context, arg1 int) (*entity.Role, error)

Get mocks base method.

func (*MockRoleStore) List

func (m *MockRoleStore) List(arg0 context.Context, arg1 *entity.ListOption) ([]entity.Role, error)

List mocks base method.

func (*MockRoleStore) Update

func (m *MockRoleStore) Update(arg0 context.Context, arg1 *entity.Role) error

Update 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) Create

func (m *MockSysMenuStore) Create(arg0 context.Context, arg1 *model.SysMenu) error

Create mocks base method.

func (*MockSysMenuStore) Delete

func (m *MockSysMenuStore) Delete(arg0 context.Context, arg1 int) error

Delete mocks base method.

func (*MockSysMenuStore) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockSysMenuStore) Get

func (m *MockSysMenuStore) Get(arg0 context.Context, arg1 int) (*model.SysMenu, error)

Get mocks base method.

func (*MockSysMenuStore) List

func (m *MockSysMenuStore) List(arg0 context.Context, arg1 *entity.ListOption) ([]model.SysMenu, error)

List mocks base method.

func (*MockSysMenuStore) Update

func (m *MockSysMenuStore) Update(arg0 context.Context, arg1 *model.SysMenu) error

Update 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) Create

func (m *MockSysRestStore) Create(arg0 context.Context, arg1 *model.SysRest) error

Create mocks base method.

func (*MockSysRestStore) Delete

func (m *MockSysRestStore) Delete(arg0 context.Context, arg1 int) error

Delete mocks base method.

func (*MockSysRestStore) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockSysRestStore) Get

func (m *MockSysRestStore) Get(arg0 context.Context, arg1 int) (*model.SysRest, error)

Get mocks base method.

func (*MockSysRestStore) List

func (m *MockSysRestStore) List(arg0 context.Context, arg1 *entity.ListOption) ([]model.SysRest, error)

List mocks base method.

func (*MockSysRestStore) Update

func (m *MockSysRestStore) Update(arg0 context.Context, arg1 *model.SysRest) error

Update 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

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockSystemConfigStore) Get

Get mocks base method.

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) Create

func (m *MockTagStore) Create(arg0 context.Context, arg1 *entity.Tag) error

Create mocks base method.

func (*MockTagStore) Delete

func (m *MockTagStore) Delete(arg0 context.Context, arg1 int) error

Delete mocks base method.

func (*MockTagStore) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockTagStore) Get

func (m *MockTagStore) Get(arg0 context.Context, arg1 int) (*entity.Tag, error)

Get mocks base method.

func (*MockTagStore) List

func (m *MockTagStore) List(arg0 context.Context, arg1 *entity.ListOption) ([]entity.Tag, error)

List mocks base method.

func (*MockTagStore) Update

func (m *MockTagStore) Update(arg0 context.Context, arg1 *entity.Tag) error

Update 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

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockUserRoleStore) ListUserRole

func (m *MockUserRoleStore) ListUserRole(arg0 context.Context, arg1 int) ([]entity.Role, error)

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) Create

func (m *MockUserStore) Create(arg0 context.Context, arg1 *entity.User) (int, error)

Create mocks base method.

func (*MockUserStore) Delete

func (m *MockUserStore) Delete(arg0 context.Context, arg1 int) error

Delete mocks base method.

func (*MockUserStore) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockUserStore) GetById

func (m *MockUserStore) GetById(arg0 context.Context, arg1 int) (*entity.User, error)

GetById mocks base method.

func (*MockUserStore) GetByName

func (m *MockUserStore) GetByName(arg0 context.Context, arg1 string) (*entity.User, error)

GetByName mocks base method.

func (*MockUserStore) List

func (m *MockUserStore) List(arg0 context.Context, arg1 *entity.ListOption) ([]entity.User, error)

List mocks base method.

func (*MockUserStore) Update

func (m *MockUserStore) Update(arg0 context.Context, arg1 *entity.User) error

Update 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 Option

type Option func(*Factory)

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 RoleMenuStore interface {
	Create(ctx context.Context, roleId, menuId int) error
	DeleteByRole(ctx context.Context, roleId int) error
	ListByRole(ctx context.Context, roleId int) ([]int, error)
}

type RoleRestStore

type RoleRestStore interface {
	Create(ctx context.Context, roleId, restId int) error
	DeleteByRole(ctx context.Context, roleId int) error
	ListByRole(ctx context.Context, roleId int) ([]int, error)
}

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 SystemConfigStore interface {
	Get(ctx context.Context, name string) (*entity.Config, error)
}

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 TxFunc

type TxFunc = func(ctx context.Context, factory Factory) error

type UserRoleStore

type UserRoleStore interface {
	Create(ctx context.Context, userId, roleId int) error
	Delete(ctx context.Context, userId, roleId int) error
	DeleteByUser(ctx context.Context, userId int) error
	ListUserRole(ctx context.Context, userId int) ([]entity.Role, error)
}

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)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL