From 6961af993a94b1c4707338a1961b1f58b38362c0 Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Tue, 8 Oct 2024 16:17:06 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/router/router.go | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/app/router/router.go b/app/router/router.go index 7a1de44..dfd8f7f 100644 --- a/app/router/router.go +++ b/app/router/router.go @@ -72,11 +72,11 @@ func route(r *gin.RouterGroup) { r.Use(mw.CheckPermission) // 检测权限 rRole(r.Group("/role")) // 权限管理 - rQualification(r.Group("/qualification")) // 资质认证公共数据 rAgentQualification(r.Group("/agentQualification")) // 渠道-资质 rMediumQualification(r.Group("/mediumQualification")) // 媒体-资质 rSetCenter(r.Group("/setCenter")) // 设置中心 rMedium(r.Group("/mediumCenter")) // 媒体中心 + rAssociationCenter(r.Group("/associationCenter")) // 关联中心 rDivisionStrategy(r.Group("/divisionStrategy")) // 分成策略 rDataCenter(r.Group("/dataCenter")) // 数据中心 rSettleCenter(r.Group("/settleCenter")) // 结算中心 @@ -87,10 +87,10 @@ func route(r *gin.RouterGroup) { func rComm(r *gin.RouterGroup) { r.POST("/getMenuList", hdl.MenuList) // 获取菜单栏列表 + r.GET("/base", hdl.Base) // 基本信息 } func rIndex(r *gin.RouterGroup) { - r.GET("/base", hdl.Base) // 首页-基本信息 r.GET("/total", hdl.IndexTotal) // 首页-统计数据 r.POST("/app/list", hdl.IndexAppList) // 首页-应用数据 r.POST("/app/list/table", hdl.IndexAppListTable) // 首页-应用数据-每个应用的折线图 @@ -113,11 +113,9 @@ func rRole(r *gin.RouterGroup) { r.POST("/bindAdminRole", hdl.BindAdminRole) // 绑定角色 } -func rQualification(r *gin.RouterGroup) { - r.GET("/select/base", hdl.QualificationSelectBase) // 资质认证-认证选择内容 -} - func rAgentQualification(r *gin.RouterGroup) { + r.GET("/enterprise/select/base", hdl.QualificationSelectBase) // 资质认证-认证选择内容 + r.GET("/bank/select/base", hdl.QualificationSelectBase) // 资质认证-认证选择内容 r.POST("/enterprise", hdl.AgentQualificationEnterprise) // 企业主体资质 r.POST("/enterprise/audit", hdl.AgentQualificationEnterpriseAudit) // 企业主体资质审核 r.POST("/bank", hdl.AgentQualificationBank) // 银行资质 @@ -127,6 +125,8 @@ func rAgentQualification(r *gin.RouterGroup) { } func rMediumQualification(r *gin.RouterGroup) { + r.GET("/enterprise/select/base", hdl.QualificationSelectBase) // 资质认证-认证选择内容 + r.GET("/bank/select/base", hdl.QualificationSelectBase) // 资质认证-认证选择内容 r.POST("/enterprise", hdl.MediumQualificationEnterprise) // 企业主体资质 r.POST("/enterprise/audit", hdl.MediumQualificationEnterpriseAudit) // 企业主体资质审核 r.POST("/bank", hdl.MediumQualificationBank) // 银行资质 @@ -182,7 +182,8 @@ func rMedium(r *gin.RouterGroup) { r.POST("/applet/application/ad/space/medium/list", hdl.AppletApplicationAdSpaceMediumList) // 广告管理-媒体列表 r.POST("/applet/application/ad/space/list", hdl.AppletApplicationAdSpaceList) // 小程序应用-广告位列表数据 r.POST("/applet/application/ad/space/audit", hdl.AppletApplicationAdSpaceAudit) // 小程序应用-广告位审核 - +} +func rAssociationCenter(r *gin.RouterGroup) { r.POST("/medium/list", hdl.MediumList) // 媒体列表 r.POST("/medium/bind/agent/list", hdl.MediumBindAgentList) // 媒体绑定代理列表 r.POST("/medium/bind/agent/save", hdl.MediumBindAgentSave) // 媒体绑定代理操作