TeamModel.php 499 字节
<?php
/**
 * Author : xiaojie
 * DateTime: 2018/12/03 11:33
 */
namespace app\portal\model;

use think\Model;

class TeamModel extends Model
{
    protected $autoWriteTimestamp = true;

    /**
     * 获取团队列表
     * @return false|\PDOStatement|string|\think\Collection
     */
    public function getList()
    {
        $list = $this
            ->field('name,post,phone,mobile,email,thumb')
            ->order('sort desc,id desc')
            ->select();
        return $list;
    }

}