feat: 系统使用文档转存

This commit is contained in:
TsMask committed 2023-11-24 14:22:41 +08:00
1 parent 0e26e1d754
commit 635167c0f7
3 files changed
+94 -1

No files matched your search

+7
View File
@@ -3,6 +3,7 @@ package common
import (
"ems.agt/src/framework/logger"
"ems.agt/src/framework/middleware"
"ems.agt/src/framework/middleware/collectlogs"
"ems.agt/src/modules/common/controller"
"github.com/gin-gonic/gin"
@@ -25,6 +26,12 @@ func Setup(router *gin.Engine) {
// 系统可暴露的配置信息
indexGroup.GET("/sys-conf", controller.NewCommont.SysConfig)
// 系统使用文档转存
indexGroup.POST("/help-doc",
middleware.PreAuthorize(nil),
collectlogs.OperateLog(collectlogs.OptionNew("系统使用文档", collectlogs.BUSINESS_TYPE_UPDATE)),
controller.NewCommont.HelpDoc,
)
// 验证码操作处理
indexGroup.GET("/captchaImage",