initial commit

This commit is contained in:
m.zare
2026-04-10 18:25:21 +03:30
commit 77ca6c34a3
263 changed files with 34470 additions and 0 deletions

View 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
}