优化结构
This commit is contained in:
@@ -1,29 +0,0 @@
|
||||
package router
|
||||
|
||||
import (
|
||||
"kra/internal/server/handler"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
func RegisterDictionary(group *gin.RouterGroup, h *handler.Dictionary) {
|
||||
dictionaries := group.Group("/sysDictionary")
|
||||
dictionaries.POST("/createSysDictionary", h.Create)
|
||||
dictionaries.PUT("/updateSysDictionary", h.Update)
|
||||
dictionaries.DELETE("/deleteSysDictionary", h.Delete)
|
||||
dictionaries.GET("/findSysDictionary", h.Find)
|
||||
dictionaries.GET("/getSysDictionaryList", h.List(false))
|
||||
dictionaries.GET("/getSysDictionaryListWithDetails", h.List(true))
|
||||
dictionaries.GET("/exportSysDictionary", h.Export)
|
||||
dictionaries.POST("/importSysDictionary", h.Import)
|
||||
details := group.Group("/sysDictionaryDetail")
|
||||
details.POST("/createSysDictionaryDetail", h.CreateDetail)
|
||||
details.PUT("/updateSysDictionaryDetail", h.UpdateDetail)
|
||||
details.DELETE("/deleteSysDictionaryDetail", h.DeleteDetail)
|
||||
details.GET("/findSysDictionaryDetail", h.FindDetail)
|
||||
details.GET("/getSysDictionaryDetailList", h.Details)
|
||||
details.GET("/getDictionaryTreeList", h.Tree(false))
|
||||
details.GET("/getDictionaryTreeListByType", h.Tree(true))
|
||||
details.GET("/getDictionaryDetailsByParent", h.DetailsByParent)
|
||||
details.GET("/getDictionaryPath", h.Path)
|
||||
}
|
||||
Reference in New Issue
Block a user