limit the max and min value of amount

This commit is contained in:
MaysWind
2020-12-17 01:33:07 +08:00
parent 24278cadb6
commit bdce9a7772
6 changed files with 68 additions and 12 deletions
+8
View File
@@ -28,10 +28,18 @@ func GetParameterMustLessThanMessage(field string, param string) string {
return fmt.Sprintf("parameter \"%s\" must be less than %s", field, param)
}
func GetParameterMustLessThanCharsMessage(field string, param string) string {
return fmt.Sprintf("parameter \"%s\" must be less than %s characters", field, param)
}
func GetParameterMustMoreThanMessage(field string, param string) string {
return fmt.Sprintf("parameter \"%s\" must be more than %s", field, param)
}
func GetParameterMustMoreThanCharsMessage(field string, param string) string {
return fmt.Sprintf("parameter \"%s\" must be more than %s characters", field, param)
}
func GetParameterLengthNotEqualMessage(field string, param string) string {
return fmt.Sprintf("parameter \"%s\" length is not equal to %s", field, param)
}