mirror of
https://github.com/tiger1103/gfast.git
synced 2026-10-08 15:22:49 +00:00
34 lines
1.1 KiB
Go
34 lines
1.1 KiB
Go
package system
|
|
|
|
import (
|
|
"github.com/gogf/gf/v2/frame/g"
|
|
"github.com/tiger1103/gfast/v3/internal/app/system/model"
|
|
)
|
|
|
|
type UserLoginReq struct {
|
|
g.Meta `path:"/login" tags:"login" method:"post" summary:"用户登录"`
|
|
Username string `p:"username" v:"required#用户名不能为空"`
|
|
Password string `p:"password" v:"required#密码不能为空"`
|
|
VerifyCode string `p:"verifyCode" v:"required#验证码不能为空"`
|
|
VerifyKey string `p:"verifyKey"`
|
|
}
|
|
|
|
type UserLoginRes struct {
|
|
g.Meta `mime:"application/json" example:""`
|
|
UserInfo *model.LoginUserRes `json:"userInfo"`
|
|
Token string `json:"token"`
|
|
MenuList []*model.UserMenus `json:"menuList"`
|
|
Permissions []string `json:"permissions"`
|
|
}
|
|
|
|
type UserMenusReq struct {
|
|
g.Meta `path:"/getUserMenus" tags:"getUserMenus" method:"get" summary:"获取用户菜单"`
|
|
Authorization string `p:"Authorization" in:"header" dc:"Bearer {{token}}"`
|
|
}
|
|
|
|
type UserMenusRes struct {
|
|
g.Meta `mime:"application/json" example:""`
|
|
MenuList []*model.UserMenus `json:"menuList"`
|
|
Permissions []string `json:"permissions"`
|
|
}
|