Files
catalyst/app/hook/hooks.go
2025-09-02 21:58:08 +02:00

26 lines
683 B
Go

package hook
type Hooks struct {
OnRecordsListRequest *Hook
OnRecordViewRequest *Hook
OnRecordBeforeCreateRequest *Hook
OnRecordAfterCreateRequest *Hook
OnRecordBeforeUpdateRequest *Hook
OnRecordAfterUpdateRequest *Hook
OnRecordBeforeDeleteRequest *Hook
OnRecordAfterDeleteRequest *Hook
}
func NewHooks() *Hooks {
return &Hooks{
OnRecordsListRequest: &Hook{},
OnRecordViewRequest: &Hook{},
OnRecordBeforeCreateRequest: &Hook{},
OnRecordAfterCreateRequest: &Hook{},
OnRecordBeforeUpdateRequest: &Hook{},
OnRecordAfterUpdateRequest: &Hook{},
OnRecordBeforeDeleteRequest: &Hook{},
OnRecordAfterDeleteRequest: &Hook{},
}
}