28 lines
534 B
Go
28 lines
534 B
Go
package event
|
|
|
|
import "time"
|
|
|
|
const (
|
|
EventTopic_UserGameExecute = "user.game.execute"
|
|
EventTopic_DelayInvokeCreateHook = "resource.create.delay"
|
|
)
|
|
|
|
type EventPayload_UserGameExecute struct {
|
|
UserId int
|
|
ProjectId int
|
|
ProjectName string
|
|
OpResourceType string
|
|
OpResourceGroup string
|
|
OpResourceKey string
|
|
Method string
|
|
SrcDataList []any
|
|
DstDataList []any
|
|
}
|
|
|
|
type EventPayload_DelayInvokeCreateHook struct {
|
|
ProjectId int
|
|
Resource string
|
|
DelayAt time.Time
|
|
Obj []byte
|
|
}
|