<?php

namespace  App\Http\Requests\OpenWork;

use App\Http\Requests\BaseRequest;

/**
 * 企业信息规则
 * @author  唐远望
 * @date    2025-04-27
 * */
class InstallWeb extends BaseRequest
{

    /**
     *
     * @return  array
     */
    public  function  rules()
    {
        // 规则
        return [
            'corpid'              => 'required',
            'merchant_user_name'   => 'required',
            'merchant_user_password'    => 'required'
        ];
    }

    // 场景列表
    protected   $scenes         = [
        'get_corp_info'                    => ['corpid'],
        'bind_company'                    => ['corpid', 'merchant_user_name','merchant_user_password'],
        'unbind_company'                    => ['corpid'],

    ];

    /**
     *
     * @return  array
     */
    public  function  messages()
    {
        return [
            'corpid.required'     => '授权方corpid不能为空',
            'merchant_user_name.required'     => '商户用户名不能为空',
           'merchant_user_password.required'     => '商户密码不能为空',
        ];
    }
}
