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

This commit is contained in:
2021-08-30 07:36:17 +08:00
parent e1f4876621
commit 62cf625fe9
10 changed files with 100 additions and 332 deletions
+11
View File
@@ -18,6 +18,17 @@ func main() {
//RESTfull接口适配
appIns.SetConnectListener(func(context *hotime.Context) bool {
if context.RouterString[0] == "admin" {
if context.RouterString[1] == "hotime" && context.RouterString[2] == "login" {
return true
}
if context.Session("id").Data == nil {
context.Display(2, "你还没有登录")
return false
}
}
//文件上传接口
if len(context.RouterString) == 1 && context.RouterString[0] == "file" && context.Req.Method == "POST" {