描述
获取历史所有编辑者信息。
接口
string GetEditorsInfo(const char *doc_name);参数
| 参数名 | 必填 | 类型 | 说明 | 备注 |
|---|---|---|---|---|
| doc_name | 是 | string | 需要获取的文档名 | 为””时表示获取当前文档 |
返回值
- 返回Json数组,格式如下
[ { "optId": "编辑器随机产生", "current": 1, "id": "用户设置", "name": "用户设置", "terminal": "pc", "level": 1, "time": "1635597053", "attrs": "json str" } ]
| 字段 | 类型 | 说明 | 备注 |
|---|---|---|---|
| optId | string | 操作编号 | 由编辑器自动生成 |
| current | bool | 0: 历史编辑者 1:当前编辑者 | |
| id | string | 对应SetEditorInfo()接口editorId参数 | |
| name | string | 对应SetEditorInfo()接口oeditorName参数 | |
| terminal | string | 对应SetEditorInfo()接口terminal参数 | |
| level | int | 对应SetEditorInfo()接口permission_level参数 | |
| attrs | json str | 对应SetEditorInfo()接口attrs_jsonstr参数 | |
| time | string | 对应UpdateServerTime()接口server_time参数 | 为Unix时间戳的字符串表示,单位:秒 示例”1635597053” |
文档更新时间: 2025-10-14 21:07 作者:admin