Browse Source

更新

master
huangjiajun 2 months ago
parent
commit
242297ef2a
2 changed files with 12 additions and 0 deletions
  1. +11
    -0
      app/hdl/hdl_login.go
  2. +1
    -0
      app/router/router.go

+ 11
- 0
app/hdl/hdl_login.go View File

@@ -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("medium_logo")
res := map[string]string{
"logo": logo,
}
e.OutSuc(c, res, nil)
return
}

// Login 登陆
// @Summary 登陆
// @Tags ADMIN


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

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


Loading…
Cancel
Save