29 lines
519 B
PHP
29 lines
519 B
PHP
<?php
|
|
|
|
declare (strict_types=1);
|
|
namespace app\common\model;
|
|
|
|
use cores\BaseModel;
|
|
|
|
/**
|
|
* 通知类
|
|
* Class GoodsSku
|
|
* @package app\common\model
|
|
*/
|
|
class Notify extends BaseModel
|
|
{
|
|
protected $name = 'notify';
|
|
|
|
/**
|
|
* 通知详情
|
|
* @param $where
|
|
* @return null|static
|
|
* @throws \think\exception\DbException
|
|
*/
|
|
public static function detail($where)
|
|
{
|
|
is_array($where) ? $filter = $where : $filter['notify_id'] = (int)$where;
|
|
return self::get($filter);
|
|
}
|
|
}
|