* [task#133161] add delete method.

This commit is contained in:
liyang
2024-11-21 13:17:05 +08:00
committed by 曹延义
parent 2a49ae2b14
commit efd63b2d69
+16
View File
@@ -665,4 +665,20 @@ class system extends control
$this->loadModel('action')->create('system', $id, 'inactive');
$this->sendSuccess(array('load' => true));
}
/**
* 删除应用。
* Delete application.
*
* @param int $id
* @access public
* @return void
*/
public function delete(int $id)
{
$this->system->delete(TABLE_SYSTEM, $id);
if(dao::isError()) return $this->sendError(dao::getError());
$this->sendSuccess(array('load' => true));
}
}