mongo_repositories

package
v0.0.0-...-31ddaea Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthRepositoryMock

type AuthRepositoryMock struct {
	mock.Mock
}

func (*AuthRepositoryMock) Create

func (x *AuthRepositoryMock) Create(ctx context.Context, payload *entities.Auth) (err error)

func (*AuthRepositoryMock) DeleteByUserID

func (x *AuthRepositoryMock) DeleteByUserID(ctx context.Context, userId string) (err error)

func (*AuthRepositoryMock) Find

func (x *AuthRepositoryMock) Find(ctx context.Context, id string) (result *entities.Auth, err error)

func (*AuthRepositoryMock) FindByEmail

func (x *AuthRepositoryMock) FindByEmail(ctx context.Context, email string) (result *entities.Auth, err error)

func (*AuthRepositoryMock) FindByUserId

func (x *AuthRepositoryMock) FindByUserId(ctx context.Context, userId string) (result *entities.Auth, err error)

func (*AuthRepositoryMock) Update

func (x *AuthRepositoryMock) Update(ctx context.Context, payload *entities.Auth) (err error)

type PermissionRepositoryMock

type PermissionRepositoryMock struct {
	mock.Mock
}

func (*PermissionRepositoryMock) All

func (x *PermissionRepositoryMock) All(ctx context.Context) (result []*entities.Permission, err error)

func (*PermissionRepositoryMock) AllByUserId

func (x *PermissionRepositoryMock) AllByUserId(ctx context.Context, userId string) (result []*entities.Permission, err error)

func (*PermissionRepositoryMock) AllPermissionByUserId

func (x *PermissionRepositoryMock) AllPermissionByUserId(ctx context.Context, userId string) (result []*entities.Permission, err error)

func (*PermissionRepositoryMock) Create

func (x *PermissionRepositoryMock) Create(ctx context.Context, payload *entities.Permission) (err error)

func (*PermissionRepositoryMock) Find

func (x *PermissionRepositoryMock) Find(ctx context.Context, id string) (result *entities.Permission, err error)

func (*PermissionRepositoryMock) FindByName

func (x *PermissionRepositoryMock) FindByName(ctx context.Context, name string) (result *entities.Permission, err error)

func (*PermissionRepositoryMock) GetAll

func (x *PermissionRepositoryMock) GetAll(ctx context.Context, params *entities.PermissionQueryParams) (result []*entities.Permission, total int, err error)

func (*PermissionRepositoryMock) Update

func (x *PermissionRepositoryMock) Update(ctx context.Context, payload *entities.Permission) (err error)

type PermissionRoleRepositoryMock

type PermissionRoleRepositoryMock struct {
	mock.Mock
}

func (*PermissionRoleRepositoryMock) AllByRoleId

func (x *PermissionRoleRepositoryMock) AllByRoleId(ctx context.Context, roleId string) (result []*entities.PermissionRole, err error)

func (*PermissionRoleRepositoryMock) CreateMany

func (x *PermissionRoleRepositoryMock) CreateMany(ctx context.Context, payload []*entities.PermissionRole) (err error)

func (*PermissionRoleRepositoryMock) DeleteByPermissionIds

func (x *PermissionRoleRepositoryMock) DeleteByPermissionIds(ctx context.Context, ids []string) (err error)

func (*PermissionRoleRepositoryMock) DeleteByRoleId

func (x *PermissionRoleRepositoryMock) DeleteByRoleId(ctx context.Context, roleId string) (err error)

type PermissionUserRepositoryMock

type PermissionUserRepositoryMock struct {
	mock.Mock
}

func (*PermissionUserRepositoryMock) AllByUserId

func (x *PermissionUserRepositoryMock) AllByUserId(ctx context.Context, userId string) (result []*entities.PermissionUser, err error)

func (*PermissionUserRepositoryMock) CreateMany

func (x *PermissionUserRepositoryMock) CreateMany(ctx context.Context, payload []*entities.PermissionUser) (err error)

func (*PermissionUserRepositoryMock) DeleteByPermissionIds

func (x *PermissionUserRepositoryMock) DeleteByPermissionIds(ctx context.Context, ids []string) (err error)

func (*PermissionUserRepositoryMock) DeleteByUserId

func (x *PermissionUserRepositoryMock) DeleteByUserId(ctx context.Context, userId string) (err error)

type RoleRepositoryMock

type RoleRepositoryMock struct {
	mock.Mock
}

func (*RoleRepositoryMock) All

func (x *RoleRepositoryMock) All(ctx context.Context) (result []*entities.Role, err error)

func (*RoleRepositoryMock) AllByUserId

func (x *RoleRepositoryMock) AllByUserId(ctx context.Context, userId string) (result []*entities.Role, err error)

func (*RoleRepositoryMock) Create

func (x *RoleRepositoryMock) Create(ctx context.Context, payload *entities.Role) (err error)

func (*RoleRepositoryMock) Find

func (x *RoleRepositoryMock) Find(ctx context.Context, id string) (result *entities.Role, err error)

func (*RoleRepositoryMock) FindByName

func (x *RoleRepositoryMock) FindByName(ctx context.Context, name string) (result *entities.Role, err error)

func (*RoleRepositoryMock) GetAll

func (x *RoleRepositoryMock) GetAll(ctx context.Context, params *entities.RoleQueryParams) (result []*entities.Role, total int, err error)

func (*RoleRepositoryMock) Update

func (x *RoleRepositoryMock) Update(ctx context.Context, payload *entities.Role) (err error)

type RoleUserRepositoryMock

type RoleUserRepositoryMock struct {
	mock.Mock
}

func (*RoleUserRepositoryMock) AllByUserId

func (x *RoleUserRepositoryMock) AllByUserId(ctx context.Context, userId string) (result []*entities.RoleUser, err error)

func (*RoleUserRepositoryMock) CreateMany

func (x *RoleUserRepositoryMock) CreateMany(ctx context.Context, payload []*entities.RoleUser) (err error)

func (*RoleUserRepositoryMock) DeleteByRoleIds

func (x *RoleUserRepositoryMock) DeleteByRoleIds(ctx context.Context, ids []string) (err error)

func (*RoleUserRepositoryMock) DeleteByUserId

func (x *RoleUserRepositoryMock) DeleteByUserId(ctx context.Context, userId string) (err error)

Jump to

Keyboard shortcuts

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