PlansRepo

interface PlansRepo

Interface representing a repository for managing plans.

Functions

Link copied to clipboard
abstract suspend fun add(plan: Plan)

Adds a new plan to the repository.

Link copied to clipboard
abstract suspend fun get(id: UUID): Plan?

Retrieves a plan by its unique identifier.

Link copied to clipboard
abstract suspend fun getAllCount(userId: UUID): Long

Retrieves the total count of plans for a given user.

Link copied to clipboard
abstract suspend fun getAllPaginate(userId: UUID, offset: Long, size: Int): List<Plan>

Retrieves all plans for a given user with pagination.

Link copied to clipboard
abstract suspend fun getChildPlanIds(id: UUID): List<UUID>

Retrieves the list of child plan identifiers for a given plan.

Link copied to clipboard
abstract suspend fun update(plan: Plan)

Updates an existing plan in the repository.

Link copied to clipboard
abstract suspend fun updateStatus(id: UUID, status: PlanStatus)

Updates the status of a plan.