enterprise/cmd/enterprise.go

32 lines
560 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")
//new(worker.Approval).Sync("202401", model.ApprovalTypeRefund)
new(worker.Staff).SyncStaffSalary("202401")
}