<?php

namespace  App\Http\Requests\OpenWork\Statistics;

use App\Http\Requests\BaseRequest;

/**
 * 客户群发校验规则
 * @author  唐远望
 * @date    2025-08-08
 * */
class CustomerGroupSending extends BaseRequest
{

    /**
     *
     * @return  array
     */
    public  function  rules()
    {
        // 规则
        return [
            'corpid'              => 'required',
            'moment_id'           => 'required',
            'limit'               => 'integer',
            'id'                  => 'required|integer'
        ];
    }

    // 场景列表
    protected   $scenes           = [
        'syncMassSendDetailData'                => ['corpid','id'],
        'touchUserList'                        => ['corpid','id','limit'],
        'sendUserList'                         => ['corpid','id','limit'],
        'sendStatistics'                       => ['corpid','id'],

    ];

    /**
     *
     * @return  array
     */
    public  function  messages()
    {
        return [
            'corpid.required'     => '授权方corpid不能为空',
            'limit.integer'       => '每页记录数必须为整数',
            'moment_id.required'         => '朋友圈ID不能为空',
            'id.required'               => '模板ID不能为空',
            'id.integer'               => '模板ID格式错误',
        ];
    }
}
