Kaynağa Gözat

feat(api): 更新反馈列表接口返回格式

- 修改 feedbackList 方法返回结构,包含 reply 字段
- 保持原有列表数据获取逻辑不变
- 添加 reply 布尔值返回标识
shichen 4 ay önce
ebeveyn
işleme
77708b7c39
1 değiştirilmiş dosya ile 3 ekleme ve 1 silme
  1. 3 1
      app/controller/api/user/Feedback.php

+ 3 - 1
app/controller/api/user/Feedback.php

@@ -53,7 +53,9 @@ class Feedback
53 53
     public function feedbackList()
54 54
     {
55 55
         $data = request()->params(['page', 'limit']);
56
-        return app('json')->success($this->repository->getList(['uid' => request()->uid(), 'is_del' => 0], $data['page'] ?? 1, $data['limit'] ?? 20));
56
+        $list = $this->repository->getList(['uid' => request()->uid(), 'is_del' => 0], $data['page'] ?? 1, $data['limit'] ?? 20);
57
+        $reply = true;
58
+        return app('json')->success(['list' => $list, 'reply' => $reply]);
57 59
     }
58 60
 
59 61
     public function detail($id)