截流自动化的商城平台
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.

CouponValidate.php 444B

12345678910111213141516171819202122
  1. <?php
  2. namespace app\api\validate;
  3. use think\Validate;
  4. class CouponValidate extends Validate
  5. {
  6. protected $rule = [
  7. 'coupon_id' => 'require',
  8. 'user_id' => 'require'
  9. ];
  10. protected $message = [
  11. 'coupon_id.require' => '优惠券ID不能为空',
  12. 'user_id.require' => '用户ID不能为空',
  13. ];
  14. public function sceneGetCoupon()
  15. {
  16. return $this->only(['coupon_id', 'user_id']);
  17. }
  18. }