()
| 135 | } |
| 136 | |
| 137 | func (task SixOfflineTask) StatusStr() string { |
| 138 | switch task.Status { |
| 139 | case Failed: |
| 140 | return "下载失败" |
| 141 | case Downloaded: |
| 142 | return "下载完成" |
| 143 | case Downloading: |
| 144 | return "下载中" |
| 145 | case AlmostDownloaded: |
| 146 | return "部分下载完成" |
| 147 | default: |
| 148 | return "未知状态" |
| 149 | } |
| 150 | } |