初始化-安装依赖

This commit is contained in:
2026-03-03 10:06:12 +08:00
parent 3f349a35a4
commit ec8cac4221
187 changed files with 26292 additions and 0 deletions

View File

@@ -0,0 +1,50 @@
<?php
// +----------------------------------------------------------------------
// | saiadmin [ saiadmin快速开发框架 ]
// +----------------------------------------------------------------------
// | Author: sai <1430792918@qq.com>
// +----------------------------------------------------------------------
namespace plugin\saiadmin\app\validate\system;
use plugin\saiadmin\basic\BaseValidate;
/**
* 邮件验证器
*/
class SystemMailValidate extends BaseValidate
{
/**
* 定义验证规则
*/
protected $rule = [
'gateway' => 'require',
'from' => 'require',
'email' => 'require',
];
/**
* 定义错误信息
*/
protected $message = [
'gateway' => '网关必须填写',
'from' => '发件人必须填写',
'email' => '接收人必须填写',
];
/**
* 定义场景
*/
protected $scene = [
'save' => [
'gateway',
'from',
'email',
],
'update' => [
'gateway',
'from',
'email',
],
];
}