feat: 添加检查是否为管理员的接口

This commit is contained in:
2026-05-09 10:30:31 +08:00
parent 45db7f75ca
commit 50a89b6fc1
5 changed files with 40 additions and 2 deletions

View File

@@ -155,6 +155,11 @@ type IsSuperAdminReq struct {
commonApi.Author
}
type IsAdminReq struct {
g.Meta `path:"/user/checkIsAdmin" tags:"用户管理" method:"get" summary:"是否是管理员"`
commonApi.Author
}
type IsSuperAdminRes struct {
g.Meta `mime:"application/json"`
IsSuperAdmin bool `json:"isSuperAdmin"`