mirror of
https://github.com/Theodor-Springmann-Stiftung/musenalm.git
synced 2025-10-29 17:25:32 +00:00
Pages now work
Default Pages Created & Updated Fields for every collection
This commit is contained in:
33
pagemodels/abk.go
Normal file
33
pagemodels/abk.go
Normal file
@@ -0,0 +1,33 @@
|
||||
package pagemodels
|
||||
|
||||
import "github.com/pocketbase/pocketbase/core"
|
||||
|
||||
type Abk struct {
|
||||
core.BaseRecordProxy
|
||||
}
|
||||
|
||||
func (a *Abk) TableName() string {
|
||||
return GeneratePageTableName(P_DOK_NAME, T_ABK_NAME)
|
||||
}
|
||||
|
||||
func NewAbk(record *core.Record) *Abk {
|
||||
i := &Abk{}
|
||||
i.SetProxyRecord(record)
|
||||
return i
|
||||
}
|
||||
|
||||
func (a *Abk) Abk() string {
|
||||
return a.GetString(F_ABK)
|
||||
}
|
||||
|
||||
func (a *Abk) SetAbk(abk string) {
|
||||
a.Set(F_ABK, abk)
|
||||
}
|
||||
|
||||
func (a *Abk) Bedeutung() string {
|
||||
return a.GetString(F_BEDEUTUNG)
|
||||
}
|
||||
|
||||
func (a *Abk) SetBedeutung(bedeutung string) {
|
||||
a.Set(F_BEDEUTUNG, bedeutung)
|
||||
}
|
||||
Reference in New Issue
Block a user