StyleTemplate.php 719 字节
<?php

namespace app\admin\model;

use think\Model;


class StyleTemplate extends Model
{

    

    

    // 表名
    protected $name = 'style_template';
    
    // 自动写入时间戳字段
    protected $autoWriteTimestamp = 'int';

    // 定义时间戳字段名
    protected $createTime = 'createtime';
    protected $updateTime = 'updatetime';
    protected $deleteTime = false;

    // 追加属性
    protected $append = [

    ];
    

    /**
     * 读取模板类型
     * @return array
     */
    public function getTypeList()
    {
        $typeList = config('site.templatetype');
        foreach ($typeList as $k => &$v) {
            $v = __($v);
        }
        return $typeList;
    }


}