From f176f0a636d2c734f96f634979eccd6519d07a4a Mon Sep 17 00:00:00 2001 From: zhang_hao_zheng Date: Mon, 25 Aug 2025 20:53:06 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=94=B9RecordData=E4=B8=BARecord?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zhang_hao_zheng Change-Id: I6c1e15e6dcc84230b2e234eb29bfaccc6f5f2a27 --- .../@ohos.app.ability.AtomicServiceOptions.ets | 2 +- .../@ohos.app.ability.InsightIntentExecutor.ets | 16 ++++++++-------- .../ets/@ohos.app.ability.OpenLinkOptions.ets | 4 ++-- ...hos.app.ability.UIExtensionContentSession.ets | 6 +++--- frameworks/ets/ets/@ohos.app.ability.Want.ets | 2 +- .../ets/ets/@ohos.app.ability.insightIntent.ets | 4 ++-- .../@ohos.app.ability.insightIntentDriver.ets | 2 +- .../ets/ets/@ohos.app.ability.wantAgent.ets | 4 ++-- frameworks/ets/ets/application/CustomData.ets | 4 ++-- .../ets/ets/application/UIAbilityContext.ets | 4 ++-- frameworks/ets/ets/wantAgent/triggerInfo.ets | 8 ++++---- frameworks/ets/ets/wantAgent/wantAgentInfo.ets | 8 ++++---- 12 files changed, 32 insertions(+), 32 deletions(-) diff --git a/frameworks/ets/ets/@ohos.app.ability.AtomicServiceOptions.ets b/frameworks/ets/ets/@ohos.app.ability.AtomicServiceOptions.ets index 93b3c416704..3cd0dea4410 100644 --- a/frameworks/ets/ets/@ohos.app.ability.AtomicServiceOptions.ets +++ b/frameworks/ets/ets/@ohos.app.ability.AtomicServiceOptions.ets @@ -18,5 +18,5 @@ import { RecordData } from '@ohos.base'; export default class AtomicServiceOptions extends StartOptions { flags?: int; - parameters?: RecordData; + parameters?: Record; } \ No newline at end of file diff --git a/frameworks/ets/ets/@ohos.app.ability.InsightIntentExecutor.ets b/frameworks/ets/ets/@ohos.app.ability.InsightIntentExecutor.ets index 2cf3376ec9b..c3c11d824fa 100644 --- a/frameworks/ets/ets/@ohos.app.ability.InsightIntentExecutor.ets +++ b/frameworks/ets/ets/@ohos.app.ability.InsightIntentExecutor.ets @@ -31,7 +31,7 @@ export default class InsightIntentExecutor { public callOnExecuteInUIAbilityForegroundMode(name: string, param: Record, pageLoader: window.WindowStage): insightIntent.ExecuteResult { - let p = this.onExecuteInUIAbilityForegroundMode(name, param as RecordData, pageLoader); + let p = this.onExecuteInUIAbilityForegroundMode(name, param as Record, pageLoader); if (p instanceof Promise) { this.isOnExecuteInUIAbilityForegroundModeAsync = true; p.then((result: insightIntent.ExecuteResult): void => { @@ -47,7 +47,7 @@ export default class InsightIntentExecutor { public callOnExecuteInUIAbilityBackgroundMode(name: string, param: Record): insightIntent.ExecuteResult { - let p = this.onExecuteInUIAbilityBackgroundMode(name, param as RecordData); + let p = this.onExecuteInUIAbilityBackgroundMode(name, param as Record); if (p instanceof Promise) { this.isOnExecuteInUIAbilityBackgroundModeAsync = true; p.then((result: insightIntent.ExecuteResult): void => { @@ -63,7 +63,7 @@ export default class InsightIntentExecutor { public callOnExecuteInUIExtensionAbility(name: string, param: Record, pageLoader: UIExtensionContentSession): insightIntent.ExecuteResult { - let p = this.onExecuteInUIExtensionAbility(name, param as RecordData, pageLoader); + let p = this.onExecuteInUIExtensionAbility(name, param as Record, pageLoader); if (p instanceof Promise) { this.isOnExecuteInUIExtensionAbilityAsync = true; p.then((result: insightIntent.ExecuteResult): void => { @@ -79,7 +79,7 @@ export default class InsightIntentExecutor { public callOnExecuteInServiceExtensionAbility(name: string, param: Record): insightIntent.ExecuteResult { - let p = this.onExecuteInServiceExtensionAbility(name, param as RecordData); + let p = this.onExecuteInServiceExtensionAbility(name, param as Record); if (p instanceof Promise) { this.isOnExecuteInServiceExtensionAbilityAsync = true; p.then((result: insightIntent.ExecuteResult): void => { @@ -93,25 +93,25 @@ export default class InsightIntentExecutor { } } - onExecuteInUIAbilityForegroundMode(name: string, param: RecordData, pageLoader: window.WindowStage): + onExecuteInUIAbilityForegroundMode(name: string, param: Record, pageLoader: window.WindowStage): insightIntent.ExecuteResult | Promise { let ret: insightIntent.ExecuteResult = {code: 0}; return ret; } - onExecuteInUIAbilityBackgroundMode(name: string, param: RecordData): + onExecuteInUIAbilityBackgroundMode(name: string, param: Record): insightIntent.ExecuteResult | Promise { let ret: insightIntent.ExecuteResult = {code: 0}; return ret; } - onExecuteInUIExtensionAbility(name: string, param: RecordData, pageLoader: UIExtensionContentSession): + onExecuteInUIExtensionAbility(name: string, param: Record, pageLoader: UIExtensionContentSession): insightIntent.ExecuteResult | Promise { let ret: insightIntent.ExecuteResult = {code: 0}; return ret; } - onExecuteInServiceExtensionAbility(name: string, param: RecordData): + onExecuteInServiceExtensionAbility(name: string, param: Record): insightIntent.ExecuteResult | Promise { let ret: insightIntent.ExecuteResult = {code: 0}; return ret; diff --git a/frameworks/ets/ets/@ohos.app.ability.OpenLinkOptions.ets b/frameworks/ets/ets/@ohos.app.ability.OpenLinkOptions.ets index 683e8cd532c..6299db81749 100644 --- a/frameworks/ets/ets/@ohos.app.ability.OpenLinkOptions.ets +++ b/frameworks/ets/ets/@ohos.app.ability.OpenLinkOptions.ets @@ -17,10 +17,10 @@ import { RecordData } from '@ohos.base'; export default interface OpenLinkOptions { appLinkingOnly?: boolean; - parameters?: RecordData; + parameters?: Record; } class OpenLinkOptionsImpl implements OpenLinkOptions { appLinkingOnly?: boolean|undefined; - parameters?: RecordData|undefined; + parameters?: Record|undefined; } diff --git a/frameworks/ets/ets/@ohos.app.ability.UIExtensionContentSession.ets b/frameworks/ets/ets/@ohos.app.ability.UIExtensionContentSession.ets index 41b871e991c..237fd02da59 100644 --- a/frameworks/ets/ets/@ohos.app.ability.UIExtensionContentSession.ets +++ b/frameworks/ets/ets/@ohos.app.ability.UIExtensionContentSession.ets @@ -63,7 +63,7 @@ export default class UIExtensionContentSession { private native nativeStartAbilityByTypeSync(type: string, wantParam: Record, startCallback: AbilityStartCallback): BusinessError; native nativeSetWindowPrivacyMode(isPrivacyMode: boolean, callback:AsyncCallbackWrapper): void; - sendData(data: RecordData): void { + sendData(data: Record): void { this.nativeSendData(data as Record); } @@ -121,7 +121,7 @@ export default class UIExtensionContentSession { return p; } - startAbilityByType(type: string, wantParam: RecordData, startCallback: AbilityStartCallback, + startAbilityByType(type: string, wantParam: Record, startCallback: AbilityStartCallback, callback: AsyncCallback): void { let p1 = taskpool.execute((): BusinessError => { return this.nativeStartAbilityByTypeSync(type, wantParam as Record, startCallback); @@ -138,7 +138,7 @@ export default class UIExtensionContentSession { }); } - startAbilityByType(type: string, wantParam: RecordData, + startAbilityByType(type: string, wantParam: Record, startCallback: AbilityStartCallback): Promise { let p = new Promise((resolve: (v: undefined) => void, reject: (error: BusinessError) => void): void => { let p1 = taskpool.execute((): BusinessError => { diff --git a/frameworks/ets/ets/@ohos.app.ability.Want.ets b/frameworks/ets/ets/@ohos.app.ability.Want.ets index 8e926a2357f..0eb0cec5513 100644 --- a/frameworks/ets/ets/@ohos.app.ability.Want.ets +++ b/frameworks/ets/ets/@ohos.app.ability.Want.ets @@ -399,7 +399,7 @@ export default class Want { type?: string; flags?: int; action?: string; - parameters?: RecordData; + parameters?: Record; entities?: Array; moduleName?: string; readonly fds?: Record; diff --git a/frameworks/ets/ets/@ohos.app.ability.insightIntent.ets b/frameworks/ets/ets/@ohos.app.ability.insightIntent.ets index 1667a11434d..2e2a225bf35 100644 --- a/frameworks/ets/ets/@ohos.app.ability.insightIntent.ets +++ b/frameworks/ets/ets/@ohos.app.ability.insightIntent.ets @@ -28,14 +28,14 @@ namespace insightIntent { export interface ExecuteResult { code: int; - result?: RecordData; + result?: Record; uris?: Array; flags?: int; } export class ExecuteResultInner implements ExecuteResult{ code: int; - result?: RecordData; + result?: Record; uris?: Array; flags?: int; } diff --git a/frameworks/ets/ets/@ohos.app.ability.insightIntentDriver.ets b/frameworks/ets/ets/@ohos.app.ability.insightIntentDriver.ets index 9400c228a80..57542888df3 100644 --- a/frameworks/ets/ets/@ohos.app.ability.insightIntentDriver.ets +++ b/frameworks/ets/ets/@ohos.app.ability.insightIntentDriver.ets @@ -28,7 +28,7 @@ export default namespace insightIntentDriver { moduleName: string; abilityName: string; insightIntentName: string; - insightIntentParam: RecordData; + insightIntentParam: Record; executeMode: insightIntent.ExecuteMode; displayId?: long; uris?: Array; diff --git a/frameworks/ets/ets/@ohos.app.ability.wantAgent.ets b/frameworks/ets/ets/@ohos.app.ability.wantAgent.ets index 92014f47253..8a153dac7ae 100644 --- a/frameworks/ets/ets/@ohos.app.ability.wantAgent.ets +++ b/frameworks/ets/ets/@ohos.app.ability.wantAgent.ets @@ -323,7 +323,7 @@ namespace wantAgent { want: Want; finalCode: int; finalData: string; - extraInfo?: RecordData; + extraInfo?: Record; } class CompleteDataImpl implements CompleteData { @@ -331,7 +331,7 @@ namespace wantAgent { public want: Want; public finalCode: int; public finalData: string; - public extraInfo?: RecordData; + public extraInfo?: Record; } export type TriggerInfo = _TriggerInfo; diff --git a/frameworks/ets/ets/application/CustomData.ets b/frameworks/ets/ets/application/CustomData.ets index 2f1a7d3dbd1..d657fae1e50 100644 --- a/frameworks/ets/ets/application/CustomData.ets +++ b/frameworks/ets/ets/application/CustomData.ets @@ -15,9 +15,9 @@ import { RecordData } from '@ohos.base'; export default interface CustomData { - data: RecordData; + data: Record; } class CustomDataInner implements CustomData { - public data: RecordData = {}; + public data: Record = {}; } \ No newline at end of file diff --git a/frameworks/ets/ets/application/UIAbilityContext.ets b/frameworks/ets/ets/application/UIAbilityContext.ets index 87d95d25f5b..25966b401bd 100644 --- a/frameworks/ets/ets/application/UIAbilityContext.ets +++ b/frameworks/ets/ets/application/UIAbilityContext.ets @@ -460,7 +460,7 @@ export default class UIAbilityContext extends Context { this.nativeSetColorMode(colorMode); } - startAbilityByType(type: string, wantParam: RecordData, startCallback: AbilityStartCallback, + startAbilityByType(type: string, wantParam: Record, startCallback: AbilityStartCallback, callback: AsyncCallback): void { let p1 = taskpool.execute((): BusinessError => { return this.nativeStartAbilityByTypeSync(type, wantParam as Record, startCallback); @@ -511,7 +511,7 @@ hideAbility(): Promise { return p; } - startAbilityByType(type: string, wantParam: RecordData, + startAbilityByType(type: string, wantParam: Record, startCallback: AbilityStartCallback): Promise { let p = new Promise((resolve: (v: undefined) => void, reject: (error: BusinessError) => void): void => { let p1 = taskpool.execute((): BusinessError => { diff --git a/frameworks/ets/ets/wantAgent/triggerInfo.ets b/frameworks/ets/ets/wantAgent/triggerInfo.ets index dc098bf13ff..c19d4dc550d 100644 --- a/frameworks/ets/ets/wantAgent/triggerInfo.ets +++ b/frameworks/ets/ets/wantAgent/triggerInfo.ets @@ -21,8 +21,8 @@ export interface TriggerInfo { code: number; want?: Want; permission?: string; - extraInfo?: RecordData; - extraInfos?: RecordData; + extraInfo?: Record; + extraInfos?: Record; startOptions?: StartOptions; } @@ -30,7 +30,7 @@ class TriggerInfoImpl implements TriggerInfo { public code: number; public want?: Want; public permission?: string; - public extraInfo?: RecordData; - public extraInfos?: RecordData; + public extraInfo?: Record; + public extraInfos?: Record; public startOptions?: StartOptions; } diff --git a/frameworks/ets/ets/wantAgent/wantAgentInfo.ets b/frameworks/ets/ets/wantAgent/wantAgentInfo.ets index d1f23ac97c6..ce2f86ee508 100644 --- a/frameworks/ets/ets/wantAgent/wantAgentInfo.ets +++ b/frameworks/ets/ets/wantAgent/wantAgentInfo.ets @@ -23,8 +23,8 @@ export interface WantAgentInfo { actionType?: abilityWantAgent.OperationType; requestCode: number; actionFlags?: Array; - extraInfo?: RecordData; - extraInfos?: RecordData; + extraInfo?: Record; + extraInfos?: Record; } class WantAgentInfoImpl implements WantAgentInfo { @@ -32,8 +32,8 @@ class WantAgentInfoImpl implements WantAgentInfo { public actionType?: abilityWantAgent.OperationType; public requestCode: number; public actionFlags?: Array; - public extraInfo?: RecordData; - public extraInfos?: RecordData; + public extraInfo?: Record; + public extraInfos?: Record; constructor(wants: Array) { this.wants = wants; -- Gitee