dongfeng-pay/jhmicro/main.go

23 lines
581 B
Go
Raw Normal View History

2019-12-19 14:47:58 +08:00
package main
import (
2019-12-19 16:43:20 +08:00
"dongfeng-pay/jhmicro/notify"
"dongfeng-pay/jhmicro/order_settle"
"dongfeng-pay/jhmicro/pay_for"
"dongfeng-pay/jhmicro/query"
"dongfeng-pay/service/service_init"
2019-12-21 15:04:43 +08:00
"github.com/astaxie/beego"
"github.com/astaxie/beego/logs"
2019-12-19 14:47:58 +08:00
)
func main() {
logs.SetLogger(logs.AdapterFile, `{"level": 7, "color":true, "filename":"jhmicro.log"}`)
service_init.InitAll()
go notify.CreateOrderNotifyConsumer()
go query.CreateSupplierOrderQueryCuConsumer()
go pay_for.PayForInit()
go query.CreatePayForQueryConsumer()
go order_settle.OrderSettleInit()
beego.Run()
}