import 'field_mapping.dart'; /// petsHeroAI 默认字段映射(原始字段 → 后端字段) /// /// 单一映射表,后端文档给的格式通常与此一致。 /// 不同应用若后端字段名不同,只需提供新的 [FieldMapping] 覆盖此表。 const FieldMapping petsHeroAIFieldMapping = FieldMapping({ // === 请求头 === 'pkg': 'portal', 'User_token': 'knight', // === 响应字段 === 'code': 'helm', 'msg': 'rampart', 'data': 'sidekick', // === 通用 query === 'app': 'sentinel', 'userId': 'asset', 'ch': 'crest', 'type': 'accolade', // === fast_login body === 'referer': 'digest', 'sign': 'resolution', 'deviceId': 'origin', // === 支付 === 'activityId': 'warrior', 'country': 'vambrace', 'client': 'filter', 'id': 'timing', 'filterStatus': 'quest', 'orderId': 'federation', 'payUrl': 'convert', 'productId': 'helm', 'paymentMethod': 'resource', 'paymentType': 'ceremony', 'signature': 'sample', 'purchaseData': 'merchant', // === 图片/视频 === 'categoryId': 'insignia', 'taskId': 'tree', 'prompt': 'ledger', 'resolution': 'guild', 'srcImgUrls': 'commission', 'fileName1': 'gateway', 'fileName2': 'action', 'contentType': 'pauldron', 'expectedSize': 'stronghold', 'page': 'trophy', 'pageSize': 'heatmap', 'cursor': 'platoon', 'declaration': 'declaration', 'quest': 'quest', 'imgCount': 'indicator', 'aspectRatio': 'caption', 'ext': 'nexus', 'imgUrl': 'congregation', 'poseId': 'profit', 'templateId': 'compendium', 'notification': 'notification', 'allowance': 'allowance', 'cosmos': 'cosmos', // === 响应 data(后端字段 → 原始字段,通过取反自动生效)=== 'userToken': 'reevaluate', 'credits': 'reveal', 'avatar': 'realm', 'userName': 'terminal', 'countryCode': 'navigate', 'extConfig': 'surge', 'appFbConfig': 'evolve', 'usign': 'retrospect', 'creditsRecordUrl': 'conquer', 'tgId': 'concession', 'tgName': 'defer', 'email': 'galaxy', 'forcePayCenter': 'upgrade', 't2IConfig': 'regulate', 'h5UrlConfig': 'pursue', 'payCenterUrl': 'switch', 'freeBlurTimes': 'vow', 'firstRegister': 'equip', 'isVip': 'generate', 'tags': 'rally', 'freeTimes': 'decree', 'subScribeValidTime': 'tokenize', 'status': 'line', 'productList': 'summon', 'paymentMethods': 'renew', 'guardian': 'guardian', 'curriculum': 'curriculum', 'forge': 'forge', 'tag': 'constrain', 'img': 'revenue', 'url': 'digitize', 'launchImgUrl': 'launchImgUrl', // === 反馈 === 'fileName': 'layer', 'fileUrls': 'inventory', 'content': 'cloak', });