mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
feat: 评论区添加表情
This commit is contained in:
@@ -120,6 +120,11 @@ class Api {
|
||||
// https://api.bilibili.com/x/relation/stat?vmid=697166795
|
||||
static const String userStat = '/x/relation/stat';
|
||||
|
||||
// 获取我的表情列表
|
||||
// business:reply(回复)dynamic(动态)
|
||||
//https://api.bilibili.com/x/emote/user/panel/web?business=reply
|
||||
static const String myEmote = '/x/emote/user/panel/web';
|
||||
|
||||
// 获取用户信息
|
||||
static const String userInfo = '/x/web-interface/nav';
|
||||
|
||||
|
||||
@@ -100,4 +100,24 @@ class ReplyHttp {
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
static Future getMyEmote({
|
||||
required String business,
|
||||
}) async {
|
||||
var res = await Request().get(Api.myEmote, data: {
|
||||
'business': business,
|
||||
});
|
||||
if (res.data['code'] == 0) {
|
||||
return {
|
||||
'status': true,
|
||||
'data': res.data['data'],
|
||||
};
|
||||
} else {
|
||||
return {
|
||||
'status': false,
|
||||
'date': [],
|
||||
'msg': res.data['message'],
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user