getList()); } /** * * @time 2020年04月28日 * @param Log $log * @throws \Exception * @return \think\response\Json */ public function empty(Log $log) { return CatchResponse::success($log->where('id', '>', 0)->delete(), '清空成功'); } /** * 批量删除 * * @param mixed $id * @param Log $log * @return \think\response\Json */ public function delete($id, Log $log) { return CatchResponse::success($log->deleteBy($id)); } }