31 lines
449 B
Go
31 lines
449 B
Go
package main
|
|
|
|
import (
|
|
"enterprise/common/config"
|
|
"enterprise/common/global"
|
|
"enterprise/server"
|
|
"enterprise/worker"
|
|
)
|
|
|
|
func main() {
|
|
config.LoadServerConfig()
|
|
global.InitGlobal()
|
|
|
|
if err := worker.Init(); err != nil {
|
|
panic(err)
|
|
}
|
|
|
|
if err := server.Start(); err != nil {
|
|
panic(err)
|
|
}
|
|
}
|
|
|
|
func main22() {
|
|
config.LoadServerConfig()
|
|
global.InitGlobal()
|
|
//cfg := config.GetConfig()
|
|
|
|
new(worker.Checkin).SyncCheckinDay("2024-01-17")
|
|
|
|
}
|