style: 错误信息英文返回-common 模块路由

This commit is contained in:
TsMask
2023-11-08 14:58:00 +08:00
parent d456b735fb
commit 267a13d3d6
5 changed files with 40 additions and 29 deletions

View File

@@ -23,6 +23,7 @@ type IndexController struct{}
func (s *IndexController) Handler(c *gin.Context) {
name := config.Get("framework.name").(string)
version := config.Get("framework.version").(string)
str := "欢迎使用%s后台管理框架,当前版本:%s请通过前端管理地址访问。"
// str := "欢迎使用%s核心网管理平台,当前版本:%s请通过前地址访问。"
str := "Welcome to the %s Core Network Management Platform, current version: %s, please access via the frontend address."
c.JSON(200, result.OkMsg(fmt.Sprintf(str, name, version)))
}