Refactored Series List

This commit is contained in:
Simon Martens
2025-02-25 23:46:03 +01:00
parent 0a9e71d4e3
commit 3e1f5a2983
6 changed files with 385 additions and 614 deletions

View File

@@ -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
}