1 Star 2 Fork 0

Eolink/apinto-dashboard

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
user.go 911 Bytes
一键复制 编辑 原始数据 按行查看 历史
kingsword 提交于 2022-03-31 18:34 +08:00 . 初始化
package apinto_dashboard
type UserDetails interface {
// GetUsername Returns the username used to authenticate the user.
GetUsername()string
// GetAuthorities Returns the authorities granted to the user.
GetAuthorities()map[string]interface{}
// GetPassword Returns the password used to authenticate the user.
GetPassword()string
// IsAccountNonExpired Indicates whether the user's account has expired.
IsAccountNonExpired() bool
// IsAccountNonLocked Indicates whether the user is locked or unlocked.
IsAccountNonLocked() bool
// IsCredentialsNonExpired Indicates whether the user's credentials (password) has expired.
IsCredentialsNonExpired() bool
// IsEnabled Indicates whether the user is enabled or disabled.
IsEnabled() bool
}
type IUserDetailsService interface {
// LoadUserByUsername Locates the user based on the username.
LoadUserByUsername(username string) (UserDetails,error)
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/eolink_admin/apinto-dashboard.git
git@gitee.com:eolink_admin/apinto-dashboard.git
eolink_admin
apinto-dashboard
apinto-dashboard
main

搜索帮助