feat:完善项目信息
This commit is contained in:
@ -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)
|
||||
}
|
||||
|
Reference in New Issue
Block a user