api/app/BaseModel.php
2021-01-04 13:45:02 +08:00

46 lines
882 B
PHP

<?php
/**
* Created by PhpStorm.
* User: yancheng<cheng@love.xiaoyan.me>
* Date: 2020/12/10
* Time: 20:28
*/
namespace app;
use think\Model;
/**
* Class BaseModel
* @package app\model
*
* @property int $id
* @property int $create_time
* @property int $update_time
* @property int $status
*/
class BaseModel extends Model
{
/**
* @param null $data
* @return array|Model|static
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\DbException
* @throws \think\db\exception\ModelNotFoundException
*/
public function find($data = null)
{
return parent::find($data); // TODO: Change the autogenerated stub
}
/**
* @param null $data
* @return array|Model|static
*/
public function findOrEmpty($data = null)
{
return parent::findOrEmpty($data);
}
}