feat: 系统设置配置国际化切换
This commit is contained in:
Binary file not shown.
Binary file not shown.
@@ -26,11 +26,11 @@ func Setup(router *gin.Engine) {
|
||||
|
||||
// 系统可暴露的配置信息
|
||||
indexGroup.GET("/sys-conf", controller.NewCommont.SysConfig)
|
||||
// 系统使用文档转存
|
||||
indexGroup.POST("/helpDoc",
|
||||
// 转存上传文件到静态资源
|
||||
indexGroup.POST("/transferStaticFile",
|
||||
middleware.PreAuthorize(nil),
|
||||
collectlogs.OperateLog(collectlogs.OptionNew("log.operate.title.helpDoc", collectlogs.BUSINESS_TYPE_UPDATE)),
|
||||
controller.NewCommont.HelpDoc,
|
||||
controller.NewCommont.TransferStaticFile,
|
||||
)
|
||||
|
||||
// 验证码操作处理
|
||||
|
||||
@@ -47,5 +47,11 @@ func (s *CommontImpl) SystemConfigInfo() map[string]string {
|
||||
// 系统设置-系统使用文档
|
||||
helpDoc := s.sysConfigService.SelectConfigValueByKey("sys.helpDoc")
|
||||
infoMap["helpDoc"] = helpDoc
|
||||
// 国际化切换
|
||||
i18nOpen := s.sysConfigService.SelectConfigValueByKey("sys.i18n.open")
|
||||
infoMap["i18nOpen"] = i18nOpen
|
||||
// 国际化默认语言
|
||||
i18nDefault := s.sysConfigService.SelectConfigValueByKey("sys.i18n.default")
|
||||
infoMap["i18nDefault"] = i18nDefault
|
||||
return infoMap
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user