'require', 'company_name' => 'require', 'company_user' => 'require', 'company_phone' => 'require|mobile', 'company_address' => 'require', ]; /** * 参数描述 * @var string[] */ protected $field = [ 'id' => 'id', 'company_name' => '平台公司名称', 'company_user' => '平台公司负责人', 'company_phone' => '平台公司联系电话', 'company_address' => '平台公司地址', ]; /** * @notes 添加场景 * @return PlatformValidate * @author likeadmin * @date 2023/08/28 13:37 */ public function sceneAdd() { return $this->only(['company_name','company_user','company_phone','company_address']); } /** * @notes 编辑场景 * @return PlatformValidate * @author likeadmin * @date 2023/08/28 13:37 */ public function sceneEdit() { return $this->only(['id','company_name','company_user','company_phone','company_address','is_del']); } /** * @notes 删除场景 * @return PlatformValidate * @author likeadmin * @date 2023/08/28 13:37 */ public function sceneDelete() { return $this->only(['id']); } /** * @notes 详情场景 * @return PlatformValidate * @author likeadmin * @date 2023/08/28 13:37 */ public function sceneDetail() { return $this->only(['id']); } }