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