feat:完善信息,增加socket
This commit is contained in:
@ -27,7 +27,11 @@ func (this *Admin) TenantIDFormat() string {
|
||||
return fmt.Sprintf("%d", this.TenantID)
|
||||
}
|
||||
|
||||
func (this *Admin) UIDFormat() string {
|
||||
func (this *Admin) GetUID() uint64 {
|
||||
return this.UID
|
||||
}
|
||||
|
||||
func (this *Admin) GetStringUID() string {
|
||||
return fmt.Sprintf("%d", this.UID)
|
||||
}
|
||||
|
||||
|
@ -3,6 +3,7 @@ package session
|
||||
import (
|
||||
"SciencesServer/utils"
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"time"
|
||||
)
|
||||
|
||||
@ -30,8 +31,12 @@ func (this *Enterprise) GetToken() string {
|
||||
return this.Token
|
||||
}
|
||||
|
||||
func (this *Enterprise) UIDToString() string {
|
||||
return utils.UintToString(this.UID)
|
||||
func (this *Enterprise) GetUID() uint64 {
|
||||
return this.UID
|
||||
}
|
||||
|
||||
func (this *Enterprise) GetStringUID() string {
|
||||
return fmt.Sprintf("%d", this.UID)
|
||||
}
|
||||
|
||||
func (this *Enterprise) IsVip() bool {
|
||||
|
Reference in New Issue
Block a user