Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-12-27 20:54:41 +08:00
parent 25acf3a9bb
commit b51c646415
227 changed files with 768 additions and 764 deletions

View File

@@ -23,7 +23,7 @@ abstract final class MsgHttp {
int? cursor,
int? cursorTime,
}) async {
var res = await Request().get(
final res = await Request().get(
Api.msgFeedReply,
queryParameters: {
'id': ?cursor,
@@ -45,7 +45,7 @@ abstract final class MsgHttp {
int? cursor,
int? cursorTime,
}) async {
var res = await Request().get(
final res = await Request().get(
Api.msgFeedAt,
queryParameters: {
'id': ?cursor,
@@ -67,7 +67,7 @@ abstract final class MsgHttp {
int? cursor,
int? cursorTime,
}) async {
var res = await Request().get(
final res = await Request().get(
Api.msgFeedLike,
queryParameters: {
'id': ?cursor,
@@ -90,7 +90,7 @@ abstract final class MsgHttp {
required int pn,
Object lastMid = 0,
}) async {
var res = await Request().get(
final res = await Request().get(
Api.msgLikeDetail,
queryParameters: {
'card_id': cardId,
@@ -113,7 +113,7 @@ abstract final class MsgHttp {
int? cursor,
int pageSize = 20,
}) async {
var res = await Request().get(
final res = await Request().get(
Api.msgSysNotify,
queryParameters: {
'cursor': ?cursor,
@@ -136,7 +136,7 @@ abstract final class MsgHttp {
static Future<LoadingState<Null>> msgSysUpdateCursor(int cursor) async {
String csrf = Accounts.main.csrf;
var res = await Request().get(
final res = await Request().get(
Api.msgSysUpdateCursor,
queryParameters: {
'csrf': csrf,
@@ -155,7 +155,7 @@ abstract final class MsgHttp {
required String bucket,
required String dir,
}) async {
var res = await Request().post(
final res = await Request().post(
Api.uploadImage,
data: FormData.fromMap({
'bucket': bucket,
@@ -183,7 +183,7 @@ abstract final class MsgHttp {
String? biz,
CancelToken? cancelToken,
}) async {
var res = await Request().post(
final res = await Request().post(
Api.uploadBfs,
data: FormData.fromMap({
'file_up': await MultipartFile.fromFile(path),
@@ -212,7 +212,7 @@ abstract final class MsgHttp {
'csrf_token': csrf,
'csrf': csrf,
});
var res = await Request().post(
final res = await Request().post(
HttpString.tUrl + Api.createTextDynamic,
data: data,
options: Options(contentType: Headers.formUrlEncodedContentType),
@@ -229,7 +229,7 @@ abstract final class MsgHttp {
Object? dynType,
Object? ridStr,
}) async {
var res = await Request().post(
final res = await Request().post(
Api.removeDynamic,
queryParameters: {
'platform': 'web',
@@ -260,7 +260,7 @@ abstract final class MsgHttp {
'csrf_token': csrf,
'csrf': csrf,
});
var res = await Request().post(
final res = await Request().post(
HttpString.tUrl + Api.removeMsg,
data: data,
options: Options(contentType: Headers.formUrlEncodedContentType),
@@ -277,7 +277,7 @@ abstract final class MsgHttp {
dynamic id,
) async {
String csrf = Accounts.main.csrf;
var res = await Request().post(
final res = await Request().post(
Api.delMsgfeed,
data: {
'tp': tp,
@@ -300,7 +300,7 @@ abstract final class MsgHttp {
Object id,
) async {
String csrf = Accounts.main.csrf;
var res = await Request().post(
final res = await Request().post(
HttpString.messageBaseUrl + Api.delSysMsg,
queryParameters: {
'mobi_app': 'android',
@@ -335,7 +335,7 @@ abstract final class MsgHttp {
'csrf_token': csrf,
'csrf': csrf,
});
var res = await Request().post(
final res = await Request().post(
HttpString.tUrl + Api.setTop,
data: data,
options: Options(contentType: Headers.formUrlEncodedContentType),
@@ -362,7 +362,7 @@ abstract final class MsgHttp {
'csrf_token': csrf,
'csrf': csrf,
});
var res = await Request().get(Api.ackSessionMsg, queryParameters: params);
final res = await Request().get(Api.ackSessionMsg, queryParameters: params);
if (res.data['code'] == 0) {
return const Success(null);
} else {
@@ -402,7 +402,7 @@ abstract final class MsgHttp {
'csrf': csrf,
};
Map<String, dynamic> params = await WbiSign.makSign(data);
var res = await Request().post(
final res = await Request().post(
Api.sendMsg,
queryParameters: <String, dynamic>{
'w_sender_uid': senderUid,
@@ -432,7 +432,7 @@ abstract final class MsgHttp {
required int noticeState,
}) async {
final csrf = Accounts.main.csrf;
var res = await Request().post(
final res = await Request().post(
Api.msgSetNotice,
data: {
'mobi_app': 'web',
@@ -461,7 +461,7 @@ abstract final class MsgHttp {
required dndUid,
}) async {
final csrf = Accounts.main.csrf;
var res = await Request().post(
final res = await Request().post(
Api.setMsgDnd,
data: {
'uid': uid,
@@ -486,7 +486,7 @@ abstract final class MsgHttp {
required talkerUid,
}) async {
final csrf = Accounts.main.csrf;
var res = await Request().post(
final res = await Request().post(
Api.setPushSs,
data: {
'setting': setting,
@@ -509,7 +509,7 @@ abstract final class MsgHttp {
required String uids,
}) async {
final csrf = Accounts.main.csrf;
var res = await Request().get(
final res = await Request().get(
Api.imUserInfos,
queryParameters: {
'uids': uids,
@@ -534,7 +534,7 @@ abstract final class MsgHttp {
required Object talkerUid,
}) async {
final csrf = Accounts.main.csrf;
var res = await Request().get(
final res = await Request().get(
Api.getSessionSs,
queryParameters: {
'talker_uid': talkerUid,
@@ -555,7 +555,7 @@ abstract final class MsgHttp {
required Object uidsStr,
}) async {
final csrf = Accounts.main.csrf;
var res = await Request().get(
final res = await Request().get(
Api.getMsgDnd,
queryParameters: {
'own_uid': Accounts.main.mid,
@@ -578,7 +578,7 @@ abstract final class MsgHttp {
}
static Future<LoadingState<SingleUnreadData>> msgUnread() async {
var res = await Request().get(
final res = await Request().get(
Api.msgUnread,
queryParameters: {
'build': 0,
@@ -595,7 +595,7 @@ abstract final class MsgHttp {
}
static Future<LoadingState<MsgFeedUnreadData>> msgFeedUnread() async {
var res = await Request().get(
final res = await Request().get(
Api.msgFeedUnread,
queryParameters: {
'build': 0,