mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
feat: show video tags
This commit is contained in:
@@ -609,4 +609,6 @@ class Api {
|
||||
|
||||
/// 取消订阅-播单
|
||||
static const String unfavFolder = '/x/v3/fav/folder/unfav';
|
||||
|
||||
static const String videoTags = '/x/tag/archive/tags';
|
||||
}
|
||||
|
||||
@@ -392,4 +392,13 @@ class UserHttp {
|
||||
return {'status': false, 'msg': res.data['message']};
|
||||
}
|
||||
}
|
||||
|
||||
static videoTags({required String bvid}) async {
|
||||
var res = await Request().get(Api.videoTags, data: {'bvid': bvid});
|
||||
if (res.data['code'] == 0) {
|
||||
return {'status': true, 'data': res.data['data']};
|
||||
} else {
|
||||
return {'status': false};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user