controller.go
func (c *Controller) IntRange(fieldName string, p interface{}, n int, m 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 {
		panic((&ValidationError{}).New(fieldName + "值的范围应该从 " + strconv.Itoa(n) + " 到 " + strconv.Itoa(m)))
	}
	return value
}
func (c *Controller) IntRange(fieldName string, p interface{}, n int, m 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 {
		panic((&ValidationError{}).New(fieldName + "值的范围应该从 " + strconv.Itoa(n) + " 到 " + strconv.Itoa(m)))
	}
	return value
}
// IntRange  param must be a integer, and range is [n, m]