From cddf1d93735052590755460f4b3c8264e0d57399 Mon Sep 17 00:00:00 2001 From: wangpengfei <274878379@qq.com> Date: 星期一, 07 八月 2023 09:39:20 +0800 Subject: [PATCH] fix --- router/contact.go | 36 ++++++++++++++++++------------------ 1 files changed, 18 insertions(+), 18 deletions(-) diff --git a/router/contact.go b/router/contact.go index 9e1b821..f2f7d16 100644 --- a/router/contact.go +++ b/router/contact.go @@ -1,19 +1,19 @@ -package router - -import ( - v1 "aps_crm/api/v1" - "github.com/gin-gonic/gin" -) - -type ContactRouter struct{} - -func (r *ContactRouter) InitContactRouter(router *gin.RouterGroup) { - contactRouter := router.Group("contact") - contactApi := v1.ApiGroup.ContactApi - { - contactRouter.POST("add", contactApi.Add) // 娣诲姞鑱旂郴浜� - contactRouter.DELETE("delete", contactApi.Delete) // 鍒犻櫎鑱旂郴浜� - contactRouter.PUT("update", contactApi.Update) // 鏇存柊鑱旂郴浜� - contactRouter.POST("list", contactApi.List) // 鑾峰彇鑱旂郴浜哄垪琛� - } +package router + +import ( + v1 "aps_crm/api/v1" + "github.com/gin-gonic/gin" +) + +type ContactRouter struct{} + +func (r *ContactRouter) InitContactRouter(router *gin.RouterGroup) { + contactRouter := router.Group("contact") + contactApi := v1.ApiGroup.ContactApi + { + contactRouter.POST("add", contactApi.Add) // 娣诲姞鑱旂郴浜� + contactRouter.DELETE("delete", contactApi.Delete) // 鍒犻櫎鑱旂郴浜� + contactRouter.PUT("update", contactApi.Update) // 鏇存柊鑱旂郴浜� + contactRouter.POST("list", contactApi.List) // 鑾峰彇鑱旂郴浜哄垪琛� + } } \ No newline at end of file -- Gitblit v1.8.0