Feat: delete aria2 record in client side (#335)

This commit is contained in:
HFO4
2020-11-23 19:24:56 +08:00
parent c6110e9e75
commit f0a68236a8
7 changed files with 33 additions and 6 deletions

View File

@@ -23,6 +23,7 @@ type DownloadListResponse struct {
// FinishedListResponse 已完成任务条目
type FinishedListResponse struct {
Name string `json:"name"`
GID string `json:"gid"`
Status int `json:"status"`
Dst string `json:"dst"`
Error string `json:"error"`
@@ -51,6 +52,7 @@ func BuildFinishedListResponse(tasks []model.Download) Response {
download := FinishedListResponse{
Name: fileName,
GID: tasks[i].GID,
Status: tasks[i].Status,
Error: tasks[i].Error,
Dst: tasks[i].Dst,