6
0
Fork 0

修改文章接口

release
vine_liutk 2021-12-14 10:41:08 +08:00
parent b9d657ad45
commit 1f66b5064f
2 changed files with 2 additions and 0 deletions

View File

@ -15,6 +15,7 @@ class ArticleResource extends JsonResource
public function toArray($request)
{
return [
'id' => $this->id,
'title' => $this->title,
'cover' => $this->cover,
'subtitle' => $this->subtitle,

View File

@ -15,6 +15,7 @@ class ArticleSimpleResource extends JsonResource
public function toArray($request)
{
return [
'id' => $this->id,
'title' => $this->title,
'subtitle' => $this->subtitle,
'cover' => $this->cover,