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