feat:完善项目信息

This commit is contained in:
henry
2022-01-11 10:41:46 +08:00
parent 6712feec35
commit 7cab0fb354
24 changed files with 188 additions and 169 deletions

View File

@ -3,6 +3,7 @@ package session
import (
"SciencesServer/utils"
"encoding/json"
"fmt"
)
// Tenant 租户数据信息
@ -12,6 +13,10 @@ type Tenant struct {
Domain string `json:"domain"`
}
func (this *Tenant) IDToString() string {
return fmt.Sprintf("%d", this.ID)
}
func (this *Tenant) MarshalBinary() ([]byte, error) {
return json.Marshal(this)
}