|
- <?php
-
- namespace App\Http\Controllers\Web\Shop;
-
- use App\Http\Controllers\Web\BaseParam;
- use App\Models\HtpmsCustomer\Deposit\Deposit;
- use Illuminate\Validation\Rule;
-
- /**
- * @property string shopId
- * @property int amount
- */
- class DepositChargeParam extends BaseParam
- {
- public function rules(): array
- {
- return [
- Deposit::COL_NAME_SHOP_ID => $this->str(),
- "amount" => $this->numeric(["between:-100000,100000", Rule::notIn("0")]),
- ];
- }
- }
|