完善功能

This commit is contained in:
2025-07-16 15:16:40 +08:00
parent b2871ec0d2
commit f68a5b360b
123 changed files with 4643 additions and 931 deletions

View File

@ -4,21 +4,21 @@ import (
"github.com/gogf/gf/v2/frame/g"
)
type AdminInfoReq struct {
g.Meta `path:"/admin/info" tags:"Admin" method:"get" summary:"管理员信息"`
type InfoReq struct {
g.Meta `path:"/admin/info" tags:"Backend/Admin" method:"get" summary:"管理员信息"`
}
type AdminInfoRes struct {
type InfoRes struct {
g.Meta `mime:"application/json"`
AdminId int64 `json:"adminId"`
Username string `json:"username"`
}
type AdminEditPassReq struct {
g.Meta `path:"/admin/editPass" tags:"Admin" method:"post" summary:"修改密码"`
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 AdminEditPassRes struct {
type EditPassRes struct {
g.Meta `mime:"application/json"`
Success bool
}