文档
测试

购买页猫狗分类接口

GET
http://127.0.0.1:3000/api/pet?depart= & start=

接口描述

depart { 0 => 猫 , 1 => 狗 }。 start 开始页数

说明 / 示例

```js 请求示例 GET => http://127.0.0.1:3000/api/pet?depart=1&start=1 响应示例 { code: 1000, msg: 'success', data: { current: 1, //当前页数 size: 8, //本页数据条数 total: 200, //数据库全部数据总数 pets: [ //本页数据列表 { id: '6d593b38-209b-4349-9c0e-cae5b773fb45',//宠物编号 img: 'http://scjou.cn/dog1',//图片地址 names: '二汪',//宠物名 sex: 1,//宠物性别 0 母 1 公 age: '两岁', // 年龄 variety: '哈士奇', // 宠物品种 price: 2499.00 // 价格 }, {id: '', img : '', names : '', sex : '', variety : ''}, {id: '', img : '', names : '', sex : '', variety : ''}, …… …… ] } } ```