resetbutton & almanach edit start

This commit is contained in:
Simon Martens
2025-05-30 19:30:50 +02:00
parent d8e50b27b0
commit 8ea36da40f
28 changed files with 1789 additions and 763 deletions

View File

@@ -4,6 +4,7 @@ import (
"log/slog"
"github.com/pocketbase/pocketbase/core"
"github.com/pocketbase/pocketbase/tools/types"
)
var _ core.RecordProxy = (*Entry)(nil)
@@ -243,3 +244,19 @@ func (e *Entry) Editor() string {
func (e *Entry) SetEditor(editor string) {
e.Set(EDITOR_FIELD, editor)
}
func (e *Entry) Updated() types.DateTime {
return e.GetDateTime(UPDATED_FIELD)
}
func (e *Entry) SetUpdated(updated types.DateTime) {
e.Set(UPDATED_FIELD, updated)
}
func (e *Entry) Created() types.DateTime {
return e.GetDateTime(CREATED_FIELD)
}
func (e *Entry) SetCreated(created types.DateTime) {
e.Set(CREATED_FIELD, created)
}