21 lines
425 B
PHP
21 lines
425 B
PHP
<?php
|
|
namespace app\admin\validate\user;
|
|
|
|
use think\Validate;
|
|
|
|
class BusinessTeamValidate extends Validate
|
|
{
|
|
protected $rule = [
|
|
'id|ID' => 'require',
|
|
'name|名称' => 'require',
|
|
'phone|电话' => 'require',
|
|
];
|
|
|
|
public function sceneAdd() {
|
|
return $this->only(['name', 'phone']);
|
|
}
|
|
|
|
public function sceneEdit() {
|
|
return $this->only(['id', 'name', 'phone']);
|
|
}
|
|
} |