@@ -58,6 +58,7 @@ type EventHandler interface {
5858 ListRegistration (w http.ResponseWriter , r * http.Request )
5959 ListEventPay (w http.ResponseWriter , r * http.Request )
6060 PayProcess (w http.ResponseWriter , r * http.Request )
61+ UpdateEvent (w http.ResponseWriter , r * http.Request )
6162}
6263
6364type Event struct {
@@ -87,6 +88,7 @@ type Event struct {
8788 UpdatedAt null.Time `json:"-"`
8889 DeletedAt null.Time `json:"-"`
8990 AdditionalLink string `json:"additional_link"`
91+ SessionType string `json:"session_type"`
9092}
9193
9294func (Event ) TableName () string {
@@ -133,6 +135,7 @@ type CreateEventPayload struct {
133135 ReservationStartDate null.Time `json:"reservation_start_date"`
134136 ReservationEndDate null.Time `json:"reservation_end_date"`
135137 AdditionalLink string `json:"additional_link"`
138+ SessionType string `json:"session_type"`
136139}
137140
138141type UpdateEventPayload struct {
@@ -155,6 +158,7 @@ type UpdateEventPayload struct {
155158 ReservationStartDate null.Time `json:"reservation_start_date"`
156159 ReservationEndDate null.Time `json:"reseveration_end_date"`
157160 AdditionalLink string `json:"additional_link"`
161+ SessionType string `json:"session_type"`
158162}
159163
160164type EventDTO struct {
@@ -165,10 +169,12 @@ type EventDTO struct {
165169 ImageEvent string `json:"image_event"`
166170 DateEvent null.Time `json:"date_event"`
167171 Type constants.EventType `json:"type"`
172+ Price float64 `json:"price"`
168173 Location string `json:"location"`
169174 Duration string `json:"duration"`
170175 Capacity int `json:"capacity"`
171176 RegistrationLink string `json:"registration_link"`
177+ SessionType string `json:"session_type"`
172178}
173179
174180type UpdateEvenPayload struct {
@@ -281,6 +287,8 @@ func (e Event) ToDTO() EventDTO {
281287 Location : e .Location ,
282288 Duration : e .Duration ,
283289 Capacity : e .Capacity ,
290+ Price : e .Price ,
284291 RegistrationLink : e .RegistrationLink ,
292+ SessionType : e .SessionType ,
285293 }
286294}
0 commit comments