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.

29 lines
889B

  1. <?php
  2. namespace App\Http\Controllers\Web\Shop;
  3. use App\Http\Controllers\Web\BaseParam;
  4. use App\Models\ColumnName;
  5. use App\Models\HtpmsCustomer\Mst\Shop;
  6. /**
  7. * @property string shopId
  8. * @property int qrServiceExpireMin
  9. * @property int underAmountWhenCreate
  10. * @property int underAmountWhenAuth
  11. * @property int underAmountWhenUse
  12. */
  13. class ShopConfigParam extends BaseParam
  14. {
  15. public function rules(): array
  16. {
  17. return [
  18. ColumnName::SHOP_ID => $this->str(),
  19. Shop::COL_NAME_QR_SERVICE_EXPIRE_MIN => $this->numeric(["between:10,10080"]),
  20. Shop::COL_NAME_UNDER_AMOUNT_WHEN_CREATE => $this->numeric(["between:-100000,100000"]),
  21. Shop::COL_NAME_UNDER_AMOUNT_WHEN_AUTH => $this->numeric(["between:-100000,100000"]),
  22. Shop::COL_NAME_UNDER_AMOUNT_WHEN_USE => $this->numeric(["between:-100000,100000"]),
  23. ];
  24. }
  25. }