Commit 8f487d98 by mushishixian

心跳检查接口

parent 142a5c19
Showing with 4 additions and 0 deletions
...@@ -10,6 +10,10 @@ import ( ...@@ -10,6 +10,10 @@ import (
func InitRouter() *gin.Engine { func InitRouter() *gin.Engine {
gin.SetMode(configs.ApiSetting.Mode) gin.SetMode(configs.ApiSetting.Mode)
router := gin.Default() router := gin.Default()
//测试心跳的路由
router.GET("/hbsdata", func(context *gin.Context) {
context.String(200, "ok")
})
router.POST("/bom/export", Export) router.POST("/bom/export", Export)
router.POST("/bom_matching/refresh", RefreshBomMatchingGoods) router.POST("/bom_matching/refresh", RefreshBomMatchingGoods)
router.POST("/bom_matching/update", UpdateBomMatching) router.POST("/bom_matching/update", UpdateBomMatching)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment