diff --git a/server/src/main/java/io/flexwork/modules/teams/service/dto/TeamDTO.java b/server/src/main/java/io/flexwork/modules/teams/service/dto/TeamDTO.java index 81cf59b6..69d70a8e 100644 --- a/server/src/main/java/io/flexwork/modules/teams/service/dto/TeamDTO.java +++ b/server/src/main/java/io/flexwork/modules/teams/service/dto/TeamDTO.java @@ -10,7 +10,6 @@ @AllArgsConstructor @SuperBuilder public class TeamDTO { - private Long id; private String name; private String logoUrl; diff --git a/server/src/main/java/io/flexwork/modules/teams/service/dto/WorkflowDTO.java b/server/src/main/java/io/flexwork/modules/teams/service/dto/WorkflowDTO.java index b9291f68..89d007f1 100644 --- a/server/src/main/java/io/flexwork/modules/teams/service/dto/WorkflowDTO.java +++ b/server/src/main/java/io/flexwork/modules/teams/service/dto/WorkflowDTO.java @@ -11,22 +11,14 @@ @AllArgsConstructor @SuperBuilder public class WorkflowDTO { - private Long id; - private String name; - private String description; - private String requestName; - private Long ownerId; // ID of the owning team; null for global workflows - + private String ownerName; private WorkflowVisibility visibility; - private Integer level1EscalationTimeout; - private Integer level2EscalationTimeout; - private Integer level3EscalationTimeout; } diff --git a/server/src/main/java/io/flexwork/modules/teams/service/dto/WorkflowDetailedDTO.java b/server/src/main/java/io/flexwork/modules/teams/service/dto/WorkflowDetailedDTO.java index 0baf2bc1..ed20cc1e 100644 --- a/server/src/main/java/io/flexwork/modules/teams/service/dto/WorkflowDetailedDTO.java +++ b/server/src/main/java/io/flexwork/modules/teams/service/dto/WorkflowDetailedDTO.java @@ -11,12 +11,6 @@ @AllArgsConstructor @SuperBuilder public class WorkflowDetailedDTO extends WorkflowDTO { - - private String - ownerName; // return the team name that own this workflow, if workflow is global then - // its value is null - private List states; - private List transitions; } diff --git a/server/src/main/java/io/flexwork/modules/teams/service/dto/WorkflowTransitionDTO.java b/server/src/main/java/io/flexwork/modules/teams/service/dto/WorkflowTransitionDTO.java index 842e78f4..57b51991 100644 --- a/server/src/main/java/io/flexwork/modules/teams/service/dto/WorkflowTransitionDTO.java +++ b/server/src/main/java/io/flexwork/modules/teams/service/dto/WorkflowTransitionDTO.java @@ -11,10 +11,10 @@ @Builder public class WorkflowTransitionDTO { private Long id; - private Long workflowId; // ID of the associated Workflow - private Long sourceStateId; // ID of the source state - private Long targetStateId; // ID of the target state - private String eventName; // Name of the triggering event - private Long slaDuration; // SLA duration for the transition (nullable) - private boolean escalateOnViolation; // Whether to escalate on SLA violation + private Long workflowId; + private Long sourceStateId; + private Long targetStateId; + private String eventName; + private Long slaDuration; + private boolean escalateOnViolation; }