opt: intro: queryUserStat

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-03-26 11:03:47 +08:00
parent b9adf26ee0
commit 812f351ddd
4 changed files with 33 additions and 29 deletions

View File

@@ -135,7 +135,9 @@ class Api {
static const String relatedList = '/x/web-interface/archive/related';
// 查询用户与自己关系_仅查关注
static const String hasFollow = '/x/relation';
static const String relation = '/x/relation';
static const String relations = '/x/relation/relations';
// 操作用户关系
static const String relationMod = '/x/relation/modify';

View File

@@ -346,7 +346,7 @@ class UserHttp {
static Future hasFollow(int mid) async {
var res = await Request().get(
Api.hasFollow,
Api.relation,
queryParameters: {
'fid': mid,
},

View File

@@ -784,7 +784,7 @@ class VideoHttp {
// 查询是否关注up
static Future hasFollow({required int mid}) async {
var res = await Request().get(Api.hasFollow, queryParameters: {'fid': mid});
var res = await Request().get(Api.relation, queryParameters: {'fid': mid});
if (res.data['code'] == 0) {
return {'status': true, 'data': res.data['data']};
} else {