+Bilder- u. Download-Manager

This commit is contained in:
Simon Martens
2026-01-27 13:44:46 +01:00
parent 826c08add2
commit 8cf466851a
8 changed files with 275 additions and 34 deletions

View File

@@ -190,6 +190,14 @@ func Images_KeyPrefix(app core.App, prefix string) ([]*Image, error) {
return images, err
}
func Files_All(app core.App) ([]*File, error) {
files := make([]*File, 0)
err := app.RecordQuery(FILES_TABLE).
OrderBy(CREATED_FIELD + " DESC").
All(&files)
return files, err
}
func AccessTokens_Token(app core.App, token string) (*AccessToken, error) {
ret, err := TableByField[AccessToken](
app,