|
@@ -438,7 +438,7 @@ class OrderController extends Controller
|
|
|
'attitude_score' => 'nullable|numeric|min:1|max:5',
|
|
|
'professional_score' => 'nullable|numeric|min:1|max:5',
|
|
|
'tags' => 'nullable|array',
|
|
|
- 'tags.*' => 'integer|exists:comment_tags,id',
|
|
|
+ 'tags.*' => 'integer|exists:order_comment_tags,id',
|
|
|
'content' => 'nullable|string|max:1000',
|
|
|
'images' => 'nullable|array',
|
|
|
'images.*' => 'string'
|
|
@@ -448,6 +448,35 @@ class OrderController extends Controller
|
|
|
return $this->success(null, '评价成功');
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+ * [订单]获取评价标签列表
|
|
|
+ *
|
|
|
+ * 获取所有可用的评价标签列表,用于用户评价时选择
|
|
|
+ *
|
|
|
+ * @authenticated
|
|
|
+ *
|
|
|
+ * @response {
|
|
|
+ * "data": [
|
|
|
+ * {
|
|
|
+ * "id": 1,
|
|
|
+ * "tag_name": "打扫干净"
|
|
|
+ * },
|
|
|
+ * {
|
|
|
+ * "id": 2,
|
|
|
+ * "tag_name": "工装规范"
|
|
|
+ * },
|
|
|
+ * {
|
|
|
+ * "id": 3,
|
|
|
+ * "tag_name": "态度端正"
|
|
|
+ * }
|
|
|
+ * ]
|
|
|
+ * }
|
|
|
+ */
|
|
|
+ public function commentTags()
|
|
|
+ {
|
|
|
+ return $this->success($this->service->getCommentTags());
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
* [订单]删除订单
|
|
|
*
|