package v1

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

type LoginReq struct {
	g.Meta          `path:"/users/login" method:"post" tags:"前台用户登录" summary:"前台用户登录"`
	Phone           string `json:"phone"`
	Password        string `json:"password"`
	ConfirmPassword string `json:"confirmPassword"`
}

type LoginRes struct {
	Token string `json:"token"`
}

type RegisterReq struct {
	g.Meta          `path:"/users/register" method:"post" tags:"Users" summary:"注册"`
	Phone           string `v:"required" dc:"user phone"`
	Password        string `v:"required" dc:"user password"`
	ConfirmPassword string `v:"required" dc:"确认密码"`
}
type RegisterRes struct {
	Token string `json:"token" dc:"user token"`
}
