Skip to content

Commit 53d3966

Browse files
committed
score fix
1 parent 0ccd030 commit 53d3966

1 file changed

Lines changed: 12 additions & 12 deletions

File tree

pkg/models/panel.go

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,23 +12,23 @@ type CreatePanel struct {
1212
}
1313

1414
type UpdateScore struct {
15-
Design int `json:"design" validate:"required,min=-1,max=10"`
16-
Implementation int `json:"implementation" validate:"required,min=-1,max=10"`
17-
Presentation int `json:"presentation" validate:"required,min=-1,max=10"`
15+
Design int `json:"design" validate:"min=0,max=10"`
16+
Implementation int `json:"implementation" validate:"min=0,max=10"`
17+
Presentation int `json:"presentation" validate:"min=0,max=10"`
1818
Round int `json:"round" validate:"required"`
19-
Innovation int `json:"innovation" validate:"required,min=-1,max=10"`
20-
Teamwork int `json:"teamwork" validate:"required,min=-1,max=10"`
19+
Innovation int `json:"innovation" validate:"min=0,max=10"`
20+
Teamwork int `json:"teamwork" validate:"min=0,max=10"`
2121
Comment string `json:"comment"`
22-
TeamID string `json:"team_id" validate:"required,uuid"`
22+
TeamID string `json:"team_id" validate:"uuid"`
2323
}
2424

2525
type CreateScore struct {
26-
Design int `json:"design" validate:"required,min=-1,max=10"`
27-
Implementation int `json:"implementation" validate:"required,min=-1,max=10"`
28-
Presentation int `json:"presentation" validate:"required,min=-1,max=10"`
29-
Round int `json:"round" validate:"required"`
30-
Innovation int `json:"innovation" validate:"required,min=-1,max=10"`
31-
Teamwork int `json:"teamwork" validate:"required,min=-1,max=10"`
26+
Design int `json:"design" validate:"min=0,max=10"`
27+
Implementation int `json:"implementation" validate:"min=0,max=10"`
28+
Presentation int `json:"presentation" validate:"min=0,max=10"`
29+
Round int `json:"round" validate:""`
30+
Innovation int `json:"innovation" validate:"min=0,max=10"`
31+
Teamwork int `json:"teamwork" validate:"min=0,max=10"`
3232
Comment string `json:"comment"`
3333
TeamID string `json:"team_id" validate:"required,uuid"`
3434
}

0 commit comments

Comments
 (0)