router/router.go
@@ -119,5 +119,14 @@ locationProductAPI.DELETE("operationType/:id", locationProductController.Delete) // 删除上架规则 } //报表 reportFormsController := new(controllers.ReportFormsController) reportFormsAPI := r.Group(urlPrefix + "/forms") { reportFormsAPI.POST("getInventoryForms", reportFormsController.GetInventoryForms) //获取库存报表 reportFormsAPI.POST("getHistory", reportFormsController.GetHistory) //获取库存历史 reportFormsAPI.POST("getLocationForms", reportFormsController.GetLocationForms) //获取位置报表 } return r }