feat: 评论区添加表情

This commit is contained in:
orz12
2024-02-23 01:35:27 +08:00
parent e78cd8b179
commit b44dbdfa09
5 changed files with 472 additions and 7 deletions

View File

@@ -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';

View File

@@ -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'],
};
}
}
}