增加表关联新建功能,同时修复数据库bug

This commit is contained in:
2021-08-29 06:08:19 +08:00
parent b480659a22
commit e1f4876621
6 changed files with 26 additions and 9 deletions
+4
View File
@@ -85,6 +85,10 @@ func main() {
}
context.Router[context.RouterString[0]][context.RouterString[1]]["add"](context)
}
if len(context.RouterString) == 3 &&
context.Req.Method == "POST" {
return true
}
//查询单条
if len(context.RouterString) == 3 &&
context.Req.Method == "GET" {