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