worker
This commit is contained in:
parent
9ad6dd49f0
commit
a64aff18a6
|
@ -5,7 +5,6 @@ import (
|
|||
"enterprise/common/global"
|
||||
"enterprise/server"
|
||||
_ "enterprise/service/salary_calculator"
|
||||
"enterprise/worker"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
@ -13,7 +12,6 @@ func main() {
|
|||
config.LoadAliPay()
|
||||
global.InitGlobal()
|
||||
|
||||
worker.InitCorp()
|
||||
if err := server.Start(); err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
|
2
go.mod
2
go.mod
|
@ -10,6 +10,7 @@ require (
|
|||
github.com/go-co-op/gocron v1.37.0
|
||||
github.com/gogap/errors v0.0.0-20210818113853-edfbba0ddea9
|
||||
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/mitchellh/mapstructure v1.5.0
|
||||
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/goccy/go-json v0.10.2 // 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/jinzhu/inflection v1.0.0 // indirect
|
||||
github.com/jinzhu/now v1.1.5 // indirect
|
||||
|
|
Loading…
Reference in New Issue