mirror of
https://github.com/Theodor-Springmann-Stiftung/musenalm.git
synced 2026-02-04 10:35:30 +00:00
32 lines
551 B
Go
32 lines
551 B
Go
package dbmodels
|
|
|
|
import "github.com/pocketbase/pocketbase/core"
|
|
|
|
type File struct {
|
|
core.BaseRecordProxy
|
|
}
|
|
|
|
func (f *File) Key() string {
|
|
return f.GetString(KEY_FIELD)
|
|
}
|
|
|
|
func (f *File) SetKey(key string) {
|
|
f.Set(KEY_FIELD, key)
|
|
}
|
|
|
|
func (f *File) Description() string {
|
|
return f.GetString(DESCRIPTION_FIELD)
|
|
}
|
|
|
|
func (f *File) SetDescription(description string) {
|
|
f.Set(DESCRIPTION_FIELD, description)
|
|
}
|
|
|
|
func (f *File) FileField() string {
|
|
return f.GetString(FILE_FIELD)
|
|
}
|
|
|
|
func (f *File) SetFileField(file string) {
|
|
f.Set(FILE_FIELD, file)
|
|
}
|