package v1

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

type UserRegisterReq struct {
	g.Meta          `path:"/register" tags:"User" method:"post" summary:"UserRegister"`
	Name            string ` json:"name" dc:"name"`
	Gender          uint8  ` json:"gender"  dc:"gender"`
	Email           string `v:"required" json:"email"  dc:"email"`
	Password        string `v:"required" json:"password"  dc:"password"`
	ConfirmPassword string `v:"required" json:"confirmPassword"  dc:"confirmPassword"`
}

type UserCommonRes struct {
	Message string      `json:"message" dc:"消息"`
	Data    interface{} `json:"data"    dc:"结果"`
}

type UserLoginReq struct {
	g.Meta   `path:"/login" tags:"User" method:"post" summary:"UserRegister"`
	Email    string `v:"required" json:"email"  dc:"email"`
	Password string `v:"required" json:"password"  dc:"password"`
}
