This commit is contained in:
jiangyong 2025-03-09 00:05:07 +08:00
parent 9ad6dd49f0
commit a64aff18a6
2 changed files with 1 additions and 3 deletions

View File

@ -5,7 +5,6 @@ import (
"enterprise/common/global" "enterprise/common/global"
"enterprise/server" "enterprise/server"
_ "enterprise/service/salary_calculator" _ "enterprise/service/salary_calculator"
"enterprise/worker"
) )
func main() { func main() {
@ -13,7 +12,6 @@ func main() {
config.LoadAliPay() config.LoadAliPay()
global.InitGlobal() global.InitGlobal()
worker.InitCorp()
if err := server.Start(); err != nil { if err := server.Start(); err != nil {
panic(err) panic(err)
} }

2
go.mod
View File

@ -10,6 +10,7 @@ require (
github.com/go-co-op/gocron v1.37.0 github.com/go-co-op/gocron v1.37.0
github.com/gogap/errors v0.0.0-20210818113853-edfbba0ddea9 github.com/gogap/errors v0.0.0-20210818113853-edfbba0ddea9
github.com/gomodule/redigo v1.9.2 github.com/gomodule/redigo v1.9.2
github.com/google/uuid v1.4.0
github.com/lestrrat-go/file-rotatelogs v2.4.0+incompatible github.com/lestrrat-go/file-rotatelogs v2.4.0+incompatible
github.com/mitchellh/mapstructure v1.5.0 github.com/mitchellh/mapstructure v1.5.0
github.com/rifflock/lfshook v0.0.0-20180920164130-b9218ef580f5 github.com/rifflock/lfshook v0.0.0-20180920164130-b9218ef580f5
@ -44,7 +45,6 @@ require (
github.com/go-sql-driver/mysql v1.7.0 // indirect github.com/go-sql-driver/mysql v1.7.0 // indirect
github.com/goccy/go-json v0.10.2 // indirect github.com/goccy/go-json v0.10.2 // indirect
github.com/gogap/stack v0.0.0-20150131034635-fef68dddd4f8 // indirect github.com/gogap/stack v0.0.0-20150131034635-fef68dddd4f8 // indirect
github.com/google/uuid v1.4.0 // indirect
github.com/hashicorp/hcl v1.0.0 // indirect github.com/hashicorp/hcl v1.0.0 // indirect
github.com/jinzhu/inflection v1.0.0 // indirect github.com/jinzhu/inflection v1.0.0 // indirect
github.com/jinzhu/now v1.1.5 // indirect github.com/jinzhu/now v1.1.5 // indirect