HouseAdmin.php
1.0 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<?php
/**
* Created by PhpStorm.
* User: Administrator
* Date: 2020/7/10
* Time: 17:32
*/
namespace app\api\controller;
use app\common\controller\Api;
use think\Cache;
use think\Db;
use think\Validate;
use app\api\model\HouseAdmin as HouseAdminModel;
/**
* 社区管理员
*/
class HouseAdmin extends Api
{
protected $noNeedLogin = ['*'];
protected $noNeedRight = ['*'];
/**
* @ApiTitle (社区管理员-首页)
* @ApiSummary (社区管理员-首页)
* @ApiMethod (POST)
* @ApiHeaders (name=token, type=string, required=true, description="请求的Token")
* @ApiReturn({
"code": 1,
"msg": "成功",
"time": "1571492001",
"data": {
"is_binding"://是否绑定1已绑定2未绑定
"house"://社区信息
"house_board"://最新公告信息
}
})
*/
public function index()
{
$info = HouseAdminModel::get(['user_id'=>$this->auth->id]);
$this->success('success',$info);
}
}