feat: Database type support
This commit is contained in:
1 parent
ab34ba8aad
commit
a6970e9c67
20 files changed
+190
-301
No files matched your search
@@ -5,7 +5,6 @@ import (
|
||||
"go-admin/models/tools"
|
||||
tools2 "go-admin/tools"
|
||||
"go-admin/tools/app"
|
||||
config2 "go-admin/tools/config"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
@@ -23,11 +22,11 @@ func GetDBTableList(c *gin.Context) {
|
||||
var err error
|
||||
var pageSize = 10
|
||||
var pageIndex = 1
|
||||
if config2.DatabaseConfig.Dbtype=="sqlite3"{
|
||||
res.Msg="对不起,sqlite3 暂不支持代码生成!"
|
||||
c.JSON(http.StatusOK, res.ReturnError(500))
|
||||
return
|
||||
}
|
||||
//if config2.DatabaseConfig.DbType=="sqlite3"{
|
||||
// res.Msg="对不起,sqlite3 暂不支持代码生成!"
|
||||
// c.JSON(http.StatusOK, res.ReturnError(500))
|
||||
// return
|
||||
//}
|
||||
|
||||
if size := c.Request.FormValue("pageSize"); size != "" {
|
||||
pageSize = tools2.StrToInt(err, size)
|
||||
|
||||
Reference in new issue
Block a user