Skip to content

Commit 0ccd030

Browse files
committed
chipi chipi chapa chapa bogey bogey baga baga
1 parent 7fdac44 commit 0ccd030

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

pkg/models/panel.go

Lines changed: 10 additions & 10 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=0,max=10"`
16-
Implementation int `json:"implementation" validate:"required,min=0,max=10"`
17-
Presentation int `json:"presentation" validate:"required,min=0,max=10"`
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"`
1818
Round int `json:"round" validate:"required"`
19-
Innovation int `json:"innovation" validate:"required,min=0,max=10"`
20-
Teamwork int `json:"teamwork" validate:"required,min=0,max=10"`
19+
Innovation int `json:"innovation" validate:"required,min=-1,max=10"`
20+
Teamwork int `json:"teamwork" validate:"required,min=-1,max=10"`
2121
Comment string `json:"comment"`
2222
TeamID string `json:"team_id" validate:"required,uuid"`
2323
}
2424

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

0 commit comments

Comments
 (0)