描述
设置当前(本次)编辑者信息。
- 功能同旧接口SetEditorInfo()一样
接口
bool SetCurrentAuthorInfo(options : json)options 参数
| 参数名 | 必填 | 类型 | 说明 | 备注 |
|---|---|---|---|---|
| terminal | 是 | string | 用户操作终端 | 用户自定义,示例:Android、Web、Desktop等 |
| authorId | 是 | string | 编辑者ID | |
| authorName | 是 | string | 编辑者姓名 | |
| permissionLevel | 是 | int | 操作权限等级 | 值越大 权限越高 |
| claims | 是 | string | 权限声明 | 示例:claim1;claim2; |
| attrs | 是 | json | 附加属性 | 最外层应为{}对象,格式由应用自定义 web版参数为json对象 |
返回值
| 类型 | 说明 | 备注 |
|---|---|---|
| bool | 是否设置成功 | 1:表示成功 0:表示失败 |
示例
thinkEditor.SetCurrentAuthorInfo(
{
terminal: 'pc',
authorId: 'appGuid1',
authorName: '主治医生1',
permissionLevel: 1,
claims: 'claim1;claim2;',
attrs : {
customAttr : '上级医师审阅修改'
}
});文档更新时间: 2025-12-25 09:54 作者:admin