(c *gin.Context)
| 25 | } |
| 26 | |
| 27 | func GetTaskPhaseProgress(c *gin.Context) { |
| 28 | taskId := hashid.FromContext(c) |
| 29 | resp, err := explorer.TaskPhaseProgress(c, taskId) |
| 30 | if err != nil { |
| 31 | c.JSON(200, serializer.Err(c, err)) |
| 32 | c.Abort() |
| 33 | return |
| 34 | } |
| 35 | |
| 36 | if resp != nil { |
| 37 | c.JSON(200, serializer.Response{ |
| 38 | Data: resp, |
| 39 | }) |
| 40 | } else { |
| 41 | c.JSON(200, serializer.Response{Data: queue.Progresses{}}) |
| 42 | } |
| 43 | } |
| 44 | |
| 45 | func SetDownloadTaskTarget(c *gin.Context) { |
| 46 | taskId := hashid.FromContext(c) |
nothing calls this directly
no test coverage detected