From 18558e0b516f698f57f825e533987d41219ac9ab Mon Sep 17 00:00:00 2001 From: lichenchen Date: Mon, 27 Jun 2022 19:19:02 +0800 Subject: [PATCH] =?UTF-8?q?fixed=20d6ee44d=20from=20https://gitee.com/ccli?= =?UTF-8?q?cn/docs/pulls/6089=20=E8=B4=A6=E5=8F=B7=E5=AD=90=E7=B3=BB?= =?UTF-8?q?=E7=BB=9Fdocs=E4=BB=93=E8=B5=84=E6=96=99=E6=95=B4=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: lichenchen --- .../apis/js-apis-distributed-account.md | 26 ++++++++++++------- .../reference/apis/js-apis-osAccount.md | 6 +++++ 2 files changed, 23 insertions(+), 9 deletions(-) diff --git a/zh-cn/application-dev/reference/apis/js-apis-distributed-account.md b/zh-cn/application-dev/reference/apis/js-apis-distributed-account.md index 7cf4c74eba..f6e715f41a 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-distributed-account.md +++ b/zh-cn/application-dev/reference/apis/js-apis-distributed-account.md @@ -1,5 +1,7 @@ # 分布式帐号管理 +本模块提供管理分布式帐号的一些基础功能,主要包括查询和更新帐号登录状态。 + > ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** > 本模块首批接口从API version 7开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 @@ -11,17 +13,14 @@ import account_distributedAccount from '@ohos.account.distributedAccount'; ``` -## 系统能力 - -SystemCapability.Account.OsAccount - - ## account_distributedAccount.getDistributedAccountAbility getDistributedAccountAbility(): DistributedAccountAbility 获取分布式帐号单实例对象。 +**系统能力:** SystemCapability.Account.OsAccount + - 返回值: | 类型 | 说明 | | -------- | -------- | @@ -42,7 +41,9 @@ queryOsAccountDistributedInfo(callback: AsyncCallback<DistributedInfo>): v 获取分布式帐号信息,使用callback回调异步返回结果。 -需要权限:ohos.permission.MANAGE_LOCAL_ACCOUNTS 或 ohos.permission.DISTRIBUTED_DATASYNC,该权限仅供系统应用使用。 +**系统能力:** SystemCapability.Account.OsAccount + +**需要权限:** ohos.permission.MANAGE_LOCAL_ACCOUNTS 或 ohos.permission.DISTRIBUTED_DATASYNC,该权限仅供系统应用使用。 - 参数: | 参数名 | 类型 | 必填 | 说明 | @@ -65,7 +66,9 @@ queryOsAccountDistributedInfo(): Promise<DistributedInfo> 获取分布式帐号信息,使用Promise方式异步返回结果。 -需要权限:ohos.permission.MANAGE_LOCAL_ACCOUNTS 或 ohos.permission.DISTRIBUTED_DATASYNC,该权限仅供系统应用使用。 +**系统能力:** SystemCapability.Account.OsAccount + +**需要权限:** ohos.permission.MANAGE_LOCAL_ACCOUNTS 或 ohos.permission.DISTRIBUTED_DATASYNC,该权限仅供系统应用使用。 - 返回值: | 类型 | 说明 | @@ -89,7 +92,9 @@ updateOsAccountDistributedInfo(accountInfo: DistributedInfo, callback: AsyncCall 更新分布式帐号信息,使用callback回调异步返回结果。 -需要权限:ohos.permission.MANAGE_LOCAL_ACCOUNTS,该权限仅供系统应用使用。 +**系统能力:** SystemCapability.Account.OsAccount + +**需要权限:** ohos.permission.MANAGE_LOCAL_ACCOUNTS,该权限仅供系统应用使用。 - 参数: | 参数名 | 类型 | 必填 | 说明 | @@ -112,7 +117,9 @@ updateOsAccountDistributedInfo(accountInfo: DistributedInfo): Promise<void> 更新分布式帐号信息,使用Promise方式异步返回结果。 -需要权限:ohos.permission.MANAGE_LOCAL_ACCOUNTS,该权限仅供系统应用使用。 +**系统能力:** SystemCapability.Account.OsAccount + +**需要权限:** ohos.permission.MANAGE_LOCAL_ACCOUNTS,该权限仅供系统应用使用。 - 参数: | 参数名 | 类型 | 必填 | 说明 | @@ -140,6 +147,7 @@ updateOsAccountDistributedInfo(accountInfo: DistributedInfo): Promise<void> 提供操作系统帐户的分布式信息。 +**系统能力:** SystemCapability.Account.OsAccount | 参数名 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | diff --git a/zh-cn/application-dev/reference/apis/js-apis-osAccount.md b/zh-cn/application-dev/reference/apis/js-apis-osAccount.md index 33868672cb..e76490f349 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-osAccount.md +++ b/zh-cn/application-dev/reference/apis/js-apis-osAccount.md @@ -1,5 +1,7 @@ # 系统帐号管理 +本模块提供管理系统帐号的一些基础能力,包括系统帐号的添加、删除、查询、设置、订阅、启动等功能,提供系统帐号数据落盘的能力。 + > ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** > 本模块首批接口从API version 7开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 @@ -972,6 +974,8 @@ queryAllCreatedOsAccounts(callback: AsyncCallback<Array<OsAccountInfo>& **系统能力:** SystemCapability.Account.OsAccount +**需要权限:** ohos.permission.MANAGE_LOCAL_ACCOUNTS + **参数:** | 参数名 | 类型 | 必填 | 说明 | @@ -998,6 +1002,8 @@ queryAllCreatedOsAccounts(): Promise<Array<OsAccountInfo>> **系统能力:** SystemCapability.Account.OsAccount +**需要权限:** ohos.permission.MANAGE_LOCAL_ACCOUNTS + **返回值:** | 类型 | 说明 | -- GitLab