2023-08-04 11:13:41 +08:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
|
|
|
"enterprise/common/config"
|
|
|
|
"enterprise/common/global"
|
|
|
|
"enterprise/server"
|
|
|
|
"enterprise/worker"
|
|
|
|
)
|
|
|
|
|
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()
|
|
|
|
|
2023-09-04 22:21:04 +08:00
|
|
|
if err := worker.Init(); err != nil {
|
|
|
|
panic(err)
|
|
|
|
}
|
|
|
|
|
2023-08-04 11:13:41 +08:00
|
|
|
if err := server.Start(); err != nil {
|
|
|
|
panic(err)
|
|
|
|
}
|
|
|
|
}
|