where($condition)->order($order)->paginate(['list_rows' => $pagesize, 'query' => request()->param()], false); $this->page_info = $list; return $list; } /** * 新增 * @access public * @author csdeshang * @param array $data 参数内容 * @return bool 布尔类型的返回结果 */ public function addFeedback($data) { return Db::name('feedback')->insertGetId($data); } /** * 删除 * @access public * @author csdeshang * @param int $condition 条件 * @return bool 布尔类型的返回结果 */ public function delFeedback($condition) { return Db::name('feedback')->where($condition)->delete(); } }