feat: up主页显示获赞数 issues #160

This commit is contained in:
guozhigq
2023-12-16 22:35:01 +08:00
parent 6a888ad72b
commit 52ab78f332
4 changed files with 34 additions and 3 deletions

View File

@ -410,6 +410,7 @@ class Api {
static const getMemberSeasonsApi = '/x/polymer/web-space/home/seasons_series';
/// 获赞数 播放数
/// mid
static const getMemberViewApi = '/x/space/upstat';
/// 查询某个专栏

View File

@ -447,4 +447,18 @@ class MemberHttp {
};
}
}
// 获取up播放数、点赞数
static Future memberView({required int mid}) async {
var res = await Request().get(Api.getMemberViewApi, data: {'mid': mid});
if (res.data['code'] == 0) {
return {'status': true, 'data': res.data['data']};
} else {
return {
'status': false,
'data': [],
'msg': res.data['message'],
};
}
}
}