Browse Source

update

master
dengbiao 1 week ago
parent
commit
939b5f5fea
4 changed files with 32 additions and 0 deletions
  1. +4
    -0
      app/hdl/comm/hdl_comm.go
  2. +13
    -0
      app/hdl/setCenter/oss/aliyun/hdl_basic.go
  3. +14
    -0
      app/router/router.go
  4. +1
    -0
      go.mod

+ 4
- 0
app/hdl/comm/hdl_comm.go View File

@@ -106,3 +106,7 @@ func MenuList(c *gin.Context) {
}, nil)
return
}

func GetOssUrl(c *gin.Context) {

}

+ 13
- 0
app/hdl/setCenter/oss/aliyun/hdl_basic.go View File

@@ -0,0 +1,13 @@
package aliyun

import (
"github.com/gin-gonic/gin"
)

func GetBasic(c *gin.Context) {

}

func SetBasic(c *gin.Context) {

}

+ 14
- 0
app/router/router.go View File

@@ -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
}

+ 1
- 0
go.mod View File

@@ -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


Loading…
Cancel
Save