feat: 添加站点配置/配置项分页/配置项详情/配置项新增/配置项更新/配置项删除接口/站点配置项

接口/站点配置项更新接口/配置项类型接口/配置项分组接口
This commit is contained in:
2025-03-06 18:03:44 +08:00
parent f80c09c7e6
commit 48f01ee8a6
12 changed files with 648 additions and 1 deletions

View File

@@ -0,0 +1,31 @@
<?php
declare (strict_types = 1);
namespace app\admin\model\v1;
use app\common\model\SysConfigGroupBaseModel;
use think\model\concern\SoftDelete;
/**
* 系统配置分组模型
* @mixin \think\Model
*/
class SysConfigGroupModel extends SysConfigGroupBaseModel
{
// 启用软件删除
use SoftDelete;
// 软件删除字段
protected $deleteTime = 'deleted_at';
// 按语言搜索
public function scopeLanguage($query, $value)
{
$query->where('language_id', '=', $value);
}
// 获取启用的配置分组
public function scopeEnabled($query)
{
$query->where('status', '=', 1);
}
}