提交 bf5d3c58 编写于 作者: 1 18721213663 提交者: zhuhongtao666

fixed 0bf616ab from https://gitee.com/zhuhongtao66/docs/pulls/15428

bugfix_fileapi_datalevel&since
Signed-off-by: N18721213663 <zhuhongtao12@huawei.com>
上级 2a4ae6d2
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
该模块提供环境目录能力,获取内存存储根目录、公共文件根目录的JS接口。 该模块提供环境目录能力,获取内存存储根目录、公共文件根目录的JS接口。
> **说明:** > **说明:**
> 本模块首批接口从API version 9开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 > 本模块首批接口从API version 8开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。
> 本模块接口为系统接口,三方应用不支持调用。 > 本模块接口为系统接口,三方应用不支持调用。
> 本模块支持对错误码进行处理,错误码及其适配方式[参考文档](../errorcodes/errorcode-filemanagement.md#错误码适配指导)。 > 本模块支持对错误码进行处理,错误码及其适配方式[参考文档](../errorcodes/errorcode-filemanagement.md#错误码适配指导)。
...@@ -25,7 +25,7 @@ getStorageDataDir():Promise&lt;string&gt; ...@@ -25,7 +25,7 @@ getStorageDataDir():Promise&lt;string&gt;
| 类型 | 说明 | | 类型 | 说明 |
| --------------------- | ---------------- | | --------------------- | ---------------- |
| Promise&lt;string&gt; | 返回存储根目录 | | Promise&lt;string&gt; | 返回存储根目录 |
**示例:** **示例:**
......
...@@ -44,7 +44,7 @@ FA模型context的具体获取方法参见[FA模型](js-apis-inner-app-context.m ...@@ -44,7 +44,7 @@ FA模型context的具体获取方法参见[FA模型](js-apis-inner-app-context.m
## securityLabel.setSecurityLabel ## securityLabel.setSecurityLabel
setSecurityLabel(path:string, type:dataLevel):Promise&lt;void&gt; setSecurityLabel(path:string, type:DataLevel):Promise&lt;void&gt;
以异步方法设置数据标签,以promise形式返回结果。 以异步方法设置数据标签,以promise形式返回结果。
...@@ -55,7 +55,7 @@ setSecurityLabel(path:string, type:dataLevel):Promise&lt;void&gt; ...@@ -55,7 +55,7 @@ setSecurityLabel(path:string, type:dataLevel):Promise&lt;void&gt;
| 参数名 | 类型 | 必填 | 说明 | | 参数名 | 类型 | 必填 | 说明 |
| --------- | ------ | ---- | -------------------------------------------- | | --------- | ------ | ---- | -------------------------------------------- |
| path | string | 是 | 文件路径 | | path | string | 是 | 文件路径 |
| type | dataLevel | 是 | 文件等级属性,只支持"s0","s1","s2","s3","s4" | | type | DataLevel | 是 | 文件等级属性,只支持"s0","s1","s2","s3","s4" |
**返回值:** **返回值:**
...@@ -75,7 +75,7 @@ setSecurityLabel(path:string, type:dataLevel):Promise&lt;void&gt; ...@@ -75,7 +75,7 @@ setSecurityLabel(path:string, type:dataLevel):Promise&lt;void&gt;
## securityLabel.setSecurityLabel ## securityLabel.setSecurityLabel
setSecurityLabel(path:string, type:dataLevel, callback: AsyncCallback&lt;void&gt;):void setSecurityLabel(path:string, type:DataLevel, callback: AsyncCallback&lt;void&gt;):void
以异步方法设置数据标签,以callback形式返回结果。 以异步方法设置数据标签,以callback形式返回结果。
...@@ -86,7 +86,7 @@ setSecurityLabel(path:string, type:dataLevel, callback: AsyncCallback&lt;void&gt ...@@ -86,7 +86,7 @@ setSecurityLabel(path:string, type:dataLevel, callback: AsyncCallback&lt;void&gt
| 参数名 | 类型 | 必填 | 说明 | | 参数名 | 类型 | 必填 | 说明 |
| --------- | ------------------------- | ---- | -------------------------------------------- | | --------- | ------------------------- | ---- | -------------------------------------------- |
| path | string | 是 | 文件路径 | | path | string | 是 | 文件路径 |
| type | dataLevel | 是 | 文件等级属性,只支持"s0","s1","s2","s3","s4" | | type | DataLevel | 是 | 文件等级属性,只支持"s0","s1","s2","s3","s4" |
| callback | AsyncCallback&lt;void&gt; | 是 | 是否设置数据标签之后的回调 | | callback | AsyncCallback&lt;void&gt; | 是 | 是否设置数据标签之后的回调 |
**示例:** **示例:**
...@@ -103,7 +103,7 @@ setSecurityLabel(path:string, type:dataLevel, callback: AsyncCallback&lt;void&gt ...@@ -103,7 +103,7 @@ setSecurityLabel(path:string, type:dataLevel, callback: AsyncCallback&lt;void&gt
## securityLabel.setSecurityLabelSync ## securityLabel.setSecurityLabelSync
setSecurityLabelSync(path:string, type:dataLevel):void setSecurityLabelSync(path:string, type:DataLevel):void
以同步方法设置数据标签。 以同步方法设置数据标签。
...@@ -114,7 +114,7 @@ setSecurityLabelSync(path:string, type:dataLevel):void ...@@ -114,7 +114,7 @@ setSecurityLabelSync(path:string, type:dataLevel):void
| 参数名 | 类型 | 必填 | 说明 | | 参数名 | 类型 | 必填 | 说明 |
| --------- | ------ | ---- | -------------------------------------------- | | --------- | ------ | ---- | -------------------------------------------- |
| path | string | 是 | 文件路径 | | path | string | 是 | 文件路径 |
| type | dataLevel | 是 | 文件等级属性,只支持"s0","s1","s2","s3","s4" | | type | DataLevel | 是 | 文件等级属性,只支持"s0","s1","s2","s3","s4" |
**示例:** **示例:**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册