You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
445 B
28 lines
445 B
package user
|
|
|
|
import (
|
|
"base/app/lib/bean"
|
|
"base/app/logic/manage/user"
|
|
"github.com/gin-gonic/gin"
|
|
"log"
|
|
)
|
|
|
|
type Login struct {
|
|
}
|
|
|
|
type argsLogin struct {
|
|
Username string
|
|
Password string
|
|
}
|
|
|
|
// Login @Title 用户登录
|
|
func (l *Login) Login(c *gin.Context) {
|
|
args := argsLogin{}
|
|
if err := c.ShouldBindJSON(&args); err != nil {
|
|
bean.Response.ResultFail(c, 10001, "参数错误")
|
|
return
|
|
}
|
|
user.UserLogic.Login()
|
|
log.Println(args)
|
|
}
|