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 }