From f6bf0ee81b080a2bad55aa5bf261c68ab3d555f8 Mon Sep 17 00:00:00 2001 From: jiangshuai <291802688@qq.com> Date: 星期二, 19 十二月 2023 18:57:43 +0800 Subject: [PATCH] 新增共用id结构体 --- 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