add router

This commit is contained in:
zhangwenjian
2020-04-02 11:26:02 +08:00
parent 5e8d225cdf
commit 69098e7d47
+1
View File
@@ -63,6 +63,7 @@ func InitRouter() *gin.Engine {
apiv1.PUT("/sys/tables/info", UpdateSysTable) apiv1.PUT("/sys/tables/info", UpdateSysTable)
apiv1.DELETE("/sys/tables/info/:tableId", DeleteSysTables) apiv1.DELETE("/sys/tables/info/:tableId", DeleteSysTables)
apiv1.GET("/sys/tables/info/:tableId", GetSysTables) apiv1.GET("/sys/tables/info/:tableId", GetSysTables)
apiv1.GET("/gen/preview/:tableId", Preview)
apiv1.GET("/menuTreeselect", GetMenuTreeelect) apiv1.GET("/menuTreeselect", GetMenuTreeelect)
apiv1.GET("/rolemenu", GetRoleMenu) apiv1.GET("/rolemenu", GetRoleMenu)
apiv1.POST("/rolemenu", InsertRoleMenu) apiv1.POST("/rolemenu", InsertRoleMenu)