|
@@ -2,6 +2,7 @@ package models
|
|
|
|
|
|
import (
|
|
|
_ "github.com/go-sql-driver/mysql"
|
|
|
+ "hongze/hongze_ETA_mobile_api/models/system"
|
|
|
"hongze/hongze_ETA_mobile_api/utils"
|
|
|
"time"
|
|
|
|
|
@@ -73,6 +74,17 @@ func init() {
|
|
|
// 报告相关 数据表
|
|
|
initReport()
|
|
|
|
|
|
+ initSystem()
|
|
|
+
|
|
|
+}
|
|
|
+
|
|
|
+// initSystem 系统表 数据表
|
|
|
+func initSystem() {
|
|
|
+ orm.RegisterModel(
|
|
|
+ new(system.SysUserLoginRecord),
|
|
|
+ new(system.SysSession),
|
|
|
+ new(system.Admin),
|
|
|
+ )
|
|
|
}
|
|
|
|
|
|
|