|
- <?php
-
- namespace App\Http\Controllers\Web\Shop;
-
- use App\Http\Controllers\Web\BaseParam;
- use App\Models\ColumnName;
- use App\Models\HtpmsCustomer\Mst\Shop;
-
- /**
- * @property string shopId
- * @property int qrServiceExpireMin
- * @property int underAmountWhenCreate
- * @property int underAmountWhenAuth
- * @property int underAmountWhenUse
- */
- class ShopConfigParam extends BaseParam
- {
- public function rules(): array
- {
- return [
- ColumnName::SHOP_ID => $this->str(),
- Shop::COL_NAME_QR_SERVICE_EXPIRE_MIN => $this->numeric(["between:10,10080"]),
- Shop::COL_NAME_UNDER_AMOUNT_WHEN_CREATE => $this->numeric(["between:-100000,100000"]),
- Shop::COL_NAME_UNDER_AMOUNT_WHEN_AUTH => $this->numeric(["between:-100000,100000"]),
- Shop::COL_NAME_UNDER_AMOUNT_WHEN_USE => $this->numeric(["between:-100000,100000"]),
- ];
- }
- }
|