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:
parent
c15d52633f
commit
280fff21a3
6 changed files with 297 additions and 2 deletions
2
types.go
2
types.go
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue