|
@@ -28,6 +28,20 @@ class User extends Api
|
|
}
|
|
}
|
|
/**
|
|
/**
|
|
* 用户信息
|
|
* 用户信息
|
|
|
|
+ * @ApiMethod (POST)
|
|
|
|
+ * @ApiReturnParams (name=code,type="integer",description=错误码:0=失败1=成功401=未登录403=没有权限)
|
|
|
|
+ * @ApiReturnParams (name=msg,type="string",description=提示信息)
|
|
|
|
+ * @ApiReturnParams (name=data,type="array",description=要返回的数据)
|
|
|
|
+ * @ApiReturnParams (name=data.id,type="integer",description=用户ID)
|
|
|
|
+ * @ApiReturnParams (name=data.username,type="string",description=用户姓名)
|
|
|
|
+ * @ApiReturnParams (name=data.email,type="string",description=邮箱)
|
|
|
|
+ * @ApiReturnParams (name=data.mobile,type="integer",description=手机号)
|
|
|
|
+ * @ApiReturnParams (name=data.avatar,type="string",description=头像地址)
|
|
|
|
+ * @ApiReturnParams (name=data.gender,type="string",description=性别)
|
|
|
|
+ * @ApiReturnParams (name=data.birthday,type="string",description=出生年月)
|
|
|
|
+ * @ApiReturnParams (name=data.rights,type="integer",description=是否有权益:0=没有1=有)
|
|
|
|
+ * @ApiReturnParams (name=data.mobile,type="integer",description=手机号)
|
|
|
|
+ * @ApiReturnParams (name=data.avatar,type="string",description=头像地址)
|
|
*/
|
|
*/
|
|
public function index()
|
|
public function index()
|
|
{
|
|
{
|