2022-06-15 10:31:40 +08:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
|
|
|
"docDemo/router"
|
|
|
|
"fmt"
|
|
|
|
"github.com/gin-gonic/gin"
|
|
|
|
)
|
|
|
|
|
|
|
|
//func init() {
|
|
|
|
// client.InitMySQLClient()
|
|
|
|
//}
|
2022-06-15 11:43:40 +08:00
|
|
|
|
2022-06-15 10:31:40 +08:00
|
|
|
func main() {
|
|
|
|
app := gin.Default()
|
|
|
|
|
|
|
|
// 初始化路由
|
|
|
|
router.InitRouter(app.Group("/api"))
|
|
|
|
|
|
|
|
// 订阅消息
|
|
|
|
//go queues.NewQueuesConsumer().SubscribeGetReport()
|
|
|
|
|
|
|
|
app.Run(fmt.Sprintf(":8889"))
|
|
|
|
}
|