chore: 修改函数名
This commit is contained in:
parent
72aa931caa
commit
60ef4aa71f
@ -72,8 +72,8 @@ func InitDb(opt DbOption) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
// 通过函数暴露句柄
|
||||
func GetDm() *DbMap {
|
||||
// 拿到数据库操作的句柄
|
||||
func GetDbMap() *DbMap {
|
||||
if dm == nil {
|
||||
InitDb(DbOption{
|
||||
Type: "sqlite3",
|
||||
|
Loading…
Reference in New Issue
Block a user