备份恢复API格式规范整改

Signed-off-by: huaqingsimeng <qiukaiqing@huawei.com>
This commit is contained in:
huaqingsimeng 2023-07-21 09:53:53 +08:00
parent a8a3f8fdee
commit 5e70062e40
2 changed files with 6 additions and 6 deletions

View File

@ -25,7 +25,7 @@ export interface BundleVersion {
/** /**
* Indicates bundle`s version code. * Indicates bundle`s version code.
* *
* @type {number} * @type { number }
* @syscap SystemCapability.FileManagement.StorageService.Backup * @syscap SystemCapability.FileManagement.StorageService.Backup
* @StageModelOnly * @StageModelOnly
* @since 10 * @since 10
@ -35,7 +35,7 @@ export interface BundleVersion {
/** /**
* Indicates bundle`s version name. * Indicates bundle`s version name.
* *
* @type {string} * @type { string }
* @syscap SystemCapability.FileManagement.StorageService.Backup * @syscap SystemCapability.FileManagement.StorageService.Backup
* @StageModelOnly * @StageModelOnly
* @since 10 * @since 10

View File

@ -227,7 +227,7 @@ declare namespace backup {
* *
* @permission ohos.permission.BACKUP * @permission ohos.permission.BACKUP
* @param { string[] } bundlesToBackup Bundles to backup. * @param { string[] } bundlesToBackup Bundles to backup.
* @returns { Promise<void> } * @returns { Promise<void> } The promise returned by the function.
* @throws { BusinessError } 13600001 - IPC error * @throws { BusinessError } 13600001 - IPC error
* @throws { BusinessError } 13900001 - Operation not permitted * @throws { BusinessError } 13900001 - Operation not permitted
* @throws { BusinessError } 13900005 - I/O error * @throws { BusinessError } 13900005 - I/O error
@ -287,7 +287,7 @@ declare namespace backup {
* @param { number } remoteCapabilitiesFd Opened JSON file that stores remote device capabilities. * @param { number } remoteCapabilitiesFd Opened JSON file that stores remote device capabilities.
* You can use the getLocalCapabilities method to obtain the value. * You can use the getLocalCapabilities method to obtain the value.
* @param { string[] } bundlesToBackup Bundles to restore. * @param { string[] } bundlesToBackup Bundles to restore.
* @returns { Promise<void> } * @returns { Promise<void> } The promise returned by the function.
* @throws { BusinessError } 13600001 - IPC error * @throws { BusinessError } 13600001 - IPC error
* @throws { BusinessError } 13900001 - Operation not permitted * @throws { BusinessError } 13900001 - Operation not permitted
* @throws { BusinessError } 13900005 - I/O error * @throws { BusinessError } 13900005 - I/O error
@ -329,7 +329,7 @@ declare namespace backup {
* @permission ohos.permission.BACKUP * @permission ohos.permission.BACKUP
* @param { FileMeta } fileMeta Metadata of the file to be sent. Make sure that the backup framework holds * @param { FileMeta } fileMeta Metadata of the file to be sent. Make sure that the backup framework holds
* this file by calling getFileHandle. * this file by calling getFileHandle.
* @returns { Promise<void> } * @returns { Promise<void> } The promise returned by the function.
* @throws { BusinessError } 13600001 - IPC error * @throws { BusinessError } 13600001 - IPC error
* @throws { BusinessError } 13900001 - Operation not permitted * @throws { BusinessError } 13900001 - Operation not permitted
* @throws { BusinessError } 13900020 - Invalid argument * @throws { BusinessError } 13900020 - Invalid argument
@ -366,7 +366,7 @@ declare namespace backup {
* @permission ohos.permission.BACKUP * @permission ohos.permission.BACKUP
* @param { FileMeta } fileMeta Metadata of the file to be sent. Note that all the files should come * @param { FileMeta } fileMeta Metadata of the file to be sent. Note that all the files should come
* from the backup procedure or the getLocalCapabilities method. * from the backup procedure or the getLocalCapabilities method.
* @returns { Promise<void> } * @returns { Promise<void> } The promise returned by the function.
* @throws { BusinessError } 13600001 - IPC error * @throws { BusinessError } 13600001 - IPC error
* @throws { BusinessError } 13900001 - Operation not permitted * @throws { BusinessError } 13900001 - Operation not permitted
* @throws { BusinessError } 13900020 - Invalid argument * @throws { BusinessError } 13900020 - Invalid argument