sys_dictionary.go 1.1 KB

1234567891011121314151617181920212223
  1. package system
  2. import (
  3. v1 "github.com/flipped-aurora/gin-vue-admin/server/api/v1"
  4. "github.com/flipped-aurora/gin-vue-admin/server/middleware"
  5. "github.com/gin-gonic/gin"
  6. )
  7. type DictionaryRouter struct {
  8. }
  9. func (s *DictionaryRouter) InitSysDictionaryRouter(Router *gin.RouterGroup) {
  10. sysDictionaryRouter := Router.Group("sysDictionary").Use(middleware.OperationRecord())
  11. var 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. sysDictionaryRouter.GET("findSysDictionary", sysDictionaryApi.FindSysDictionary) // 根据ID获取SysDictionary
  17. sysDictionaryRouter.GET("findSysDictionaryName", sysDictionaryApi.FindSysDictionaryName) // 根据name获取SysDictionary
  18. sysDictionaryRouter.GET("getSysDictionaryList", sysDictionaryApi.GetSysDictionaryList) // 获取SysDictionary列表
  19. }
  20. }