Commit de5ac3d0 by zhengqiuyun86

go升级,泛型使用

parent 4cd0b18a
......@@ -22,7 +22,7 @@ func Param[T any](c *gin.Context, key string) T {
exception.ThrowsErrS("PARAMS_ERR", fmt.Sprintf("参数[%s]不合规", key))
}
}
return nil
return val.(T)
}
const (
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment