37 lines
776 B
PHP
Raw Normal View History

2020-01-09 08:21:44 +08:00
<?php
namespace catchAdmin\permissions\model;
use catcher\base\CatchModel;
class Job extends CatchModel
{
2020-01-12 09:30:56 +08:00
protected $name = 'jobs';
2020-01-09 08:21:44 +08:00
protected $field = [
2020-01-09 22:20:36 +08:00
'id', //
'job_name', // 岗位名称
'coding', // 编码
'creator_id', // 创建人ID
'status', // 1 正常 2 停用
'sort', // 排序字段
'description', // 描述
'created_at', // 创建时间
'updated_at', // 更新时间
'deleted_at', // 删除状态null 未删除 timestamp 已删除
];
/**
* 列表
*
* @time 2020年01月09日
* @param $params
* @throws \think\db\exception\DbException
* @return \think\Paginator
*/
2020-01-13 21:23:24 +08:00
public function getList()
2020-01-09 22:20:36 +08:00
{
2020-01-13 21:23:24 +08:00
return $this->catchSearch()
2020-01-21 17:56:10 +08:00
->paginate();
2020-01-09 22:20:36 +08:00
}
}