* userModel: declare parameter type and return type of the deleteContactList method.

This commit is contained in:
liugang
2023-12-11 14:29:23 +08:00
parent 055e7e8352
commit 470fb5ad52
+5 -3
View File
@@ -1540,15 +1540,17 @@ class userModel extends model
}
/**
* 删除一个联系人列表。
* Delete a contact list.
*
* @param int $listID
* @access public
* @return void
* @return bool
*/
public function deleteContactList($listID)
public function deleteContactList(int $listID): bool
{
return $this->dao->delete()->from(TABLE_USERCONTACT)->where('id')->eq($listID)->exec();
$this->dao->delete()->from(TABLE_USERCONTACT)->where('id')->eq($listID)->exec();
return !dao::isError();
}
/**