更新登录
This commit is contained in:
@@ -48,6 +48,7 @@ func Init(_ string) {
|
||||
new(SystemTenantDomain),
|
||||
new(SystemModules),
|
||||
new(PlatformLoginVerify),
|
||||
new(TenantSiteSetting),
|
||||
)
|
||||
|
||||
// 创建全局 Ormer
|
||||
|
||||
@@ -2,7 +2,7 @@ package models
|
||||
|
||||
import "time"
|
||||
|
||||
// SystemTenantDomain 租户域名表 yz_system_tenant_domain
|
||||
// SystemTenantDomain 租户域名表 yz_tenant_domain
|
||||
type SystemTenantDomain struct {
|
||||
ID uint64 `orm:"column(id);pk;auto" json:"id"`
|
||||
Tid *uint64 `orm:"column(tid);null" json:"tid"`
|
||||
@@ -16,5 +16,5 @@ type SystemTenantDomain struct {
|
||||
}
|
||||
|
||||
func (m *SystemTenantDomain) TableName() string {
|
||||
return "yz_system_tenant_domain"
|
||||
return "yz_tenant_domain"
|
||||
}
|
||||
|
||||
@@ -0,0 +1,31 @@
|
||||
package models
|
||||
|
||||
import "time"
|
||||
|
||||
// TenantSiteSetting 租户站点设置表 yz_tenant_site_setting
|
||||
// 主要用于“站点基本信息”配置(站点名称/Logo/企业介绍等)
|
||||
type TenantSiteSetting struct {
|
||||
ID uint64 `orm:"column(id);pk;auto" json:"id"`
|
||||
|
||||
Tid uint64 `orm:"column(tid);null" json:"tid"`
|
||||
|
||||
Sitename string `orm:"column(sitename);size(255);null" json:"sitename"`
|
||||
Logo string `orm:"column(logo);size(255);null" json:"logo"`
|
||||
Logow string `orm:"column(logow);size(255);null" json:"logow"`
|
||||
Ico string `orm:"column(ico);size(255);null" json:"ico"`
|
||||
|
||||
Companyintroduction string `orm:"column(companyintroduction);type(longtext);null" json:"companyintroduction"`
|
||||
Description string `orm:"column(description);size(255);null" json:"description"`
|
||||
Copyright string `orm:"column(copyright);size(255);null" json:"copyright"`
|
||||
Companyname string `orm:"column(companyname);size(255);null" json:"companyname"`
|
||||
Icp string `orm:"column(icp);size(255);null" json:"icp"`
|
||||
|
||||
CreateTime time.Time `orm:"column(create_time);type(datetime);auto_now_add;null" json:"create_time"`
|
||||
UpdateTime *time.Time `orm:"column(update_time);type(datetime);auto_now;null" json:"update_time"`
|
||||
DeleteTime *time.Time `orm:"column(delete_time);type(datetime);null" json:"delete_time"`
|
||||
}
|
||||
|
||||
func (m *TenantSiteSetting) TableName() string {
|
||||
return "yz_tenant_site_setting"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user