From 7be1ca00066f9c7494a2c1d0c158af838e444994 Mon Sep 17 00:00:00 2001 From: gaozhichao Date: Thu, 31 Jul 2025 20:55:52 +0800 Subject: [PATCH] =?UTF-8?q?[fix]=20ArkTs=E6=94=AF=E6=8C=81SDK=E6=94=B9?= =?UTF-8?q?=E9=80=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: gaozhichao --- .../idl/ohos.time_service.systemDateTime.taihe | 8 ++++---- .../idl/ohos.time_service.systemtimer.taihe | 16 ++++++++-------- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/framework/js/taihe/system_datetime/idl/ohos.time_service.systemDateTime.taihe b/framework/js/taihe/system_datetime/idl/ohos.time_service.systemDateTime.taihe index fe1e165d..38ec55ea 100644 --- a/framework/js/taihe/system_datetime/idl/ohos.time_service.systemDateTime.taihe +++ b/framework/js/taihe/system_datetime/idl/ohos.time_service.systemDateTime.taihe @@ -23,14 +23,14 @@ enum TimeType: i32 { ACTIVE } -@gen_promise("getTimezone") -@gen_async("getTimezone") +@gen_promise("getTimezoneReturnPromise") +@gen_async("getTimezoneWithCallback") function GetTimezoneSync(): String; function GetUptime(timeType: TimeType, isNanoseconds: Optional): i64; function GetTime(isNanoseconds: Optional): i64; -@gen_promise("setTime") -@gen_async("setTime") +@gen_promise("setTimeReturnPromise") +@gen_async("setTimeWithCallback") function SetTimeSync(time: i64); \ No newline at end of file diff --git a/framework/js/taihe/system_timer/idl/ohos.time_service.systemtimer.taihe b/framework/js/taihe/system_timer/idl/ohos.time_service.systemtimer.taihe index 6c185d0e..d265102f 100644 --- a/framework/js/taihe/system_timer/idl/ohos.time_service.systemtimer.taihe +++ b/framework/js/taihe/system_timer/idl/ohos.time_service.systemtimer.taihe @@ -26,18 +26,18 @@ enum TimerType: i32 { TIMER_TYPE_EXACT = 4 } -@gen_promise("createTimer") -@gen_async("createTimer") +@gen_promise("createTimerReturnPromise") +@gen_async("createTimerWithCallback") function CreateTimerSync(options: TimerOptions): i64; -@gen_promise("startTimer") -@gen_async("startTimer") +@gen_promise("startTimerReturnPromise") +@gen_async("startTimerWithCallback") function StartTimerSync(timer: i64, triggerTime: i64); -@gen_promise("stopTimer") -@gen_async("stopTimer") +@gen_promise("stopTimerReturnPromise") +@gen_async("stopTimerWithCallback") function StopTimerSync(timer: i64); -@gen_promise("destroyTimer") -@gen_async("destroyTimer") +@gen_promise("destroyTimerReturnPromise") +@gen_async("destroyTimerWithCallback") function DestroyTimerSync(timer: i64); \ No newline at end of file -- Gitee