package v1

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

type InfoReq struct {
	g.Meta `path:"/admin/info" tags:"Backend/Admin" method:"get" summary:"管理员信息"`
}
type InfoRes struct {
	g.Meta   `mime:"application/json"`
	Id       int64  `json:"id"`
	Username string `json:"username"`
	Role     string `json:"role"`
}

type EditPassReq struct {
	g.Meta  `path:"/admin/editPass" tags:"Backend/Admin" method:"post" summary:"修改密码"`
	OldPass string `json:"oldPass" v:"required" dc:"旧密码"`
	NewPass string `json:"newPass" v:"required" dc:"新密码"`
}
type EditPassRes struct {
	g.Meta  `mime:"application/json"`
	Success bool
}
