Skip to content

Commit

Permalink
+ 对列表页使用前端缓存
Browse files Browse the repository at this point in the history
+ 修复枚举类审核异常的问题
+ 修复执行时间未展示的问题
+ 修复create table 回滚语句生成单独索引语句导致无法回滚的问题
+ 修复安装初始化时admin赋权语句错误的问题
  • Loading branch information
cookieY committed Nov 14, 2022
1 parent d959907 commit 85c0fe2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
Binary file modified Juno
Binary file not shown.
2 changes: 1 addition & 1 deletion src/lib/sendMail.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ func SendMail(addr string, mail model.Message, tmpl string) {
}
// Send the email to Bob, Cora and Dan.
if err := d.DialAndSend(m); err != nil {
logger.DefaultLogger.Errorf("send mail", err)
logger.DefaultLogger.Errorf("send mail:%s", err)
return
}
}
Expand Down
6 changes: 5 additions & 1 deletion src/service/migrate.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import (
"Yearning-go/src/model"
"encoding/json"
"fmt"
"github.com/google/uuid"
"github.com/gookit/gcli/v2/interact"
"os"
"time"
Expand All @@ -30,7 +31,8 @@ func DataInit(o *engine.AuditRole, other *model.Other, ldap *model.Ldap, message
l, _ := json.Marshal(ldap)
m, _ := json.Marshal(message)
ak, _ := json.Marshal(a)
group, _ := json.Marshal([]string{"admin"})
sId := uuid.New().String()
group, _ := json.Marshal([]string{sId})
model.DB().Debug().Create(&model.CoreAccount{
Username: "admin",
RealName: "超级管理员",
Expand All @@ -52,6 +54,7 @@ func DataInit(o *engine.AuditRole, other *model.Other, ldap *model.Ldap, message
model.DB().Debug().Create(&model.CoreRoleGroup{
Name: "admin",
Permissions: ak,
GroupId: sId,
})
}

Expand Down Expand Up @@ -108,6 +111,7 @@ func Migrate() {
AllowCreatePartition: false,
AllowCreateView: false,
AllowSpecialType: false,
DDLEnablePrimaryKey: false,
}

other := model.Other{
Expand Down

0 comments on commit 85c0fe2

Please sign in to comment.