多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
#### 列表 ~~~[api] get:/goods/index string:search#搜索关键词 number:cateId#分类ID number:p=1#当前页数 number:ps=20#分页大小 <<< success { "message": "success", "code": 1, "data": [ { "id": "3", "cate_id": "1", "name": "vivo X22全面屏智能全网通4G手机", "thumb": "/img/no-image.png", "price": "2898.00", "point": "0", "is_real": "1", "cate": { "id": "1", "name": "未分类" } }, { "id": "1", "cate_id": "1", "name": "vivo X21全面屏智能全网通4G手机", "thumb": "/img/no-image.png", "price": "2898.00", "point": "0", "is_real": "1", "cate": { "id": "1", "name": "未分类" } } ], "_meta": { "totalCount": 2, "pageCount": 1, "currentPage": 1, "perPage": 20 } } ~~~ #### 详情 ~~~[api] get:/goods/retrieve *number:id#主键 <<< success { "message": "success", "code": 1, "data": { "id": "1", "cate_id": "1", "name": "vivo X21全面屏智能全网通4G手机", "thumb": "/img/no-image.png", "banner": [ "/img/no-image.png" ], "summary": "这次,我们用高达90.3%的屏占比,实现你对全面屏的想象。19:9的屏幕比例,搭配惊叹的窄边设计。在视觉上更具冲击力,满足你对手机屏幕的更高追求。采用P3色彩管理技术的“炫视屏”,丰富靓丽的色彩让事物真实还原。", "content": "", "price": "2898.00", "point": "101", "is_real": "1", "cate": { "id": "1", "name": "男人" } } } ~~~ #### 分类 ~~~[api] get:/goods/category number:parentId=0#父ID <<< success { "message": "success", "code": 1, "data": [ { "id": "1", "parent_id": "0", "parent_id_path": "0_1", "level": "1", "name": "未分类", "thumb": "/img/no-image.png", "sort": "0", "is_show": "0", "is_hot": "0", "status": "10", "created_at": "1451577600", "updated_at": "1451577600" } ], "_meta": { "totalCount": 1, "pageCount": 1, "currentPage": 1, "perPage": 100 } } ~~~ #### 增加浏览数 ~~~[api] post:/goods/increase-view-count *number:id#主键 <<< { "message": "success", "code": 1, "data": [] } ~~~