Skip to content

Commit 89772c8

Browse files
committed
Model fixes
1 parent e5c1142 commit 89772c8

File tree

6 files changed

+12
-12
lines changed

6 files changed

+12
-12
lines changed

spine/model/loadcontrol.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package model
22

3-
type LoadControlEventIdType string
3+
type LoadControlEventIdType uint
44

55
type LoadControlEventActionType string
66

@@ -51,7 +51,7 @@ type LoadControlNodeDataElementsType struct {
5151

5252
type LoadControlEventDataType struct {
5353
Timestamp *string `json:"timestamp,omitempty"`
54-
EventId *LoadControlEventIdType `json:"eventId,omitempty"`
54+
EventId *LoadControlEventIdType `json:"eventId,omitempty" eebus:"key"`
5555
EventActionConsume *LoadControlEventActionType `json:"eventActionConsume,omitempty"`
5656
EventActionProduce *LoadControlEventActionType `json:"eventActionProduce,omitempty"`
5757
TimePeriod *TimePeriodType `json:"timePeriod,omitempty"`
@@ -76,7 +76,7 @@ type LoadControlEventListDataSelectorsType struct {
7676

7777
type LoadControlStateDataType struct {
7878
Timestamp *string `json:"timestamp"`
79-
EventId *LoadControlEventIdType `json:"eventId,omitempty"`
79+
EventId *LoadControlEventIdType `json:"eventId,omitempty" eebus:"key"`
8080
EventStateConsume *LoadControlEventStateType `json:"eventStateConsume"`
8181
AppliedEventActionConsume *LoadControlEventActionType `json:"appliedEventActionConsume"`
8282
EventStateProduce *LoadControlEventStateType `json:"eventStateProduce"`

spine/model/operatingconstraints.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package model
22

33
type OperatingConstraintsInterruptDataType struct {
4-
SequenceId *PowerSequenceIdType `json:"sequenceId,omitempty"`
4+
SequenceId *PowerSequenceIdType `json:"sequenceId,omitempty" eebus:"key"`
55
IsPausable *bool `json:"isPausable,omitempty"`
66
IsStoppable *bool `json:"isStoppable,omitempty"`
77
NotInterruptibleAtHighPower *bool `json:"notInterruptibleAtHighPower,omitempty"`

spine/model/powersequences.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ type PowerTimeSlotValueDataElementsType struct {
8888
}
8989

9090
type PowerTimeSlotValueListDataType struct {
91-
PowerTimeSlotValueListDataType []PowerTimeSlotValueDataType `json:"powerTimeSlotValueListData,omitempty"`
91+
PowerTimeSlotValueData []PowerTimeSlotValueDataType `json:"powerTimeSlotValueListData,omitempty"`
9292
}
9393

9494
type PowerTimeSlotValueListDataSelectorsType struct {

spine/model/tariffinformation.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ type CommodityListDataSelectorsType struct {
250250
type TierDataType struct {
251251
TierId *TierIdType `json:"tierId,omitempty" eebus:"key"`
252252
TimePeriod *TimePeriodType `json:"timePeriod,omitempty"`
253-
TimeTableId *TimeTableIdType `json:"timeTableId,omitempty"`
253+
TimeTableId *TimeTableIdType `json:"timeTableId,omitempty" eebus:"key"`
254254
ActiveIncentiveId []IncentiveIdType `json:"activeIncentiveId,omitempty"`
255255
}
256256

spine/model/threshold.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const (
1818
)
1919

2020
type ThresholdDataType struct {
21-
ThresholdId *ThresholdIdType `json:"thresholdId,omitempty"`
21+
ThresholdId *ThresholdIdType `json:"thresholdId,omitempty" eebus:"key"`
2222
ThresholdValue *ScaledNumberType `json:"thresholdValue,omitempty"`
2323
}
2424

@@ -36,7 +36,7 @@ type ThresholdListDataSelectorsType struct {
3636
}
3737

3838
type ThresholdConstraintsDataType struct {
39-
ThresholdId *ThresholdIdType `json:"thresholdId,omitempty"`
39+
ThresholdId *ThresholdIdType `json:"thresholdId,omitempty" eebus:"key"`
4040
ThresholdRangeMin *ScaledNumberType `json:"thresholdRangeMin,omitempty"`
4141
ThresholdRangeMax *ScaledNumberType `json:"thresholdRangeMax,omitempty"`
4242
ThresholdStepSize *ScaledNumberType `json:"thresholdStepSize,omitempty"`

spine/model/timetable.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ const (
1515
)
1616

1717
type TimeTableDataType struct {
18-
TimeTableId *TimeTableIdType `json:"timeTableId,omitempty"`
19-
TimeSlotId *TimeSlotIdType `json:"timeSlotId,omitempty"`
18+
TimeTableId *TimeTableIdType `json:"timeTableId,omitempty" eebus:"key"`
19+
TimeSlotId *TimeSlotIdType `json:"timeSlotId,omitempty" eebus:"key"`
2020
RecurrenceInformation *RecurrenceInformationType `json:"recurrenceInformation,omitempty"`
2121
StartTime *AbsoluteOrRecurringTimeType `json:"startTime,omitempty"`
2222
EndTime *AbsoluteOrRecurringTimeType `json:"endTime,omitempty"`
@@ -40,7 +40,7 @@ type TimeTableListDataSelectorsType struct {
4040
}
4141

4242
type TimeTableConstraintsDataType struct {
43-
TimeTableId *uint `json:"timeTableId,omitempty"`
43+
TimeTableId *TimeTableIdType `json:"timeTableId,omitempty" eebus:"key"`
4444
SlotCountMin *TimeSlotCountType `json:"slotCountMin,omitempty"`
4545
SlotCountMax *TimeSlotCountType `json:"slotCountMax,omitempty"`
4646
SlotDurationMin *DurationType `json:"slotDurationMin,omitempty"`
@@ -70,7 +70,7 @@ type TimeTableConstraintsListDataSelectorsType struct {
7070
}
7171

7272
type TimeTableDescriptionDataType struct {
73-
TimeTableId *uint `json:"timeTableId,omitempty"`
73+
TimeTableId *TimeTableIdType `json:"timeTableId,omitempty" eebus:"key"`
7474
TimeSlotCountChangeable *bool `json:"timeSlotCountChangeable,omitempty"`
7575
TimeSlotTimesChangeable *bool `json:"timeSlotTimesChangeable,omitempty"`
7676
TimeSlotTimeMode *TimeSlotTimeModeType `json:"timeSlotTimeMode,omitempty"`

0 commit comments

Comments
 (0)