You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
656 B

3 years ago
3 years ago
3 years ago
  1. package example
  2. import (
  3. v1 "github.com/flipped-aurora/gin-vue-admin/server/api/v1"
  4. "github.com/gin-gonic/gin"
  5. )
  6. type ExcelRouter struct{}
  7. func (e *ExcelRouter) InitExcelRouter(Router *gin.RouterGroup) {
  8. excelRouter := Router.Group("excel")
  9. exaExcelApi := v1.ApiGroupApp.ExampleApiGroup.ExcelApi
  10. {
  11. excelRouter.POST("importExcel", exaExcelApi.ImportExcel) // 导入Excel
  12. excelRouter.GET("loadExcel", exaExcelApi.LoadExcel) // 加载Excel数据
  13. excelRouter.POST("exportExcel", exaExcelApi.ExportExcel) // 导出Excel
  14. excelRouter.GET("downloadTemplate", exaExcelApi.DownloadTemplate) // 下载模板文件
  15. }
  16. }