|
...
|
...
|
@@ -25,7 +25,7 @@ class DescribeController extends BaseController |
|
|
|
$map[] = ['title', 'like', "%{$this->param['search']}%"];
|
|
|
|
}
|
|
|
|
$sort = ['id' => 'desc'];
|
|
|
|
$data = $logic->getList($map, $sort, ['id', 'title', 'describe', 'status', 'created_at']);
|
|
|
|
$data = $logic->getList($map, $sort, ['id', 'title', 'text', 'status', 'created_at']);
|
|
|
|
return $this->success($data);
|
|
|
|
}
|
|
|
|
|
|
...
|
...
|
@@ -36,7 +36,7 @@ class DescribeController extends BaseController |
|
|
|
'id.required' => 'ID不能为空'
|
|
|
|
]);
|
|
|
|
$data = $logic->getInfo($this->param['id']);
|
|
|
|
return $this->success(Arr::twoKeepKeys($data, ['id', 'title', 'describe', 'created_at']));
|
|
|
|
return $this->success(Arr::twoKeepKeys($data, ['id', 'title', 'text', 'created_at']));
|
|
|
|
}
|
|
|
|
|
|
|
|
public function save(DescribeRequest $request, DescribeLogic $logic)
|
...
|
...
|
|