From 09b1f84b872d264ff656bcff728bd412e8bf02b3 Mon Sep 17 00:00:00 2001 From: Annie_wang Date: Fri, 14 Jul 2023 09:58:40 +0800 Subject: [PATCH] update docs Signed-off-by: Annie_wang --- .../apis/js-apis-distributed-account.md | 18 +++++++++--------- .../apis/js-apis-file-storage-statistics.md | 10 +++++----- .../apis/js-apis-file-volumemanager.md | 2 +- 3 files changed, 15 insertions(+), 15 deletions(-) diff --git a/en/application-dev/reference/apis/js-apis-distributed-account.md b/en/application-dev/reference/apis/js-apis-distributed-account.md index 5ea4792ec6..e48670b7d8 100644 --- a/en/application-dev/reference/apis/js-apis-distributed-account.md +++ b/en/application-dev/reference/apis/js-apis-distributed-account.md @@ -506,15 +506,15 @@ Defines the distributed information about an OS account. **System capability**: SystemCapability.Account.OsAccount -| Name| Type| Read-only| Mandatory| Description| -| -------- | -------- | -------- |-------- | -------- | -| name | string | No|Yes| Name of the distributed account. It must be a non-null string.| -| id | string | No|Yes| UID of the distributed account. It must be a non-null string.| -| event | string | No|Yes| Login state of the distributed account. The state can be login, logout, token invalid, or logoff, which correspond to the following strings respectively:
- Ohos.account.event.LOGIN
- Ohos.account.event.LOGOUT
- Ohos.account.event.TOKEN_INVALID
- Ohos.account.event.LOGOFF | -| nickname9+ | string | No|No| Nickname of the distributed account. By default, no value is passed.| -| avatar9+ | string | No|No| Avatar of the distributed account. By default, no value is passed.| -| status10+ | [DistributedAccountStatus](#distributedaccountstatus10) | Yes|No| Status of the distributed account. The value is of the enumerated type. The default status is unlogged.| -| scalableData8+ | object | No|No| Extended information about the distributed account, passed in key-value (KV) pairs based on service requirements. By default, no value is passed.| +| Name| Type| Mandatory| Description| +| -------- | -------- | -------- | -------- | +| name | string |Yes| Name of the distributed account. It must be a non-null string.| +| id | string |Yes| UID of the distributed account. It must be a non-null string.| +| event | string |Yes| Login state of the distributed account. The state can be login, logout, token invalid, or logoff, which correspond to the following strings respectively:
- Ohos.account.event.LOGIN
- Ohos.account.event.LOGOUT
- Ohos.account.event.TOKEN_INVALID
- Ohos.account.event.LOGOFF | +| nickname9+ | string |No| Nickname of the distributed account. By default, no value is passed.| +| avatar9+ | string |No| Avatar of the distributed account. By default, no value is passed.| +| status10+ | [DistributedAccountStatus](#distributedaccountstatus10) |No| Status of the distributed account. The value is of the enumerated type. The default status is unlogged.| +| scalableData8+ | object |No| Extended information about the distributed account, passed in key-value (KV) pairs based on service requirements. By default, no value is passed.| ## DistributedAccountStatus10+ diff --git a/en/application-dev/reference/apis/js-apis-file-storage-statistics.md b/en/application-dev/reference/apis/js-apis-file-storage-statistics.md index 01ffbea245..33078c41ac 100644 --- a/en/application-dev/reference/apis/js-apis-file-storage-statistics.md +++ b/en/application-dev/reference/apis/js-apis-file-storage-statistics.md @@ -295,7 +295,7 @@ Obtains the space (in bytes) of this third-party application. This API uses a pr | Type | Description | | ------------------------------------------ | -------------------------- | - | Promise<[Bundlestats](#bundlestats9)> | Promise used to return the application space obtained. | + | Promise<[Bundlestats](#bundlestats9)> | Promise used to return the application storage space obtained. | **Error codes** @@ -373,7 +373,7 @@ Obtains the total size (in bytes) of the built-in storage. This API uses a promi | Type | Description | | --------------------- | ------------------ | - | Promise<number> | Promise used to return the built-in storage size obtained. | + | Promise<number> | Promise used to return the total built-in storage size obtained. | **Error codes** @@ -604,7 +604,7 @@ Obtains the storage statistics (in bytes) of this user. This API uses a promise | Type | Description | | --------------------- | ---------------- | - | Promise<[StorageStats](#storagestats9)> | Promise used to return the information obtained.| + | Promise<[StorageStats](#storagestats9)> | Promise used to return the storage information obtained.| **Error codes** @@ -683,13 +683,13 @@ Obtains the storage statistics (in bytes) of the specified user. This API uses a | Name | Type | Mandatory| Description| | ---------- | ------ | ---- | ---- | - | userId | number | Yes | User ID.| + | userId | number | Yes | User ID| **Return value** | Type | Description | | --------------------- | ---------------- | - | Promise<[StorageStats](#storagestats9)> | Promise used to return the information obtained.| + | Promise<[StorageStats](#storagestats9)> | Promise used to return the storage information obtained.| **Error codes** diff --git a/en/application-dev/reference/apis/js-apis-file-volumemanager.md b/en/application-dev/reference/apis/js-apis-file-volumemanager.md index bec02a0f67..876b5eb0d7 100644 --- a/en/application-dev/reference/apis/js-apis-file-volumemanager.md +++ b/en/application-dev/reference/apis/js-apis-file-volumemanager.md @@ -647,7 +647,7 @@ Partitions a disk. This API uses a promise to return the result. The system supp | Type | Description | | --------------------- | ----------------------- | - | Promise<void> | Promise used to return the result. | + | Promise<void> | Promise that returns no value. | **Error codes** -- GitLab