优化结构
This commit is contained in:
@@ -1,24 +0,0 @@
|
||||
package router
|
||||
|
||||
import (
|
||||
"kra/internal/server/handler"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
func RegisterExport(group, public *gin.RouterGroup, h *handler.Export) {
|
||||
router := group.Group("/sysExportTemplate")
|
||||
router.POST("/createSysExportTemplate", h.Create)
|
||||
router.PUT("/updateSysExportTemplate", h.Update)
|
||||
router.DELETE("/deleteSysExportTemplate", h.Delete)
|
||||
router.DELETE("/deleteSysExportTemplateByIds", h.DeleteMany)
|
||||
router.GET("/findSysExportTemplate", h.Find)
|
||||
router.GET("/getSysExportTemplateList", h.List)
|
||||
router.GET("/previewSQL", h.Preview)
|
||||
router.GET("/exportExcel", h.Issue(false))
|
||||
router.GET("/exportTemplate", h.Issue(true))
|
||||
router.POST("/importExcel", h.Import)
|
||||
pub := public.Group("/sysExportTemplate")
|
||||
pub.GET("/exportExcelByToken", h.Download(false))
|
||||
pub.GET("/exportTemplateByToken", h.Download(true))
|
||||
}
|
||||
Reference in New Issue
Block a user