init
This commit is contained in:
29
apps/admin/model/system/SyslogModel.php
Normal file
29
apps/admin/model/system/SyslogModel.php
Normal file
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
/**
|
||||
* @copyright (C)2016-2099 Hnaoyun Inc.
|
||||
* @author XingMeng
|
||||
* @email hnxsh@foxmail.com
|
||||
* @date 2017年3月29日
|
||||
* 日志模型类
|
||||
*/
|
||||
namespace app\admin\model\system;
|
||||
|
||||
use core\basic\Model;
|
||||
|
||||
class SyslogModel extends Model
|
||||
{
|
||||
|
||||
// 获取日志列表
|
||||
public function getList()
|
||||
{
|
||||
return parent::table('ay_syslog')->order('id DESC')
|
||||
->page()
|
||||
->select();
|
||||
}
|
||||
|
||||
// 删除全部
|
||||
public function clearLog()
|
||||
{
|
||||
return parent::table('ay_syslog')->delete();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user