Documentation
¶
Index ¶
- type ApAuthService
- type PasswordEncodingFunc
- type Service
- func (this *Service) AddUser(params htypes.Map, res *core.SlotResponse)
- func (this *Service) ChangePwd(params htypes.Map, res *core.SlotResponse)
- func (this *Service) ChangeSuperPwd(params htypes.Map, res *core.SlotResponse)
- func (this *Service) CheckLogin(params htypes.Map, res *core.SlotResponse)
- func (this *Service) Config() core.IEntityConf
- func (this *Service) DB() *gorm.DB
- func (this *Service) DelUser(params htypes.Map, res *core.SlotResponse)
- func (this *Service) EntityStub() *core.EntityStub
- func (this *Service) GetUsers(params htypes.Map, res *core.SlotResponse)
- func (this *Service) LockUser(params htypes.Map, res *core.SlotResponse)
- func (this *Service) Login(params htypes.Map, res *core.SlotResponse)
- func (this *Service) Logout(params htypes.Map, res *core.SlotResponse)
- func (this *Service) Objects() []interface{}
- func (this *Service) Open(s core.IServer, instance core.IService, args ...htypes.Any) *herrors.Error
- func (this *Service) ResetPwd(params htypes.Map, res *core.SlotResponse)
- func (this *Service) UnLockUser(params htypes.Map, res *core.SlotResponse)
- func (this *Service) UpdateUser(params htypes.Map, res *core.SlotResponse)
- type SvsApAuthUser
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApAuthService ¶
type ApAuthService struct {
core.ServiceConf
SessionService string
SessionCreateSlot string
SessionVerifySlot string
SessionRevokeSlot string
PwdEncoding string
PwdSecret string
PwdMinLen int
PwdMaxLen int
PwdUpperAndLowerLetter bool
PwdNumberAndLetter bool
PwdSymbol bool
PwdSymbols string
DefaultPwd string
SuperName string
SuperPwd string
SuperFails int
LockAfterFails int
InAddressField string
InAgentField string
OutAddressField string
OutAgentField string
}
type PasswordEncodingFunc ¶
type Service ¶
func (*Service) ChangePwd ¶
func (this *Service) ChangePwd(params htypes.Map, res *core.SlotResponse)
func (*Service) ChangeSuperPwd ¶
func (this *Service) ChangeSuperPwd(params htypes.Map, res *core.SlotResponse)
func (*Service) CheckLogin ¶
func (this *Service) CheckLogin(params htypes.Map, res *core.SlotResponse)
func (*Service) Config ¶
func (this *Service) Config() core.IEntityConf
func (*Service) EntityStub ¶
func (this *Service) EntityStub() *core.EntityStub
func (*Service) UnLockUser ¶
func (this *Service) UnLockUser(params htypes.Map, res *core.SlotResponse)
func (*Service) UpdateUser ¶
func (this *Service) UpdateUser(params htypes.Map, res *core.SlotResponse)
type SvsApAuthUser ¶
type SvsApAuthUser struct {
ID int64 `json:"id"`
User string `json:"user" gorm:"size:50;unique;index:user_idx"` //用户名,即账号
Password string `json:"-" gorm:"size:32"` //用户密码
LastLogin string `json:"last_login" gorm:"size:19"` //最后一次登录
Locked bool `json:"-"` //账号是否被锁定
Fails int `json:"-"` //登录失败次数
}
账密登录用户表
Click to show internal directories.
Click to hide internal directories.