nk-lihaink-cn/app/admin/validate/SupplyTeamValidate.php
2023-03-13 17:57:40 +08:00

36 lines
1.1 KiB
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',
'area_id' => 'require',
'brokerage' => 'require',
'withdraw_brokerage' => 'require',
'free_brokerage' => 'require',
'supply_level_id' => 'require',
'user_id' => 'require',
];
protected $message = [
'name.require' => '后台供应链团队分组名称不能为空',
'lng.require' => '经度不能为空',
'lat.require' => '维度不能为空',
'area_id.require' => '区县ID不能为空',
'brokerage.require' => '团队分佣金额不能为空',
'withdraw_brokerage.require' => '团队分佣已提现金额不能为空',
'free_brokerage.require' => '分佣冻结金额不能为空',
'supply_level_id.require' => '团队所属等级不能为空',
'user_id.require' => '团队后台负责人ID不能为空',
];
}