event.go 399 字节
package event

import (
	"github.com/tiptok/gocomm/xa/eda"
	"gitlab.fjmaimaimai.com/mmm-go/partner/pkg/application/event/subscriber"
	devent "gitlab.fjmaimaimai.com/mmm-go/partner/pkg/domain/event"
)

func InitEventCenter() {
	eda.RegisterSubscribe(&devent.AccessTokenEvent{}, &subscriber.AuthCacheSubscribe{})
	eda.RegisterSubscribe(&devent.RefreshTokenEvent{}, &subscriber.AuthCacheSubscribe{})
}