下载数
Change-Id: Id3c07b7d57de7f92e2f550306cf339a0c892fc6d
diff --git a/src/api/torrent.js b/src/api/torrent.js
index e49887e..586e22c 100644
--- a/src/api/torrent.js
+++ b/src/api/torrent.js
@@ -140,4 +140,16 @@
url: `/torrent/download/${infoHash}`,
method: 'get'
})
+}
+
+/**
+ * 获取种子下载数
+ * @param {string} infoHash - 种子的info hash
+ * @returns {Promise}
+ */
+export function downloadTorrentNum(infoHash) {
+ return request({
+ url: `/torrent/${infoHash}/downloads`,
+ method: 'get'
+ })
}
\ No newline at end of file