global.go 247 B

12345678910111213141516
  1. package global
  2. import (
  3. _ "dm"
  4. _ "github.com/go-sql-driver/mysql"
  5. "gorm.io/gorm"
  6. )
  7. var (
  8. DmSQL map[string]*gorm.DB //数据库连接配置
  9. DEFAULT_DmSQL *gorm.DB //默认数据库连接配置
  10. )
  11. func init() {
  12. InitDm()
  13. }