调整接口返回消息内容
parent
e32c51c713
commit
c6a971a7da
|
|
@ -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');
|
||||
/** 操作 **/
|
||||
//新增
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue