feat: add GetTaskFile and RemoveAllTaskFiles methods

Complete the Task File API implementation with:
- GetTaskFile: retrieve single file metadata by ID
- RemoveAllTaskFiles: remove all files attached to a task
- Add Username/UserName fields to TaskFile struct
- Add TaskScope convenience methods: GetFile, RemoveFile,
  DownloadFile, RemoveAllFiles
- Comprehensive tests for all new methods

Closes: kanboard-amh
This commit is contained in:
Oliver Jakoubek 2026-01-27 17:01:21 +01:00
commit 280fff21a3
6 changed files with 297 additions and 2 deletions

View file

@ -237,6 +237,8 @@ type TaskFile struct {
DateCreation Timestamp `json:"date_creation"`
UserID StringInt `json:"user_id"`
Size StringInt64 `json:"size"`
Username string `json:"username"` // Only returned by getAllTaskFiles
UserName string `json:"user_name"` // Only returned by getAllTaskFiles
}
// Tag represents a Kanboard tag.