Skip to content

Commit f410f59

Browse files
committed
chore(dto): improve variable naming
1 parent d8c3ecd commit f410f59

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

src/main/java/net/onelitefeather/vulpes/backend/domain/item/ItemModelDTO.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ public record ItemModelDTO(
2828
@Schema(description = "ID of the Model", requiredMode = Schema.RequiredMode.NOT_REQUIRED) UUID id,
2929
@Schema(description = "Name in the UI", requiredMode = Schema.RequiredMode.REQUIRED) String uiName,
3030
@Schema(description = "Variable name for the entity", requiredMode = Schema.RequiredMode.REQUIRED) String variableName,
31-
@Schema(description = "Internal description of the item", requiredMode = Schema.RequiredMode.REQUIRED) String description,
31+
@Schema(description = "Internal description of the item", requiredMode = Schema.RequiredMode.REQUIRED) String comment,
3232
@Schema(description = "The display name of the item", requiredMode = Schema.RequiredMode.REQUIRED) String displayName,
3333
@Schema(description = "The material from the item", requiredMode = Schema.RequiredMode.REQUIRED) String material,
34-
@Schema(description = "The group to identify their basic usage", requiredMode = Schema.RequiredMode.REQUIRED) String groupName,
34+
@Schema(description = "The group to identify their basic usage", requiredMode = Schema.RequiredMode.REQUIRED) String group,
3535
@Schema(description = "Integer which refers to the customModelData index", requiredMode = Schema.RequiredMode.REQUIRED) int customModelData,
3636
@Schema(description = "The amount of the item", requiredMode = Schema.RequiredMode.REQUIRED) int amount,
3737
@Schema(description = "The given enchantments", requiredMode = Schema.RequiredMode.NOT_REQUIRED) Map<String, Short> enchantments,
@@ -49,10 +49,10 @@ public record ItemModelDTO(
4949
this.id,
5050
uiName,
5151
variableName,
52-
description,
52+
comment,
5353
displayName,
5454
material,
55-
groupName,
55+
group,
5656
customModelData,
5757
amount,
5858
enchantments,

src/main/java/net/onelitefeather/vulpes/backend/domain/notification/NotificationModelResponseDTO.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ public sealed interface NotificationModelResponseDTO {
1414
/**
1515
* Represents a response DTO for notification models that includes the model's details.
1616
*
17-
* @param id the UUID of the notification model
18-
* @param uiName the name to display in the UI
19-
* @param variableName the name used for variable generation
20-
* @param description a description of the notification
21-
* @param material the material type of the notification
22-
* @param frameType the frame type of the notification
23-
* @param title the title of the notification
17+
* @param id the UUID of the notification model
18+
* @param uiName the name to display in the UI
19+
* @param variableName the name used for variable generation
20+
* @param comment a comment of the notification
21+
* @param material the material type of the notification
22+
* @param frameType the frame type of the notification
23+
* @param title the title of the notification
2424
*/
2525
@Schema(
2626
name = "ResponseNotificationModelDTO",
@@ -31,7 +31,7 @@ record NotificationModelDTO(
3131
@Schema(description = "The id of the model") UUID id,
3232
@Schema(description = "Model Name for the UI") String uiName,
3333
@Schema(description = "Variable name for the generation") String variableName,
34-
@Schema(description = "Description of the Notification") String description,
34+
@Schema(description = "Description of the Notification") String comment,
3535
@Schema(description = "Material type of the Notification") String material,
3636
@Schema(description = "Frame type of the Notification") String frameType,
3737
@Schema(description = "Title of the Notification") String title

0 commit comments

Comments
 (0)