diff --git a/cmd/server/handler/event_handler.go b/cmd/server/handler/event_handler.go index 924bdea..289ffa6 100644 --- a/cmd/server/handler/event_handler.go +++ b/cmd/server/handler/event_handler.go @@ -52,6 +52,7 @@ func generateDummyEvent() event.ShortTermView { Topics: []event.EventTopic{event.ETC}, MaxParticipants: &maxParticipants, GenderCondition: "all", + Fee: 10000, StartAt: &startAt, CreatedAt: now, UpdatedAt: now, diff --git a/internal/domain/event/request.go b/internal/domain/event/request.go index 5eee1f1..fd9a866 100644 --- a/internal/domain/event/request.go +++ b/internal/domain/event/request.go @@ -16,6 +16,7 @@ type BaseCreateRequest struct { Topics []EventTopic `json:"topics"` MaxParticipants *int `json:"maxParticipants,omitempty"` GenderCondition string `json:"genderCondition" enums:"male,female,all"` + Fee *int `json:"fee,omitempty"` StartAt *time.Time `json:"startAt,omitempty"` } @@ -41,6 +42,7 @@ type BaseUpdateRequest struct { Topics []EventTopic `json:"topics"` MaxParticipants *int `json:"maxParticipants,omitempty"` GenderCondition string `json:"genderCondition" enums:"male,female,all"` + Fee *int `json:"fee,omitempty"` StartAt *time.Time `json:"startAt,omitempty"` } diff --git a/internal/domain/event/view.go b/internal/domain/event/view.go index f036b90..1342b3a 100644 --- a/internal/domain/event/view.go +++ b/internal/domain/event/view.go @@ -23,6 +23,7 @@ type BaseView struct { Topics []EventTopic `json:"topics"` MaxParticipants *int `json:"maxParticipants,omitempty"` GenderCondition string `json:"genderCondition"` + Fee int `json:"fee"` StartAt *time.Time `json:"startAt,omitempty"` CreatedAt time.Time `json:"createdAt"` UpdatedAt time.Time `json:"updatedAt"`