enterprise/cmd/worker/enterprise-worker.go

22 lines
403 B
Go

package main
import (
"enterprise/common/config"
"enterprise/common/global"
_ "enterprise/plugin"
"enterprise/worker"
)
func main() {
config.LoadServerConfig()
config.LoadAliPay()
config.LoadCorpConfig()
global.InitGlobal()
worker.InitCorp()
//
//global.SendCorpMessage(1000, []string{"jiangyong"}, "测试1")
//global.SendCorpMessage(1002, []string{"jiangyong"}, "测试2")
select {}
}