controller.go
func (c *Controller) IntRangeZoom(fieldName string, p interface{}, n int, m int, zoom int) int {
	if p == nil {
		p = 0
	}
	value, ok := c.toNumber(p)

	if ok == false {
		panic((&ValidationError{}).New(fieldName + "必须是数字"))
	}
	b := c.Validate.Range(value, n, m)
	if b == false {
		fN := fmt.Sprintf("%.2f", float64(n)/float64(zoom))
		fM := fmt.Sprintf("%.2f", float64(m)/float64(zoom))
		panic((&ValidationError{}).New(fieldName + "值的范围应该从 " + fN + " 到 " + fM))
	}
	return value
}
func (c *Controller) IntRangeZoom(fieldName string, p interface{}, n int, m int, zoom int) int {
	if p == nil {
		p = 0
	}
	value, ok := c.toNumber(p)

	if ok == false {
		panic((&ValidationError{}).New(fieldName + "必须是数字"))
	}
	b := c.Validate.Range(value, n, m)
	if b == false {
		fN := fmt.Sprintf("%.2f", float64(n)/float64(zoom))
		fM := fmt.Sprintf("%.2f", float64(m)/float64(zoom))
		panic((&ValidationError{}).New(fieldName + "值的范围应该从 " + fN + " 到 " + fM))
	}
	return value
}
// IntRangeZoom  param must be a number, and range is [n, m], tip is zoom.