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.

23 lines
490B

  1. <?php
  2. namespace App\Http\Controllers\Web\Shop;
  3. use App\Http\Controllers\Web\BaseParam;
  4. use App\Models\HtpmsCustomer\Deposit\Deposit;
  5. use Illuminate\Validation\Rule;
  6. /**
  7. * @property string shopId
  8. * @property int amount
  9. */
  10. class DepositChargeParam extends BaseParam
  11. {
  12. public function rules(): array
  13. {
  14. return [
  15. Deposit::COL_NAME_SHOP_ID => $this->str(),
  16. "amount" => $this->numeric(["between:-100000,100000", Rule::notIn("0")]),
  17. ];
  18. }
  19. }