Skip to content

Commit

Permalink
feat: add fee to event
Browse files Browse the repository at this point in the history
  • Loading branch information
litsynp committed Dec 3, 2024
1 parent e8f0369 commit 1119a50
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions cmd/server/handler/event_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 2 additions & 0 deletions internal/domain/event/request.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
}

Expand All @@ -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"`
}

Expand Down
1 change: 1 addition & 0 deletions internal/domain/event/view.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down

0 comments on commit 1119a50

Please sign in to comment.