1234567891011121314151617181920212223242526 |
- <?php
- /**
- * Created by PhpStorm
- * User:林志杰
- * Email:[email protected]
- * Motto:纵有疾风起,人生不言弃!
- * Time:2020/2/8 23:12
- */
- namespace app\api\controller;
- use app\common\business\User as UserBusiness;
- class User extends AuthBase
- {
- public function index()
- {
- $user = (new UserBusiness)->getNormalUserById($this->userId);
- $resultUser = [
- 'id' => $this->userId,
- 'username' => $user['username'],
- 'sex' => $user['sex'],
- ];
- return show(config('status.success'), 'OK', $resultUser);
- }
- }
|