Files
useds/app/common/service/UsedCarService.php
T
2026-01-05 15:28:19 +08:00

31 lines
522 B
PHP

<?php
namespace app\common\service;
use app\common\validate\UsedCarValidate;
use app\common\traits\crud\CrudServiceTrait;
use app\common\model\UsedCar;
class UsedCarService
{
use CrudServiceTrait;
/**
* 指定当前要操作的模型
*/
protected string $modelClass = UsedCar::class;
/**
* 验证器
*/
protected $validator = UsedCarValidate::class;
/**
* 获取验证器
*/
public function getValidator()
{
return new $this->validator;
}
}