查询宠物接口 websocket测试 GET http://127.0.0.1:3000/api/pet?start= 说明 / 示例 ```js 请求示例 GET => http://127.0.0.1:3000/api/order?start= 响应示例 { code: 1000, msg: '', data: {{ current: 1, //当前页 size: 8, //本页数据总数 total: 366,//数据库所有数据数量 data:[{ id:'2', img:'http://fsfjiweofhuaosudfhu/fsajfioe/a.jpg', names: '二狗', price: 2100.02, sex:0, //男 msg:'大华府',//宠物介绍 kind:'金毛', depart:0, // 0代表猫 1代表狗 sales:10000 }, { id:'1', img:'http://fsfjiweofhuaosudfhu/fsajfioe/a.jpg', names: '狗二', price: 2000.02, sex:1, //男 msg:'大华府',//宠物介绍 kind:'金毛', depart:0, // 0代表猫 1代表狗 sales:100 }, {id : '', img: '', names: '', price: '', sex: '', msg: '', kind: '',depart:'',sales:''}, {id : '', img: '', names: '', price: '', sex: '', msg: '', kind: '',depart:'',sales:''}, …… …… ] } }
```js 请求示例 GET => http://127.0.0.1:3000/api/order?start= 响应示例 { code: 1000, msg: '', data: {{ current: 1, //当前页 size: 8, //本页数据总数 total: 366,//数据库所有数据数量 data:[{ id:'2', img:'http://fsfjiweofhuaosudfhu/fsajfioe/a.jpg', names: '二狗', price: 2100.02, sex:0, //男 msg:'大华府',//宠物介绍 kind:'金毛', depart:0, // 0代表猫 1代表狗 sales:10000 }, { id:'1', img:'http://fsfjiweofhuaosudfhu/fsajfioe/a.jpg', names: '狗二', price: 2000.02, sex:1, //男 msg:'大华府',//宠物介绍 kind:'金毛', depart:0, // 0代表猫 1代表狗 sales:100 }, {id : '', img: '', names: '', price: '', sex: '', msg: '', kind: '',depart:'',sales:''}, {id : '', img: '', names: '', price: '', sex: '', msg: '', kind: '',depart:'',sales:''}, …… …… ] } }