feat: 添加检查是否为管理员的接口
This commit is contained in:
@@ -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"`
|
||||
|
||||
Reference in New Issue
Block a user