feat: management && notify
This commit is contained in:
@@ -1,17 +0,0 @@
|
||||
package router
|
||||
|
||||
import (
|
||||
"github.com/gin-gonic/gin"
|
||||
"nCovTrack-Backend/service/investigate"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
func investigatePublicRouter(router *gin.RouterGroup) {
|
||||
investigateRouter := router.Group("investigate")
|
||||
{
|
||||
investigateRouter.GET("/test", func(c *gin.Context) {
|
||||
investigate.QueryHotelContacts()
|
||||
c.JSON(http.StatusOK, nil)
|
||||
})
|
||||
}
|
||||
}
|
||||
17
router/management.go
Normal file
17
router/management.go
Normal file
@@ -0,0 +1,17 @@
|
||||
package router
|
||||
|
||||
import (
|
||||
"nCovTrack-Backend/handler"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
func managementPublicRouter(router *gin.RouterGroup) {
|
||||
managementRouter := router.Group("/management")
|
||||
{
|
||||
managementRouter.GET("/observation/contact/pull/:patientId", handler.PullContactHandler)
|
||||
managementRouter.GET("/observation", handler.ListObservationsHandler)
|
||||
managementRouter.POST("/observation", handler.InsertObservationHandler)
|
||||
managementRouter.GET("/observation/:id", handler.GetObservationHandler)
|
||||
}
|
||||
}
|
||||
@@ -15,7 +15,7 @@ func BusiRouter() {
|
||||
statisticRouter(publicRouter)
|
||||
articlePublicRouter(publicRouter)
|
||||
userPublicRouter(publicRouter)
|
||||
investigatePublicRouter(publicRouter)
|
||||
managementPublicRouter(publicRouter)
|
||||
}
|
||||
|
||||
// Private
|
||||
|
||||
@@ -13,5 +13,6 @@ func statisticRouter(router *gin.RouterGroup) {
|
||||
statisticsRouter.GET("/country/child", handler.CountryDataHandler)
|
||||
statisticsRouter.GET("/country", handler.CountryDataHandler)
|
||||
statisticsRouter.GET("/china", handler.ChinaDataHandler)
|
||||
statisticsRouter.GET("/china/trend", handler.ChinaTrendHandler)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user