[feat] 新增 ResEventService

This commit is contained in:
what 2024-07-20 21:00:18 +08:00
parent 0de36f9de0
commit 722d821818

View File

@ -6,7 +6,11 @@ import (
"github.com/samber/lo" "github.com/samber/lo"
) )
type ResEvent string type ResEventService interface {
Start() error
Stop() error
Restart() error
}
type ResListener interface { type ResListener interface {
Insert(new map[string]any, u req.User, id int64) error Insert(new map[string]any, u req.User, id int64) error