油机打通 - 员工绑定油枪信息查询
<h5>接口使用描述</h5>
<pre><code>员工绑定了哪些油枪,查询抢号和枪名等信息。</code></pre>
<h5>接口地址</h5>
<pre><code> 接口地址:https://api.liantuofu.com/open/oilMachine/employeeGunsBindInfo</code></pre>
<p><br/></p>
<h4>请求参数<img src='<a href="https://www.showdoc.cc/server/api/common/visitfile/sign/bfc24f8d7eb93fae8e66d4ab2b4bc461?showdoc=.jpg">https://www.showdoc.cc/server/api/common/visitfile/sign/bfc24f8d7eb93fae8e66d4ab2b4bc461?showdoc=.jpg</a>' align='right' style=' width:300px;height:100 px'/></h4>
<table>
<thead>
<tr>
<th><strong>NO</strong></th>
<th><strong>字段</strong></th>
<th><strong>名称</strong></th>
<th><strong>长度</strong></th>
<th><strong>必填</strong></th>
<th><strong>示例</strong></th>
<th><strong>说明</strong></th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>appId</td>
<td>合作方标识</td>
<td>string</td>
<td>Y</td>
<td>EW_N2949193174</td>
<td>合作商户编码,用于以后所有接口发起请求时验签使用</td>
</tr>
<tr>
<td>2</td>
<td>merchantCode</td>
<td>门店编号</td>
<td>string</td>
<td>Y</td>
<td></td>
<td></td>
</tr>
<tr>
<td>3</td>
<td>random</td>
<td>随机数</td>
<td>string</td>
<td>Y</td>
<td>123</td>
<td>用来增加加密验签的复杂度,长度不限制,只限制传递数字,不支持中文,字母,特殊符号。</td>
</tr>
<tr>
<td>4</td>
<td>sign</td>
<td>签名。具体参见“<a href="https://www.showdoc.cc/web/#/liantuofu?page_id=673453270295568">签名规则</a>”</td>
<td>string</td>
<td>Y</td>
<td>1b70687c8a4c72f50c749baf95a482c0</td>
<td>MD5加密验签值。具体参见“<a href="https://www.showdoc.cc/web/#/liantuofu?page_id=673453270295568">签名规则</a>”</td>
</tr>
<tr>
<td>5</td>
<td>employeeId</td>
<td>员工ID</td>
<td>int</td>
<td>N</td>
<td>10241804</td>
<td>每个员工都有专属id</td>
</tr>
<tr>
<td>6</td>
<td>oilsType</td>
<td>油品类型 0汽油 1柴油 2天然气</td>
<td>int</td>
<td>N</td>
<td>0</td>
<td>油品类型</td>
</tr>
</tbody>
</table>
<hr />
<h4>响应参数</h4>
<table>
<thead>
<tr>
<th><strong>NO</strong></th>
<th><strong>字段</strong></th>
<th><strong>名称</strong></th>
<th><strong>长度</strong></th>
<th><strong>必填</strong></th>
<th><strong>示例</strong></th>
<th><strong>说明</strong></th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>code</td>
<td>返回结果</td>
<td>string</td>
<td>Y</td>
<td>S</td>
<td>S:成功 F:失败</td>
</tr>
<tr>
<td>2</td>
<td>msg</td>
<td>结果描述</td>
<td>string</td>
<td>Y</td>
<td>查询成功</td>
<td>无论是成功或者失败,message都会针对于当前的结果返回响应的结果描述</td>
</tr>
<tr>
<td>3</td>
<td>employeeId</td>
<td>员工ID</td>
<td>string</td>
<td>N</td>
<td>10241804</td>
<td>每个员工都有专属id</td>
</tr>
<tr>
<td>4</td>
<td>gunsList</td>
<td>绑定油枪信息</td>
<td>array</td>
<td>Y</td>
<td>[{"gun":1,"gunName":"1号枪"},{"gun":2,"gunName":"2号枪"}]</td>
<td>绑定油枪信息,包含枪号和枪名</td>
</tr>
</tbody>
</table>
<p><br/><br/></p>
<h4>gunsList</h4>
<table>
<thead>
<tr>
<th><strong>NO</strong></th>
<th><strong>字段</strong></th>
<th><strong>名称</strong></th>
<th><strong>长度</strong></th>
<th><strong>必填</strong></th>
<th><strong>示例</strong></th>
<th><strong>说明</strong></th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>gun</td>
<td>枪号</td>
<td>string</td>
<td>Y</td>
<td>1</td>
<td>枪号</td>
</tr>
<tr>
<td>2</td>
<td>gunName</td>
<td>枪名</td>
<td>string</td>
<td>Y</td>
<td>1号枪</td>
<td>枪名</td>
</tr>
</tbody>
</table>
<hr />
<h5>请求示例:</h5>
<pre><code></code></pre>
<h5>响应示例(成功):</h5>
<pre><code class="language-json">{
&quot;gunsList&quot;:[{
&quot;gun&quot;:1,
&quot;gunName&quot;:&quot;1号枪&quot;
},{
&quot;gun&quot;:2,
&quot;gunName&quot;:&quot;2号枪&quot;
},{
&quot;gun&quot;:3,
&quot;gunName&quot;:&quot;3号枪&quot;
},{
&quot;gun&quot;:4,&quot;
gunName&quot;:&quot;4号枪&quot;
}],
&quot;code&quot;:&quot;S&quot;,
&quot;msg&quot;:&quot;查询成功&quot;
}</code></pre>
<pre><code></code></pre>