作者 郭盛
1 个管道 的构建 通过 耗费 2 秒

修改学生评价

... ... @@ -387,6 +387,7 @@ class Teacher extends Api
*
* @ApiHeaders (name=token, type=string, required=true, description="请求的Token")
* @ApiParams (name="order_id", type="int", required=true, description="订单ID")
* @ApiParams (name="teacher_id", type="int", required=true, description="老师ID")
* @ApiParams (name="service", type="int", required=true, description="服务态度评分")
* @ApiParams (name="ability", type="int", required=true, description="专业能力评分")
* @ApiParams (name="effect", type="int", required=true, description="解决效果评分")
... ... @@ -408,6 +409,7 @@ class Teacher extends Api
$param['user_id'] = $this->getUserId();
$validate = new Validate([
'order_id' => 'require',
'teacher_id'=>'require',
'service' => 'require',
'ability'=>'require',
'effect'=>'require',
... ...
... ... @@ -5208,6 +5208,12 @@
<td>订单ID</td>
</tr>
<tr>
<td>teacher_id</td>
<td>int</td>
<td></td>
<td>老师ID</td>
</tr>
<tr>
<td>service</td>
<td>int</td>
<td></td>
... ... @@ -5271,6 +5277,10 @@
<input type="int" class="form-control input-sm" id="order_id" required placeholder="订单ID" name="order_id">
</div>
<div class="form-group">
<label class="control-label" for="teacher_id">teacher_id</label>
<input type="int" class="form-control input-sm" id="teacher_id" required placeholder="老师ID" name="teacher_id">
</div>
<div class="form-group">
<label class="control-label" for="service">service</label>
<input type="int" class="form-control input-sm" id="service" required placeholder="服务态度评分" name="service">
</div>
... ... @@ -6514,7 +6524,7 @@
<div class="row mt0 footer">
<div class="col-md-6" align="left">
Generated on 2020-01-17 09:28:36 </div>
Generated on 2020-01-17 09:35:08 </div>
<div class="col-md-6" align="right">
<a href="https://www.fastadmin.net" target="_blank">FastAdmin</a>
</div>
... ...