32 lines
698 B
Plaintext
32 lines
698 B
Plaintext
<?php
|
|
declare (strict_types = 1);
|
|
|
|
namespace {%namespace%};
|
|
|
|
use ywxapp\model\BaseModel;
|
|
|
|
/**
|
|
* @mixin \think\Model
|
|
*/
|
|
class {%className%} extends BaseModel
|
|
{
|
|
protected function getOptions(): array
|
|
{
|
|
// 所有的参数配置统一返回
|
|
return [
|
|
'strict' => false,
|
|
//'name' => '',
|
|
// 'connection' => '',
|
|
// 'query' => [],
|
|
// 'type' => [],
|
|
// 'hidden' => [],
|
|
// 'visible' => [],
|
|
// 'append' => [],
|
|
'autoRelation' => [],
|
|
'createTime' => 'create_at',
|
|
'updateTime' => 'update_at',
|
|
'dateFormat' => 'Y-m-d H:i:s',
|
|
];
|
|
}
|
|
}
|