TemplateReplaceHtml.php 1.2 KB
<?php
/**
 * @remark :
 * @name   :TemplateReplaceHtml.php
 * @author :lyh
 * @method :post
 * @time   :2024/5/8 9:05
 */

namespace App\Models\Template;

use App\Models\Base;

class TemplateReplaceHtml extends Base
{
    protected $table = 'gl_replace_html';

    const STATUS = 0;
    const STATUS_START = 1;
    const STATUS_END = 2;

    /**
     * @remark :默认类型
     * @name   :sourceType
     * @author :lyh
     * @method :post
     * @time   :2024/5/9 17:07
     */
    public function sourceType(){
        return [
            '所有页面'=>['source'=>0,'is_list'=>0,'is_custom'=>0],
            '首页'=>['source'=>1,'is_list'=>0,'is_custom'=>0],
            '产品详情'=>['source'=>2,'is_list'=>0,'is_custom'=>0],
            '产品列表'=>['source'=>2,'is_list'=>1,'is_custom'=>0],
            '新闻详情'=>['source'=>4,'is_list'=>0,'is_custom'=>0],
            '新闻列表'=>['source'=>4,'is_list'=>1,'is_custom'=>0],
            '博客详情'=>['source'=>3,'is_list'=>0,'is_custom'=>0],
            '博客列表'=>['source'=>3,'is_list'=>1,'is_custom'=>0],
            '单页面'=>['source'=>9,'is_list'=>0,'is_custom'=>0],
        ];
    }
}