未验证 提交 fdd78c84 编写于 作者: O openharmony_ci 提交者: Gitee

!15592 【回合月度】bugfix environment起始版本&securitylabel datalevel大小写不一致

Merge pull request !15592 from zhuhongtao666/cherry-pick-1678172390
...@@ -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<string> ...@@ -25,7 +25,7 @@ getStorageDataDir():Promise<string>
| 类型 | 说明 | | 类型 | 说明 |
| --------------------- | ---------------- | | --------------------- | ---------------- |
| Promise<string> | 返回存储根目录 | | Promise<string> | 返回存储根目录 |
**示例:** **示例:**
......
...@@ -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<void> setSecurityLabel(path:string, type:DataLevel):Promise<void>
以异步方法设置数据标签,以promise形式返回结果。 以异步方法设置数据标签,以promise形式返回结果。
...@@ -55,7 +55,7 @@ setSecurityLabel(path:string, type:dataLevel):Promise<void> ...@@ -55,7 +55,7 @@ setSecurityLabel(path:string, type:dataLevel):Promise<void>
| 参数名 | 类型 | 必填 | 说明 | | 参数名 | 类型 | 必填 | 说明 |
| --------- | ------ | ---- | -------------------------------------------- | | --------- | ------ | ---- | -------------------------------------------- |
| 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<void> ...@@ -75,7 +75,7 @@ setSecurityLabel(path:string, type:dataLevel):Promise<void>
## securityLabel.setSecurityLabel ## securityLabel.setSecurityLabel
setSecurityLabel(path:string, type:dataLevel, callback: AsyncCallback<void>):void setSecurityLabel(path:string, type:DataLevel, callback: AsyncCallback<void>):void
以异步方法设置数据标签,以callback形式返回结果。 以异步方法设置数据标签,以callback形式返回结果。
...@@ -86,7 +86,7 @@ setSecurityLabel(path:string, type:dataLevel, callback: AsyncCallback<void&gt ...@@ -86,7 +86,7 @@ setSecurityLabel(path:string, type:dataLevel, callback: AsyncCallback<void&gt
| 参数名 | 类型 | 必填 | 说明 | | 参数名 | 类型 | 必填 | 说明 |
| --------- | ------------------------- | ---- | -------------------------------------------- | | --------- | ------------------------- | ---- | -------------------------------------------- |
| path | string | 是 | 文件路径 | | path | string | 是 | 文件路径 |
| type | dataLevel | 是 | 文件等级属性,只支持"s0","s1","s2","s3","s4" | | type | DataLevel | 是 | 文件等级属性,只支持"s0","s1","s2","s3","s4" |
| callback | AsyncCallback<void> | 是 | 是否设置数据标签之后的回调 | | callback | AsyncCallback<void> | 是 | 是否设置数据标签之后的回调 |
**示例:** **示例:**
...@@ -103,7 +103,7 @@ setSecurityLabel(path:string, type:dataLevel, callback: AsyncCallback<void&gt ...@@ -103,7 +103,7 @@ setSecurityLabel(path:string, type:dataLevel, callback: AsyncCallback<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.
先完成此消息的编辑!
想要评论请 注册