From 4d0b38be2e3977ec390f70de2f022fe96c4cbb61 Mon Sep 17 00:00:00 2001
From: zhangqian <zhangqian@123.com>
Date: 星期一, 30 十月 2023 20:36:57 +0800
Subject: [PATCH] 数据权限支持职级

---
 router/contact.go |   36 ++++++++++++++++++------------------
 1 files changed, 18 insertions(+), 18 deletions(-)

diff --git a/router/contact.go b/router/contact.go
index dcca60c..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/:id", 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