初始化项目
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
<?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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user