2024-08-11 19:20:09 +03:30
|
|
|
|
namespace Brizco.Domain.CommandQueries.Commands;
|
2023-09-18 09:45:02 +03:30
|
|
|
|
|
|
|
|
|
|
public sealed record CreateTaskCommand(TaskType Type,
|
|
|
|
|
|
string Title,
|
|
|
|
|
|
string Description,
|
|
|
|
|
|
bool IsDisposable,
|
2023-11-18 22:23:23 +03:30
|
|
|
|
long SetFor,
|
2023-09-18 09:45:02 +03:30
|
|
|
|
bool HasDisposed,
|
|
|
|
|
|
int Amount,
|
|
|
|
|
|
PurchaseAmountType AmountType,
|
2023-11-18 22:23:23 +03:30
|
|
|
|
TaskScheduleType ScheduleType,
|
|
|
|
|
|
List<Guid> Routines,
|
2023-09-18 09:45:02 +03:30
|
|
|
|
List<Guid> Shifts,
|
2023-11-13 14:42:49 +03:30
|
|
|
|
List<Guid> Positions,
|
2023-10-13 16:25:34 +03:30
|
|
|
|
List<DayOfWeek> Days) : IRequest<TaskLDto>;
|
2023-09-18 09:45:02 +03:30
|
|
|
|
|
2023-09-18 15:41:41 +03:30
|
|
|
|
public sealed record UpdateTaskCommand(Guid Id,
|
2023-09-18 09:45:02 +03:30
|
|
|
|
TaskType Type,
|
|
|
|
|
|
string Title,
|
|
|
|
|
|
string Description,
|
|
|
|
|
|
bool IsDisposable,
|
2023-11-18 22:23:23 +03:30
|
|
|
|
long SetFor,
|
2023-09-18 09:45:02 +03:30
|
|
|
|
bool HasDisposed,
|
|
|
|
|
|
int Amount,
|
|
|
|
|
|
PurchaseAmountType AmountType,
|
2023-11-18 22:23:23 +03:30
|
|
|
|
TaskScheduleType ScheduleType,
|
|
|
|
|
|
List<Guid> Routines,
|
2023-09-18 09:45:02 +03:30
|
|
|
|
List<Guid> Shifts,
|
2023-11-13 14:42:49 +03:30
|
|
|
|
List<Guid> Positions,
|
2023-10-13 16:25:34 +03:30
|
|
|
|
List<DayOfWeek> Days) : IRequest<bool>;
|
2023-09-18 09:45:02 +03:30
|
|
|
|
|
|
|
|
|
|
|
2023-09-18 15:41:41 +03:30
|
|
|
|
public sealed record DeleteTaskCommand(Guid Id)
|
2023-09-18 09:45:02 +03:30
|
|
|
|
: IRequest<bool>;
|