refactor: 消息模块调整 & 样式优化

This commit is contained in:
meilin.huang
2025-08-02 22:08:56 +08:00
parent 6ad6c69660
commit 7d344c71e1
95 changed files with 1664 additions and 1476 deletions

View File

@@ -2,7 +2,7 @@ package dbi
import (
"embed"
"mayfly-go/pkg/biz"
"mayfly-go/pkg/logx"
"mayfly-go/pkg/utils/collx"
"mayfly-go/pkg/utils/stringx"
"strings"
@@ -98,7 +98,10 @@ func GetLocalSql(file, key string) string {
}
bytes, err := metasql.ReadFile(file)
biz.ErrIsNilAppendErr(err, "failed to get the contents of the sql meta file: %s")
if err != nil {
logx.Error("failed to read sql metadata file: %s, err: %v", file, err)
return ""
}
allSql := string(bytes)
sqls := strings.Split(allSql, "---------------------------------------")