feat:完善信息,增加socket

This commit is contained in:
henry
2022-01-27 14:50:52 +08:00
parent 0368be6f11
commit 4ae37b9b4d
30 changed files with 325 additions and 92 deletions

View File

@ -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)
}

View File

@ -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 {