From 1453f9adb16cc3c60220bd8bb1bea10b8c0f09bd Mon Sep 17 00:00:00 2001 From: Developer 02 Date: Wed, 23 Oct 2024 15:53:41 +0200 Subject: [PATCH] feat(ProfileObjState: Erstellen, Lesen und Aktualisieren von DTOs unter Verwendung von Basis-DTOs zum Aktualisieren und Erstellen. --- .../ProfileObjStateCreateDto.cs | 11 +++++++++++ .../DTO/ProfileObjState/ProfileObjStateDto.cs | 19 +++++++++++++++++++ .../ProfileObjStateUpdateDto.cs | 7 +++++++ 3 files changed, 37 insertions(+) create mode 100644 WorkFlow.Application/DTO/ProfileObjState/ProfileObjStateCreateDto.cs create mode 100644 WorkFlow.Application/DTO/ProfileObjState/ProfileObjStateDto.cs create mode 100644 WorkFlow.Application/DTO/ProfileObjState/ProfileObjStateUpdateDto.cs diff --git a/WorkFlow.Application/DTO/ProfileObjState/ProfileObjStateCreateDto.cs b/WorkFlow.Application/DTO/ProfileObjState/ProfileObjStateCreateDto.cs new file mode 100644 index 0000000..eff3a7d --- /dev/null +++ b/WorkFlow.Application/DTO/ProfileObjState/ProfileObjStateCreateDto.cs @@ -0,0 +1,11 @@ +namespace WorkFlow.Application.DTO.ProfileObjState +{ + public record ProfileObjStateCreateDto( + int ProfileId, + int UsrId, + long ObjId, + int StateId, + string? State2 = null, + string? State3 = null, + string? State4 = null) : BaseCreateDto; +} \ No newline at end of file diff --git a/WorkFlow.Application/DTO/ProfileObjState/ProfileObjStateDto.cs b/WorkFlow.Application/DTO/ProfileObjState/ProfileObjStateDto.cs new file mode 100644 index 0000000..6de4464 --- /dev/null +++ b/WorkFlow.Application/DTO/ProfileObjState/ProfileObjStateDto.cs @@ -0,0 +1,19 @@ +using DigitalData.UserManager.Application.DTOs.User; +using WorkFlow.Application.DTO.Profile; + +namespace WorkFlow.Application.DTO.ProfileObjState +{ + public record ProfileObjStateDto(int Id, + int ProfileId, + int UsrId, + long ObjId, + int StateId, + string AddedWho, + DateTime AddedWhen, + string? State2 = null, + string? State3 = null, + string? State4 = null, + ProfileDto? Profile = null, + UserReadDto? User = null + /*StateDto? State = null*/); +} \ No newline at end of file diff --git a/WorkFlow.Application/DTO/ProfileObjState/ProfileObjStateUpdateDto.cs b/WorkFlow.Application/DTO/ProfileObjState/ProfileObjStateUpdateDto.cs new file mode 100644 index 0000000..0deb93d --- /dev/null +++ b/WorkFlow.Application/DTO/ProfileObjState/ProfileObjStateUpdateDto.cs @@ -0,0 +1,7 @@ +namespace WorkFlow.Application.DTO.ProfileObjState +{ + /// + /// This Data Transfer Object (DTO) serves as a placeholder and does not support updates. + /// + public record ProfileObjStateUpdateDto; +} \ No newline at end of file