You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
601 B

<?php
namespace app\api\controller;
use app\common\controller\Api;
/**
* 首页接口
*/
class Team extends Api
{
protected $noNeedLogin = ['*'];
protected $noNeedRight = ['*'];
protected $team = null;
public function _initialize()
{
parent::_initialize();
$this->team = new \app\admin\model\Team;
}
/**
* get team list
*
*/
public function getTeam()
{
$exp = new \think\db\Expression("sort!=0 desc,sort");
$list = $this->team->order($exp)->select();
$this->success('Request succeeded',$list);
}
}