initial commit
This commit is contained in:
20
internal/domain/profile/role_repository.go
Normal file
20
internal/domain/profile/role_repository.go
Normal file
@@ -0,0 +1,20 @@
|
||||
package profile
|
||||
|
||||
import (
|
||||
"context"
|
||||
"errors"
|
||||
|
||||
"github.com/google/uuid"
|
||||
)
|
||||
|
||||
var ErrRoleNotFound = errors.New("profile role not found")
|
||||
|
||||
// RoleRepository provides access to profile_roles (roles for profiles).
|
||||
type RoleRepository interface {
|
||||
FindByID(ctx context.Context, id uuid.UUID) (*Role, error)
|
||||
FindAll(ctx context.Context) ([]*Role, error)
|
||||
List(ctx context.Context, limit, offset int) ([]*Role, error)
|
||||
Create(ctx context.Context, role *Role) error
|
||||
Update(ctx context.Context, role *Role) error
|
||||
Delete(ctx context.Context, id uuid.UUID) error
|
||||
}
|
||||
Reference in New Issue
Block a user