29 lines
419 B
PHP
29 lines
419 B
PHP
<?php
|
|
|
|
|
|
|
|
namespace app\common\model\store\parameter;
|
|
|
|
use app\common\model\BaseModel;
|
|
|
|
class Parameter extends BaseModel
|
|
{
|
|
|
|
|
|
public static function tablePk(): string
|
|
{
|
|
return 'parameter_id';
|
|
}
|
|
|
|
public static function tableName(): string
|
|
{
|
|
return 'parameter';
|
|
}
|
|
|
|
public function searchTemplateIdAttr($query, $value)
|
|
{
|
|
$query->where('template_id',$value);
|
|
}
|
|
|
|
}
|