From 939b5f5feaf5987c5ec23cc2e211d7c912684c4e Mon Sep 17 00:00:00 2001 From: dengbiao Date: Wed, 13 Nov 2024 17:11:25 +0800 Subject: [PATCH] update --- app/hdl/comm/hdl_comm.go | 4 ++++ app/hdl/setCenter/oss/aliyun/hdl_basic.go | 13 +++++++++++++ app/router/router.go | 14 ++++++++++++++ go.mod | 1 + 4 files changed, 32 insertions(+) create mode 100644 app/hdl/setCenter/oss/aliyun/hdl_basic.go diff --git a/app/hdl/comm/hdl_comm.go b/app/hdl/comm/hdl_comm.go index 3461031..c675995 100644 --- a/app/hdl/comm/hdl_comm.go +++ b/app/hdl/comm/hdl_comm.go @@ -106,3 +106,7 @@ func MenuList(c *gin.Context) { }, nil) return } + +func GetOssUrl(c *gin.Context) { + +} diff --git a/app/hdl/setCenter/oss/aliyun/hdl_basic.go b/app/hdl/setCenter/oss/aliyun/hdl_basic.go new file mode 100644 index 0000000..7559130 --- /dev/null +++ b/app/hdl/setCenter/oss/aliyun/hdl_basic.go @@ -0,0 +1,13 @@ +package aliyun + +import ( + "github.com/gin-gonic/gin" +) + +func GetBasic(c *gin.Context) { + +} + +func SetBasic(c *gin.Context) { + +} diff --git a/app/router/router.go b/app/router/router.go index 350da37..73d303b 100644 --- a/app/router/router.go +++ b/app/router/router.go @@ -6,6 +6,7 @@ import ( "applet/app/hdl/comm" "applet/app/hdl/institutional_management/egg_energy" "applet/app/hdl/institutional_management/public_platoon" + "applet/app/hdl/setCenter/oss/aliyun" "applet/app/mw" _ "applet/docs" "github.com/gin-gonic/gin" @@ -55,6 +56,18 @@ func route(r *gin.RouterGroup) { rComm(r.Group("/comm")) r.Use(mw.CheckPermission) // 检测权限 rInstitutionalManagement(r.Group("/institutionalManagement")) + rSettCenter(r.Group("/settCenter")) +} + +func rSettCenter(r *gin.RouterGroup) { //设置中心 + rOss := r.Group("/oss") //oss设置 + { + rOssAliYun := rOss.Group("/oss") //oss设置 + { + rOssAliYun.GET("/getBasic", aliyun.GetBasic) + rOssAliYun.POST("/setBasic", aliyun.SetBasic) + } + } } func rInstitutionalManagement(r *gin.RouterGroup) { //制度管理 @@ -113,4 +126,5 @@ func rInstitutionalManagement(r *gin.RouterGroup) { //制度管理 func rComm(r *gin.RouterGroup) { r.POST("/getMenuList", comm.MenuList) // 获取菜单栏列表 + r.POST("/getOssUrl", comm.GetOssUrl) // 获取阿里云上传PutObject所需的签名URL } diff --git a/go.mod b/go.mod index 704a270..96580c9 100644 --- a/go.mod +++ b/go.mod @@ -84,6 +84,7 @@ require ( github.com/pelletier/go-toml/v2 v2.2.1 // indirect github.com/pkg/errors v0.9.1 // indirect github.com/saintfish/chardet v0.0.0-20230101081208-5e3ef4b5456d // indirect + github.com/shopspring/decimal v1.3.1 // indirect github.com/streadway/amqp v1.0.0 // indirect github.com/syndtr/goleveldb v1.0.0 // indirect github.com/temoto/robotstxt v1.1.2 // indirect