la_bot_back/kernel/app_modules/card/controllers/CardRestController.php

25 lines
494 B
PHP
Raw Normal View History

2025-01-03 02:11:09 +03:00
<?php
namespace kernel\app_modules\card\controllers;
use kernel\app_modules\card\models\Card;
use kernel\RestController;
class CardRestController extends RestController
{
public function __construct()
{
$this->model = new Card();
}
protected function expand(): array
{
return ["cardFile"];
}
protected function filters(): array
{
return ['pin', 'user_id', 'payment_type', 'bank_id', 'info', 'program', 'username', 'status'];
}
}