mirror of
https://github.com/Theodor-Springmann-Stiftung/musenalm.git
synced 2025-10-29 09:15:33 +00:00
Reihen Page -- all kinds of stuff
This commit is contained in:
@@ -81,3 +81,15 @@ func BasicRelationCollection(app core.App, sourcetablename, targettablename stri
|
||||
|
||||
return collection, nil
|
||||
}
|
||||
|
||||
type IDable interface {
|
||||
ID() string
|
||||
}
|
||||
|
||||
func GetIDs(records []IDable) []string {
|
||||
ids := []string{}
|
||||
for _, r := range records {
|
||||
ids = append(ids, r.ID())
|
||||
}
|
||||
return ids
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user