Detail.php 1.9 KB
<?php
/**
 * @remark :
 * @name   :Detail.php
 * @author :lyh
 * @method :post
 * @time   :2024/11/12 14:13
 */

namespace App\Models\Product;

use App\Models\Base;

class Detail extends Base
{
    //设置关联表名
    protected $table = 'gl_product_detail';
    //连接数据库
    protected $connection = 'custom_mysql';

    /**
     * @remark :文本框类型
     * @name   :text_box
     * @author :lyh
     * @method :post
     * @time   :2024/11/12 14:15
     */
    public function text_type(){
        return [
            1=>'富文本框',
            2=>'多图模块',
            3=>'单图文案',
        ];
    }

    /**
     * @remark :多图框类型
     * @name   :line_number
     * @author :lyh
     * @method :post
     * @time   :2024/11/12 14:15
     */
    public function line_two_type(){
        return [
            1=>'1行',
            2=>'2行',
            3=>'3行',
            4=>'4行',
            5=>'5行',
        ];
    }

    /**
     * @remark :图片框类型
     * @name   :line_number
     * @author :lyh
     * @method :post
     * @time   :2024/11/12 14:15
     */
    public function image_two_type(){
        return [
            1=>'1张图',
            2=>'2张图',
            3=>'3张图',
            4=>'4张图',
            5=>'5张图',
        ];
    }

    /**
     * @remark :图片文本框类型
     * @name   :line_number
     * @author :lyh
     * @method :post
     * @time   :2024/11/12 14:15
     */
    public function three_type(){
        return [
            1=>'左图右文',
            2=>'右图左文',
        ];
    }

    /**
     * @remark :图片文本框类型
     * @name   :line_number
     * @author :lyh
     * @method :post
     * @time   :2024/11/12 14:15
     */
    public function image_three_type(){
        return [
            1=>'图片悬浮',
            2=>'图片固定',
        ];
    }

}