[TOC=2,3]
* * * * *
* * * * *
* * * * *
- ## 1. 获取在库设备列表信息
+++
get:/store/devices/devices_list
*string:type_name=无默认值#可以为:路由器、节点、插排
*int:status=0(必须为0)#
<<<
success
返回示例:
{
status: 200,
devices_info: [
{
id: 1,
type_name: "节点",
add_time: "2015-12-01 00:00:00",
sale_time: "2016-12-01 00:00:00",
sn: "111111",
status: 0
},
{
id: 10,
type_name: "节点",
add_time: "2016-12-01 00:00:00",
sale_time: "2016-12-01 00:00:00",
sn: "111112",
status: 0
},
{
id: 12,
type_name: "节点",
add_time: "2016-12-01 00:00:00",
sale_time: "2016-12-01 00:00:00",
sn: "111114",
status: 0
},
{
id: 6,
type_name: "节点",
add_time: "2016-12-01 00:00:00",
sale_time: "2016-12-01 00:00:00",
sn: "666666",
status: 0
},
{
id: 11,
type_name: "节点",
add_time: "2016-12-01 00:00:00",
sale_time: "2016-12-01 00:00:00",
sn: "111113",
status: 0
},
{
id: 13,
type_name: "节点",
add_time: "2016-12-01 00:00:00",
sale_time: "2016-12-01 00:00:00",
sn: "111115",
status: 0
}
]
}
返回参数说明:
devices_info: 设备的信息
<<<
error
返回示例:
{
status: 400,
message: "没有设备信息!"
}
+++
* * * * *
* * * * *
* * * * *
- ## 2. 获取销售设备列表信息
+++
get:/store/product/product_list
*string:type_name=无默认值#可以为:路由器、节点、插排
*int:status=1(必须为1)#
<<<
success
返回示例:
{
status: 200,
devices_info: [
{
id: 11,
type_name: "节点",
add_time: "2016-12-01 00:00:00",
sale_time: "2016-12-01 00:00:00",
sn: "111113",
status: 1
},
{
id: 12,
type_name: "节点",
add_time: "2016-12-01 00:00:00",
sale_time: "2016-12-01 00:00:00",
sn: "111114",
status: 1
}
]
}
返回参数说明:
product_info: 设备的信息
<<<
error
返回示例:
{
status: 400,
message: "没有设备信息!"
}
+++
* * * * *
* * * * *
* * * * *
- ## 3. 各种查询条件查询设备列表信息
+++
post:/store/devices/devices_list【注意:无参数时返回所有数据】
int:sn#该设备的SN码
string:product_type_name#该设备适用的产品类型
string:type_name#该设备的类型
string:add_start_time#添加设备的开始时间
string:end_start_time#添加设备的结束时间
int:status#-1(有问题)/0(在库)/1(出售)
string:sale_start_time#售出产品的开始时间
string:sale_end_time#售出设备的结束时间
int:page=默认从第一页开始显示(全部数据)#显示第几页数据
int:list=默认为每页显示15条数据#每页多少条数据
<<<
success
返回示例:
{
status: 200,
devices_info: [
{
id: 12,
product_type_name: "FOHEART-C1",
type_name: "节点",
add_time: "2016-12-01 00:00:00",
sale_time: "2016-12-01 00:00:00",
sn: "111114",
status: 1
},
{
id: 1,
product_type_name: "FOHEART-C1",
type_name: "节点",
add_time: "2015-12-01 00:00:00",
sale_time: "2016-12-01 00:00:00",
sn: "111111",
status: 0
},
{
id: 9,
product_type_name: "FOHEART-C1",
type_name: "节点",
add_time: "2016-12-01 00:00:00",
sale_time: "2016-12-01 00:00:00",
sn: "9999999",
status: -1
},
{
id: 11,
product_type_name: "FOHEART-C1",
type_name: "节点",
add_time: "2016-12-01 00:00:00",
sale_time: "2016-12-01 00:00:00",
sn: "111113",
status: 1
},
{
id: 13,
product_type_name: "FOHEART-TLE",
type_name: "节点",
add_time: "2016-12-01 00:00:00",
sale_time: "2016-12-01 00:00:00",
sn: "111115",
status: 0
},
{
id: 6,
product_type_name: "FOHEART-TLE",
type_name: "节点",
add_time: "2016-12-01 00:00:00",
sale_time: "2016-12-01 00:00:00",
sn: "666666",
status: 0
},
{
id: 10,
product_type_name: "FOHEART-TLE",
type_name: "节点",
add_time: "2016-12-01 00:00:00",
sale_time: "2016-12-01 00:00:00",
sn: "111112",
status: 0
},
{
id: 5,
product_type_name: "FOHEART-C1",
type_name: "插排",
add_time: "2016-12-01 00:00:00",
sale_time: "2016-12-01 00:00:00",
sn: "555555",
status: -1
},
{
id: 7,
product_type_name: "FOHEART-C1",
type_name: "插排",
add_time: "2016-12-01 00:00:00",
sale_time: "2016-12-01 00:00:00",
sn: "777777",
status: 0
},
{
id: 8,
product_type_name: "FOHEART-TLE",
type_name: "路由器",
add_time: "2016-12-01 00:00:00",
sale_time: "2016-12-01 00:00:00",
sn: "888888",
status: 0
},
{
id: 3,
product_type_name: "FOHEART-C1",
type_name: "路由器",
add_time: "2016-12-01 00:00:00",
sale_time: "2016-12-01 00:00:00",
sn: "333333",
status: 0
}
]
}
返回参数说明:
devices_info: 设备的信息
<<<
error
返回示例:
{
status: 400,
message: "没有设备信息!"
}
+++