Skip to content
This repository has been archived by the owner on Dec 7, 2023. It is now read-only.

Commit

Permalink
Added requirement property to point fields
Browse files Browse the repository at this point in the history
  • Loading branch information
Nydauron committed Jan 2, 2022
1 parent af23f52 commit 8fe3f1d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions services/event/models/event.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ type Event struct {
Locations []EventLocation `json:"locations" validate:"required,dive,required"`
Sponsor string `json:"sponsor"`
EventType string `json:"eventType" validate:"required,oneof=MEAL SPEAKER WORKSHOP MINIEVENT QNA OTHER"`
InPersonPoints int `json:"inPersonPoints"`
InPersonVirtPoints int `json:"inPersonVirtPoints"`
VirtualPoints int `json:"virtualPoints"`
InPersonPoints int `json:"inPersonPoints" validate:"required"`
InPersonVirtPoints int `json:"inPersonVirtPoints" validate:"required"`
VirtualPoints int `json:"virtualPoints" validate:"required"`
}

type EventLocation struct {
Expand Down

0 comments on commit 8fe3f1d

Please sign in to comment.