From 8043ec7f3b7990f17716e21ff6e9e662b61a3427 Mon Sep 17 00:00:00 2001 From: heguokai <275503077@qq.com> Date: Mon, 28 Jul 2025 11:42:00 +0800 Subject: [PATCH 1/3] CES RecordData Signed-off-by: heguokai <275503077@qq.com> --- .../ani/common_event/ets/commonEvent/commonEventData.ets | 5 +++-- .../common_event/ets/commonEvent/commonEventPublishData.ets | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/interfaces/kits/ani/common_event/ets/commonEvent/commonEventData.ets b/interfaces/kits/ani/common_event/ets/commonEvent/commonEventData.ets index 00fc6730..027f90f3 100644 --- a/interfaces/kits/ani/common_event/ets/commonEvent/commonEventData.ets +++ b/interfaces/kits/ani/common_event/ets/commonEvent/commonEventData.ets @@ -12,13 +12,14 @@ * See the License for the specific language governing permissions and * limitations under the License. */ +type RecordData = undefined | null | Object | Record | Array; export interface CommonEventData { event: string; bundleName?: string; code?: int; data?: string; - parameters?: Record; + parameters?: RecordData; } class CommonEventDataImpl implements CommonEventData { @@ -26,5 +27,5 @@ class CommonEventDataImpl implements CommonEventData { public bundleName?: string | undefined; public code?: int | undefined; public data?: string | undefined; - public parameters?: Record | undefined; + public parameters?: RecordData | undefined; } \ No newline at end of file diff --git a/interfaces/kits/ani/common_event/ets/commonEvent/commonEventPublishData.ets b/interfaces/kits/ani/common_event/ets/commonEvent/commonEventPublishData.ets index f5f84e96..4920920c 100644 --- a/interfaces/kits/ani/common_event/ets/commonEvent/commonEventPublishData.ets +++ b/interfaces/kits/ani/common_event/ets/commonEvent/commonEventPublishData.ets @@ -12,6 +12,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ +type RecordData = undefined | null | Object | Record | Array; export interface CommonEventPublishData { bundleName?: string; @@ -20,5 +21,5 @@ export interface CommonEventPublishData { subscriberPermissions?: Array; isOrdered?: boolean; isSticky?: boolean; - parameters?: Record; + parameters?: RecordData; } -- Gitee From d927345ca08bb66f0d1f919e189ee548be0c8d00 Mon Sep 17 00:00:00 2001 From: heguokai <275503077@qq.com> Date: Fri, 1 Aug 2025 18:12:57 +0800 Subject: [PATCH 2/3] modify to Record Signed-off-by: heguokai <275503077@qq.com> --- .../kits/ani/common_event/ets/commonEvent/commonEventData.ets | 4 ++-- .../common_event/ets/commonEvent/commonEventPublishData.ets | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/interfaces/kits/ani/common_event/ets/commonEvent/commonEventData.ets b/interfaces/kits/ani/common_event/ets/commonEvent/commonEventData.ets index 027f90f3..d4c03f24 100644 --- a/interfaces/kits/ani/common_event/ets/commonEvent/commonEventData.ets +++ b/interfaces/kits/ani/common_event/ets/commonEvent/commonEventData.ets @@ -19,7 +19,7 @@ export interface CommonEventData { bundleName?: string; code?: int; data?: string; - parameters?: RecordData; + parameters?: Record; } class CommonEventDataImpl implements CommonEventData { @@ -27,5 +27,5 @@ class CommonEventDataImpl implements CommonEventData { public bundleName?: string | undefined; public code?: int | undefined; public data?: string | undefined; - public parameters?: RecordData | undefined; + public parameters?: Record | undefined; } \ No newline at end of file diff --git a/interfaces/kits/ani/common_event/ets/commonEvent/commonEventPublishData.ets b/interfaces/kits/ani/common_event/ets/commonEvent/commonEventPublishData.ets index 4920920c..6d90627f 100644 --- a/interfaces/kits/ani/common_event/ets/commonEvent/commonEventPublishData.ets +++ b/interfaces/kits/ani/common_event/ets/commonEvent/commonEventPublishData.ets @@ -21,5 +21,5 @@ export interface CommonEventPublishData { subscriberPermissions?: Array; isOrdered?: boolean; isSticky?: boolean; - parameters?: RecordData; + parameters?: Record; } -- Gitee From b0d8ab5f84978c40349781d994068706651f1fb2 Mon Sep 17 00:00:00 2001 From: heguokai <275503077@qq.com> Date: Fri, 1 Aug 2025 18:19:10 +0800 Subject: [PATCH 3/3] modify Signed-off-by: heguokai <275503077@qq.com> --- .../kits/ani/common_event/ets/commonEvent/commonEventData.ets | 4 ++-- .../common_event/ets/commonEvent/commonEventPublishData.ets | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/interfaces/kits/ani/common_event/ets/commonEvent/commonEventData.ets b/interfaces/kits/ani/common_event/ets/commonEvent/commonEventData.ets index d4c03f24..58340496 100644 --- a/interfaces/kits/ani/common_event/ets/commonEvent/commonEventData.ets +++ b/interfaces/kits/ani/common_event/ets/commonEvent/commonEventData.ets @@ -19,7 +19,7 @@ export interface CommonEventData { bundleName?: string; code?: int; data?: string; - parameters?: Record; + parameters?: Record; } class CommonEventDataImpl implements CommonEventData { @@ -27,5 +27,5 @@ class CommonEventDataImpl implements CommonEventData { public bundleName?: string | undefined; public code?: int | undefined; public data?: string | undefined; - public parameters?: Record | undefined; + public parameters?: Record | undefined; } \ No newline at end of file diff --git a/interfaces/kits/ani/common_event/ets/commonEvent/commonEventPublishData.ets b/interfaces/kits/ani/common_event/ets/commonEvent/commonEventPublishData.ets index 6d90627f..cee731d1 100644 --- a/interfaces/kits/ani/common_event/ets/commonEvent/commonEventPublishData.ets +++ b/interfaces/kits/ani/common_event/ets/commonEvent/commonEventPublishData.ets @@ -21,5 +21,5 @@ export interface CommonEventPublishData { subscriberPermissions?: Array; isOrdered?: boolean; isSticky?: boolean; - parameters?: Record; + parameters?: Record; } -- Gitee