28 lines
732 B
PHP
28 lines
732 B
PHP
<?php
|
|
/**
|
|
* @copyright Copyright (c) 2021 勾股工作室
|
|
* @license https://opensource.org/licenses/Apache-2.0
|
|
* @link https://www.gougucms.com
|
|
*/
|
|
|
|
namespace app\admin\validate;
|
|
use think\Validate;
|
|
|
|
class SupplyTeamValidate extends Validate
|
|
{
|
|
protected $rule = [
|
|
'name' => 'require',
|
|
'lng' => 'require',
|
|
'lat' => 'require',
|
|
'supply_level_id' => 'require',
|
|
'user_id' => 'require',
|
|
];
|
|
|
|
protected $message = [
|
|
'name.require' => '后台供应链团队分组名称不能为空',
|
|
'lng.require' => '经度不能为空',
|
|
'lat.require' => '维度不能为空',
|
|
'supply_level_id.require' => '团队所属等级不能为空',
|
|
'user_id.require' => '团队后台负责人ID不能为空',
|
|
];
|
|
} |