quanwei
2025-12-05 feda780069d64479c0c20493603717e100655da9
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?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();
    }
 
}