lishihai
2024-06-20 504f3e9bc274bcd6c7221e738802e0e5d4aef36f
main.go
@@ -19,6 +19,8 @@
   "wms/proto/purchase_wms"
   "wms/router"
   "wms/service"
   "wms/task"
   "wms/utils/dingtalkrobot"
)
func main() {
@@ -75,6 +77,12 @@
   go service.InitLocationReportData()
   go service.InitHistoryReportData()
   //定时任务初始化
   task.Init()
   //钉钉机器人初始化
   dingtalkrobot.Init(conf.DingTalkConf.AlarmKey, conf.DingTalkConf.AlarmUrl)
   logx.Error(server.ListenAndServe().Error())
}