package v1

import (
	"github.com/gogf/gf/v2/frame/g"
)

type UserLoginReq struct {
	g.Meta     `path:"/user/login" tags:"登录" method:"post" summary:"用户登录"`
	Username   string `p:"username" v:"required#用户名不能为空"`
	Password   string `p:"password" v:"required#密码不能为空"`
	VerifyCode string `p:"verifyCode" v:"required#验证码不能为空"`
	VerifyKey  string `p:"verifyKey" v:"required#验证秘钥不能为空"`
	TotpCode   string `p:"totpCode"`
}

type UserLoginRes struct {
	g.Meta `mime:"application/json"`
	Token  string `json:"token"`
}
