订单模糊搜索接口 websocket测试 GET http://127.0.0.1:3000/api/order?search= 接口描述 按照订单编号的进行模糊搜索 说明 / 示例 ```js 请求示例 http://127.0.0.1:3000/api/order?search='220' //按照订单的编号进行模糊搜索 响应事例 { data : [ { id:'2201', client:'111',//客户编号 time:'1595652955',//时间戳 pay:2000.01//总付款 status:1, //订单状态,0为未收到,1为未收到 type:1, //订单类型,0为买宠物,1为买商品,2为领养记录 goods: [ //订单详情 { title:'猫砂', img:'http://www.hahdioho.jpg', sales:100000, price:200999 amount: 3, }, { title:'猫砂', img:'http://www.hahdioho.jpg', sales:100000, price:200999 amount: 3, }, …… …… ] }, { id:'2201', client:'111',//客户编号 time:'1595652955',//时间戳 pay:2000.01 status:1, //订单状态,0为未收到,1为未收到 type:1, goods: […… ……] }, {id: '', client: '', time: '', pay: '', status: '', type: '', goods: []}, {id: '', client: '', time: '', pay: '', status: '', type: '', goods: []}, …… …… ] //以此类推 } ```
```js 请求示例 http://127.0.0.1:3000/api/order?search='220' //按照订单的编号进行模糊搜索 响应事例 { data : [ { id:'2201', client:'111',//客户编号 time:'1595652955',//时间戳 pay:2000.01//总付款 status:1, //订单状态,0为未收到,1为未收到 type:1, //订单类型,0为买宠物,1为买商品,2为领养记录 goods: [ //订单详情 { title:'猫砂', img:'http://www.hahdioho.jpg', sales:100000, price:200999 amount: 3, }, { title:'猫砂', img:'http://www.hahdioho.jpg', sales:100000, price:200999 amount: 3, }, …… …… ] }, { id:'2201', client:'111',//客户编号 time:'1595652955',//时间戳 pay:2000.01 status:1, //订单状态,0为未收到,1为未收到 type:1, goods: […… ……] }, {id: '', client: '', time: '', pay: '', status: '', type: '', goods: []}, {id: '', client: '', time: '', pay: '', status: '', type: '', goods: []}, …… …… ] //以此类推 } ```