18年,51cto老师录视频- Vue.js前端开发基础与项目实战的接口,不能用了

本文主要是介绍18年,51cto老师录视频- Vue.js前端开发基础与项目实战的接口,不能用了,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

18年,51cto老师录视频的接口,不能用了
获取商品列表
http://api.mm2018.com:8090/api/goods/home

23年,51cto老师录视频的接口,和老师新要的
获取商品列表
http://api.mm2018.com:8095/api/goods/home

请求无参:

响应:apifox  mock 用到的

{"success": true,"message": "success","code": 200,"timestamp": 1573523295692,"result": [{"id": 7,"name": "轮播图","type": 0,"contents": [{"id": 1,"type": 0,"picUrl": "http://api.mm2018.com/images/banner_a.jpg"},{"id": 2,"type": 0,"picUrl": "http://api.mm2018.com/images/banner_b.jpg"}]},{"id": 8,"name": "广告","type": 1,"contents": [{"id": 25,"picUrl": "http://api.mm2018.com/images/ad_a.jpg"},{"id": 26,"picUrl": "http://api.mm2018.com/images/ad_b.jpg"},{"id": 27,"picUrl": "http://api.mm2018.com/images/ad_c.jpg"}]},{"id": 1,"name": "商家推荐","type": 2,"contents": [{"id": 22,"type": 0,"productId": 150635087972564,"picUrl": "http://api.mm2018.com/images/tuijian_a.jpg","salePrice": 16,"productName": "原味瓜子"},{"id": 23,"type": 0,"productId": 150642571432835,"picUrl": "http://api.mm2018.com/images/tuijian_b.jpg","salePrice": 16,"productName": "五香瓜子"},{"id": 24,"type": 0,"productId": 150642571432836,"picUrl": "http://api.mm2018.com/images/tuijian_a.jpg","salePrice": 16,"productName": "焦糖瓜子"}]},{"id": 2,"name": "西瓜子","type": 3,"contents": [{"id": 29,"type": 2,"productId": 150642571432843,"picUrl": "http://api.mm2018.com/images/x_a.jpg","salePrice": 14,"productName": "西瓜子1"},{"id": 8,"type": 0,"productId": 150642571432837,"picUrl": "http://api.mm2018.com/images/x_b.jpg","salePrice": 49,"productName": "西瓜子2"},{"id": 9,"type": 0,"productId": 150642571432838,"picUrl": "http://api.mm2018.com/images/x_c.jpg","salePrice": 29,"productName": "西瓜子3"},{"id": 14,"type": 0,"productId": 150642571432839,"picUrl": "http://api.mm2018.com/images/x_d.jpg","salePrice": 19,"productName": "西瓜子4"},{"id": 15,"type": 0,"productId": 150642571432840,"picUrl": "http://api.mm2018.com/images/x_e.jpg","salePrice": 59,"productName": "西瓜子5"}]},{"id": 10,"name": "原味瓜子","type": 3,"contents": [{"id": 40,"type": 2,"picUrl": "http://api.mm2018.com/images/y_a.jpg","salePrice": 15,"productName": "原味1"},{"id": 41,"type": 0,"productId": 150642571432845,"picUrl": "http://api.mm2018.com/images/y_b.jpg","salePrice": 9,"productName": "原味2"},{"id": 42,"type": 0,"productId": 150642571432836,"picUrl": "http://api.mm2018.com/images/y_c.jpg","salePrice": 19,"productName": "原味3"},{"id": 43,"type": 0,"productId": 150642571432846,"picUrl": "http://api.mm2018.com/images/y_d.jpg","salePrice": 49,"productName": "原味4"},{"id": 44,"type": 0,"productId": 150642571432848,"picUrl": "http://api.mm2018.com/images/y_e.jpg","salePrice": 55,"productName": "原味5"}]},{"id": 3,"name": "五香瓜子","type": 3,"contents": [{"id": 30,"type": 2,"productId": 150642571432850,"picUrl": "http://api.mm2018.com/images/w_a.jpg","salePrice": 11,"productName": "五香1"},{"id": 2,"type": 0,"productId": 150642571432851,"picUrl": "http://api.mm2018.com/images/w_b.jpg","salePrice": 12,"productName": "五香2"},{"id": 7,"type": 0,"productId": 816448,"picUrl": "http://api.mm2018.com/images/w_c.jpg","salePrice": 22,"productName": "五香3"},{"id": 18,"type": 0,"productId": 847276,"picUrl": "http://api.mm2018.com/images/w_d.jpg","salePrice": 12,"productName": "五香4"},{"id": 19,"type": 0,"productId": 150642571432844,"picUrl": "http://api.mm2018.com/images/w_e.jpg","salePrice": 45,"productName": "五香5"}]},{"id": 9,"name": "广告2","type": 1,"contents": [{"id": 65,"picUrl": "http://api.mm2018.com/images/ad_a.jpg"},{"id": 37,"picUrl": "http://api.mm2018.com/images/ad_b.jpg"},{"id": 38,"picUrl": "http://api.mm2018.com/images/ad_c.jpg"}]}]
}

