public function write(gbookModel $gb, $data) { $book = $gb->getbookPath(); $gb->write($data); // 记录日志 }
public function delete(gbookModel $g) { $g->delete(); echo self::view($g); }
public function viewByPage(gbookModel $g) { return $g->readByPage(); }