chore: 修改函数名

This commit is contained in:
tiglog 2023-08-17 19:22:54 +08:00
parent 72aa931caa
commit 60ef4aa71f

View File

@ -72,8 +72,8 @@ func InitDb(opt DbOption) error {
return nil return nil
} }
// 通过函数暴露句柄 // 拿到数据库操作的句柄
func GetDm() *DbMap { func GetDbMap() *DbMap {
if dm == nil { if dm == nil {
InitDb(DbOption{ InitDb(DbOption{
Type: "sqlite3", Type: "sqlite3",