feat: management && notify
This commit is contained in:
@@ -57,3 +57,14 @@ func ChinaDataHandler(c *gin.Context) {
|
||||
data := service.GetChinaNCovStatistic()
|
||||
utils.Succ(c, data)
|
||||
}
|
||||
|
||||
// ChinaTrendHandler Get china data
|
||||
// @Tags Statistics
|
||||
// @Produce json
|
||||
// @Summary china trend
|
||||
// @Success 200 {object} utils.GinResponse{data=models.ChinaTrend}
|
||||
// @Router /statistics/china/trend [get]
|
||||
func ChinaTrendHandler(c *gin.Context) {
|
||||
data := service.GetChinaTrend()
|
||||
utils.Succ(c, data)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user