宠物模糊搜索接口 websocket测试 GET http://127.0.0.1:3000/api/pet?search= 接口描述 按照宠物的姓名进行模糊搜索 说明 / 示例 ```js 请求示例 http://127.0.0.1:3000/api/pet?search='哈' //按照宠物的姓名进行模糊搜索 响应事例 { data:[ { id:'1', img:'http://fsfjiweofhudfhu/fsajfioe/a.jpg', names: '二哈', price: 2000.02, sex:1, //公 msg:'发货顺丰恒大华府', kind:'金毛', depart:0, // 0代表猫 1代表狗 sales:10000 }, { id:'2', img:'http://fsudfhu/fsajfioe/a.jpg', names: '三哈', price: 2000.02, sex:1, //公 msg:'发货顺丰恒大华府', kind:'橘猫', depart:0, // 0代表猫 1代表狗 sales:10000 } //以此类推 ] } ```
```js 请求示例 http://127.0.0.1:3000/api/pet?search='哈' //按照宠物的姓名进行模糊搜索 响应事例 { data:[ { id:'1', img:'http://fsfjiweofhudfhu/fsajfioe/a.jpg', names: '二哈', price: 2000.02, sex:1, //公 msg:'发货顺丰恒大华府', kind:'金毛', depart:0, // 0代表猫 1代表狗 sales:10000 }, { id:'2', img:'http://fsudfhu/fsajfioe/a.jpg', names: '三哈', price: 2000.02, sex:1, //公 msg:'发货顺丰恒大华府', kind:'橘猫', depart:0, // 0代表猫 1代表狗 sales:10000 } //以此类推 ] } ```