1
This commit is contained in:
parent
8e5f8561bb
commit
be8ce29cc9
@ -83,6 +83,14 @@ func (this *app) registerDataSources() {
|
|||||||
mt.Table.AccountDb.GetById(0).GetPasswd(),
|
mt.Table.AccountDb.GetById(0).GetPasswd(),
|
||||||
mt.Table.AccountDb.GetById(0).GetDatabase(),
|
mt.Table.AccountDb.GetById(0).GetDatabase(),
|
||||||
)
|
)
|
||||||
|
f5.GetApp().RegisterOrmDb(
|
||||||
|
constant.MAIL_DB,
|
||||||
|
mt.Table.MailDb.GetById(0).GetHost(),
|
||||||
|
mt.Table.MailDb.GetById(0).GetPort(),
|
||||||
|
mt.Table.MailDb.GetById(0).GetUser(),
|
||||||
|
mt.Table.MailDb.GetById(0).GetPasswd(),
|
||||||
|
mt.Table.MailDb.GetById(0).GetDatabase(),
|
||||||
|
)
|
||||||
|
|
||||||
u := system.SysUser{}
|
u := system.SysUser{}
|
||||||
f5.GetApp().GetOrmDb(constant.ADMIN_DB).First(&u)
|
f5.GetApp().GetOrmDb(constant.ADMIN_DB).First(&u)
|
||||||
|
@ -9,6 +9,7 @@ const (
|
|||||||
FRIEND_DB = "firenddb"
|
FRIEND_DB = "firenddb"
|
||||||
ADMIN_DB = "admindb"
|
ADMIN_DB = "admindb"
|
||||||
ACCOUNT_DB = "accountdb"
|
ACCOUNT_DB = "accountdb"
|
||||||
|
MAIL_DB = "maildb"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
Loading…
x
Reference in New Issue
Block a user