*/ namespace Admin\Model; class ApiListModel extends BaseModel { public function open( $where ){ return $this->where( $where )->save( array('status' => 1) ); } public function close( $where ){ return $this->where( $where )->save( array('status' => 0) ); } public function del( $where ){ return $this->where( $where )->delete(); } }