From b62f39c63e8ea388e487fc4c16abfb5e21e425c1 Mon Sep 17 00:00:00 2001 From: liwuli Date: Mon, 5 Dec 2022 21:48:19 +0800 Subject: [PATCH] =?UTF-8?q?doc=E6=96=87=E6=A1=A3=E6=95=B4=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: liwuli --- ...js-apis-EnterpriseAdminExtensionAbility.md | 4 ++ .../apis/js-apis-enterprise-adminManager.md | 58 +++++++++---------- .../js-apis-enterprise-dateTimeManager.md | 8 +-- 3 files changed, 35 insertions(+), 35 deletions(-) diff --git a/zh-cn/application-dev/reference/apis/js-apis-EnterpriseAdminExtensionAbility.md b/zh-cn/application-dev/reference/apis/js-apis-EnterpriseAdminExtensionAbility.md index e967613712..acae6ff261 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-EnterpriseAdminExtensionAbility.md +++ b/zh-cn/application-dev/reference/apis/js-apis-EnterpriseAdminExtensionAbility.md @@ -24,6 +24,8 @@ onAdminEnabled(): void **系统能力**:SystemCapability.Customization.EnterpriseDeviceManager +**系统API**: 此接口为系统接口。 + **示例:** ```ts @@ -41,6 +43,8 @@ onAdminDisabled(): void **系统能力**:SystemCapability.Customization.EnterpriseDeviceManager +**系统API**: 此接口为系统接口。 + **示例:** ```ts diff --git a/zh-cn/application-dev/reference/apis/js-apis-enterprise-adminManager.md b/zh-cn/application-dev/reference/apis/js-apis-enterprise-adminManager.md index 681b3c000b..7d398a3fb9 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-enterprise-adminManager.md +++ b/zh-cn/application-dev/reference/apis/js-apis-enterprise-adminManager.md @@ -39,9 +39,9 @@ enableAdmin(admin: Want, enterpriseInfo: EnterpriseInfo, type: AdminType, callba | 错误码ID | 错误信息 | | ------- | --------------------------------------------------------------- | -| 9200003 | The administrator ability component is invalid. | -| 9200004 | Failed to activate the administrator application of the device. | -| 9200007 | The system ability work abnormally. | +| 9200003 | the administrator ability component is invalid. | +| 9200004 | failed to enable the administrator application of the device. | +| 9200007 | the system ability work abnormally. | **示例**: @@ -91,9 +91,9 @@ enableAdmin(admin: Want, enterpriseInfo: EnterpriseInfo, type: AdminType, userId | 错误码ID | 错误信息 | | ------- | --------------------------------------------------------------- | -| 9200003 | The administrator ability component is invalid. | -| 9200004 | Failed to activate the administrator application of the device. | -| 9200007 | The system ability work abnormally. | +| 9200003 | the administrator ability component is invalid. | +| 9200004 | failed to enable the administrator application of the device. | +| 9200007 | the system ability work abnormally. | **示例**: @@ -148,9 +148,9 @@ enableAdmin(admin: Want, enterpriseInfo: EnterpriseInfo, type: AdminType, userId | 错误码ID | 错误信息 | | ------- | --------------------------------------------------------------- | -| 9200003 | The administrator ability component is invalid. | -| 9200004 | Failed to activate the administrator application of the device. | -| 9200007 | The system ability work abnormally. | +| 9200003 | the administrator ability component is invalid. | +| 9200004 | failed to enable the administrator application of the device. | +| 9200007 | the system ability work abnormally. | **示例**: @@ -194,7 +194,7 @@ disableAdmin(admin: Want, callback: AsyncCallback\): void | 错误码ID | 错误信息 | | ------- | ----------------------------------------------------------------- | -| 9200005 | Failed to deactivate the administrator application of the device. | +| 9200005 | failed to disable the administrator application of the device. | **示例**: @@ -238,7 +238,7 @@ disableAdmin(admin: Want, userId: number, callback: AsyncCallback\): void | 错误码ID | 错误信息 | | ------- | ----------------------------------------------------------------- | -| 9200005 | Failed to deactivate the administrator application of the device. | +| 9200005 | failed to disable the administrator application of the device. | **示例**: @@ -287,7 +287,7 @@ disableAdmin(admin: Want, userId?: number): Promise\ | 错误码ID | 错误信息 | | ------- | ----------------------------------------------------------------- | -| 9200005 | Failed to deactivate the administrator application of the device. | +| 9200005 | failed to disable the administrator application of the device. | **示例**: @@ -326,7 +326,7 @@ disableSuperAdmin(bundleName: String, callback: AsyncCallback\): void | 错误码ID | 错误信息 | | ------- | ----------------------------------------------------------------- | -| 9200005 | Failed to deactivate the administrator application of the device. | +| 9200005 | failed to disable the administrator application of the device. | **示例**: @@ -371,7 +371,7 @@ disableSuperAdmin(bundleName: String): Promise\ | 错误码ID | 错误信息 | | ------- | ----------------------------------------------------------------- | -| 9200005 | Failed to deactivate the administrator application of the device. | +| 9200005 | failed to disable the administrator application of the device. | **示例**: @@ -399,14 +399,6 @@ isAdminEnabled(admin: Want, callback: AsyncCallback\): void | admin | [Want](js-apis-application-Want.md) | 是 | 设备管理员应用 | | callback | AsyncCallback\ | 是 | callback方式返回是否处于激活状态 | -**错误码**: - -以下的错误码的详细介绍请参见[企业设备管理错误码](../errorcodes/errorcode-enterpriseDeviceManager.md) - -| 错误码ID | 错误信息 | -| ------- | ----------------------------------------------------------------- | -| 9200005 | Failed to deactivate the administrator application of the device. | - **示例**: ```js @@ -583,7 +575,7 @@ setEnterpriseInfo(admin: Want, enterpriseInfo: EnterpriseInfo, callback: AsyncCa | 错误码ID | 错误信息 | | ------- | ----------------------------------------------------- | -| 9200001 | The application is not a administrator of the device. | +| 9200001 | the application is not an administrator of the device. | **示例:** @@ -636,7 +628,7 @@ setEnterpriseInfo(admin: Want, enterpriseInfo: EnterpriseInfo): Promise\; | 错误码ID | 错误信息 | | ------- | ----------------------------------------------------- | -| 9200001 | The application is not a administrator of the device. | +| 9200001 | the application is not an administrator of the device. | **示例:** @@ -677,7 +669,7 @@ getEnterpriseInfo(admin: Want, callback: AsyncCallback<EnterpriseInfo>): v | 错误码ID | 错误信息 | | ------- | ----------------------------------------------------- | -| 9200001 | The application is not a administrator of the device. | +| 9200001 | the application is not an administrator of the device. | **示例:** @@ -724,7 +716,7 @@ getEnterpriseInfo(admin: Want): Promise<EnterpriseInfo> | 错误码ID | 错误信息 | | ------- | ----------------------------------------------------- | -| 9200001 | The application is not a administrator of the device. | +| 9200001 | the application is not an administrator of the device. | **示例:** @@ -764,9 +756,10 @@ subscribeManagedEvent(admin: Want, managedEvents: Array\, callback **错误码**: 以下的错误码的详细介绍请参见[企业设备管理错误码](../errorcodes/errorcode-enterpriseDeviceManager.md) + |错误码ID | 错误信息 | | ------- | ----------------------------------------------------- | -| 9200001 | The application is not a administrator of the device. | +| 9200001 | the application is not an administrator of the device. | | 9200008 | the specified system events enum is invalid. | **示例:** @@ -812,9 +805,10 @@ subscribeManagedEvent(admin: Want, managedEvents: Array\): Promise **错误码**: 以下的错误码的详细介绍请参见[企业设备管理错误码](../errorcodes/errorcode-enterpriseDeviceManager.md) + | 错误码ID | 错误信息 | | ------- | ----------------------------------------------------- | -| 9200001 | The application is not a administrator of the device. | +| 9200001 | the application is not an administrator of the device. | | 9200008 | the specified system events enum is invalid. | **示例:** @@ -854,9 +848,10 @@ unsubscribeManagedEvent(admin: Want, managedEvents: Array\, callba **错误码**: 以下的错误码的详细介绍请参见[企业设备管理错误码](../errorcodes/errorcode-enterpriseDeviceManager.md) + | 错误码ID | 错误信息 | | ------- | ----------------------------------------------------- | -| 9200001 | The application is not a administrator of the device. | +| 9200001 | the application is not an administrator of the device. | | 9200008 | the specified system events enum is invalid. | **示例:** @@ -902,9 +897,10 @@ unsubscribeManagedEvent(admin: Want, managedEvents: Array\): Promi **错误码**: 以下的错误码的详细介绍请参见[企业设备管理错误码](../errorcodes/errorcode-enterpriseDeviceManager.md) + | 错误码ID | 错误信息 | | ------- | ----------------------------------------------------- | -| 9200001 | The application is not a administrator of the device. | +| 9200001 | the application is not an administrator of the device. | | 9200008 | the specified system events enum is invalid. | **示例:** @@ -930,7 +926,7 @@ adminManager.unsubscribeManagedEvent(wantTemp, events).then(() => { **系统API**: 此接口为系统接口。 | 名称 | 类型 | 可读 | 可写 | 说明 | -| ----------- | ---- ----| ---- | ----- | ------------------------------- | +| ----------- | --------| ---- | ----- | ------------------------------- | | name | string | 是 | 否 | 表示设备管理员应用所属企业的名称。 | | description | string | 是 | 否 | 表示设备管理员应用所属企业的描述。 | diff --git a/zh-cn/application-dev/reference/apis/js-apis-enterprise-dateTimeManager.md b/zh-cn/application-dev/reference/apis/js-apis-enterprise-dateTimeManager.md index d15fc90d56..a38944747f 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-enterprise-dateTimeManager.md +++ b/zh-cn/application-dev/reference/apis/js-apis-enterprise-dateTimeManager.md @@ -38,8 +38,8 @@ setDateTime(admin: Want, time: number, callback: AsyncCallback\): void | 错误码ID | 错误信息 | | ------- | ---------------------------------------------------------------------------- | -| 9200001 | The application is not a administrator of the device. | -| 9200002 | The administrator application does not have permission to manage the device. | +| 9200001 | the application is not an administrator of the device. | +| 9200002 | the administrator application does not have permission to manage the device. | **示例:** @@ -86,8 +86,8 @@ setDateTime(admin: Want, time: number): Promise\ | 错误码ID | 错误信息 | | ------- | ---------------------------------------------------------------------------- | -| 9200001 | The application is not a administrator of the device. | -| 9200002 | The administrator application does not have permission to manage the device. | +| 9200001 | the application is not an administrator of the device. | +| 9200002 | the administrator application does not have permission to manage the device. | **示例:** -- GitLab