这篇关于18年,51cto老师录视频- Vue.js前端开发基础与项目实战的接口,不能用了的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/392

相关文章

springboot下载接口限速功能实现

《springboot下载接口限速功能实现》通过Redis统计并发数动态调整每个用户带宽,核心逻辑为每秒读取并发送限定数据量,防止单用户占用过多资源,确保整体下载均衡且高效,本文给大家介绍spring... 目录 一、整体目标 二、涉及的主要类/方法✅ 三、核心流程图解(简化) 四、关键代码详解1️⃣ 设置

springboot项目中整合高德地图的实践

《springboot项目中整合高德地图的实践》:本文主要介绍springboot项目中整合高德地图的实践,具有很好的参考价值,希望对大家有所帮助,如有错误或未考虑完全的地方,望不吝赐教... 目录一:高德开放平台的使用二:创建数据库(我是用的是mysql)三:Springboot所需的依赖(根据你的需求再

spring中的ImportSelector接口示例详解

《spring中的ImportSelector接口示例详解》Spring的ImportSelector接口用于动态选择配置类,实现条件化和模块化配置,关键方法selectImports根据注解信息返回... 目录一、核心作用二、关键方法三、扩展功能四、使用示例五、工作原理六、应用场景七、自定义实现Impor

一文详解如何在idea中快速搭建一个Spring Boot项目

《一文详解如何在idea中快速搭建一个SpringBoot项目》IntelliJIDEA作为Java开发者的‌首选IDE‌,深度集成SpringBoot支持,可一键生成项目骨架、智能配置依赖,这篇文... 目录前言1、创建项目名称2、勾选需要的依赖3、在setting中检查maven4、编写数据源5、开启热

Python并行处理实战之如何使用ProcessPoolExecutor加速计算

《Python并行处理实战之如何使用ProcessPoolExecutor加速计算》Python提供了多种并行处理的方式,其中concurrent.futures模块的ProcessPoolExecu... 目录简介完整代码示例代码解释1. 导入必要的模块2. 定义处理函数3. 主函数4. 生成数字列表5.

SpringBoot项目配置logback-spring.xml屏蔽特定路径的日志

《SpringBoot项目配置logback-spring.xml屏蔽特定路径的日志》在SpringBoot项目中,使用logback-spring.xml配置屏蔽特定路径的日志有两种常用方式,文中的... 目录方案一:基础配置(直接关闭目标路径日志)方案二:结合 Spring Profile 按环境屏蔽关

MybatisPlus service接口功能介绍

《MybatisPlusservice接口功能介绍》:本文主要介绍MybatisPlusservice接口功能介绍,本文给大家介绍的非常详细,对大家的学习或工作具有一定的参考借鉴价值,需要的朋友... 目录Service接口基本用法进阶用法总结:Lambda方法Service接口基本用法MyBATisP

从基础到进阶详解Pandas时间数据处理指南

《从基础到进阶详解Pandas时间数据处理指南》Pandas构建了完整的时间数据处理生态,核心由四个基础类构成,Timestamp,DatetimeIndex,Period和Timedelta,下面我... 目录1. 时间数据类型与基础操作1.1 核心时间对象体系1.2 时间数据生成技巧2. 时间索引与数据

MySQL版本问题导致项目无法启动问题的解决方案

《MySQL版本问题导致项目无法启动问题的解决方案》本文记录了一次因MySQL版本不一致导致项目启动失败的经历,详细解析了连接错误的原因,并提供了两种解决方案:调整连接字符串禁用SSL或统一MySQL... 目录本地项目启动报错报错原因:解决方案第一个:第二种:容器启动mysql的坑两种修改时区的方法:本地

安装centos8设置基础软件仓库时出错的解决方案

《安装centos8设置基础软件仓库时出错的解决方案》:本文主要介绍安装centos8设置基础软件仓库时出错的解决方案,具有很好的参考价值,希望对大家有所帮助,如有错误或未考虑完全的地方,望不吝赐... 目录安装Centos8设置基础软件仓库时出错版本 8版本 8.2.200android4版本 javas