2025-05-05 10:30:33 +08:00
|
|
|
package event
|
|
|
|
|
2025-05-15 17:30:33 +08:00
|
|
|
import "time"
|
|
|
|
|
2025-05-05 10:30:33 +08:00
|
|
|
const (
|
2025-05-19 17:51:09 +08:00
|
|
|
EventTopic_UserGameExecute = "user.game.execute"
|
2025-05-15 17:30:33 +08:00
|
|
|
EventTopic_DelayInvokeCreateHook = "resource.create.delay"
|
2025-05-05 10:30:33 +08:00
|
|
|
)
|
|
|
|
|
2025-05-19 17:51:09 +08:00
|
|
|
type EventPayload_UserGameExecute struct {
|
|
|
|
UserId int
|
|
|
|
ProjectId int
|
|
|
|
ProjectName string
|
|
|
|
OpResourceType string
|
|
|
|
OpResourceGroup string
|
|
|
|
OpResourceKey string
|
|
|
|
Method string
|
|
|
|
SrcDataList []any
|
|
|
|
DstDataList []any
|
2025-05-05 10:30:33 +08:00
|
|
|
}
|
2025-05-15 17:30:33 +08:00
|
|
|
|
|
|
|
type EventPayload_DelayInvokeCreateHook struct {
|
|
|
|
ProjectId int
|
|
|
|
Resource string
|
|
|
|
DelayAt time.Time
|
|
|
|
Obj []byte
|
|
|
|
}
|