Documentation ¶
Index ¶
- type AuthRepositoryMock
- func (x *AuthRepositoryMock) Create(ctx context.Context, payload *entities.Auth) (err error)
- func (x *AuthRepositoryMock) DeleteByUserID(ctx context.Context, userId string) (err error)
- func (x *AuthRepositoryMock) Find(ctx context.Context, id string) (result *entities.Auth, err error)
- func (x *AuthRepositoryMock) FindByEmail(ctx context.Context, email string) (result *entities.Auth, err error)
- func (x *AuthRepositoryMock) FindByUserId(ctx context.Context, userId string) (result *entities.Auth, err error)
- func (x *AuthRepositoryMock) Update(ctx context.Context, payload *entities.Auth) (err error)
- type PermissionRepositoryMock
- func (x *PermissionRepositoryMock) All(ctx context.Context) (result []*entities.Permission, err error)
- func (x *PermissionRepositoryMock) AllByUserId(ctx context.Context, userId string) (result []*entities.Permission, err error)
- func (x *PermissionRepositoryMock) AllPermissionByUserId(ctx context.Context, userId string) (result []*entities.Permission, err error)
- func (x *PermissionRepositoryMock) Create(ctx context.Context, payload *entities.Permission) (err error)
- func (x *PermissionRepositoryMock) Find(ctx context.Context, id string) (result *entities.Permission, err error)
- func (x *PermissionRepositoryMock) FindByName(ctx context.Context, name string) (result *entities.Permission, err error)
- func (x *PermissionRepositoryMock) GetAll(ctx context.Context, params *entities.PermissionQueryParams) (result []*entities.Permission, total int, err error)
- func (x *PermissionRepositoryMock) Update(ctx context.Context, payload *entities.Permission) (err error)
- type PermissionRoleRepositoryMock
- func (x *PermissionRoleRepositoryMock) AllByRoleId(ctx context.Context, roleId string) (result []*entities.PermissionRole, err error)
- func (x *PermissionRoleRepositoryMock) CreateMany(ctx context.Context, payload []*entities.PermissionRole) (err error)
- func (x *PermissionRoleRepositoryMock) DeleteByPermissionIds(ctx context.Context, ids []string) (err error)
- func (x *PermissionRoleRepositoryMock) DeleteByRoleId(ctx context.Context, roleId string) (err error)
- type PermissionUserRepositoryMock
- func (x *PermissionUserRepositoryMock) AllByUserId(ctx context.Context, userId string) (result []*entities.PermissionUser, err error)
- func (x *PermissionUserRepositoryMock) CreateMany(ctx context.Context, payload []*entities.PermissionUser) (err error)
- func (x *PermissionUserRepositoryMock) DeleteByPermissionIds(ctx context.Context, ids []string) (err error)
- func (x *PermissionUserRepositoryMock) DeleteByUserId(ctx context.Context, userId string) (err error)
- type RoleRepositoryMock
- func (x *RoleRepositoryMock) All(ctx context.Context) (result []*entities.Role, err error)
- func (x *RoleRepositoryMock) AllByUserId(ctx context.Context, userId string) (result []*entities.Role, err error)
- func (x *RoleRepositoryMock) Create(ctx context.Context, payload *entities.Role) (err error)
- func (x *RoleRepositoryMock) Find(ctx context.Context, id string) (result *entities.Role, err error)
- func (x *RoleRepositoryMock) FindByName(ctx context.Context, name string) (result *entities.Role, err error)
- func (x *RoleRepositoryMock) GetAll(ctx context.Context, params *entities.RoleQueryParams) (result []*entities.Role, total int, err error)
- func (x *RoleRepositoryMock) Update(ctx context.Context, payload *entities.Role) (err error)
- type RoleUserRepositoryMock
- func (x *RoleUserRepositoryMock) AllByUserId(ctx context.Context, userId string) (result []*entities.RoleUser, err error)
- func (x *RoleUserRepositoryMock) CreateMany(ctx context.Context, payload []*entities.RoleUser) (err error)
- func (x *RoleUserRepositoryMock) DeleteByRoleIds(ctx context.Context, ids []string) (err error)
- func (x *RoleUserRepositoryMock) DeleteByUserId(ctx context.Context, userId string) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthRepositoryMock ¶
func (*AuthRepositoryMock) DeleteByUserID ¶
func (x *AuthRepositoryMock) DeleteByUserID(ctx context.Context, userId string) (err error)
func (*AuthRepositoryMock) FindByEmail ¶
func (*AuthRepositoryMock) FindByUserId ¶
type PermissionRepositoryMock ¶
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 ¶
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 ¶
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 ¶
func (*RoleRepositoryMock) AllByUserId ¶
func (*RoleRepositoryMock) FindByName ¶
type RoleUserRepositoryMock ¶
func (*RoleUserRepositoryMock) AllByUserId ¶
func (*RoleUserRepositoryMock) CreateMany ¶
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)
Click to show internal directories.
Click to hide internal directories.