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.
20 lines
658 B
20 lines
658 B
package example
|
|
|
|
import (
|
|
v1 "github.com/flipped-aurora/gin-vue-admin/api/v1"
|
|
"github.com/gin-gonic/gin"
|
|
)
|
|
|
|
type ExcelRouter struct {
|
|
}
|
|
|
|
func (e *ExcelRouter) InitExcelRouter(Router *gin.RouterGroup) {
|
|
excelRouter := Router.Group("excel")
|
|
var exaExcelApi = v1.ApiGroupApp.ExampleApiGroup.ExcelApi
|
|
{
|
|
excelRouter.POST("/importExcel", exaExcelApi.ImportExcel) // 导入Excel
|
|
excelRouter.GET("/loadExcel", exaExcelApi.LoadExcel) // 加载Excel数据
|
|
excelRouter.POST("/exportExcel", exaExcelApi.ExportExcel) // 导出Excel
|
|
excelRouter.GET("/downloadTemplate", exaExcelApi.DownloadTemplate) // 下载模板文件
|
|
}
|
|
}
|