1 Star 1 Fork 1

goeoeo / ant-api

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
login.go 374 Bytes
一键复制 编辑 原始数据 按行查看 历史
package controllers
import (
"fmt"
"gitee.com/phpdi/ant-api/entitys"
"gitee.com/phpdi/ant-api/services"
)
type LoginController struct {
BaseController
}
//登录{perm:false}
func (this *LoginController)Login() {
var req entitys.Login
this.mustPost()
this.parseFormData(&req,"UserName","Password")
fmt.Println(req)
this.result(services.NewAuth().Login(req))
}
Go
1
https://gitee.com/goeoeo/ant-api.git
git@gitee.com:goeoeo/ant-api.git
goeoeo
ant-api
ant-api
a4d54182c883

搜索帮助

53164aa7 5694891 3bd8fe86 5694891