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.

21 lines
930 B

  1. package router
  2. import (
  3. "gin-vue-admin/api/v1"
  4. "github.com/gin-gonic/gin"
  5. )
  6. func InitAutoCodeRouter(Router *gin.RouterGroup) {
  7. AutoCodeRouter := Router.Group("autoCode")
  8. {
  9. AutoCodeRouter.POST("delSysHistory", v1.DelSysHistory) // 删除回滚记录
  10. AutoCodeRouter.POST("getMeta", v1.GetMeta) // 根据id获取meta信息
  11. AutoCodeRouter.POST("getSysHistory", v1.GetSysHistory) // 获取回滚记录分页
  12. AutoCodeRouter.POST("rollback", v1.RollBack) // 回滚
  13. AutoCodeRouter.POST("preview", v1.PreviewTemp) // 获取自动创建代码预览
  14. AutoCodeRouter.POST("createTemp", v1.CreateTemp) // 创建自动化代码
  15. AutoCodeRouter.GET("getTables", v1.GetTables) // 获取对应数据库的表
  16. AutoCodeRouter.GET("getDB", v1.GetDB) // 获取数据库
  17. AutoCodeRouter.GET("getColumn", v1.GetColumn) // 获取指定表所有字段信息
  18. }
  19. }