Documentation ¶
Index ¶
- type RoleRepository
- func (rr *RoleRepository) Create(ctx context.Context, role *model.Role) (*model.Role, error)
- func (rr *RoleRepository) Delete(ctx context.Context, id int) error
- func (rr *RoleRepository) GetMany(ctx context.Context) ([]*model.Role, error)
- func (rr *RoleRepository) GetManyById(ctx context.Context, ids []int) ([]*model.Role, error)
- func (rr *RoleRepository) GetOne(ctx context.Context, id int) (*model.Role, error)
- func (rr *RoleRepository) Update(ctx context.Context, role *model.Role) (*model.Role, error)
- type UserRepository
- func (ur *UserRepository) Create(ctx context.Context, user *model.User) (*model.User, error)
- func (ur *UserRepository) Delete(ctx context.Context, id int) error
- func (ur *UserRepository) GetMany(ctx context.Context) ([]*model.User, error)
- func (ur *UserRepository) GetOne(ctx context.Context, id int) (*model.User, error)
- func (ur *UserRepository) Update(ctx context.Context, user *model.User) (*model.User, error)
- func (ur *UserRepository) UpdatePassword(ctx context.Context, user *model.User) (*model.User, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RoleRepository ¶
type RoleRepository struct {
// contains filtered or unexported fields
}
func NewRoleRepository ¶
func NewRoleRepository(dbPath string) *RoleRepository
func (*RoleRepository) GetManyById ¶
type UserRepository ¶
type UserRepository struct {
// contains filtered or unexported fields
}
func NewUserRepository ¶
func NewUserRepository(dbPath string) *UserRepository
func (*UserRepository) UpdatePassword ¶
Click to show internal directories.
Click to hide internal directories.