public function works()
 {
     $page = I('param.page', 1);
     $work = new \Admin\Model\WorkModel();
     $data = $work->getList(20, $page);
     $this->ajaxReturn($data, "json");
 }
 public function destroy()
 {
     $wid = I('param.wid', '');
     $work = new \Admin\Model\WorkModel();
     $this->ajaxReturn($work->deleteWork($wid), "json");
 }