From a64aff18a6d2ecc27a3410326d3dac90894b96b7 Mon Sep 17 00:00:00 2001 From: jiangyong Date: Sun, 9 Mar 2025 00:05:07 +0800 Subject: [PATCH] worker --- cmd/server/enterprise-api.go | 2 -- go.mod | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/cmd/server/enterprise-api.go b/cmd/server/enterprise-api.go index 59c5a81..754cc1a 100644 --- a/cmd/server/enterprise-api.go +++ b/cmd/server/enterprise-api.go @@ -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) } diff --git a/go.mod b/go.mod index de79ef7..b6d06e4 100644 --- a/go.mod +++ b/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