车辆颜色

This commit is contained in:
2025-08-28 11:12:27 +08:00
parent db0892f455
commit 149909dd09
7 changed files with 180 additions and 7 deletions
+31
View File
@@ -0,0 +1,31 @@
<?php
namespace app\admin\service;
use app\admin\validate\VehColorValidate;
use app\common\traits\crud\CrudServiceTrait;
use app\common\model\VehColor;
class VehColorService
{
use CrudServiceTrait;
/**
* 指定当前要操作的模型
*/
protected string $modelClass = VehColor::class;
/**
* 验证器
*/
protected $validator = VehColorValidate::class;
/**
* 获取验证器
*/
public function getValidator()
{
return new $this->validator;
}
}