Fixed float variable types
This commit is contained in:
parent
958c72ee63
commit
0525838f4b
@ -6,9 +6,9 @@ import (
|
|||||||
|
|
||||||
type Result struct {
|
type Result struct {
|
||||||
gorm.Model
|
gorm.Model
|
||||||
AverageScore float
|
AverageScore float32
|
||||||
MinimumScore float
|
MinimumScore float32
|
||||||
MaximumScore float
|
MaximumScore float32
|
||||||
|
|
||||||
// belongs to Hardware
|
// belongs to Hardware
|
||||||
HardwareID int
|
HardwareID int
|
||||||
|
@ -4,7 +4,7 @@ type ResultForm struct {
|
|||||||
Test uint `form:"result_test" validate:"required"`
|
Test uint `form:"result_test" validate:"required"`
|
||||||
Hardware uint `form:"result_hardware" validate:"required"`
|
Hardware uint `form:"result_hardware" validate:"required"`
|
||||||
Benchmark uint `form:"result_benchmark" validate:"required"`
|
Benchmark uint `form:"result_benchmark" validate:"required"`
|
||||||
AverageScore float `form:"result_avg" validate:"required"`
|
AverageScore float32 `form:"result_avg" validate:"required"`
|
||||||
MinimumScore float `form:"result_min"`
|
MinimumScore float32 `form:"result_min"`
|
||||||
MaximumScore float `form:"result_max"`
|
MaximumScore float32 `form:"result_max"`
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user