6
0
Fork 0

调整接口返回消息内容

release
vine_liutk 2021-12-13 15:56:49 +08:00
parent e32c51c713
commit c6a971a7da
2 changed files with 3 additions and 0 deletions

View File

@ -30,6 +30,8 @@ class MessageController extends AdminController
])->label();
$grid->column('jump_link');
$grid->column('created_at')->sortable();
$grid->model()->orderBy('created_at', 'desc');
// $grid->column('updated_at');
/** 操作 **/
//新增

View File

@ -18,6 +18,7 @@ class MessageResource extends JsonResource
'id' => $this->id,
'title' => $this->title,
'content' => $this->content,
'type' => $this->type,
'ext' => $this->ext,
'jump_type' => $this->jump_type,
'jump_link' => (string) $this->jump_link,