|
|
|
@ -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<Goods> page = getPage();
|
|
|
|
|
return homeService.listGoodsPage(page);
|
|
|
|
|