census.go 754 B

12345678910111213141516171819202122232425
  1. package routers
  2. import (
  3. "github.com/gin-gonic/gin"
  4. "hongze/fms_api/controller/census"
  5. "hongze/fms_api/middleware"
  6. )
  7. func InitCensus(rg *gin.RouterGroup) {
  8. // 商品到款统计
  9. inv := new(census.InvoicePaymentController)
  10. invGroup := rg.Group("invoice_payment/").Use(middleware.Token())
  11. invGroup.GET("list", inv.List)
  12. invGroup.GET("not_invoice/list", inv.NotInvoiceList)
  13. invGroup.GET("not_payment/list", inv.NotPaymentList)
  14. invGroup.GET("income/chart_list", inv.IncomeChartList)
  15. invGroup.GET("income/list", inv.IncomeList)
  16. // 销售
  17. sel := new(census.SellerController)
  18. selGroup := rg.Group("seller/").Use(middleware.Token())
  19. selGroup.GET("group_invoice_list", sel.GroupInvoiceListV2)
  20. selGroup.GET("invoice_list", sel.InvoiceListV2)
  21. }