feat:完善项目信息
This commit is contained in:
@ -3,6 +3,7 @@ package session
|
||||
import (
|
||||
"SciencesServer/utils"
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
)
|
||||
|
||||
type Admin struct {
|
||||
@ -22,6 +23,10 @@ func (this *Admin) GetToken() string {
|
||||
return this.GetToken()
|
||||
}
|
||||
|
||||
func (this *Admin) TenantIDFormat() string {
|
||||
return fmt.Sprintf("%d", this.TenantID)
|
||||
}
|
||||
|
||||
func (this *Admin) MarshalBinary() ([]byte, error) {
|
||||
return json.Marshal(this)
|
||||
}
|
||||
|
Reference in New Issue
Block a user