@lina
2020-09-07T05:55:50.000000Z
字数 16402
阅读 1137
列表项
秒云达
1.0
后台
- 【测试url】http://api.volunteer.alpha.flashdiet.cn/api
- 【线上url】/api
X-auth-token
: [string] 登录后获取的token
信息, 取window.token 请求头带此字段X-org-code
: [string]https://www.zybuluo.com/mdeditor# 机构表识字段,所有请求均需要此字段,取window.orgCode 请求头带此字段X-location
: [string] 坐标 lng-lat 请求头带此字段X-unique-key
: [string] 服务端下发的标识,取window.uniqueKey 请求头带此字段X-city
: [string] 所在城市名称 请求头带此字段X-platform-code
: [string] 平台标识字段,所有请求均需要此字段,取window.platformCode 请求头带此字段
- POST请求Content-Type为:Content-Type:application/x-www-form-urlencoded
- 文件上传时Content-Type为:Content-Type:multipart/form-data
- 对于:Content-Type:application/json:Content-Type:application/xml不保证完全支持,请谨慎使用
- 【线上url】待定
- 【测试url】http://api.volunteer.alpha.flashdiet.cn/api/
- 【线上url】/api/
通用图片上传文件服务
请求URL
POST
/image
请求参数
file
: 文件
响应
{
error_code: 0,
data: {
url: 'http://xxx'
}
}
url
: [string] 文件的访问URL
注:请求图片时,需解析图片的cookie,不然无法认证
GET
/captcha
POST
/verifycode
请求参数
captcha_code
: [string] 图形验证码phone
: [string] 手机号
响应
{
error_code: 0,
data: {
}
}
error_code
: [int] 服务器状态码,0 为正常状态,异常状态待定。error_message
:[string] 错误信息,但error_code
不为 0 时返回
data
: [object] 数据字段,所有响应数据都在此字段中list
: [array],当返回数据为列表时会将数据放在该字段
page
: [int] 当前页码,默认为1total
: [int] 总页数pageSize
: [int]
每页数量:本项目常用page_size==10
示例
{
status: 0,
msg: '',
data: {
list: [{
key: value
}],
total: 23
}
}
sex
:[int]0: 未知
1: 男
2: 女
verify_status
:[int]0: 审核中
1: 通过
2: 驳回
status
: [int]0:未启用
1:启用
status
: [int]0:待抢单
1:已抢单
2:已拒绝
3:已完成
4:订单未完成
{
id: 123,
nick_name: '梦里花落知多少',
real_name: 'xx',
phone: '15500000000',
sex: 1,
avatars: 'http://image.com/1.jpeg',
id_number: 110101198803031321,
bank_number: '7112312321',
id_card_front: 'url',
id_card_back: 'url',
sign_photo: 'url',
company_id: 12,
region_id: 12,
bus_quarter_id: 23,
department_id: 12,
bus_depart_id: 12,
last_month_income: 0,
total_income: 0,
intro_courier_id: 12,
intro: @用户基本信息
user_remarks:'银行卡所属分行是 支行是'
}
id
: [int] 用户IDnick_name
: [string] 用户名phone
: [string] 用户手机avatars
: [string] 头像real_name
: [string] 姓名sex
: [integer] 性别id_number
: [string] 身份证号bank_number
: [string] 银行卡号bank_name
: [string] 银行名称id_card_front
: [string] 身份证正面照片urlid_card_back
: [string] 身份证反面照片urlsign_photo
: [string] 签字照片company_id
: [int] 快递公司idregion_id
: [int] 大区idbus_quarter_id
: [int] 营业区iddepartment_id
: [int] 分部id,可能为空bus_depart_id
: [int] 营业部idlast_month_income
: [int] 上月收入total_income
: [int] 总收入intro_courier_id
: [int] 被推荐人的courier_idintro
: [object] 被推荐人的基本用户信息,可能为空user_remarks
: [string] 用户备注
{
id: 12,
courier_id: 1232,
remark: '中关村南大街',
start_time: '7112312321',
end_time: 7777.23,
status: 0,
company:{
@快递公司
},
region: {
@大区
},
bus_quarter: {
@营业区
},
department: {
@分部
},
bus_depart: {
@营业部
}
}
id
: [int] 订单IDcourier_id
: [string] 快递员用户idremark
: [string] 线路备注start_time
: [date] 开始时间end_time
: [date] 结束时间status
: [integer] 订单状态company
: [obj] 快递公司信息region
: [obj] 大区信息bus_quarter
: [obj] 营业区信息department
: [obj] 分部信息(可能为null)bus_depart
: [obj] 营业部信息
公司
{
id: 12,
company_name: 1232,
contact_name: '中关村南大街',
contact_phone: '7112312321',
status: 0,
province_id: 0,
province_name: 0,
city_id: 0,
city_name: 0,
county_id: 0,
county_name: 0,
bus_quarter_num: 12,
region_num: 123,
addr: 0,
}
id
: [int] 公司IDcompany_name
: [string] 公司名称contact_name
: [string] 联系人姓名contact_phone
: [string] 联系人电话status
: [int] 启用弃用状态province_id
: [string] 省份idprovince_name
: [string] 省份名称city_id
: [string] 城市idcity_name
: [string] 城市名称county_id
: [string] 区县idcounty_name
: [string] 区县名称addr
: [string] 具体地址bus_quarter_num
: [int] 营业区数量region_num
: [int] 大区数量
其他的看数据库吧,就不一一写出来,字段基本都一样的
分部相对于公司等,多个一个后台管理用户对象
{
id: 12,
department_name: 1232,
contact_name: '中关村南大街',
contact_phone: '7112312321',
status: 0,
province_id: 0,
province_name: 0,
city_id: 0,
city_name: 0,
county_id: 0,
county_name: 0,
addr: 0,
user: {
username: 'xxx'
}
}
id
: [int] 分部IDdepartment_name
: [string] 分部名称contact_name
: [string] 联系人姓名contact_phone
: [string] 联系人电话status
: [int] 启用弃用状态province_id
: [string] 省份idprovince_name
: [string] 省份名称city_id
: [string] 城市idcity_name
: [string] 城市名称county_id
: [string] 区县idcounty_name
: [string] 区县名称addr
: [string] 具体地址user
: [obj] 后台管理对象
营业部就不列出来,字段基本都一样的
{
id: 12,
company_id: 1232,
region_id: 12,
bus_quarter_id: 12,
department_id: 0,
bus_depart_id: 12,
route: "路径1",
status: 1,
}
id
: [int] 分部IDroute
: [string] 路径名称(长度最大256)status
: [int] 0 禁用 1 启用
{
liability_compensation:有责赔偿
platform_award: 平台奖励,
}
liability_compensation
: [string] 有责赔偿platform_award
: [string] 平台奖励
{
company:公司名称
contact_name: 联系人
contact_phone: 联系人电话
business: 主营业务
courier_num: 合作伙伴人数
}
请求URL
GET
/courier
请求参数
keyword
: [string] 关键字搜索姓名、联系电话、证件号码 【非必填】verify_status
: [int] 审核状态搜索 【非必填】page
: [string] 当前页数 【必填】pageSize
: [string] 每页数量【非必填】begin_time
: [date] 用户注册起时间【非必填】end_time
: [date] 用户注册止时间【非必填】pass_begin_time
: [date] 审核通过起时间【非必填】pass_end_time
: [date] 审核通过止时间【非必填】
响应
{
"status": 0,
"msg": "",
"data":{
list: [
@用户基本信息
],
total: 122 // 总数
}
}
请求URL
PUT
/courier/${courier_id}
请求参数
手机号不可编辑
real_name
: [string] 真实姓名 【必填】courier_id
: [int] 合作伙伴id 【必填】bank_num
: [string] 银行卡号 【必填】bank_name
: [string] 银行名称 【必填】id_card_front
: [string] 身份证正面照片url【必填】id_card_back
: [string] 身份证反面照片url【必填】sign_photo
: [string] 签字照片【必填】company_id
: [int] 快递公司id【必填】region_id
: [int] 大区id【必填】bus_quarter_id
: [int] 营业区id【必填】bus_depart_id
: [int] 营业部id【必填】verify_status
: [int] 状态更新【非必填】
响应
{
"status": 0,
"msg": "保存成功",
"data": null
}
请求URL
GET
/courier/${courier_id}
请求参数
无
响应
{
"status": 0,
"msg": "保存成功",
"data": {
@用户基本信息
}
}
请求URL
POST
/courier/invite
请求参数
phone_arr
: [array] 邀请的手机号列表【必填】
响应
{
"status": 0,
"data":{
phone_suc: [], // 邀请成功的手机号列表
phone_fail: [] // 邀请失败手机号列表
},
"msg": ""
}
请求URL
delete
/courier/id
id为合作伙伴id,只有状态处于禁用的才能删除成功,否则提示‘删除失败,启用时不能进行删除操作’
请求参数
无
{
"status": 0,
"data": null,
"msg": "删除成功"
}
请求URL
get
/courier/{id}/introduce
请求参数
id为合作伙伴id
{
"status": 0,
"data": [
@邀请人用户信息
],
"msg": ""
}
请求URL
put
/courier/reject/{id}
请求参数
id
: [int] 合作伙伴id 【必填】reason
: [string] 拒绝理由 【必填】
响应
{
"status": 0,
"msg": "保存成功",
"data": null
}
请求URL
get
/courier/id/bonus
请求参数
id
: [int] 合作伙伴id 【必填】
响应
{
"status": 0,
"msg": "",
"data": [
@提现记录,
],
}
请求URL
post
/courier/display
请求参数
file
[string] 文件
响应
{
"status": 0,
"msg": "修改成功",
"data": null
}
请求URL
get
/courier/agreement/{id}
请求参数
id
[int] 用户id
响应
{id}.pdf [pdf] 文件
请求URL
GET
/company
请求参数
keyword
: [string] 关键字搜索姓名、联系电话、证件号码 【非必填】page
: [string] 当前页数 【必填】pageSize
: [string] 每页数量【非必填】
响应
{
"status": 0,
"msg": "",
"data":{
list: [
@公司信息
],
total: 123
}
}
请求URL
POST
/company
请求参数
- @公司基本数据,不包含统计的大区数、营业区数
low_password
[string] 低权用户密码low_username
[string] 低权用户
响应
{
"status": 0,
"msg": "新建成功",
"data": null
}
请求URL
PUT
/company/${company_id}
请求参数
- @公司基本数据
响应
{
"status": 0,
"msg": "保存成功",
"data": null
}
请求URL
GET
/company/${company_id}
请求参数
无
响应
{
"status": 0,
"msg": "保存成功",
"data": {
@公司信息
}
}
url中把company改成region、bus_quarter
请求URL
GET
/department
请求参数
无
响应
{
"status": 0,
"msg": "",
"data":{
list: [
@分部信息
],
pagination: {
@分页
}
}
}
请求URL
POST
/department
请求参数
- @分部基本数据
password
[string] 密码
响应
{
"status": 0,
"msg": "新建成功",
"data": null
}
请求URL
PUT
/department/${department_id}
请求参数
- @分部基本数据
响应
{
"status": 0,
"msg": "保存成功",
"data": null
}
请求URL
GET
/department/${department_id}
请求参数
无
响应
{
"status": 0,
"msg": "保存成功",
"data": {
@分部信息
}
}
请求URL
GET
/order
请求参数
status
[int] 根据订单状态筛选
响应
{
"status": 0,
"msg": "",
"data":{
list: [
@订单信息
],
pagination: {
@分页
}
}
}
请求URL
POST
/order
请求参数
- @订单数据
响应
{
"status": 0,
"msg": "新建成功",
"data": null
}
请求URL
PUT
/order/${order_id}
请求参数
- @订单数据
响应
{
"status": 0,
"msg": "保存成功",
"data": null
}
请求URL
GET
/order/${order_id}
请求参数
无
响应
{
"status": 0,
"msg": "保存成功",
"data": {
@订单信息
}
}
请求URL
POST
/order/batch_add
请求参数
[{
"courier_id": 40,
"company_id": 11,
"region_id": 18,
"bus_quarter_id": 12,
"department_id": null,
"bus_depart_id": 18,
"start_time": 1542819000, #时间戳(秒)
"end_time": 1542821000,#时间戳(秒)
"route": "sss",
"route_id": 12 #所选的路径id
}]
请求URL
PUT
/order_status/import
订单模板的地址/orderStatusTemplate.xlsx,具体前端怎么弄,可以参考财务导入
请求参数
file
: [string] Excel路径,参考财务导入- order_date: [string] 订单日期Y-m-d的格式
响应
{
"status": 0,
"msg": "",
"data": {
"skip": 0,
"error": [],
"suc": [
"362302199509201232"
]
}
}
请求URL
GET
/income
请求参数
status
[int] 根据当月是否申请提现状态筛选month_time
[date] 订单完成日期start_month
[date] 订单完成起日期end_month
[date] 订单完成止日期
响应
{
"status": 0,
"msg": "",
"data":{
list: [
@财务信息
],
pagination: {
@分页
}
}
}
请求URL
POST
/income/import
请求参数
file
[string] 文件路径
响应
{
"status": 0,
"msg": "导入成功",
"data": {
skipNum: 12, // 累计跳过多少条记录
saveNum: 8, // 导入成功多少条记录
errors: [] // 错误数据列表
}
}
请求URL
GET
/courier/notice
请求参数
无
响应
{
"status": 0,
"msg": "发送成功",
"data": null
}
请求URL
GET
/dict/company
/dict/region?company_id=1
/dict/bus_quarter?company_id=1®ion_id=1
/dict/bus_depart?company_id=1®ion_id=1&bus_quarter_id=1
请求参数
分别获取公司、大区、营业部、营业区,需要带上各自参数
响应
{
"error_code": 0,
"data":[
@公司、大区、营业部、营业区
],
"error_message": ""
}
请求URL
get
/route
请求参数
无
{
"status": 0,
"data": [
@路径信息
],
"msg": ""
}
请求URL
post
/route
请求参数
@路径的信息
分部管理员不需要传company_id
等上级id
营业部管理员只需要传route
信息
{
"status": 0,
"data": [
@路径信息
],
"msg": ""
}
请求URL
put
/route/id
id为路径主键
请求参数
@路径信息
分部管理员不需要传company_id
等上级id
营业部管理员只需要传route
信息
{
"status": 0,
"data": null,
"msg": "修改成功"
}
请求URL
delete
/route/id
id为路径主键
请求参数
无
{
"status": 0,
"data": null,
"msg": "删除成功"
}
在公司、大区、营业区、分部、营业部、合作伙伴、路径列表接口中携带参数asExcel=1即可,例如导出公司的接口为/api/company?asExcel=1
请求URL
post
/route/batch
请求参数
file
[string] 文件company_id
[int] 事业部idregion_id
[int] 大区idbus_quarter_id
[int] 营业区idbus_depart_id
[int] 营业部id
响应
{
"status": 0,
"msg": "导入成功",
"data": {
skipNum: 12, // 累计跳过多少条记录
saveNum: 8, // 导入成功多少条记录
errors: [] // 错误数据列表
}
}
请求URL
post
/register
请求参数
company
[string] 公司名称contact_name
[string] 联系人contact_phone
[string] 联系人电话business
[string] 主营业务courier_num
[int] 合作伙伴人数
{
"status": 0,
"data": null,
"msg": "注册成功"
}
请求URL
get
/register
请求参数
无
{
"status": 0,
"data": [
@用户信息
],
"msg": ""
}
请求URL
post
/checkin/setting
请求参数
radius
[number] 单位km
响应
{
"status": 0,
"msg": "导入成功",
"data": {
skipNum: 12, // 累计跳过多少条记录
saveNum: 8, // 导入成功多少条记录
errors: [] // 错误数据列表
}
}
请求URL
get
/checkin/setting
请求参数
无
响应
{
"status": 0,
"msg": "导入成功",
"data": {
"radius": 2.2
}
}
根据courier中下发的fdd_head_photo
来获取具体的图片,
GET
/fdd_head_photo/{uuid}
请求参数
uuid
: [string] 根据courier中下发的fdd_head_photo
返回图片
pass_time字段,审核通过的时间
快递员添加bus_type字段(必填)
bus_type字段表示业务类型,为int类型
请求URL
GET
/wechatPayment
请求参数
keyword
[string] 关键字搜索startDate
[date] 日期endDate
[date] 日期asExcel
[int] 为1表示导出company_id
等字段筛选
响应
{
"status": 0,
"msg": "",
"data":{
total: 100,
list: [
{
"id": 57690,
"courier_id": 8795,
"real_name": "", // 姓名看courier对象里的
"openid": "",
"amount": "1.20",
"partner_trade_no": "13",
"payment_no": "234", // -1表示手工导入,否则是微信提现
"payment_time": "2012-02-02 00:12:12", // 提现时间
"device_info": null,
"return_code": "SUCCESS",
"err_code": null,
"err_code_des": null,
"result_code": "SUCCESS",
"return_msg": null,
"created_at": "2020-05-10 13:11:26",
"updated_at": "2020-05-10 13:11:26",
"courier": {
"id": 8795,
"nick_name": "test",
"real_name": "123",
}
}
],
}
}
请求URL
POST
/wechatPayment/import
请求参数
file
[string] 文件路径
响应
{
"status": 0,
"msg": "导入成功",
"data": {
skipNum: 12, // 累计跳过多少条记录
saveNum: 8, // 导入成功多少条记录
errors: [
{
year: 2010,
month: 12,
day: 10,
amount: 120,
id_number: 123123, // 身份证
error_msg: "错误xinxi“”",
}
] // 错误数据列表
}
}
请求URL
GET
/wechatPayment
请求参数
token
[string] 请求头带上pageSize
: [int] 分页大小page
: [int] 当前页数
响应
{
"status": 0,
"msg": "",
"data":{
total: 100,
list: [{
// 同3.12.1
}]
}
}
请求URL
GET
/user_income
请求参数
startDate
[date] 日期endDate
[date] 日期asExcel
[int] 为1表示导出company_id
等字段筛选real_name
姓名phone
电话搜索
响应
{
"status": 0,
"msg": "",
"data":{
total: 100,
list: [
{
'real_name',
'courier_id',
'income_date',
'withdraw_amt',
'draw_date': '2010-01-10',
'draw_time': '12:12:12',
'fee_type': '',
'bus_require': '',
'courier': {用户信息}
}
]
}
}
请求URL
POST
/user_income/import
请求参数
file
[str] 文件
{
"status": 0,
"msg": "",
"data": null
}
请求URL
get
/user_income/export
请求参数
startDate
[date] 日期endDate
[date] 日期asExcel
[int] 为1表示导出company_id
等字段筛选real_name
姓名phone
电话搜索
courier表新增以下几个字段
1. accept_order_status 接单状态: 0 不接单 1 正在接单 2订单执行中
2. start_order_time 开始接单时间
3. stop_order_time 停止接单时间
司机最新状态接口同快递员接口(只需要传bus_type=1,表示司机的),新增查询字段: accept_order_status接单状态查询传0,1,2
请求URL
GET
/courier_income_sts
请求参数
pageSize
: [int] 分页大小page
: [int] 当前页数startTime
: [date] 筛选开始日期endTime
: [date] 筛选结束customer_id
: [str] 用户编号real_name
: [str] 真实姓名canWithdraw
: [int] 传1表示可生成提现单用户asExcel
: [int] 传1导出Excelid_number
: [string] 身份证号
响应
{
"status": 0,
"msg": "",
"data":{
total: 100,
list: [{
not_withdrawal: "8.00", // 不可提现金额
can_withdrawal: "16.00", // 可提现金额
have_withdrawal: "0.00", // 已提现金额
total_amt: 12, // 总金额(不可提现+可提现+已提现)
courier: {
// 快递员信息
}
}]
}
}
请求URL
GET
/driver_income_sts
请求参数
pageSize
: [int] 分页大小page
: [int] 当前页数startTime
: [date] 筛选开始日期endTime
: [date] 筛选结束real_name
: [str] 真实姓名canWithdraw
: [int] 传1表示可生成提现单用户asExcel
: [int] 传1导出Excelid_number
: [string] 身份证号
响应
{
"status": 0,
"msg": "",
"data":{
total: 100,
list: [{
not_withdrawal => 1,// 不可体现金额
can_withdrawal => 2,// 可体现金额
have_withdrawal => 9,// 已体现金额
total_amt: 12,// 总金额(不可体现+可体现+已体现)
courier: {
// 快递员信息
}
}]
}
}
请求URL
post
/user_income/withdraw
请求参数
startTime
: [date] 筛选开始日期endTime
: [date] 筛选结束ids
: [str] 提现用户id,用逗号分隔withdraw_date
: [date] 提现日期bus_type
: [str] 0 快递批量提现, 1 司机司机快递提现
响应
{
"status": 0,
"msg": "",
"data":null
}
同4.1.5
t_income_daily_sts表status字段调整为: -1 初始状态 0 可以提现 1 已提现(原来只有0和1的)
单日收入统计status默认初始化为-1
请求URL
put
/t_income_sts/{id}/status
列表下发的id , 用逗号分隔,只能选择非已提现状态的
请求参数
status
: [int] -1 初始状态 0 可以提现,
响应
{
"status": 0,
"msg": "",
"data": null
}
请求URL
GET
/d_income
请求参数
pageSize
: [int] 分页大小page
: [int] 当前页数start_date
: [date] 筛选开始日期end_date
: [date] 筛选结束real_name
: [str] 真实姓名phone
: [str] 手机号status
: [int] 当前财务状态 -1 初始状态 0 可以提现 1 已提现asExcel
: [int] 传1导出Excel
响应
{
"status": 0,
"msg": "",
"data":{
total: 100,
list: [{
"d_id": 12313213, // 唯一的标识
"name": "张三", //司机姓名
"number_id": "392938232", //驾驶证号(身份证号)
"mileage_allowance": 12, //里程补贴
"total_mileage_allowance": 272, //里程总补贴
"back_tracking": "返程", //是否返程
"batch_id": "D392832392929", // 批次号
"plate_number": "京D12312", //车牌号
"car_model": "小型车辆", //车辆类型
"path_name": "线路名称", //线路名称
"departure_time": "2019-10-13 13:23:23", // 计划发车时间
"arrival_time": "2019-10-13 13:23:23", // 实际到达时间
"total_mileage": 12, //总里程
"path_mileage": 12, //线路里程
platform_award: 123,// 奖励
liability_compensation: 123, // 有责赔偿
status: 1, //当前财务状态-1 初始状态 0 可以提现 1 已提现
courier: {
// 快递员信息
}
}]
}
}
请求URL
put
/d_income/{id}/status
列表下发的id , 用逗号分隔,只能选择非已提现状态的
请求参数
status
: [int] -1 初始状态 0 可以提现
响应
{
"status": 0,
"msg": "",
"data": null
}
请求URL
put
/d_income/import
修改导出的奖惩数据
请求参数
file
: [file] 文件
响应
{
"status": 0,
"msg": "",
"data": null
}
请求URL
put
/courier/accept_status
请求头带上token
请求参数
accept_order_status
: [int] 接单状态: 0 不接单 1 正在接单
响应
{
"status": 0,
"msg": "",
"data": null
}
请求URL
PUT
/courier/${courier_id}
请求参数
手机号不可编辑
real_name
: [string] 真实姓名 【必填】courier_id
: [int] 合作伙伴id 【必填】bank_num
: [string] 银行卡号 【必填】bank_name
: [string] 银行名称 【必填】id_card_front
: [string] 身份证正面照片url【必填】id_card_back
: [string] 身份证反面照片url【必填】sign_photo
: [string] 签字照片【必填】company_id
: [int] 快递公司id【必填】region_id
: [int] 大区id【必填】bus_quarter_id
: [int] 营业区id【必填】bus_depart_id
: [int] 营业部id【必填】verify_status
: [int] 状态更新【非必填】id_card_issue_day
: [string] 身份证签发日期id_card_validity_day
: [string] 身份证有效期结束日期
响应
{
"status": 0,
"msg": "保存成功",
"data": null
}
描述:
在excel中的用户修改为已完成,其他修改为订单未完成
请求URL
PUT
/order_status/import
订单模板的地址/orderStatusTemplate.xlsx,具体前端怎么弄,可以参考财务导入
请求参数
file
: [string] Excel路径,参考财务导入day
: [string] 订单日期2020-02-02的格式
响应
{
"status": 0,
"msg": "",
"data": {
"skip": 0, //跳过的数量,通常为身份证号错误
"error": [],
"suc": [
"362302199509201232"
]
}
}
描述 : 每个人每天的收入统计
GET
/income
请求参数
keyword
: [string] 用户名称|身份证号|手机号start_month
: [string] 开始时间end_month
: [string] 结束时间status
: [int] 提现状态pageSize
: [int] 每页条数page
: [int] 页码asExcel
: [int] 传1导出Excel
响应
{
"status": 0,
"msg": "",
"data": {
"list": [
{
"id": 1,
"status": -1, // 提现状态
"remark": "", // 备注
"courier": {
// 个人信息
}
}
],
"total": 1
}
}
描述 : 每个人每天的收入统计
GET
/income/{id}/status
请求参数
ids
: [string] 编号,以逗号分隔status
: [int] 提现状态 -1 不可提现 0 可提现
响应
{
"status": 0,
"msg": "",
"data": null
}
请求URL
GET
/income_sts
请求参数
pageSize
: [int] 分页大小page
: [int] 当前页数startTime
: [date] 筛选开始日期endTime
: [date] 筛选结束customer_id
: [str] 用户编号real_name
: [str] 真实姓名canWithdraw
: [int] 传1表示可生成提现单用户asExcel
: [int] 传1导出Excelid_number
: [string] 身份证号
响应
{
"status": 0,
"msg": "",
"data":{
total: 100,
list: [{
not_withdrawal: "8.00", // 不可提现金额
can_withdrawal: "16.00", // 可提现金额
have_withdrawal: "0.00", // 已提现金额
total_amt: 12, // 总金额(不可提现+可提现+已提现)
courier: {
// 用户信息
}
}]
}
}
请求URL
post
/user_income/withdraw
请求参数
startTime
: [date] 筛选开始日期endTime
: [date] 筛选结束ids
: [str] 提现用户id,用逗号分隔withdraw_date
: [date] 提现日期
响应
{
"status": 0,
"msg": "",
"data":null
}
请求URL
GET
/user_income
请求参数
startDate
[date] 开始日期endDate
[date] 结束日期asExcel
[int] 为1表示导出company_id
[int] 用户编号real_name
[string] 姓名phone
[int] 电话搜索id_number
[string] 身份证号
响应
{
"status": 0,
"msg": "",
"data":{
total: 100,
list: [
{
'real_name',
'courier_id',
'income_date',
'withdraw_amt',
'draw_date': '2010-01-10',
'draw_time': '12:12:12',
'bus_require': '',
'courier': {用户信息}
}
]
}
}