Cron_Admin/event/event.go

19 lines
347 B
Go

package event
import (
"cron_admin/app/constants/common"
"cron_admin/event/observers"
)
/**
*事件触发
event.EventManger.TrigerEvent(common.Event_USER_LOG_IN, param)
*/
var EventManger *EventManagerFactory
func init() {
EventManger = new(EventManagerFactory)
EventManger.Register(common.Event_USER_LOG_IN, &observers.ScoreLogin{})
}