在线用户强退,删除数据库表前缀

This commit is contained in:
yxh
2020-03-09 18:14:50 +08:00
parent f90e2a79b4
commit 8ea20bdcc4
27 changed files with 559 additions and 438 deletions
@@ -9,7 +9,7 @@ import (
"github.com/gogf/gf/database/gdb"
)
// Entity is the golang structure for table qxkj_sys_dict_data.
// Entity is the golang structure for table sys_dict_data.
type Entity struct {
DictCode int64 `orm:"dict_code,primary" json:"dict_code"` // 字典编码
DictSort int `orm:"dict_sort" json:"dict_sort"` // 字典排序
@@ -11,15 +11,15 @@ import (
"time"
)
// arModel is a active record design model for table qxkj_sys_dict_data operations.
// arModel is a active record design model for table sys_dict_data operations.
type arModel struct {
M *gdb.Model
}
var (
// Table is the table name of qxkj_sys_dict_data.
Table = "qxkj_sys_dict_data"
// Model is the model object of qxkj_sys_dict_data.
// Table is the table name of sys_dict_data.
Table = "sys_dict_data"
// Model is the model object of sys_dict_data.
Model = &arModel{g.DB("default").Table(Table).Safe()}
)