“用户:wuhongjun”的版本间的差异

来自Blueidea
跳转至: 导航搜索
密码修改接口
用户信息读取
第85行: 第85行:
 
! 说明
 
! 说明
 
|-
 
|-
!scope="row"|username
+
!scope="row"|uid
| true || string ||用户名或者email
+
| true || int||用户id
|-
+
!scope="row"|oldpwd
+
| true || string ||旧密码
+
|-
+
!scope="row"|newpwd
+
| true || string ||新密码
+
 
|}
 
|}
 
'''返回结果''':JSON格式
 
'''返回结果''':JSON格式
第98行: 第92行:
 
{
 
{
 
     "status":1,
 
     "status":1,
     "error":""
+
     "error":"",
 +
    "user":{}
 
}
 
}
 
</source>
 
</source>

2014-07-23T15:22:59的版本

手机API接口

登陆接口

请求地址http://192.168.1.5/teach/api/login
请求方式:POST
请求参数

参数名称 必选 类型及范围 说明
username true string 用户名或者email
authcode true string 密码经过md5加密后的字符串

返回结果:JSON格式

{
    "status":1,
    "error":"",          
    "user":{}
}

登出接口

请求地址http://192.168.1.5/teach/api/logout
请求方式:POST
请求参数

参数名称 必选 类型及范围 说明
username true string 用户名或者email

返回结果:JSON格式

{
    "status":1,
    "error":""
}

密码修改接口

请求地址http://192.168.1.5/teach/api/updatepwd
请求方式:POST
请求参数

参数名称 必选 类型及范围 说明
username true string 用户名或者email
oldpwd true string 旧密码
newpwd true string 新密码

返回结果:JSON格式

{
    "status":1,
    "error":""
}


用户信息读取

请求地址http://192.168.1.5/teach/api/getuserinfo
请求方式:POST
请求参数

参数名称 必选 类型及范围 说明
uid true int 用户id

返回结果:JSON格式

{
    "status":1,
    "error":"",
    "user":{}
}