diff --git a/pom.xml b/pom.xml index 91f73f6..b7bac1b 100644 --- a/pom.xml +++ b/pom.xml @@ -2,6 +2,12 @@ 4.0.0 + + org.springframework.boot + spring-boot-starter-parent + 2.2.4.RELEASE + + waynboot-common waynboot-admin-api @@ -40,14 +46,6 @@ - - org.springframework.boot - spring-boot-dependencies - ${spring-boot.version} - pom - import - - org.springframework.boot spring-boot-starter-aop @@ -203,13 +201,8 @@ - org.apache.maven.plugins - maven-compiler-plugin - 3.6.1 - - ${java.version} - ${java.version} - + org.springframework.boot + spring-boot-maven-plugin diff --git a/waynboot-admin-api/pom.xml b/waynboot-admin-api/pom.xml index e76032e..50690ca 100644 --- a/waynboot-admin-api/pom.xml +++ b/waynboot-admin-api/pom.xml @@ -34,12 +34,5 @@ - - - org.springframework.boot - spring-boot-maven-plugin - ${spring-boot.version} - - \ No newline at end of file diff --git a/waynboot-mobile-api/pom.xml b/waynboot-mobile-api/pom.xml index 124517f..4bf3c89 100644 --- a/waynboot-mobile-api/pom.xml +++ b/waynboot-mobile-api/pom.xml @@ -34,12 +34,5 @@ - - - org.springframework.boot - spring-boot-maven-plugin - ${spring-boot.version} - - \ No newline at end of file diff --git a/waynboot-mobile-api/src/main/java/com/wayn/mobile/api/controller/HomeController.java b/waynboot-mobile-api/src/main/java/com/wayn/mobile/api/controller/HomeController.java index 4ee686a..2168303 100644 --- a/waynboot-mobile-api/src/main/java/com/wayn/mobile/api/controller/HomeController.java +++ b/waynboot-mobile-api/src/main/java/com/wayn/mobile/api/controller/HomeController.java @@ -1,25 +1,16 @@ package com.wayn.mobile.api.controller; -import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.wayn.common.base.BaseController; -import com.wayn.common.core.domain.shop.Banner; -import com.wayn.common.core.domain.shop.Category; import com.wayn.common.core.domain.shop.Goods; -import com.wayn.common.core.domain.system.Dict; -import com.wayn.common.core.service.shop.IBannerService; -import com.wayn.common.core.service.shop.ICategoryService; -import com.wayn.common.core.service.shop.IGoodsService; import com.wayn.common.util.R; import com.wayn.mobile.api.service.HomeService; import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; -import java.util.List; -import java.util.concurrent.*; - @RestController @RequestMapping("home") public class HomeController extends BaseController { @@ -32,7 +23,7 @@ public class HomeController extends BaseController { return homeService.getHomeIndexData(); } - @PostMapping("goodsList") + @GetMapping("goodsList") public R getGoodsList() { Page page = getPage(); return homeService.listGoodsPage(page);