实现下载

Change-Id: I98f6407f730b97a9aec845d32b52a1c67bc23dda
diff --git a/src/api/torrent.js b/src/api/torrent.js
index eb10784..e49887e 100644
--- a/src/api/torrent.js
+++ b/src/api/torrent.js
@@ -128,4 +128,16 @@
     url: `/torrent/view/${infoHash}`,

     method: 'get'

   })

+}

+

+/**

+ * 下载种子

+ * @param {string} infoHash - 种子的info hash

+ * @returns {Promise}

+ */

+export function downloadTorrent(infoHash) {

+  return request({

+    url: `/torrent/download/${infoHash}`,

+    method: 'get'

+  })

 }
\ No newline at end of file