From 5e0ba12c9c9476e77b0b158678b1c3e288d6d67b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=AD=90=E8=B4=A4?= Date: Tue, 10 Mar 2026 19:37:22 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=88=E5=B9=B6=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/network/home_api.dart | 1 + lib/network/home_api.g.dart | 3 +++ 2 files changed, 4 insertions(+) diff --git a/lib/network/home_api.dart b/lib/network/home_api.dart index 169d796..1878158 100644 --- a/lib/network/home_api.dart +++ b/lib/network/home_api.dart @@ -23,6 +23,7 @@ abstract class HomeApi { @Query('pageNum') required int pageNum, @Query('pageSize') required int pageSize, @Query('type') required int type, + @Query('cityCode') int? cityCode, }); @GET(ApiUrls.listMatchmakerTask) diff --git a/lib/network/home_api.g.dart b/lib/network/home_api.g.dart index 365f921..c66ab30 100644 --- a/lib/network/home_api.g.dart +++ b/lib/network/home_api.g.dart @@ -25,13 +25,16 @@ class _HomeApi implements HomeApi { required int pageNum, required int pageSize, required int type, + int? cityCode, }) async { final _extra = {}; final queryParameters = { r'pageNum': pageNum, r'pageSize': pageSize, r'type': type, + r'cityCode': cityCode, }; + queryParameters.removeWhere((k, v) => v == null); final _headers = {}; const Map? _data = null; final _options =