sys_dictionary.go 1.0 KB

123456789101112131415161718192021222324
  1. package system
  2. import (
  3. "github.com/gin-gonic/gin"
  4. v1 "lcfns/api/v1"
  5. "lcfns/middleware"
  6. )
  7. type DictionaryRouter struct{}
  8. func (s *DictionaryRouter) InitSysDictionaryRouter(Router *gin.RouterGroup) {
  9. sysDictionaryRouter := Router.Group("sysDictionary").Use(middleware.OperationRecord())
  10. sysDictionaryRouterWithoutRecord := Router.Group("sysDictionary")
  11. sysDictionaryApi := v1.ApiGroupApp.SystemApiGroup.DictionaryApi
  12. {
  13. sysDictionaryRouter.POST("createSysDictionary", sysDictionaryApi.CreateSysDictionary) // 新建SysDictionary
  14. sysDictionaryRouter.DELETE("deleteSysDictionary", sysDictionaryApi.DeleteSysDictionary) // 删除SysDictionary
  15. sysDictionaryRouter.PUT("updateSysDictionary", sysDictionaryApi.UpdateSysDictionary) // 更新SysDictionary
  16. }
  17. {
  18. sysDictionaryRouterWithoutRecord.GET("findSysDictionary", sysDictionaryApi.FindSysDictionary) // 根据ID获取SysDictionary
  19. sysDictionaryRouterWithoutRecord.GET("getSysDictionaryList", sysDictionaryApi.GetSysDictionaryList) // 获取SysDictionary列表
  20. }
  21. }