导读:
检索时添加:
上传人
上传时间
标签选项
定义图
selectTitle
selectContent
检索接口
请求:get
/kms/search/files?keyWord={keyWord}&selectTitle=true&selectContent=true&creator={creator}&beginTime={beginTime}&endTime={endTime}&fileTypes={fileTypes}&categoryIds={categoryIds}&scope={scope}&pageNo={pageNo}&linesPerPage={linesPerPage}
参数 | 含义 |
---|---|
keyWord | 关键词 |
selectTitle | 标题是否搜索-true/false |
selectContent | 内容是否搜索-true/false |
creator | 创建人 |
beginTime | 时间范围-开始时间-毫秒值 |
endTime | 时间范围-结束时间-毫秒值 |
fileTypes | 文件类型-doc/docx/ppt/pptx/xls/xlsx |
categoryIds | 标签id集合 |
scope | 区域 |
pageNo | 页数 |
linesPerPage | 每页显示数量 |
返回的json
{
"errcode": 0,
"errmsg": "ok",
"data": {
"rowCount": 1,
"linesPerPage": 10,
"pageNo": 1,
"datas": [{
"id": "a5133813-54f9-45ac-bed0-3bb6c96d137f",
"name": "2018.1.19信息参阅第18期人行道<span style='color:red;'>建设</span>与治理专刊 (1).doc",
"creatorId": "zPsp2hk7CEwtqeMCwtj",
"creator": "管理员",
"createDate": "2020-06-08",
"lastModifyDate": "2020-06-08",
"diskId": "0dd1e1c1-b5dd-41f4-8e3e-c0479448faf9",
"folderId": "a56f8f78-52b4-44ef-af2e-fe4136974500",
"folder": false,
"size": 98586,
"path": "0dd1e1c1-b5dd-41f4-8e3e-c0479448faf9/a56f8f78-52b4-44ef-af2e-fe4136974500",
"type": "doc",
"url": "0dd1e1c1-b5dd-41f4-8e3e-c0479448faf9/202006/a5133813-54f9-45ac-bed0-3bb6c96d137f.doc",
"originType": 1,
"originId": null,
"categorys": null,
"categorysJson": [{
"isAuto": true,
"categoryName": "2",
"categoryId": "4e8278fe-df5d-4542-b044-5f9673fd5d4a",
"fileId": "a5133813-54f9-45ac-bed0-3bb6c96d137f"
}, {
"isAuto": false,
"categoryName": "素质",
"categoryId": "61b0c95e-9660-4b6b-9d87-d217c132562b",
"fileId": "a5133813-54f9-45ac-bed0-3bb6c96d137f"
}, {
"isAuto": false,
"categoryName": "天河区",
"categoryId": "52ec8721-c5a5-475f-b3dc-208a228765c8",
"fileId": "a5133813-54f9-45ac-bed0-3bb6c96d137f"
}, {
"isAuto": false,
"categoryName": "审核意见",
"categoryId": "90fedf5e-fb65-4b9b-ab63-ecab39c7e61a",
"fileId": "a5133813-54f9-45ac-bed0-3bb6c96d137f"
}, {
"isAuto": false,
"categoryName": "广州市",
"categoryId": "d0afdbdc-ea28-4dd1-b3e8-54a14e2e0071",
"fileId": "a5133813-54f9-45ac-bed0-3bb6c96d137f"
}],
"views": 0,
"lastViewDate": null,
"downloads": 0,
"lastDownloadDate": null,
"shares": 0,
"lastShareDate": null,
"collects": 0,
"lastCollectDate": null,
"lastEditDate": null,
"good": 0,
"bad": 0,
"fileType": "doc",
"content": "<abc style='color:red;'>建设</abc>",
"resourceType": "1",
"pageCount": "17",
"folderName": "bb"
}],
"pageCount": 1
}
}