34 lines
565 B
Go
34 lines
565 B
Go
package main
|
|
|
|
import (
|
|
"enterprise/common/config"
|
|
"enterprise/common/global"
|
|
"enterprise/common/model"
|
|
"enterprise/server"
|
|
"enterprise/worker"
|
|
"time"
|
|
)
|
|
|
|
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()
|
|
for i := 0; i < 10; i++ {
|
|
new(worker.Approval).Sync(time.Now().AddDate(0, 0-i, 0).Format("200601"), model.ApprovalTypeRefund)
|
|
}
|
|
|
|
}
|