where($where) ->append(['type_desc','page_desc']) ->select() ->toArray(); return $lists; } /** * @notes 编辑 * @param $params * @return true * @author ljj * @date 2024/9/9 下午5:35 */ public function edit($params) { DevShare::update([ 'id' => $params['id'], 'title' => $params['title'] ?? '', 'synopsis' => $params['synopsis'] ?? '', 'image' => $params['image'] ?? '', ]); return true; } /** * @notes 详情 * @param $params * @return array * @author ljj * @date 2024/9/9 下午5:35 */ public function detail($params) { $result = DevShare::findOrEmpty($params['id'])->toArray(); return $result; } }