调整前端样式,调整日志记录路由组,调整对应自动化模板
This commit is contained in:
@@ -11,12 +11,15 @@ type CustomerRouter struct {
|
||||
|
||||
func (e *CustomerRouter) InitCustomerRouter(Router *gin.RouterGroup) {
|
||||
customerRouter := Router.Group("customer").Use(middleware.OperationRecord())
|
||||
customerRouterWithoutRecord := Router.Group("customer")
|
||||
var exaCustomerApi = v1.ApiGroupApp.ExampleApiGroup.CustomerApi
|
||||
{
|
||||
customerRouter.POST("customer", exaCustomerApi.CreateExaCustomer) // 创建客户
|
||||
customerRouter.PUT("customer", exaCustomerApi.UpdateExaCustomer) // 更新客户
|
||||
customerRouter.DELETE("customer", exaCustomerApi.DeleteExaCustomer) // 删除客户
|
||||
customerRouter.GET("customer", exaCustomerApi.GetExaCustomer) // 获取单一客户信息
|
||||
customerRouter.GET("customerList", exaCustomerApi.GetExaCustomerList) // 获取客户列表
|
||||
customerRouter.POST("customer", exaCustomerApi.CreateExaCustomer) // 创建客户
|
||||
customerRouter.PUT("customer", exaCustomerApi.UpdateExaCustomer) // 更新客户
|
||||
customerRouter.DELETE("customer", exaCustomerApi.DeleteExaCustomer) // 删除客户
|
||||
}
|
||||
{
|
||||
customerRouterWithoutRecord.GET("customer", exaCustomerApi.GetExaCustomer) // 获取单一客户信息
|
||||
customerRouterWithoutRecord.GET("customerList", exaCustomerApi.GetExaCustomerList) // 获取客户列表
|
||||
}
|
||||
}
|
||||
|
@@ -12,9 +12,9 @@ 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) // 下载模板文件
|
||||
excelRouter.POST("importExcel", exaExcelApi.ImportExcel) // 导入Excel
|
||||
excelRouter.GET("loadExcel", exaExcelApi.LoadExcel) // 加载Excel数据
|
||||
excelRouter.POST("exportExcel", exaExcelApi.ExportExcel) // 导出Excel
|
||||
excelRouter.GET("downloadTemplate", exaExcelApi.DownloadTemplate) // 下载模板文件
|
||||
}
|
||||
}
|
||||
|
@@ -12,12 +12,12 @@ func (e *FileUploadAndDownloadRouter) InitFileUploadAndDownloadRouter(Router *gi
|
||||
fileUploadAndDownloadRouter := Router.Group("fileUploadAndDownload")
|
||||
var exaFileUploadAndDownloadApi = v1.ApiGroupApp.ExampleApiGroup.FileUploadAndDownloadApi
|
||||
{
|
||||
fileUploadAndDownloadRouter.POST("/upload", exaFileUploadAndDownloadApi.UploadFile) // 上传文件
|
||||
fileUploadAndDownloadRouter.POST("/getFileList", exaFileUploadAndDownloadApi.GetFileList) // 获取上传文件列表
|
||||
fileUploadAndDownloadRouter.POST("/deleteFile", exaFileUploadAndDownloadApi.DeleteFile) // 删除指定文件
|
||||
fileUploadAndDownloadRouter.POST("/breakpointContinue", exaFileUploadAndDownloadApi.BreakpointContinue) // 断点续传
|
||||
fileUploadAndDownloadRouter.GET("/findFile", exaFileUploadAndDownloadApi.FindFile) // 查询当前文件成功的切片
|
||||
fileUploadAndDownloadRouter.POST("/breakpointContinueFinish", exaFileUploadAndDownloadApi.BreakpointContinueFinish) // 查询当前文件成功的切片
|
||||
fileUploadAndDownloadRouter.POST("/removeChunk", exaFileUploadAndDownloadApi.RemoveChunk) // 查询当前文件成功的切片
|
||||
fileUploadAndDownloadRouter.POST("upload", exaFileUploadAndDownloadApi.UploadFile) // 上传文件
|
||||
fileUploadAndDownloadRouter.POST("getFileList", exaFileUploadAndDownloadApi.GetFileList) // 获取上传文件列表
|
||||
fileUploadAndDownloadRouter.POST("deleteFile", exaFileUploadAndDownloadApi.DeleteFile) // 删除指定文件
|
||||
fileUploadAndDownloadRouter.POST("breakpointContinue", exaFileUploadAndDownloadApi.BreakpointContinue) // 断点续传
|
||||
fileUploadAndDownloadRouter.GET("findFile", exaFileUploadAndDownloadApi.FindFile) // 查询当前文件成功的切片
|
||||
fileUploadAndDownloadRouter.POST("breakpointContinueFinish", exaFileUploadAndDownloadApi.BreakpointContinueFinish) // 查询当前文件成功的切片
|
||||
fileUploadAndDownloadRouter.POST("removeChunk", exaFileUploadAndDownloadApi.RemoveChunk) // 查询当前文件成功的切片
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user