mirror of
https://github.com/Theodor-Springmann-Stiftung/musenalm.git
synced 2025-10-29 09:15:33 +00:00
Einzelbeitragsansicht
This commit is contained in:
@@ -58,6 +58,15 @@ func RContentsAgents_Contents(app core.App, id []any) ([]*RContentsAgents, error
|
||||
)
|
||||
}
|
||||
|
||||
func RContentsAgents_Content(app core.App, id string) ([]*RContentsAgents, error) {
|
||||
return TableByFields[[]*RContentsAgents](
|
||||
app,
|
||||
RelationTableName(CONTENTS_TABLE, AGENTS_TABLE),
|
||||
CONTENTS_TABLE,
|
||||
id,
|
||||
)
|
||||
}
|
||||
|
||||
func REntriesSeries_Entries(app core.App, ids []any) ([]*REntriesSeries, error) {
|
||||
return TableByFields[[]*REntriesSeries](
|
||||
app,
|
||||
@@ -139,6 +148,11 @@ func Contents_Entry(app core.App, id string) ([]*Content, error) {
|
||||
)
|
||||
}
|
||||
|
||||
func Contents_MusenalmID(app core.App, id string) (*Content, error) {
|
||||
ret, err := TableByField[Content](app, CONTENTS_TABLE, MUSENALMID_FIELD, id)
|
||||
return &ret, err
|
||||
}
|
||||
|
||||
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