mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-17 08:14:25 +08:00
limit the max and min value of amount
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user