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