feat:完善项目信息

This commit is contained in:
henry
2022-01-06 17:11:57 +08:00
parent 1b0f71735b
commit a92801b1ce
29 changed files with 815 additions and 623 deletions

View File

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