Documentation ¶
Index ¶
Constants ¶
View Source
const ( LoginSuccess = "登录成功!" LoginFail = "登录失败!" LogoutSuccess = "注销成功!" LogoutFail = "注销失败!" ErrorUsernameOrPassword = "用户名或密码错误!" ErrorDisableStatus = "账户锁定, 请联系管理员" ErrorAccessExpiredTime = "签名过期, 请重新登陆" ErrorCheckExpiredTime = "签名错误, 检查token是否正确" ErrorRefreshExpiredTime = "刷新签名过期, 请重新登陆" )
Variables ¶
This section is empty.
Functions ¶
func InitRoutes ¶
func InitRoutes(route fiber.Router)
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func NewHandler ¶
func NewHandler() *Handler
type InfoOutput ¶
type InfoOutput struct { Staff *staff.Staff `json:"staff"` Menus []*menu.MenuOutput `json:"menus"` Permissions []string `json:"permissions"` }
type LoginInput ¶
type LoginOutput ¶
type RefreshInput ¶
type RefreshInput struct {
Refresh string `json:"refresh" validate:"required"`
}
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewService() *Service
Click to show internal directories.
Click to hide internal directories.