Fixed float variable types
This commit is contained in:
parent
958c72ee63
commit
0525838f4b
@ -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
|
||||
|
@ -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"`
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user