Fixed float variable types

This commit is contained in:
Gregory Ballantine 2024-05-29 11:41:53 -04:00
parent 958c72ee63
commit 0525838f4b
2 changed files with 9 additions and 9 deletions

View File

@ -6,9 +6,9 @@ import (
type Result struct {
gorm.Model
AverageScore float
MinimumScore float
MaximumScore float
AverageScore float32
MinimumScore float32
MaximumScore float32
// belongs to Hardware
HardwareID int

View File

@ -1,10 +1,10 @@
package forms
type ResultForm struct {
Test uint `form:"result_test" validate:"required"`
Hardware uint `form:"result_hardware" validate:"required"`
Benchmark uint `form:"result_benchmark" validate:"required"`
AverageScore float `form:"result_avg" validate:"required"`
MinimumScore float `form:"result_min"`
MaximumScore float `form:"result_max"`
Test uint `form:"result_test" validate:"required"`
Hardware uint `form:"result_hardware" validate:"required"`
Benchmark uint `form:"result_benchmark" validate:"required"`
AverageScore float32 `form:"result_avg" validate:"required"`
MinimumScore float32 `form:"result_min"`
MaximumScore float32 `form:"result_max"`
}