@@ -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 {
@@ -169,6 +173,7 @@ type EventDTO struct {
169173 Duration string `json:"duration"`
170174 Capacity int `json:"capacity"`
171175 RegistrationLink string `json:"registration_link"`
176+ SessionType string `json:"session_type"`
172177}
173178
174179type UpdateEvenPayload struct {
@@ -282,5 +287,6 @@ func (e Event) ToDTO() EventDTO {
282287 Duration : e .Duration ,
283288 Capacity : e .Capacity ,
284289 RegistrationLink : e .RegistrationLink ,
290+ SessionType : e .SessionType ,
285291 }
286292}
0 commit comments