mirror of
https://github.com/Theodor-Springmann-Stiftung/musenalm.git
synced 2026-02-04 18:45:31 +00:00
24 lines
367 B
Go
24 lines
367 B
Go
package dbmodels
|
|
|
|
import "github.com/pocketbase/pocketbase/core"
|
|
|
|
type Data struct {
|
|
core.BaseRecordProxy
|
|
}
|
|
|
|
func (d *Data) Key() string {
|
|
return d.GetString(KEY_FIELD)
|
|
}
|
|
|
|
func (d *Data) SetKey(key string) {
|
|
d.Set(KEY_FIELD, key)
|
|
}
|
|
|
|
func (d *Data) Value() any {
|
|
return d.GetRaw(VALUE_FIELD)
|
|
}
|
|
|
|
func (d *Data) SetValue(value string) {
|
|
d.Set(VALUE_FIELD, value)
|
|
}
|