first commit

This commit is contained in:
Your Name
2026-01-19 14:19:22 +08:00
commit fe2d9c1868
4777 changed files with 665503 additions and 0 deletions

View File

@@ -0,0 +1,115 @@
<?php
// +----------------------------------------------------------------------
// | likeadmin快速开发前后端分离管理后台PHP版
// +----------------------------------------------------------------------
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
// | 开源版本可自由商用可去除界面版权logo
// | gitee下载https://gitee.com/likeshop_gitee/likeadmin
// | github下载https://github.com/likeshop-github/likeadmin
// | 访问官网https://www.likeadmin.cn
// | likeadmin团队 版权所有 拥有最终解释权
// +----------------------------------------------------------------------
// | author: likeadminTeam
// +----------------------------------------------------------------------
namespace app\adminapi\validate\setting;
use app\common\validate\BaseValidate;
/**
* 语言包验证器
* Class LanguageValidate
* @package app\adminapi\validate\setting
*/
class LanguageValidate extends BaseValidate
{
/**
* 设置校验规则
* @var string[]
*/
protected $rule = [
'id' => 'require',
'name' => 'require',
'name_loc' => 'require',
'symbol' => 'require',
'precision' => 'require',
'is_show' => 'require',
];
/**
* 参数描述
* @var string[]
*/
protected $field = [
'id' => 'id',
'name' => '语言名称',
'name_loc' => '语言名称',
'symbol' => '语言标识',
'precision' => '显示精度',
'is_show' => '是否显示',
];
/**
* @notes 添加场景
* @return LanguageValidate
* @author likeadmin
* @date 2023/11/30 13:59
*/
public function sceneAdd()
{
return $this->only(['name','name_loc','symbol','precision','is_show']);
}
/**
* @notes 编辑场景
* @return LanguageValidate
* @author likeadmin
* @date 2023/11/30 13:59
*/
public function sceneEdit()
{
return $this->only(['id','name','name_loc','symbol','precision','is_show']);
}
/**
* @notes 删除场景
* @return LanguageValidate
* @author likeadmin
* @date 2023/11/30 13:59
*/
public function sceneDelete()
{
return $this->only(['id']);
}
/**
* @notes 详情场景
* @return LanguageValidate
* @author likeadmin
* @date 2023/11/30 13:59
*/
public function sceneDetail()
{
return $this->only(['id']);
}
/**
* @notes 更改状态场景
* @return ArticleValidate
* @author heshihu
* @date 2022/2/22 10:18
*/
public function sceneStatus()
{
return $this->only(['id', 'is_show']);
}
}