From 3f5aa5f14c56e55a05902c7e3b9b112eb23ee80d Mon Sep 17 00:00:00 2001
From: liujiandao <274878379@qq.com>
Date: 星期三, 03 一月 2024 17:27:04 +0800
Subject: [PATCH] 采购类型修改

---
 initialize/router.go |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/initialize/router.go b/initialize/router.go
index 584dbf3..b54d472 100644
--- a/initialize/router.go
+++ b/initialize/router.go
@@ -2,6 +2,7 @@
 
 import (
 	"net/http"
+	v1 "srm/api/v1"
 	"srm/middleware"
 	"srm/router/purchase"
 
@@ -34,6 +35,11 @@
 		})
 		//systemRouter.InitInitRouter(PublicGroup) // 鑷姩鍒濆鍖栫浉鍏�
 	}
+
+	var conApi = v1.ApiGroupApp.TestApiGroup.ContractApi
+	PrivateGroup.GET("previewContract", conApi.PreviewContract)   // 棰勮Contract
+	PrivateGroup.GET("downloadContract", conApi.DownloadContract) // 涓嬭浇Contract
+
 	PrivateGroup.Use(middleware.JWTAuth())
 	{
 		systemRouter.InitSystemRouter(PrivateGroup) // system鐩稿叧璺敱
@@ -48,6 +54,7 @@
 		testRouter.InitContractRouter(PrivateGroup)
 		testRouter.InitProductRouter(PrivateGroup)
 		testRouter.InitMemberRouter(PrivateGroup)
+		testRouter.InitCodeRouter(PrivateGroup)
 	}
 
 	global.GVA_LOG.Info("router register success")

--
Gitblit v1.8.0