<?php
namespace app\common\model;

use think\Model;

class Slide extends Model
{
	// 设置字段信息
    protected $schema = [
        'id'			=> 'int',
		'pagetab'		=> 'string',
		'title'			=> 'string',
		'tilpic'		=> 'string',
		'stype'		    => 'tinyint',
		'tilurl'		=> 'string',
		'priority'		=> 'int'
    ];
	
	public function getStypeTextAttr($value,$data)
	{
		$stype = [1=>'系统链接', 2=>'网络链接'];
		return $stype[$data['stype']];
	}
	
}