Skip to content

Commit 2ec5ad1

Browse files
committed
merge branch main
2 parents 2753454 + 27daa71 commit 2ec5ad1

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/main/kotlin/com/ctrlhub/core/assets/equipment/resource/EquipmentResources.kt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,32 +54,32 @@ class EquipmentModel @JsonCreator constructor(
5454
@JsonProperty("description") var description: String? = null,
5555
@JsonProperty("specification") var specification: EquipmentModelSpecification? = null,
5656

57-
@Relationship("categories")
58-
var categories: List<EquipmentCategory> = emptyList(),
57+
@Relationship("category")
58+
var category: EquipmentCategory? = null,
5959

6060
@Relationship("manufacturer")
6161
var manufacturer: EquipmentManufacturer? = null,
6262
) {
6363
constructor(): this(
6464
id = "",
6565
name = "",
66-
categories = emptyList(),
6766
description = null,
6867
specification = null,
68+
category = null,
6969
manufacturer = null
7070
)
7171
}
7272

7373
class EquipmentModelSpecification @JsonCreator constructor(
74-
@JsonProperty("vibration") val vibration: EquipmentSpecificationVibration? = null
74+
@JsonProperty("vibration") var vibration: EquipmentSpecificationVibration? = null
7575
) {
7676
constructor(): this(
7777
vibration = null
7878
)
7979
}
8080

8181
class EquipmentSpecificationVibration @JsonCreator constructor(
82-
@JsonProperty("magnitude") val magnitude: Double = 0.0
82+
@JsonProperty("magnitude") var magnitude: Double = 0.0
8383
) {
8484
constructor(): this(
8585
magnitude = 0.0

0 commit comments

Comments
 (0)