|
|
@ -9,8 +9,7 @@ import ( |
|
|
|
func InitAutoCodeRouter(Router *gin.RouterGroup) { |
|
|
|
AutoCodeRouter := Router.Group("autoCode"). |
|
|
|
Use(middleware.JWTAuth()). |
|
|
|
Use(middleware.CasbinHandler()). |
|
|
|
Use(middleware.OperationRecord()) |
|
|
|
Use(middleware.CasbinHandler()) |
|
|
|
{ |
|
|
|
AutoCodeRouter.POST("createTemp", v1.CreateTemp) // 创建自动化代码
|
|
|
|
AutoCodeRouter.GET("getTables", v1.GetTables) // 获取对应数据库的表
|
|
|
|