<?php
|
|
namespace app\common\model\opensettings;
|
|
use app\common\model\BaseModel;
|
|
/**
|
* 应用模型
|
*/
|
class OpenSettings extends BaseModel
|
{
|
protected $name = 'open_settings';
|
protected $pk = 'settings_id';
|
|
/**
|
* 获取详情信息
|
*/
|
public static function detail($settings_id)
|
{
|
return (new static())->find($settings_id);
|
}
|
|
/**
|
* 获取某条数据信息
|
*/
|
public static function getDetail($where = [])
|
{
|
return (new static())->where($where)->find();
|
}
|
|
/**
|
* 所有列表
|
*/
|
public static function getAll(){
|
return (new self())->where('is_delete', '=', 0)
|
->select();
|
}
|
|
}
|