接口 URL:/api/user/register
请求方法:POST
编码方式:application/x-www-form-urlencoded
| 参数名称 | 必选 | 类型 | 说明 |
|---|---|---|---|
| username | 是 | string | 用户名 |
| name | 是 | string | 用户姓名 |
| ID_type | 是 | string | 证件类型(中华人民共和国居民身份证,台湾居民往来大陆通行证,港澳居民来往内地通行证,军人证件,护照,香港身份证,澳门身份证) |
| ID | 是 | string | 证件号 |
| password | 是 | string | 密码 |
| phone | 否 | string | 电话(11位) |
| introduction | 否 | string | 用户简介 |
| city | 是 | string | 注册城市(要和证件匹配) |
| community | 是 | string | 注册社区 |
| time | 是 | string("xx-xx-xx") | 注册时间 |
| 属性 | 类型 | 说明 |
|---|---|---|
| success | Boolean | 成功为True,失败为False |
| user_ID | string | 注册用户标识 |
接口 URL:/api/user/check
请求方法:GET
编码方式:application/x-www-form-urlencoded
| 参数名称 | 必选 | 类型 | 说明 |
|---|---|---|---|
| user_ID | 是 | string | 用户标识 |
| 属性 | 类型 | 说明 |
|---|---|---|
| username | string | 用户名 |
| name | string | 用户姓名 |
| ID | string | 证件号 |
| phone | string | 电话(11位) |
| introduction | string | 用户简介 |
| city | string | 注册城市(要和证件匹配) |
| community | string | 注册社区 |
接口 URL:/api/user/change
请求方法:POST
编码方式:application/x-www-form-urlencoded
| 参数名称 | 必选 | 类型 | 说明 |
|---|---|---|---|
| user_ID | 是 | string | 用户标识 |
| phone | 否 | string | 联系电话(11位) |
| password | 否 | string | 密码 |
| introduction | 否 | string | 用户简介 |
| time | 是 | string("xx-xx-xx") | 修改时间 |
| 属性 | 类型 | 说明 |
|---|---|---|
| success | Boolean | 成功为True,失败为False |
接口 URL:/api/user/login
请求方法:POST
编码方式:application/x-www-form-urlencoded
| 参数名称 | 必选 | 类型 | 说明 |
|---|---|---|---|
| username | 是 | string | 用户名 |
| password | 是 | string | 密码 |
| 属性 | 类型 | 说明 |
|---|---|---|
| isAdmin | Boolean | 普通用户为False,管理员为True |
| user_ID | string | 用户标识 |
| success | Boolean | 成功为True,失败为False |
接口 URL:/api/user/require
请求方法:POST
编码方式:application/x-www-form-urlencoded
| 参数名称 | 必选 | 类型 | 说明 |
|---|---|---|---|
| user_ID | 是 | string | 用户标识 |
| type | 是 | string | 请求类型(小时工 、 搬重物 、 上下班搭车 、 社区服务自愿者) |
| topic | 是 | string | 请求主题 |
| description | 是 | string | 请求描述 |
| number | 是 | int | 请求人数 |
| end_time | 是 | string("xx-xx-xx") | 请求结束时间 |
| time | 是 | string("xx-xx-xx") | 发起请求时间 |
| 属性 | 类型 | 说明 |
|---|---|---|
| success | Boolean | 成功为True,失败为False |
| require_ID | string | 请求标识 |
接口 URL:/api/user/require_check
请求方法:GET
编码方式:application/x-www-form-urlencoded
| 参数名称 | 必选 | 类型 | 说明 |
|---|---|---|---|
| user_ID | 是 | string | 用户标识 |
list类型,包含以下内容
| 属性 | 类型 | 说明 |
|---|---|---|
| require_ID | string | 请求标识 |
接口 URL:/api/user/require_check/details
请求方法:GET
编码方式:application/x-www-form-urlencoded
| 参数名称 | 必选 | 类型 | 说明 |
|---|---|---|---|
| require_ID | 是 | string | 请求标识 |
| 属性 | 类型 | 说明 |
|---|---|---|
| type | string | 请求类型(小时工 、 搬重物 、 上下班搭车 、 社区服务自愿者) |
| topic | string | 请求主题 |
| description | string | 请求描述 |
| number | int | 请求人数 |
| time | string("xx-xx-xx") | 发起请求时间 |
| state | int | 状态(0代表已完成,1代表待响应,2代表已取消,3代表到期未完成) |
接口 URL:/api/user/require_check/response_check
请求方法:GET
编码方式:application/x-www-form-urlencoded
| 参数名称 | 必选 | 类型 | 说明 |
|---|---|---|---|
| require_ID | 是 | string | 请求标识 |
list类型,包含以下内容
| 属性 | 类型 | 说明 |
|---|---|---|
| response_ID | string | 响应标识 |
| name | string | 响应用户名 |
| user_ID | string | 响应用户标识 |
| description | string | 响应描述 |
| time | string("xx-xx-xx") | 响应时间 |
接口 URL:/api/user/require_check/response_confirm
请求方法:POST
编码方式:application/x-www-form-urlencoded
| 参数名称 | 必选 | 类型 | 说明 |
|---|---|---|---|
| response_ID | 是 | string | 响应标识 |
| accept | 是 | Boolean | 是否接受响应,接受为True,拒绝为False |
| 属性 | 类型 | 说明 |
|---|---|---|
| success | Boolean | 成功为True,失败为False |
接口 URL:/api/user/require_check/require_change
请求方法:POST
编码方式:application/x-www-form-urlencoded
| 参数名称 | 必选 | 类型 | 说明 |
|---|---|---|---|
| require_ID | 是 | string | 请求标识 |
| type | 否 | string | 请求类型(小时工 、 搬重物 、 上下班搭车 、 社区服务自愿者) |
| topic | 否 | string | 请求主题 |
| description | 否 | string | 请求描述 |
| time | 是 | string("xx-xx-xx") | 请求修改时间 |
| 属性 | 类型 | 说明 |
|---|---|---|
| success | Boolean | 成功为True,失败为False |
接口 URL:/api/user/require_check/require_delete
请求方法:POST
编码方式:application/x-www-form-urlencoded
| 参数名称 | 必选 | 类型 | 说明 |
|---|---|---|---|
| require_ID | 是 | string | 请求标识 |
| 属性 | 类型 | 说明 |
|---|---|---|
| success | Boolean | 成功为True,失败为False |
接口 URL:/api/user/require
请求方法:GET
编码方式:application/x-www-form-urlencoded
| 参数名称 | 必选 | 类型 | 说明 |
|---|---|---|---|
| community | 是 | string | 用户所属社区 |
list类型,包含以下内容
| 属性 | 类型 | 说明 |
|---|---|---|
| require_ID | string | 请求标识 |
接口 URL:/api/user/response_check
请求方法:GET
编码方式:application/x-www-form-urlencoded
| 参数名称 | 必选 | 类型 | 说明 |
|---|---|---|---|
| user_ID | 是 | string | 用户标识 |
list类型,包含以下内容
| 属性 | 类型 | 说明 |
|---|---|---|
| response_ID | string | 响应标识 |
接口 URL:/api/user/response_check/details
请求方法:GET
编码方式:application/x-www-form-urlencoded
| 参数名称 | 必选 | 类型 | 说明 |
|---|---|---|---|
| response_ID | 是 | string | 用户标识 |
| 属性 | 类型 | 说明 |
|---|---|---|
| require_ID | string | 请求标识 |
| description | string | 响应描述 |
| time | string("xx-xx-xx") | 响应创建时间 |
| state | int | 状态(0代表待接收,1代表同意,2代表拒绝,3代表取消) |
接口 URL:/api/user/response_change
请求方法:POST
编码方式:application/x-www-form-urlencoded
| 参数名称 | 必选 | 类型 | 说明 |
|---|---|---|---|
| response_ID | 是 | string | 响应标识 |
| description | 否 | string | 响应描述 |
| time | 是 | string("xx-xx-xx") | 修改时间 |
| 属性 | 类型 | 说明 |
|---|---|---|
| success | Boolean | 成功为True,失败为False |
接口 URL:/api/user/response_delete
请求方法:POST
编码方式:application/x-www-form-urlencoded
| 参数名称 | 必选 | 类型 | 说明 |
|---|---|---|---|
| response_ID | 是 | string | 响应标识 |
| 属性 | 类型 | 说明 |
|---|---|---|
| success | Boolean | 成功为True,失败为False |
接口 URL:/api/user/response
请求方法:POST
编码方式:application/x-www-form-urlencoded
| 参数名称 | 必选 | 类型 | 说明 |
|---|---|---|---|
| user_ID | 是 | string | 用户标识 |
| require_ID | 是 | string | 请求标识 |
| description | 是 | string | 响应描述 |
| time | 是 | string("xx-xx-xx") | 响应创建时间 |
| 属性 | 类型 | 说明 |
|---|---|---|
| success | Boolean | 成功为True,失败为False |
| response_ID | string | 响应标识 |
接口 URL:/api/admin/check/user
请求方法:GET
编码方式:application/x-www-form-urlencoded
| 参数名称 | 必选 | 类型 | 说明 |
|---|---|---|---|
| admin_ID | 是 | string | 管理员标识 |
list类型,包含以下内容
| 属性 | 类型 | 说明 |
|---|---|---|
| username | string | 用户名 |
| name | string | 用户姓名 |
| ID_type | string | 证件类型(中华人民共和国居民身份证,台湾居民往来大陆通行证,港澳居民来往内地通行证,军人证件,护照,香港身份证,澳门身份证) |
| ID | string | 证件号 |
| phone | string | 电话(11位) |
| introduction | string | 用户简介 |
| city | string | 注册城市(要和证件匹配) |
| community | string | 注册社区 |
| time | string("xx-xx-xx") | 注册时间 |
接口 URL:/api/admin/cost
请求方法:GET
编码方式:application/x-www-form-urlencoded
| 参数名称 | 必选 | 类型 | 说明 |
|---|---|---|---|
| admin_ID | 是 | string | 管理员标识 |
| 属性 | 类型 | 说明 |
|---|---|---|
| money | int | 总中介费用 |
接口 URL:/api/statistics
请求方法:GET
编码方式:application/x-www-form-urlencoded
| 参数名称 | 必选 | 类型 | 说明 |
|---|---|---|---|
| start | 是 | string("xx-xx-xx") | 起始时间 |
| end | 是 | string("xx-xx-xx") | 终止时间 |
| city | 是 | string | 地区 |
| community | 是 | string | 社区 |
| type | 是 | string | 请求类型(小时工 、 搬重物 、 上下班搭车 、 社区服务自愿者) |
返回一个list,包含以下内容
| 属性 | 类型 | 说明 |
|---|---|---|
| time | string("xx-xx-xx") | 时间(按月) |
| money | int | 每月中介费 |