瀏覽代碼

add tpl_id

visuddhinanda 3 年之前
父節點
當前提交
a64449a053
共有 1 個文件被更改,包括 1 次插入 和 0 次删除
  1. 1 0
      app/Http/Resources/DiscussionResource.php

+ 1 - 0
app/Http/Resources/DiscussionResource.php

@@ -26,6 +26,7 @@ class DiscussionResource extends JsonResource
             "editor"=> UserApi::getByUuid($this->editor_uid),
             "editor"=> UserApi::getByUuid($this->editor_uid),
             "res_id"=>$this->res_id,
             "res_id"=>$this->res_id,
             "res_type"=> $this->res_type,
             "res_type"=> $this->res_type,
+            "tpl_id"=> $this->tpl_id,
             'children_count' => Discussion::where('parent',$this->id)->count(),
             'children_count' => Discussion::where('parent',$this->id)->count(),
             "created_at"=> $this->created_at,
             "created_at"=> $this->created_at,
             "updated_at"=> $this->updated_at,
             "updated_at"=> $this->updated_at,