小哥模块

2017-12-24  本文已影响44人  yanzhu728

1. 查询小哥信息

url: /user/query/worker/info
method: get/json

提交参数:

参数名称 类型 备注
worker_id int 小哥id

返回参数:

参数名称 类型 备注
name str 小哥姓名
work_no str 小哥编号
headpic str 小哥头像
card_status int 身份审核状态,0资料未上传,1审核中,2审核通过,3审核未通过
skill_status int 技能审核状态,0资料未上传,1审核中,2审核通过,3审核未通过
count int 小哥接单次数

2. 验证身份证号

url: /user/validate/card
method: post/json

提交参数:

参数名称 类型 备注
worker_id int 小哥id
name str 小哥姓名
phone str 小哥电话
card_picture str 小哥身份证正反面

3. 验证申请技能

url: /user/validate/skill
method: post/json

提交参数:

参数名称 类型 备注
worker_id int 小哥id
skill str 小哥申请技能
skill_picture str 小哥申请技能图片

2. 查询订单详情

url: /work/query/order/detail
method: get/json

提交参数:

参数名称 类型 备注
order_id int 订单id

返回结果:

参数名称 类型 备注
o_id int 订单ID
visit_time int 预定上门时间
address str 地址
remark str 用户把备注
product_name str 商品名
price float 平台报价
picture str 商品图片
user_name str 用户名
user_phone str 用户手机号
order_status int 订单状态:0待接单,1待付款,2待评价,3已完成,4已关闭
work_order_id int 工单id
order_no str 订单编号
headpic str 用户头像

2.查询小哥附近用户发布的订单

url: /work/query/order/publish
method: get/json

提交参数:

参数名称 类型 备注
longitude str 收货地址经度
latitude str 收货地址纬度

返回结果:

参数名称 类型 备注
o_id int 订单ID
create_time time 订单创建时间
visit_time int 预定上门时间
address str 地址
order_status int 订单状态:0待接单,1待付款,2待评价,3已完成,4已关闭
d_id int 订单详情id
product_name str 商品名称
picture str 商品图片
order_no str 订单编号

3.根据状态查询小哥接收的订单

url: /work/query/work/order/by/status
method: get/json

提交参数:

参数名称 类型 备注
worker_id int 小哥id
status int 工单状态,0待接单,1待付款,2待评价,3已完成,4已关闭(已转单), 5已关闭(无效维修)

返回结果:

参数名称 类型 备注
o_id int 订单ID
create_time time 订单创建时间
visit_time int 预定上门时间
address str 地址
order_status int 订单状态:0待接单,1待付款,2待评价,3已完成,4已关闭
d_id int 订单详情id
product_name str 商品名称
picture str 商品图片
work_order_id int 工单id
order_no str 订单编号

3.抢单

url: /work/taking/order
method: post/json

提交参数:

参数名称 类型 备注
order_id int 订单id
worker_id int 小哥id
name str 小哥姓名
phone str 小哥电话

3.转单

url: /work/change/order
method: post/json

提交参数:

参数名称 类型 备注
order_id int 订单id
work_order_id int 工单id
reason str 转单原因
des str 转单原因描述

3.无效维修

url: /work/invalid/maintain
method: post/json

提交参数:

参数名称 类型 备注
order_id int 订单id
work_order_id int 工单id
des str 无效原因描述

4.小哥确认费用

url: /work/confirm/fee
method: post/json

提交参数:

参数名称 类型 备注
order_id int 订单id
work_order_id int 工单id
product_id int 商品id
product_name str 商品名
labor_fee float 人工费用
material_fee float 耗材费
fee float 最后支付金额
remark str 备注
maintain_status int 维修是否成功,默认0成功,1表示失败

5. 查询工单详情

url: /work/query/work/order/detail
method: get/json

提交参数:

参数名称 类型 备注
order_id int 订单id
work_order_id int 工单id

返回结果:

参数名称 类型 备注
o_id int 订单ID
visit_time int 预定上门时间
address str 地址
remark str 用户把备注
product_name str 商品名
price float 平台报价
picture str 商品图片
user_name str 用户名
user_phone str 用户手机号
order_status int 订单状态:0待接单,1待付款,2待评价,3已完成,4已关闭
work_order_id int 工单id
order_no str 订单编号
headpic str 用户头像

6. #小哥绑定门店

url: /user/bind/store
method: post/json

提交参数:

参数名称 类型 备注
woker_id int 小哥id
store_id int 门店id
time str 事件戳
上一篇 下一篇

猜你喜欢

热点阅读