123456789101112131415161718192021 |
- package main
- import (
- "github.com/gin-gonic/gin"
- "iot_manager_service/app/dao"
- "iot_manager_service/config"
- _ "iot_manager_service/config"
- "iot_manager_service/router"
- )
- func main() {
- // 开始调试模式
- gin.SetMode("debug")
- // 实例化配置
- dao.InitDB()
- engine := gin.Default()
- router.InitRouter(engine)
- engine.Run(config.Instance().Server.Address)
- }
|