重命名包为 core

This commit is contained in:
2025-05-07 17:38:27 +08:00
parent 60bbe47368
commit 0a16f9923c
43 changed files with 349 additions and 347 deletions

View File

@@ -6,7 +6,7 @@ import (
"platform/pkg/env"
"platform/pkg/logs"
"platform/pkg/orm"
"platform/web/common"
"platform/web/core"
m "platform/web/models"
q "platform/web/queries"
"time"
@@ -36,7 +36,7 @@ func main() {
Pss: &m.ResourcePss{
Live: 180,
Type: 1,
Expire: common.LocalDateTime(time.Now().Add(24 * time.Hour * 1000)),
Expire: core.LocalDateTime(time.Now().Add(24 * time.Hour * 1000)),
DailyLimit: math.MaxInt32,
},
})

View File

@@ -34,7 +34,7 @@ func main() {
common := []gen.ModelOpt{
gen.FieldModify(func(field gen.Field) gen.Field {
if field.Type == "time.Time" {
field.Type = "common.LocalDateTime"
field.Type = "core.LocalDateTime"
}
return field
}),