From 99efbc8b4348c7134746d269cc10143835904aec Mon Sep 17 00:00:00 2001 From: zengyawen Date: Tue, 6 Dec 2022 21:18:40 +0800 Subject: [PATCH] =?UTF-8?q?=E9=94=99=E8=AF=AF=E7=A0=81=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E5=90=8D=E8=A7=84=E8=8C=83=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zengyawen --- .../apis/js-apis-app-form-formhost.md | 56 +++++++++---------- .../apis/js-apis-app-form-formprovider.md | 20 +++---- .../reference/apis/js-apis-formerror.md | 2 +- .../reference/errorcodes/Readme-CN.md | 1 + .../{errcode-form.md => errorcode-form.md} | 0 5 files changed, 40 insertions(+), 39 deletions(-) rename zh-cn/application-dev/reference/errorcodes/{errcode-form.md => errorcode-form.md} (100%) diff --git a/zh-cn/application-dev/reference/apis/js-apis-app-form-formhost.md b/zh-cn/application-dev/reference/apis/js-apis-app-form-formhost.md index a47a3dcfb9..70d089b968 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-app-form-formhost.md +++ b/zh-cn/application-dev/reference/apis/js-apis-app-form-formhost.md @@ -32,7 +32,7 @@ deleteForm(formId: string, callback: AsyncCallback<void>): void **错误码:** -以下错误码的详细介绍请参见[卡片错误码](../errorcodes/errcode-form.md)。 +以下错误码的详细介绍请参见[卡片错误码](../errorcodes/errorcode-form.md)。 | 错误码ID | 错误信息 | | -------- | -------- | | 16501001 | The ID of the form to be operated does not exist. | @@ -81,7 +81,7 @@ deleteForm(formId: string): Promise<void> **错误码:** -以下错误码的详细介绍请参见[卡片错误码](../errorcodes/errcode-form.md)。 +以下错误码的详细介绍请参见[卡片错误码](../errorcodes/errorcode-form.md)。 | 错误码ID | 错误信息 | | -------- | -------- | | 16501001 | The ID of the form to be operated does not exist. | @@ -121,7 +121,7 @@ releaseForm(formId: string, callback: AsyncCallback<void>): void **错误码:** -以下错误码的详细介绍请参见[卡片错误码](../errorcodes/errcode-form.md)。 +以下错误码的详细介绍请参见[卡片错误码](../errorcodes/errorcode-form.md)。 | 错误码ID | 错误信息 | | -------- | -------- | | 16501001 | The ID of the form to be operated does not exist. | @@ -162,7 +162,7 @@ releaseForm(formId: string, isReleaseCache: boolean, callback: AsyncCallback< **错误码:** -以下错误码的详细介绍请参见[卡片错误码](../errorcodes/errcode-form.md)。 +以下错误码的详细介绍请参见[卡片错误码](../errorcodes/errorcode-form.md)。 | 错误码ID | 错误信息 | | -------- | -------- | | 16501001 | The ID of the form to be operated does not exist. | @@ -208,7 +208,7 @@ releaseForm(formId: string, isReleaseCache?: boolean): Promise<void> **错误码:** -以下错误码的详细介绍请参见[卡片错误码](../errorcodes/errcode-form.md)。 +以下错误码的详细介绍请参见[卡片错误码](../errorcodes/errorcode-form.md)。 | 错误码ID | 错误信息 | | -------- | -------- | | 16501001 | The ID of the form to be operated does not exist. | @@ -248,7 +248,7 @@ requestForm(formId: string, callback: AsyncCallback<void>): void **错误码:** -以下错误码的详细介绍请参见[卡片错误码](../errorcodes/errcode-form.md)。 +以下错误码的详细介绍请参见[卡片错误码](../errorcodes/errorcode-form.md)。 | 错误码ID | 错误信息 | | -------- | -------- | | 16501001 | The ID of the form to be operated does not exist. | @@ -293,7 +293,7 @@ requestForm(formId: string): Promise<void> **错误码:** -以下错误码的详细介绍请参见[卡片错误码](../errorcodes/errcode-form.md)。 +以下错误码的详细介绍请参见[卡片错误码](../errorcodes/errorcode-form.md)。 | 错误码ID | 错误信息 | | -------- | -------- | | 16501001 | The ID of the form to be operated does not exist. | @@ -334,7 +334,7 @@ castTempForm(formId: string, callback: AsyncCallback<void>): void **错误码:** -以下错误码的详细介绍请参见[卡片错误码](../errorcodes/errcode-form.md)。 +以下错误码的详细介绍请参见[卡片错误码](../errorcodes/errorcode-form.md)。 | 错误码ID | 错误信息 | | -------- | -------- | | 16501001 | The ID of the form to be operated does not exist. | @@ -379,7 +379,7 @@ castTempForm(formId: string): Promise<void> **错误码:** -以下错误码的详细介绍请参见[卡片错误码](../errorcodes/errcode-form.md)。 +以下错误码的详细介绍请参见[卡片错误码](../errorcodes/errorcode-form.md)。 | 错误码ID | 错误信息 | | -------- | -------- | | 16501001 | The ID of the form to be operated does not exist. | @@ -419,7 +419,7 @@ notifyVisibleForms(formIds: Array<string>, callback: AsyncCallback<void **错误码:** -以下错误码的详细介绍请参见[卡片错误码](../errorcodes/errcode-form.md)。 +以下错误码的详细介绍请参见[卡片错误码](../errorcodes/errorcode-form.md)。 | 错误码ID | 错误信息 | | -------- | -------- | | 16501000 | A functional error occurred. | @@ -463,7 +463,7 @@ notifyVisibleForms(formIds: Array<string>): Promise<void> **错误码:** -以下错误码的详细介绍请参见[卡片错误码](../errorcodes/errcode-form.md)。 +以下错误码的详细介绍请参见[卡片错误码](../errorcodes/errorcode-form.md)。 | 错误码ID | 错误信息 | | -------- | -------- | | 16501000 | A functional error occurred. | @@ -502,7 +502,7 @@ notifyInvisibleForms(formIds: Array<string>, callback: AsyncCallback<vo **错误码:** -以下错误码的详细介绍请参见[卡片错误码](../errorcodes/errcode-form.md)。 +以下错误码的详细介绍请参见[卡片错误码](../errorcodes/errorcode-form.md)。 | 错误码ID | 错误信息 | | -------- | -------- | | 16501000 | A functional error occurred. | @@ -546,7 +546,7 @@ notifyInvisibleForms(formIds: Array<string>): Promise<void> **错误码:** -以下错误码的详细介绍请参见[卡片错误码](../errorcodes/errcode-form.md)。 +以下错误码的详细介绍请参见[卡片错误码](../errorcodes/errorcode-form.md)。 | 错误码ID | 错误信息 | | -------- | -------- | | 16501000 | A functional error occurred. | @@ -585,7 +585,7 @@ enableFormsUpdate(formIds: Array<string>, callback: AsyncCallback<void& **错误码:** -以下错误码的详细介绍请参见[卡片错误码](../errorcodes/errcode-form.md)。 +以下错误码的详细介绍请参见[卡片错误码](../errorcodes/errorcode-form.md)。 | 错误码ID | 错误信息 | | -------- | -------- | | 16501000 | A functional error occurred. | @@ -630,7 +630,7 @@ enableFormsUpdate(formIds: Array<string>): Promise<void> **错误码:** -以下错误码的详细介绍请参见[卡片错误码](../errorcodes/errcode-form.md)。 +以下错误码的详细介绍请参见[卡片错误码](../errorcodes/errorcode-form.md)。 | 错误码ID | 错误信息 | | -------- | -------- | | 16501000 | A functional error occurred. | @@ -670,7 +670,7 @@ disableFormsUpdate(formIds: Array<string>, callback: AsyncCallback<void **错误码:** -以下错误码的详细介绍请参见[卡片错误码](../errorcodes/errcode-form.md)。 +以下错误码的详细介绍请参见[卡片错误码](../errorcodes/errorcode-form.md)。 | 错误码ID | 错误信息 | | -------- | -------- | | 16501000 | A functional error occurred. | @@ -715,7 +715,7 @@ disableFormsUpdate(formIds: Array<string>): Promise<void> **错误码:** -以下错误码的详细介绍请参见[卡片错误码](../errorcodes/errcode-form.md)。 +以下错误码的详细介绍请参见[卡片错误码](../errorcodes/errorcode-form.md)。 | 错误码ID | 错误信息 | | -------- | -------- | | 16501000 | A functional error occurred. | @@ -875,7 +875,7 @@ getFormsInfo(bundleName: string, callback: AsyncCallback<Array<formInfo.Fo **错误码:** -以下错误码的详细介绍请参见[卡片错误码](../errorcodes/errcode-form.md)。 +以下错误码的详细介绍请参见[卡片错误码](../errorcodes/errorcode-form.md)。 | 错误码ID | 错误信息 | | -------- | -------- | | 16500100 | Failed to obtain configuration information. | @@ -916,7 +916,7 @@ getFormsInfo(bundleName: string, moduleName: string, callback: AsyncCallback< **错误码:** -以下错误码的详细介绍请参见[卡片错误码](../errorcodes/errcode-form.md)。 +以下错误码的详细介绍请参见[卡片错误码](../errorcodes/errorcode-form.md)。 | 错误码ID | 错误信息 | | -------- | -------- | | 16500100 | Failed to obtain configuration information. | @@ -962,7 +962,7 @@ getFormsInfo(bundleName: string, moduleName?: string): Promise<Array<formI **错误码:** -以下错误码的详细介绍请参见[卡片错误码](../errorcodes/errcode-form.md)。 +以下错误码的详细介绍请参见[卡片错误码](../errorcodes/errorcode-form.md)。 | 错误码ID | 错误信息 | | -------- | -------- | | 16500100 | Failed to obtain configuration information. | @@ -1071,7 +1071,7 @@ acquireFormState(want: Want, callback: AsyncCallback<formInfo.FormStateInfo&g **错误码:** -以下错误码的详细介绍请参见[卡片错误码](../errorcodes/errcode-form.md)。 +以下错误码的详细介绍请参见[卡片错误码](../errorcodes/errorcode-form.md)。 | 错误码ID | 错误信息 | | -------- | -------- | | 16501000 | A functional error occurred. | @@ -1126,7 +1126,7 @@ acquireFormState(want: Want): Promise<formInfo.FormStateInfo> **错误码:** -以下错误码的详细介绍请参见[卡片错误码](../errorcodes/errcode-form.md)。 +以下错误码的详细介绍请参见[卡片错误码](../errorcodes/errorcode-form.md)。 | 错误码ID | 错误信息 | | -------- | -------- | | 16501000 | A functional error occurred. | @@ -1223,7 +1223,7 @@ notifyFormsVisible(formIds: Array<string>, isVisible: boolean, callback: A **错误码:** -以下错误码的详细介绍请参见[卡片错误码](../errorcodes/errcode-form.md)。 +以下错误码的详细介绍请参见[卡片错误码](../errorcodes/errorcode-form.md)。 | 错误码ID | 错误信息 | | -------- | -------- | | 16501003 | The form can not be operated by the current application. | @@ -1268,7 +1268,7 @@ notifyFormsVisible(formIds: Array<string>, isVisible: boolean): Promise< **错误码:** -以下错误码的详细介绍请参见[卡片错误码](../errorcodes/errcode-form.md)。 +以下错误码的详细介绍请参见[卡片错误码](../errorcodes/errorcode-form.md)。 | 错误码ID | 错误信息 | | -------- | -------- | | 16501003 | The form can not be operated by the current application. | @@ -1308,7 +1308,7 @@ notifyFormsEnableUpdate(formIds: Array<string>, isEnableUpdate: boolean, c **错误码:** -以下错误码的详细介绍请参见[卡片错误码](../errorcodes/errcode-form.md)。 +以下错误码的详细介绍请参见[卡片错误码](../errorcodes/errorcode-form.md)。 | 错误码ID | 错误信息 | | -------- | -------- | | 16501003 | The form can not be operated by the current application. | @@ -1353,7 +1353,7 @@ notifyFormsEnableUpdate(formIds: Array<string>, isEnableUpdate: boolean): **错误码:** -以下错误码的详细介绍请参见[卡片错误码](../errorcodes/errcode-form.md)。 +以下错误码的详细介绍请参见[卡片错误码](../errorcodes/errorcode-form.md)。 | 错误码ID | 错误信息 | | -------- | -------- | | 16501003 | The form can not be operated by the current application. | @@ -1392,7 +1392,7 @@ shareForm(formId: string, deviceId: string, callback: AsyncCallback<void>) **错误码:** -以下错误码的详细介绍请参见[卡片错误码](../errorcodes/errcode-form.md)。 +以下错误码的详细介绍请参见[卡片错误码](../errorcodes/errorcode-form.md)。 | 错误码ID | 错误信息 | | -------- | -------- | | 16500100 | Failed to obtain configuration information. | @@ -1440,7 +1440,7 @@ shareForm(formId: string, deviceId: string): Promise<void> **错误码:** -以下错误码的详细介绍请参见[卡片错误码](../errorcodes/errcode-form.md)。 +以下错误码的详细介绍请参见[卡片错误码](../errorcodes/errorcode-form.md)。 | 错误码ID | 错误信息 | | -------- | -------- | | 16500100 | Failed to obtain configuration information. | diff --git a/zh-cn/application-dev/reference/apis/js-apis-app-form-formprovider.md b/zh-cn/application-dev/reference/apis/js-apis-app-form-formprovider.md index 6b07b85c77..e40d1bbe50 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-app-form-formprovider.md +++ b/zh-cn/application-dev/reference/apis/js-apis-app-form-formprovider.md @@ -27,7 +27,7 @@ setFormNextRefreshTime(formId: string, minute: number, callback: AsyncCallback&l | minute | number | 是 | 指定多久之后更新,单位分钟,大于等于5。 | | callback | AsyncCallback<void> | 是 | 回调函数。 | -以下错误码的详细介绍请参见[卡片错误码](../errorcodes/errcode-form.md)。 +以下错误码的详细介绍请参见[卡片错误码](../errorcodes/errorcode-form.md)。 | 错误码ID | 错误信息 | | -------- | -------- | | 16500100 | Failed to obtain configuration information. | @@ -75,7 +75,7 @@ setFormNextRefreshTime(formId: string, minute: number): Promise<void> **错误码:** -以下错误码的详细介绍请参见[卡片错误码](../errorcodes/errcode-form.md)。 +以下错误码的详细介绍请参见[卡片错误码](../errorcodes/errorcode-form.md)。 | 错误码ID | 错误信息 | | -------- | -------- | | 16500100 | Failed to obtain configuration information. | @@ -116,7 +116,7 @@ updateForm(formId: string, formBindingData: formBindingData.FormBindingData,call **错误码:** -以下错误码的详细介绍请参见[卡片错误码](../errorcodes/errcode-form.md)。 +以下错误码的详细介绍请参见[卡片错误码](../errorcodes/errorcode-form.md)。 | 错误码ID | 错误信息 | | -------- | -------- | | 16501001 | The ID of the form to be operated does not exist. | @@ -163,7 +163,7 @@ updateForm(formId: string, formBindingData: formBindingData.FormBindingData): Pr **错误码:** -以下错误码的详细介绍请参见[卡片错误码](../errorcodes/errcode-form.md)。 +以下错误码的详细介绍请参见[卡片错误码](../errorcodes/errorcode-form.md)。 | 错误码ID | 错误信息 | | -------- | -------- | | 16501001 | The ID of the form to be operated does not exist. | @@ -201,7 +201,7 @@ getFormsInfo(callback: AsyncCallback<Array<formInfo.FormInfo>>): voi **错误码:** -以下错误码的详细介绍请参见[卡片错误码](../errorcodes/errcode-form.md)。 +以下错误码的详细介绍请参见[卡片错误码](../errorcodes/errorcode-form.md)。 | 错误码ID | 错误信息 | | -------- | -------- | | 16500100 | Failed to obtain configuration information. | @@ -239,7 +239,7 @@ getFormsInfo(filter: formInfo.FormInfoFilter, callback: AsyncCallback<Array&l **错误码:** -以下错误码的详细介绍请参见[卡片错误码](../errorcodes/errcode-form.md)。 +以下错误码的详细介绍请参见[卡片错误码](../errorcodes/errorcode-form.md)。 | 错误码ID | 错误信息 | | -------- | -------- | | 16500100 | Failed to obtain configuration information. | @@ -287,7 +287,7 @@ getFormsInfo(filter?: formInfo.FormInfoFilter): Promise<Array<formInfo.For **错误码:** -以下错误码的详细介绍请参见[卡片错误码](../errorcodes/errcode-form.md)。 +以下错误码的详细介绍请参见[卡片错误码](../errorcodes/errorcode-form.md)。 | 错误码ID | 错误信息 | | -------- | -------- | | 16500100 | Failed to obtain configuration information. | @@ -329,7 +329,7 @@ requestPublishForm(want: Want, formBindingData: formBindingData.FormBindingData, | formBindingData | [FormBindingData](js-apis-formbindingdata.md#formbindingdata) | 是 | 创建卡片的数据。 | | callback | AsyncCallback<string> | 是 | 回调函数。返回卡片标识。 | -以下错误码的详细介绍请参见[卡片错误码](../errorcodes/errcode-form.md)。 +以下错误码的详细介绍请参见[卡片错误码](../errorcodes/errorcode-form.md)。 | 错误码ID | 错误信息 | | -------- | -------- | | 16501000 | A functional error occurred. | @@ -377,7 +377,7 @@ requestPublishForm(want: Want, callback: AsyncCallback<string>): void | want | [Want](js-apis-application-Want.md) | 是 | 发布请求。需包含以下字段。
abilityName: 目标卡片ability
parameters:
"ohos.extra.param.key.form_dimension"
"ohos.extra.param.key.form_name"
"ohos.extra.param.key.module_name" | | callback | AsyncCallback<string> | 是 | 回调函数。返回卡片标识。 | -以下错误码的详细介绍请参见[卡片错误码](../errorcodes/errcode-form.md)。 +以下错误码的详细介绍请参见[卡片错误码](../errorcodes/errorcode-form.md)。 | 错误码ID | 错误信息 | | -------- | -------- | | 16501000 | A functional error occurred. | @@ -430,7 +430,7 @@ requestPublishForm(want: Want, formBindingData?: formBindingData.FormBindingData | :------------ | :---------------------------------- | | Promise<string> | Promise对象。返回卡片标识。 | -以下错误码的详细介绍请参见[卡片错误码](../errorcodes/errcode-form.md)。 +以下错误码的详细介绍请参见[卡片错误码](../errorcodes/errorcode-form.md)。 | 错误码ID | 错误信息 | | -------- | -------- | | 16501000 | A functional error occurred. | diff --git a/zh-cn/application-dev/reference/apis/js-apis-formerror.md b/zh-cn/application-dev/reference/apis/js-apis-formerror.md index 36b638a363..b4a382ae6a 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-formerror.md +++ b/zh-cn/application-dev/reference/apis/js-apis-formerror.md @@ -5,7 +5,7 @@ FormError模块提供获取卡片错误码的能力。 > **说明:** > > 本模块首批接口从API version 8开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 -> 从API version 9 开始不再维护,建议使用[Form错误码](../errorcodes/errcode-form.md)替代。 +> 从API version 9 开始不再维护,建议使用[Form错误码](../errorcodes/errorcode-form.md)替代。 ## 导入模块 diff --git a/zh-cn/application-dev/reference/errorcodes/Readme-CN.md b/zh-cn/application-dev/reference/errorcodes/Readme-CN.md index 2292907bbb..3a4205a162 100644 --- a/zh-cn/application-dev/reference/errorcodes/Readme-CN.md +++ b/zh-cn/application-dev/reference/errorcodes/Readme-CN.md @@ -4,6 +4,7 @@ - Ability框架 - [元能力子系统错误码](errorcode-ability.md) - [DistributedSchedule错误码](errorcode-DistributedSchedule.md) + - [卡片错误码](errorcode-form.md) - 包管理 - [包管理子系统通用错误码](errorcode-bundle.md) - [zlib子系统错误码](errorcode-zlib.md) diff --git a/zh-cn/application-dev/reference/errorcodes/errcode-form.md b/zh-cn/application-dev/reference/errorcodes/errorcode-form.md similarity index 100% rename from zh-cn/application-dev/reference/errorcodes/errcode-form.md rename to zh-cn/application-dev/reference/errorcodes/errorcode-form.md -- GitLab