You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

48 lines
1.1 KiB

<?php
declare(strict_types=1);
namespace App\Request;
use Hyperf\Validation\Request\FormRequest;
class CouponRebateTieRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*/
public function authorize(): bool
{
return true;
}
/**
* Get the validation rules that apply to the request.
*/
public function rules(): array
{
return [
'coupon_activity' => 'required|nonempty',
'coupon_forward_ids' => 'required|nonempty',
'coupon_repay_id' => 'required|nonempty',
];
}
public function messages(): array
{
return [
'coupon_activity.*' => ':attribute必须',
'coupon_forward_ids.*' => ':attribute必须',
'coupon_repay_id.*' => ':attribute必须',
];
}
public function attributes(): array
{
return [
'coupon_activity' => '优惠券活动',
'coupon_forward_ids' => '领取类型优惠券',
'coupon_repay_id' => '返还类型优惠券',
];
}
}