学生销假接口
<p><strong>简要描述:</strong> </p>
<ul>
<li>学生销假接口</li>
</ul>
<p><strong>请求URL:</strong> </p>
<ul>
<li><code>http://xx.com/api/leave/stuxj.html</code></li>
</ul>
<p><strong>请求方式:</strong></p>
<ul>
<li>POST </li>
</ul>
<p><strong>参数:</strong> </p>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th style="text-align: left;">必选</th>
<th style="text-align: left;">类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">leaveid</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">string</td>
<td>请假ID</td>
</tr>
<tr>
<td style="text-align: left;">isneedapprove</td>
<td style="text-align: left;">否</td>
<td style="text-align: left;">int</td>
<td>是否需要请审</td>
</tr>
<tr>
<td style="text-align: left;">xj_lx</td>
<td style="text-align: left;">否</td>
<td style="text-align: left;">int</td>
<td>销假类型 0=修改请假时间,1=全部销假</td>
</tr>
<tr>
<td style="text-align: left;">xjinfo</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">JSON字符串</td>
<td>销假信息(修改请假时间时) 格式如下</td>
</tr>
<tr>
<td style="text-align: left;"><strong>xjinfo.jiucan_cancledays</strong></td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">JSON字符串</td>
<td>销假信息(修改请假时间时) 格式如下</td>
</tr>
<tr>
<td style="text-align: left;">type</td>
<td style="text-align: left;">否</td>
<td style="text-align: left;">string</td>
<td>餐别 请假第一天 不取消的餐别type,多个逗号隔开。示例:0,2,10</td>
</tr>
</tbody>
</table>
<pre><code>xjinfo格式:
{
&quot;sj_endtime&quot;: &quot;2021-09-12&quot;, 单位“小时”时,传 yyyy-MM-dd HH:mi格式
&quot;sj_endamlx&quot;: 0, //0=上午,1=下午 单位“天”时,传这个属性
&quot;sj_endlessonid&quot;: 0, //结束课节 单位“节”时,传这个属性
&quot;xjreason&quot;:&quot;销假原因&quot;,
&quot;filelist&quot;:[{&quot;fileurl&quot;:&quot;http://xxxx.jpg&quot;}],
&quot;jiucan_cancledays&quot;:[
{
&quot;date&quot;: &quot;1983-10-18&quot;,
&quot;morn_cancle&quot;: 1,
&quot;lunch_cancle&quot;: 1,
&quot;dinner_cancle&quot;: 1,
&quot;fid&quot;:&quot;232332&quot;//就餐方案ID
}
],//旧格式 -废弃
&quot;jiucan_cancledays&quot;:[
{
&quot;date&quot;: &quot;1982-10-19&quot;,
&quot;morn&quot;: {
&quot;cancle&quot;: 1,
&quot;fid&quot;: &quot;33233323&quot;,
},
&quot;lunch&quot;: {
&quot;cancle&quot;: 1,
&quot;fid&quot;: &quot;33233323&quot;
},
&quot;break&quot;: {
&quot;cancle&quot;: 1,
&quot;fid&quot;: &quot;33233323&quot;
},
&quot;dinner&quot;: {
&quot;cancle&quot;: 1,
&quot;fid&quot;: &quot;33233323&quot;
}
}
] //新格式 (每个餐别对应一个方案,同天支持多方案ID)
}</code></pre>
<p><strong>返回示例</strong></p>
<pre><code> {
&quot;errcode&quot;: 0,
&quot;errmsg&quot;: &quot;成功&quot;
}</code></pre>
<p><strong>返回参数说明</strong> </p>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th style="text-align: left;">类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">errcode</td>
<td style="text-align: left;">String</td>
<td>错误码</td>
</tr>
<tr>
<td style="text-align: left;">errmsg</td>
<td style="text-align: left;">String</td>
<td>错误信息</td>
</tr>
</tbody>
</table>
<p><strong>备注</strong> </p>
<ul>
<li>更多返回错误代码请看首页的错误代码描述</li>
</ul>
<p>欢迎使用ShowDoc!欢迎使用ShowDoc!</p>