mirror of
https://github.com/Theodor-Springmann-Stiftung/musenalm.git
synced 2025-10-29 09:15:33 +00:00
Refactored Series List
This commit is contained in:
@@ -67,6 +67,15 @@ func REntriesSeries_Entry(app core.App, id string) ([]*REntriesSeries, error) {
|
||||
)
|
||||
}
|
||||
|
||||
func REntriesSeries_Seriess(app core.App, ids []any) ([]*REntriesSeries, error) {
|
||||
return TableByFields[[]*REntriesSeries](
|
||||
app,
|
||||
RelationTableName(ENTRIES_TABLE, SERIES_TABLE),
|
||||
SERIES_TABLE,
|
||||
ids,
|
||||
)
|
||||
}
|
||||
|
||||
func Agents_ID(app core.App, id string) (*Agent, error) {
|
||||
r, err := TableByID[Agent](app, AGENTS_TABLE, id)
|
||||
return &r, err
|
||||
@@ -110,3 +119,8 @@ func Contents_Entry(app core.App, id string) ([]*Content, error) {
|
||||
id,
|
||||
)
|
||||
}
|
||||
|
||||
func Places_ID(app core.App, id string) (*Place, error) {
|
||||
ret, err := TableByField[Place](app, PLACES_TABLE, ID_FIELD, id)
|
||||
return &ret, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user