fix interface

Signed-off-by: zuojiangjiang <zuojiangjiang@huawei.com>
This commit is contained in:
zuojiangjiang 2024-01-09 20:07:03 +08:00
parent f0a6ab0941
commit 941f041dc8
2 changed files with 3 additions and 30 deletions

View File

@ -820,8 +820,6 @@ declare namespace cloudData {
* @param { Array<Participant> } participants - Participants to share.
* @param { Array<string> } [columns] - Columns to be shared.
* @returns { Promise<relationalStore.ResultSet> } - Promise used to return {@link relationalStore.ResultSet}.
* @throws { BusinessError } 201 - Permission verification failed, which
* is usually returned by <b>VerifyAccessToken</b>.
* @throws { BusinessError } 202 - Permission verification failed, which is
* returned when the system API is not called by a system application.
* @throws { BusinessError } 401 - Parameter error.
@ -846,8 +844,6 @@ declare namespace cloudData {
* @param { Array<Participant> } participants - Participants to share.
* @param { AsyncCallback<relationalStore.ResultSet> } callback - Indicates the
* callback invoked to return the {@link relationalStore.ResultSet}.
* @throws { BusinessError } 201 - Permission verification failed, which
* is usually returned by <b>VerifyAccessToken</b>.
* @throws { BusinessError } 202 - Permission verification failed, which is
* returned when the system API is not called by a system application.
* @throws { BusinessError } 401 - Parameter error.
@ -873,8 +869,6 @@ declare namespace cloudData {
* @param { Array<string> } columns - Columns to be shared.
* @param { AsyncCallback<relationalStore.ResultSet> } callback - Indicates the
* callback invoked to return the {@link relationalStore.ResultSet}.
* @throws { BusinessError } 201 - Permission verification failed, which
* is usually returned by <b>VerifyAccessToken</b>.
* @throws { BusinessError } 202 - Permission verification failed, which is
* returned when the system API is not called by a system application.
* @throws { BusinessError } 401 - Parameter error.
@ -899,8 +893,6 @@ declare namespace cloudData {
* involved in the data sharing.
* @param { AsyncCallback<Result<Array<Result<Participant>>>> } callback - Indicates the
* callback invoked to return the result.
* @throws { BusinessError } 201 - Permission verification failed, which
* is usually returned by <b>VerifyAccessToken</b>.
* @throws { BusinessError } 202 - Permission verification failed, which is
* returned when the system API is not called by a system application.
* @throws { BusinessError } 401 - Parameter error.
@ -922,8 +914,6 @@ declare namespace cloudData {
* @param { Array<Participant> } participants - Indicates the participants
* involved in the data sharing.
* @returns { Promise<Result<Array<Result<Participant>>>> } - Promise used to return the result.
* @throws { BusinessError } 201 - Permission verification failed, which
* is usually returned by <b>VerifyAccessToken</b>.
* @throws { BusinessError } 202 - Permission verification failed, which is
* returned when the system API is not called by a system application.
* @throws { BusinessError } 401 - Parameter error.
@ -945,8 +935,6 @@ declare namespace cloudData {
* involved.
* @param { AsyncCallback<Result<Array<Result<Participant>>>> } callback - Indicates the callback invoked
* to return the result.
* @throws { BusinessError } 201 - Permission verification failed, which
* is usually returned by <b>VerifyAccessToken</b>.
* @throws { BusinessError } 202 - Permission verification failed, which is
* returned when the system API is not called by a system application.
* @throws { BusinessError } 401 - Parameter error.
@ -968,8 +956,6 @@ declare namespace cloudData {
* @param { Array<Participant> } participants - Indicates the participants
* involved.
* @returns { Promise<Result<Array<Result<Participant>>>> } - Promise used to return the result.
* @throws { BusinessError } 201 - Permission verification failed, which
* is usually returned by <b>VerifyAccessToken</b>.
* @throws { BusinessError } 202 - Permission verification failed, which is
* returned when the system API is not called by a system application.
* @throws { BusinessError } 401 - Parameter error.
@ -988,8 +974,6 @@ declare namespace cloudData {
*
* @param { string } sharingResource - Indicates the sharing resource.
* @param { AsyncCallback<Result<void>> } callback - The callback of exit.
* @throws { BusinessError } 201 - Permission verification failed, which
* is usually returned by <b>VerifyAccessToken</b>.
* @throws { BusinessError } 202 - Permission verification failed, which is
* returned when the system API is not called by a system application.
* @throws { BusinessError } 401 - Parameter error.
@ -1005,8 +989,6 @@ declare namespace cloudData {
*
* @param { string } sharingResource - Indicates the sharing resource.
* @returns { Promise<Result<void>> } - The promise returned by the function.
* @throws { BusinessError } 201 - Permission verification failed, which
* is usually returned by <b>VerifyAccessToken</b>.
* @throws { BusinessError } 202 - Permission verification failed, which is
* returned when the system API is not called by a system application.
* @throws { BusinessError } 401 - Parameter error.
@ -1025,8 +1007,6 @@ declare namespace cloudData {
* whose permissions are to be changed.
* @param { AsyncCallback<Result<Array<Result<Participant>>>> } callback - Indicates the
* callback invoked to return the result.
* @throws { BusinessError } 201 - Permission verification failed, which
* is usually returned by <b>VerifyAccessToken</b>.
* @throws { BusinessError } 202 - Permission verification failed, which is
* returned when the system API is not called by a system application.
* @throws { BusinessError } 401 - Parameter error.
@ -1048,8 +1028,6 @@ declare namespace cloudData {
* @param { Array<Participant> } participants - Indicates the participants
* whose permissions are to be changed.
* @returns { Promise<Result<Array<Result<Participant>>>> } - Promise used to return the result.
* @throws { BusinessError } 201 - Permission verification failed, which
* is usually returned by <b>VerifyAccessToken</b>.
* @throws { BusinessError } 202 - Permission verification failed, which is
* returned when the system API is not called by a system application.
* @throws { BusinessError } 401 - Parameter error.
@ -1069,8 +1047,6 @@ declare namespace cloudData {
* @param { string } sharingResource - Indicates the sharing resource.
* @param { AsyncCallback<Result<Array<Participant>>> } callback - Indicates the
* callback invoked to return the participants obtained.
* @throws { BusinessError } 201 - Permission verification failed, which
* is usually returned by <b>VerifyAccessToken</b>.
* @throws { BusinessError } 202 - Permission verification failed, which is
* returned when the system API is not called by a system application.
* @throws { BusinessError } 401 - Parameter error.

View File

@ -3466,14 +3466,12 @@ declare namespace relationalStore {
/**
* Sync data to cloud.
*
* @permission ohos.permission.DISTRIBUTED_DATASYNC
* @param { SyncMode } mode - indicates the database synchronization mode.
* @param { RdbPredicates } predicates - The specified sync condition by the instance object of {@link RdbPredicates}.
* @param { Callback<ProgressDetails> } progress - the specified sync condition by the instance object of {@link ProgressDetails}.
* @param { AsyncCallback<void> } callback - The callback of cloudSync.
* @throws { BusinessError } 401 - if the parameter type is incorrect.
* @throws { BusinessError } 202 - if permission verification failed, application does not have permission ohos.permission.DISTRIBUTED_DATASYNC
* or application which is not a system application uses system API.
* @throws { BusinessError } 202 - if permission verification failed, application which is not a system application uses system API.
* @throws { BusinessError } 801 - Capability not supported.
* @syscap SystemCapability.DistributedDataManager.CloudSync.Client
* @systemapi
@ -3489,14 +3487,13 @@ declare namespace relationalStore {
/**
* Sync data to cloud.
*
* @permission ohos.permission.DISTRIBUTED_DATASYNC
* @param { SyncMode } mode - indicates the database synchronization mode.
* @param { RdbPredicates } predicates - The specified sync condition by the instance object of {@link RdbPredicates}.
* @param { Callback<ProgressDetails> } progress - the specified sync condition by the instance object of {@link ProgressDetails}.
* @returns { Promise<void> } : The promise returned by the function.
* @throws { BusinessError } 401 - if the parameter type is incorrect.
* @throws { BusinessError } 202 - if permission verification failed, application does not have permission ohos.permission.DISTRIBUTED_DATASYNC
* or application which is not a system application uses system API.
* @throws { BusinessError } 202 - if permission verification failed, application which is not a system
* application uses system API.
* @throws { BusinessError } 801 - Capability not supported.
* @syscap SystemCapability.DistributedDataManager.CloudSync.Client
* @systemapi