enterprise/cmd/server/enterprise-api.go

21 lines
327 B
Go
Raw Normal View History

2023-08-04 11:13:41 +08:00
package main
import (
"enterprise/common/config"
"enterprise/common/global"
"enterprise/server"
2025-03-04 23:14:09 +08:00
_ "enterprise/service/salary_calculator"
2025-03-06 17:50:32 +08:00
"enterprise/worker"
2023-08-04 11:13:41 +08:00
)
2024-01-31 21:02:49 +08:00
func main() {
2023-08-04 11:13:41 +08:00
config.LoadServerConfig()
2024-09-27 12:35:30 +08:00
config.LoadAliPay()
2023-08-04 11:13:41 +08:00
global.InitGlobal()
2025-03-06 17:50:32 +08:00
worker.InitCorp()
2023-08-04 11:13:41 +08:00
if err := server.Start(); err != nil {
panic(err)
}
}