Skip to content

Commit 58f5021

Browse files
committed
chore: add price to dto type event
1 parent 21315da commit 58f5021

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

domain/event.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ type UpdateEventPayload struct {
158158
ReservationStartDate null.Time `json:"reservation_start_date"`
159159
ReservationEndDate null.Time `json:"reseveration_end_date"`
160160
AdditionalLink string `json:"additional_link"`
161-
SessionType string `json:"session_type"`
161+
SessionType string `json:"session_type"`
162162
}
163163

164164
type EventDTO struct {
@@ -169,6 +169,7 @@ type EventDTO struct {
169169
ImageEvent string `json:"image_event"`
170170
DateEvent null.Time `json:"date_event"`
171171
Type constants.EventType `json:"type"`
172+
Price float64 `json:"price"`
172173
Location string `json:"location"`
173174
Duration string `json:"duration"`
174175
Capacity int `json:"capacity"`
@@ -286,6 +287,7 @@ func (e Event) ToDTO() EventDTO {
286287
Location: e.Location,
287288
Duration: e.Duration,
288289
Capacity: e.Capacity,
290+
Price: e.Price,
289291
RegistrationLink: e.RegistrationLink,
290292
SessionType: e.SessionType,
291293
}

0 commit comments

Comments
 (0)