From 4629e80924f63c341b384bf428f039e3d37afa41 Mon Sep 17 00:00:00 2001 From: qianyong325 Date: Thu, 4 Sep 2025 13:56:39 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=87=E4=BB=B6=E6=9C=8D=E5=8A=A1=201.2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: qianyong325 --- api/@ohos.file.volumeManager.d.ts | 44 ++++++++++++++++++++----------- api/@ohos.fileshare.d.ts | 6 +++-- 2 files changed, 32 insertions(+), 18 deletions(-) diff --git a/api/@ohos.file.volumeManager.d.ts b/api/@ohos.file.volumeManager.d.ts index 1b90ba7c3f..9eb81697ad 100644 --- a/api/@ohos.file.volumeManager.d.ts +++ b/api/@ohos.file.volumeManager.d.ts @@ -177,7 +177,8 @@ parameters are left unspecified; * @throws { BusinessError } 13900042 - Unknown error. * @syscap SystemCapability.FileManagement.StorageService.Volume * @systemapi - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ function mount(volumeId: string, callback: AsyncCallback): void; @@ -200,7 +201,8 @@ parameters are left unspecified; * @throws { BusinessError } 13900042 - Unknown error. * @syscap SystemCapability.FileManagement.StorageService.Volume * @systemapi - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ function mount(volumeId: string): Promise; @@ -223,7 +225,8 @@ parameters are left unspecified; * @throws { BusinessError } 13900042 - Unknown error. * @syscap SystemCapability.FileManagement.StorageService.Volume * @systemapi - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ function unmount(volumeId: string, callback: AsyncCallback): void; @@ -246,7 +249,8 @@ parameters are left unspecified; * @throws { BusinessError } 13900042 - Unknown error. * @syscap SystemCapability.FileManagement.StorageService.Volume * @systemapi - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ function unmount(volumeId: string): Promise; @@ -308,7 +312,8 @@ parameters are left unspecified; * @throws { BusinessError } 13900042 - Unknown error. * @syscap SystemCapability.FileManagement.StorageService.Volume * @systemapi - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ function getVolumeById(volumeId: string, callback: AsyncCallback): void; @@ -328,7 +333,8 @@ parameters are left unspecified; * @throws { BusinessError } 13900042 - Unknown error. * @syscap SystemCapability.FileManagement.StorageService.Volume * @systemapi - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ function getVolumeById(volumeId: string): Promise; @@ -351,7 +357,8 @@ parameters are left unspecified; * @throws { BusinessError } 13900042 - Unknown error. * @syscap SystemCapability.FileManagement.StorageService.Volume * @systemapi - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ function setVolumeDescription(uuid: string, description: string, callback: AsyncCallback): void; @@ -374,7 +381,8 @@ parameters are left unspecified; * @throws { BusinessError } 13900042 - Unknown error. * @syscap SystemCapability.FileManagement.StorageService.Volume * @systemapi - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ function setVolumeDescription(uuid: string, description: string): Promise; @@ -397,7 +405,8 @@ parameters are left unspecified; * @throws { BusinessError } 13900042 - Unknown error. * @syscap SystemCapability.FileManagement.StorageService.Volume * @systemapi - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ function format(volumeId: string, fsType: string, callback: AsyncCallback): void; @@ -420,7 +429,8 @@ parameters are left unspecified; * @throws { BusinessError } 13900042 - Unknown error. * @syscap SystemCapability.FileManagement.StorageService.Volume * @systemapi - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ function format(volumeId: string, fsType: string): Promise; @@ -429,7 +439,7 @@ parameters are left unspecified; * * @permission ohos.permission.MOUNT_FORMAT_MANAGER * @param { string } diskId - The id of the disk - * @param { number } type - Type of partition such as private partition or public partition + * @param { int } type - Type of partition such as private partition or public partition * @param { AsyncCallback } callback - callback * @throws { BusinessError } 201 - Permission verification failed. * @throws { BusinessError } 202 - The caller is not a system application. @@ -441,16 +451,17 @@ parameters are left unspecified; * @throws { BusinessError } 13900042 - Unknown error. * @syscap SystemCapability.FileManagement.StorageService.Volume * @systemapi - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ - function partition(diskId: string, type: number, callback: AsyncCallback): void; + function partition(diskId: string, type: int, callback: AsyncCallback): void; /** * Partition. * * @permission ohos.permission.MOUNT_FORMAT_MANAGER * @param { string } diskId - The id of the disk - * @param { number } type - Type of partition such as private partition or public partition + * @param { int } type - Type of partition such as private partition or public partition * @returns { Promise } return Promise * @throws { BusinessError } 201 - Permission verification failed. * @throws { BusinessError } 202 - The caller is not a system application. @@ -462,9 +473,10 @@ parameters are left unspecified; * @throws { BusinessError } 13900042 - Unknown error. * @syscap SystemCapability.FileManagement.StorageService.Volume * @systemapi - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ - function partition(diskId: string, type: number): Promise; + function partition(diskId: string, type: int): Promise; } export default volumeManager; diff --git a/api/@ohos.fileshare.d.ts b/api/@ohos.fileshare.d.ts index f42bb98787..224387f9be 100644 --- a/api/@ohos.fileshare.d.ts +++ b/api/@ohos.fileshare.d.ts @@ -346,7 +346,8 @@ declare namespace fileShare { * @throws { BusinessError } 13900001 - Operation not permitted. * @throws { BusinessError } 13900042 - Out of memory * @syscap SystemCapability.FileManagement.AppFileService.FolderAuthorization - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ function revokePermission(policies: Array): Promise; @@ -410,7 +411,8 @@ declare namespace fileShare { * @throws { BusinessError } 801 - Capability not supported. * @throws { BusinessError } 13900042 - Out of memory * @syscap SystemCapability.FileManagement.AppFileService.FolderAuthorization - * @since 17 + * @since arkts {'1.1':'17', '1.2':'20'} + * @arkts 1.1&1.2 */ function checkPersistentPermission(policies: Array): Promise>; -- Gitee