| 
						
						
							
								
							
						
						
					 | 
					 | 
					@ -63,6 +63,8 @@ class Api {
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        return res;
 | 
					 | 
					 | 
					 | 
					        return res;
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					      };
 | 
					 | 
					 | 
					 | 
					      };
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					  static final _fullPathRegExp = RegExp('http(s?)://');
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  static Future<T?> _get<T>(
 | 
					 | 
					 | 
					 | 
					  static Future<T?> _get<T>(
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    String path,
 | 
					 | 
					 | 
					 | 
					    String path,
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    BeanBuilder<T> builder, {
 | 
					 | 
					 | 
					 | 
					    BeanBuilder<T> builder, {
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					 | 
					@ -72,13 +74,15 @@ class Api {
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  }) =>
 | 
					 | 
					 | 
					 | 
					  }) =>
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					      http
 | 
					 | 
					 | 
					 | 
					      http
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					          .get(
 | 
					 | 
					 | 
					 | 
					          .get(
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        Uri(
 | 
					 | 
					 | 
					 | 
					        path.startsWith(_fullPathRegExp)
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					          scheme: Apis.apiScheme,
 | 
					 | 
					 | 
					 | 
					            ? Uri.parse(path)
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					          host: Apis.apiHost,
 | 
					 | 
					 | 
					 | 
					            : Uri(
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					          port: Apis.apiPort,
 | 
					 | 
					 | 
					 | 
					                scheme: Apis.apiScheme,
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					          queryParameters: queryParams,
 | 
					 | 
					 | 
					 | 
					                host: Apis.apiHost,
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					          path: path,
 | 
					 | 
					 | 
					 | 
					                port: Apis.apiPort,
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        ),
 | 
					 | 
					 | 
					 | 
					                queryParameters: queryParams,
 | 
				
			
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					                path: path,
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					              ),
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        headers: <String, String>{
 | 
					 | 
					 | 
					 | 
					        headers: <String, String>{
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					          HttpHeaders.contentTypeHeader: ContentType.json.toString(),
 | 
					 | 
					 | 
					 | 
					          HttpHeaders.contentTypeHeader: ContentType.json.toString(),
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        }..addAll(
 | 
					 | 
					 | 
					 | 
					        }..addAll(
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					 | 
					@ -103,12 +107,14 @@ class Api {
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  }) =>
 | 
					 | 
					 | 
					 | 
					  }) =>
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					      http
 | 
					 | 
					 | 
					 | 
					      http
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					          .post(
 | 
					 | 
					 | 
					 | 
					          .post(
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        Uri(
 | 
					 | 
					 | 
					 | 
					        path.startsWith(_fullPathRegExp)
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					          scheme: Apis.apiScheme,
 | 
					 | 
					 | 
					 | 
					            ? Uri.parse(path)
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					          host: Apis.apiHost,
 | 
					 | 
					 | 
					 | 
					            : Uri(
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					          port: Apis.apiPort,
 | 
					 | 
					 | 
					 | 
					                scheme: Apis.apiScheme,
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					          path: path,
 | 
					 | 
					 | 
					 | 
					                host: Apis.apiHost,
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        ),
 | 
					 | 
					 | 
					 | 
					                port: Apis.apiPort,
 | 
				
			
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					                path: path,
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					              ),
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        body: jsonEncode(body),
 | 
					 | 
					 | 
					 | 
					        body: jsonEncode(body),
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        headers: <String, String>{
 | 
					 | 
					 | 
					 | 
					        headers: <String, String>{
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					          HttpHeaders.contentTypeHeader: ContentType.json.toString(),
 | 
					 | 
					 | 
					 | 
					          HttpHeaders.contentTypeHeader: ContentType.json.toString(),
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
					 | 
					@ -199,6 +205,26 @@ class Api {
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        Apis.scheme.userLikes,
 | 
					 | 
					 | 
					 | 
					        Apis.scheme.userLikes,
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        (e) => (e['list'] as List).cast<int>(),
 | 
					 | 
					 | 
					 | 
					        (e) => (e['list'] as List).cast<int>(),
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					      );
 | 
					 | 
					 | 
					 | 
					      );
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					  static Future<AppBulletinResp?> checkBulletin(bool isWeb) => _get(
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					        Apis.appBulletinUrl(isWeb),
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					        AppBulletinResp.fromMap,
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					        ignoreErrorHandle: true,
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					        ignoreToken: true,
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					      ).catchError((_) {});
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					}
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					class AppBulletinResp {
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					  int? id;
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					  bool? once;
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					  String? title;
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					  String? content;
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					  AppBulletinResp.fromMap(Map map)
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					      : id = map['id'],
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					        once = map['once'],
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					        title = map['title'],
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					        content = map['content'];
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					}
 | 
					 | 
					 | 
					 | 
					}
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					class MarketSchemeTransMetaDataResp {
 | 
					 | 
					 | 
					 | 
					class MarketSchemeTransMetaDataResp {
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					 | 
					
 
 |