From f2e180dca8884ad4524ec1a1e0bbabc5c9d6caa9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E5=BE=B7=E6=BB=A1?= Date: Fri, 26 Mar 2021 14:55:59 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=87=BD=E6=95=B0=E4=BC=A0?= =?UTF-8?q?=E5=8F=82=E8=A7=84=E5=88=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gin/api/register.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gin/api/register.go b/gin/api/register.go index 766665a..c9c5e1b 100644 --- a/gin/api/register.go +++ b/gin/api/register.go @@ -33,7 +33,7 @@ func DisableDebugLog() { // Author : go_developer@163.com<张德满> // // Date : 2:14 下午 2021/3/26 -func RegisterRouter(router *gin.Engine, apiInstanceList []IApi) error { +func RegisterRouter(router *gin.Engine, apiInstanceList ...IApi) error { for _, apiInstance := range apiInstanceList { if err := util.RegisterRouter(router, apiInstance.GetMethod(), apiInstance.GetURI(), apiInstance.GetHandler(), apiInstance.GetMiddleWareList()); nil != err { routerLog(err)