# mcs 接口文档 ## GetRecordFileList: 视频文件路径接口 ### env:测试线 - url: https://tmrwatch.cn:8082/authdata/mcs/files - method: post - header: 现代牧业接口token - body: - 注意: 1. sessionId,首字母,可以改成小写 2. wno: 可以传工单号,这样一个工单号,对应一个保养视频(待确定),目前接口只传回多个文件路径中的一个。 ``` { "sessionId": "7eea4610d4f1dcc572b7351f5a5fdef131571842484b03f05fa8e5a90486f227680272d2e47d7a98738b32473e0dffb348bd1b0273079c67d5ee3d90050d78c9", "St": "2021-01-01", "et": "2023-12-28", "Did": "apptest2", "ft": "3", "lt": "-1", "key": "", "page": "1", "pagesize": "25", "wno": "" } ``` - response-body; * 注意:response.statuscode和body里的code相同 ``` { "code": 200, "data": { "path": "/apptest2/Video/20220720_13/apptest2_000000_1_20220720_133118_0001.mp4", "uploadTime": "2022-07-20 13:33:56" }, "message": "ok", "success": true } ``` ## 开启、关闭录像设备 - url:https://tmrwatch.cn:8082/authdata/mcs/record,psot - Header:token - body: - 注意: 1. 关闭录像,method:stopRecord,其他和启动接口相同 2. 状态码:设备关闭时,返回404 3. workNo:可传工单号,待确定 ``` { "token": "", "request": true, "id": 3202302, "method": "startRecord", "data": { "devId": "apptest2", "peopleNo": "", "workNo": "1", "storType": 0 } } ``` - response ``` { "code": 404, "data": null, "message": "devId[apptest2]offile", "success": true } ``` ## 设备账号 - url:https://tmrwatch.cn:8082/authdata/mcs/accounts - method: get - param: 无 - response ``` { "code": 200, "data": [ { "deviceId": "apptest2", "pwd": "mcs8", "uId": "PC" } ], "message": "ok", "success": true } ```