commit | 8db5f2a18c38c8d65084812410ee4df3c32c7cd5 | [log] [tgz] |
---|---|---|
author | 2081595154 <2081595154@qq.com> | Mon Jun 09 23:58:33 2025 +0800 |
committer | 2081595154 <2081595154@qq.com> | Mon Jun 09 23:58:33 2025 +0800 |
tree | a9505717ae30ad8e4f6fd11b10bcfc7bca449bd2 | |
parent | a01f5ee0f09b4d00d8f95905ac36d5ada67e9ab9 [diff] [blame] |
前端 Change-Id: If55994fd11ad8d1f70a52e9c3bd53eded5f37544
diff --git a/src/api/user.js b/src/api/user.js index 2cfb40c..32073b1 100644 --- a/src/api/user.js +++ b/src/api/user.js
@@ -7,7 +7,18 @@ */ getCurrentUser() { return request({ - url: '/user/profile', + url: '/auth/status', + method: 'get' + }) + }, + + /** + * 获取用户分享率和统计信息 + * @returns {Promise<Object>} 分享率统计信息 + */ + getUserRatioInfo() { + return request({ + url: '/torrent/ratio/info', method: 'get' }) },