Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Default = "en-US"
Functions ¶
This section is empty.
Types ¶
type AvatarImageStorage ¶
type Backend ¶
type Backend interface {
LoadTenants() []*Tenant
SaveTenant(*Tenant) error
DeleteTenant(*Tenant) error
}
Backend defined methods that needs for tenant backend
type QorTenant ¶
type QorTenant struct {
Resource *admin.Resource
Backends []Backend
FallbackLocales map[string][]string
// contains filtered or unexported fields
}
QorTenant struct that hold all tenants
func (QorTenant) ResourceName ¶
ResourceName change display name in qor admin
type Tenant ¶
type Tenant struct {
gorm.Model
Name string
FullName string // 全称
Avatar AvatarImageStorage //'头像',
Province string
City string
County string
Addr string
Phone string
Lng float64 // 经度
Lat float64 // 纬度
Backend Backend `json:"-"`
}
Tenant is a struct for tenants
func (Tenant) AvatarImageURL ¶
Click to show internal directories.
Click to hide internal directories.