feat:完善信息
This commit is contained in:
@ -1,17 +1,20 @@
|
||||
package model
|
||||
|
||||
import "SciencesServer/app/common/model"
|
||||
import (
|
||||
"SciencesServer/app/common/model"
|
||||
"SciencesServer/utils"
|
||||
)
|
||||
|
||||
type TenantUser struct {
|
||||
*model.TenantUser
|
||||
}
|
||||
|
||||
func (m *TenantUser) UUIDToString() string {
|
||||
return ""
|
||||
return utils.UintToString(m.UUID)
|
||||
}
|
||||
|
||||
func (m *TenantUser) ValidatePassword(password string) bool {
|
||||
return true
|
||||
return utils.HashCompare([]byte(m.Password), []byte(utils.Md5String(password, m.Salt)))
|
||||
}
|
||||
|
||||
func NewTenantUser() *TenantUser {
|
||||
|
Reference in New Issue
Block a user