Browse Source

1、添加轮播图分类

master
Aug 5 months ago
parent
commit
233894f2ba
2 changed files with 6 additions and 3 deletions
  1. +1
    -1
      jeecg-boot-module-system/src/main/java/org/jeecg/modules/api/travelController/IndexApiController.java
  2. +5
    -2
      jeecg-boot-module-system/src/main/java/org/jeecg/modules/apiService/impl/IndexApiServiceImpl.java

+ 1
- 1
jeecg-boot-module-system/src/main/java/org/jeecg/modules/api/travelController/IndexApiController.java View File

@ -33,7 +33,7 @@ public class IndexApiController {
/**************首页*********************/
//获取banner图列表
@ApiOperation(value="小程序-获取banner图列表", notes="0-首页 1-遗产路径 2-我要跟拍 3-非遗体验 4-无忧服务 5-申遗历程")
@ApiOperation(value="小程序-获取banner图列表", notes="0-首页 1-遗产路径 2-我要跟拍 3-非遗体验 4-无忧服务 5-申遗历程 6-遗产概况")
@GetMapping()
@RequestMapping(value = "/queryBannerList", method = {RequestMethod.GET})
public Result<?> queryBannerList(String bannerCategoryType){


+ 5
- 2
jeecg-boot-module-system/src/main/java/org/jeecg/modules/apiService/impl/IndexApiServiceImpl.java View File

@ -150,7 +150,7 @@ public class IndexApiServiceImpl implements IndexApiService {
@Override
public Result<?> queryBannerList(String bannerCategoryId) {
//0-首页 1-遗产路径 2-我要跟拍 3-非遗体验 4-无忧服务 5-申遗历程
//0-首页 1-遗产路径 2-我要跟拍 3-非遗体验 4-无忧服务 5-申遗历程 6-遗产概况
switch (bannerCategoryId){
case "0":
bannerCategoryId = "1836222983394902017";
@ -170,8 +170,11 @@ public class IndexApiServiceImpl implements IndexApiService {
case "5":
bannerCategoryId = "1843170621184884738";
break;
case "6":
bannerCategoryId = "1853630125401948161";
break;
default:
return Result.OK("参数输入不合法,请重新输入:0-首页 1-遗产路径 2-我要跟拍 3-非遗体验 4-无忧服务 5-申遗历程");
return Result.OK("参数输入不合法,请重新输入:0-首页 1-遗产路径 2-我要跟拍 3-非遗体验 4-无忧服务 5-申遗历程 6-遗产概况");
}


Loading…
Cancel
Save