| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- <?php
- namespace App\Http\Requests\OpenWork\Statistics;
- use App\Http\Requests\BaseRequest;
- /**
- * 成员执行结果校验规则
- * @author 唐远望
- * @date 2025-08-08
- * */
- class EnterpriseWeChatMoments extends BaseRequest
- {
- /**
- *
- * @return array
- */
- public function rules()
- {
- // 规则
- return [
- 'corpid' => 'required',
- 'moment_id' => 'required',
- 'limit' => 'integer',
- 'moment_id' => 'required',
- ];
- }
- // 场景列表
- protected $scenes = [
- 'sendUserList' => ['corpid','moment_id','limit'],
- 'sendStatistics' => ['corpid','moment_id'],
- 'InteractiveUserList' => ['corpid','moment_id','limit'],
- ];
- /**
- *
- * @return array
- */
- public function messages()
- {
- return [
- 'corpid.required' => '授权方corpid不能为空',
- 'moment_id.required' => '朋友圈ID不能为空',
- 'limit.integer' => '每页记录数必须为整数',
- 'moment_id.required' => '朋友圈ID不能为空',
- ];
- }
- }
|