调整接口返回消息内容
parent
e32c51c713
commit
c6a971a7da
|
|
@ -30,6 +30,8 @@ class MessageController extends AdminController
|
||||||
])->label();
|
])->label();
|
||||||
$grid->column('jump_link');
|
$grid->column('jump_link');
|
||||||
$grid->column('created_at')->sortable();
|
$grid->column('created_at')->sortable();
|
||||||
|
|
||||||
|
$grid->model()->orderBy('created_at', 'desc');
|
||||||
// $grid->column('updated_at');
|
// $grid->column('updated_at');
|
||||||
/** 操作 **/
|
/** 操作 **/
|
||||||
//新增
|
//新增
|
||||||
|
|
|
||||||
|
|
@ -18,6 +18,7 @@ class MessageResource extends JsonResource
|
||||||
'id' => $this->id,
|
'id' => $this->id,
|
||||||
'title' => $this->title,
|
'title' => $this->title,
|
||||||
'content' => $this->content,
|
'content' => $this->content,
|
||||||
|
'type' => $this->type,
|
||||||
'ext' => $this->ext,
|
'ext' => $this->ext,
|
||||||
'jump_type' => $this->jump_type,
|
'jump_type' => $this->jump_type,
|
||||||
'jump_link' => (string) $this->jump_link,
|
'jump_link' => (string) $this->jump_link,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue