From a49b9c76d9d02d9306ffd86b13ca97de80819095 Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Thu, 19 Sep 2024 18:22:21 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/hdl/hdl_login.go | 11 +++++++++++ app/router/router.go | 1 + 2 files changed, 12 insertions(+) diff --git a/app/hdl/hdl_login.go b/app/hdl/hdl_login.go index f823304..b80dc5f 100644 --- a/app/hdl/hdl_login.go +++ b/app/hdl/hdl_login.go @@ -1,6 +1,7 @@ package hdl import ( + implement3 "applet/app/db/implement" "applet/app/e" "applet/app/lib/validate" "applet/app/md" @@ -16,6 +17,16 @@ import ( "time" ) +func LoginBase(c *gin.Context) { + NewSysCfgDb := implement3.NewSysCfgDb(svc.MasterDb(c), c.GetString("mid")) + logo := NewSysCfgDb.SysCfgGetWithDb("agent_logo") + res := map[string]string{ + "logo": logo, + } + e.OutSuc(c, res, nil) + return +} + // Login 登陆 // @Summary 登陆 // @Tags ADMIN diff --git a/app/router/router.go b/app/router/router.go index 43e5729..7d8a3f1 100644 --- a/app/router/router.go +++ b/app/router/router.go @@ -54,6 +54,7 @@ func route(r *gin.RouterGroup) { r.POST("/qiniuyun/callback", hdl.FileImgCallback) //七牛云回调 r.Use(mw.DB) // 以下接口需要用到数据库 { + r.GET("/base", hdl.LoginBase) r.POST("/login", hdl.Login) r.POST("/login/phone", hdl.LoginPhone) r.POST("/register", hdl.Register)