mod: 接口整理、增加up粉丝请求

This commit is contained in:
guozhigq
2023-04-21 16:07:34 +08:00
parent 171c16a4f9
commit 3aee691d00
10 changed files with 210 additions and 108 deletions

13
lib/http/user.dart Normal file
View File

@ -0,0 +1,13 @@
import 'package:pilipala/http/api.dart';
import 'package:pilipala/http/init.dart';
class UserHttp {
static Future<dynamic> userStat(mid) async {
var res = await Request().get(Api.userStat, data: {'vmid': mid});
if (res.data['code'] == 0) {
return {'status': true, 'data': res.data['data']};
} else {
return {'status': false};
}
}
}