feat: management && notify

This commit is contained in:
fallen-angle
2022-05-04 20:06:21 +08:00
parent e58bafd0d3
commit 7598280fc1
28 changed files with 1226 additions and 143 deletions

View File

@@ -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
View 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)
}
}

View File

@@ -15,7 +15,7 @@ func BusiRouter() {
statisticRouter(publicRouter)
articlePublicRouter(publicRouter)
userPublicRouter(publicRouter)
investigatePublicRouter(publicRouter)
managementPublicRouter(publicRouter)
}
// Private

View File

@@ -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)
}
}