You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
1.0 KiB
22 lines
1.0 KiB
package system
|
|
|
|
import (
|
|
v1 "github.com/flipped-aurora/gin-vue-admin/server/api/v1"
|
|
"github.com/flipped-aurora/gin-vue-admin/server/middleware"
|
|
"github.com/gin-gonic/gin"
|
|
)
|
|
|
|
type DictionaryRouter struct {
|
|
}
|
|
|
|
func (s *DictionaryRouter) InitSysDictionaryRouter(Router *gin.RouterGroup) {
|
|
sysDictionaryRouter := Router.Group("sysDictionary").Use(middleware.OperationRecord())
|
|
var sysDictionaryApi = v1.ApiGroupApp.SystemApiGroup.DictionaryApi
|
|
{
|
|
sysDictionaryRouter.POST("createSysDictionary", sysDictionaryApi.CreateSysDictionary) // 新建SysDictionary
|
|
sysDictionaryRouter.DELETE("deleteSysDictionary", sysDictionaryApi.DeleteSysDictionary) // 删除SysDictionary
|
|
sysDictionaryRouter.PUT("updateSysDictionary", sysDictionaryApi.UpdateSysDictionary) // 更新SysDictionary
|
|
sysDictionaryRouter.GET("findSysDictionary", sysDictionaryApi.FindSysDictionary) // 根据ID获取SysDictionary
|
|
sysDictionaryRouter.GET("getSysDictionaryList", sysDictionaryApi.GetSysDictionaryList) // 获取SysDictionary列表
|
|
}
|
|
}
|