TaskModelsToTaskDetailsWithoutIdentity
Converts a slice of models.Task objects to a slice of task.TaskDetails objects, without identity enrichment.
def TaskModelsToTaskDetailsWithoutIdentity(
ctx: context.Context,
taskModels: []*models.Task
) - > []*task.TaskDetails, error
Converts a slice of task models into a slice of task details without enriching them with identity information. This function is a wrapper around TaskModelsToTaskDetails, specifically designed for scenarios where identity enrichment is not yet implemented or desired.
Parameters
| Name | Type | Description |
|---|---|---|
| ctx | context.Context | The context for the operation, used for cancellation and deadlines. |
| taskModels | []*models.Task | A slice of task models to be converted into task details. |
Returns
| Type | Description |
|---|---|
[]*task.TaskDetails, error | A slice of task details and an error if the conversion fails. |