打印统计接口-清华
<h2>打印统计接口</h2>
<h3>API路径</h3>
<pre><code>http://IP:60081/idsp/api/sys/wsxxLqqk/count</code></pre>
<h3>请求类型</h3>
<pre><code>HTTP POST</code></pre>
<h3>请求头</h3>
<table>
<thead>
<tr>
<th>参数名</th>
<th>数据</th>
</tr>
</thead>
<tbody>
<tr>
<td>token</td>
<td>eda2025fa8152fda48ac129a6f6b52f8</td>
</tr>
<tr>
<td>Content-Type</td>
<td>application/json;charset=UTF-8</td>
</tr>
</tbody>
</table>
<h3>请求体</h3>
<pre><code> {
"mac": "设备mac地址",
"sbbh": "设备编号",
"cjsj": "" // 注意格式:yyyy-mm-dd
}</code></pre>
<h3>响应体</h3>
<pre><code>{
"flag": 请求状态:1成功,0失败,
"totalCount": 总数量,
"msg": "请求描述",
"data": {
"dayCount": “今日打印份数”,
"totalCount": “已打印份数量”
},
"extraRes": null
}</code></pre>
<h3>API路径示例</h3>
<pre><code>http://192.168.0.13:60081/idsp/api/sys/wsxxLqqk/count</code></pre>
<h3>请求体示例</h3>
<pre><code> {
"mac": "1",
"sbbh": "1",
"cjsj": "2022-01-07"
}</code></pre>
<h3>响应体示例</h3>
<pre><code>{
"flag": 1,
"totalCount": 0,
"msg": null,
"data": {
"dayCount": 1,
"totalCount": 1
},
"extraRes": null
}</code></pre>