nk-lihaink-cn/app/admin/validate/SupplyAccountValidate.php

26 lines
659 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 SupplyAccountValidate extends Validate
{
protected $rule = [
'account' => 'require',
'name' => 'require',
'bank' => 'require',
'bank_address' => 'require',
];
protected $message = [
'account.require' => '账号不能为空',
'name.require' => '用户名不能为空',
'bank.require' => '开户银行不能为空',
'bank_address.require' => '开户地址不能为空',
];
}