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.
19 lines
588 B
19 lines
588 B
9 months ago
|
package router
|
||
|
|
||
|
import (
|
||
|
"pure-admin/api/sys"
|
||
|
|
||
|
"github.com/gin-gonic/gin"
|
||
|
)
|
||
|
|
||
|
func InitAutoCodeRouter(Router *gin.RouterGroup) {
|
||
|
AutoCodeRouter := Router.Group("autoCode")
|
||
|
{
|
||
|
AutoCodeRouter.POST("preview", sys.PreviewTemp) // 获取自动创建代码预览
|
||
|
AutoCodeRouter.POST("createTemp", sys.CreateTemp) // 创建自动化代码
|
||
|
AutoCodeRouter.GET("getTables", sys.GetTables) // 获取对应数据库的表
|
||
|
AutoCodeRouter.GET("getDB", sys.GetDB) // 获取数据库
|
||
|
AutoCodeRouter.GET("getColumn", sys.GetColumn) // 获取指定表所有字段信息
|
||
|
}
|
||
|
}
|