|
|
@@ -2,7 +2,6 @@ package com.sqx.modules.goods.controller.app;
|
|
|
|
|
|
import cn.hutool.core.util.StrUtil;
|
|
|
import com.sqx.common.utils.Result;
|
|
|
-import com.sqx.modules.app.annotation.Login;
|
|
|
import com.sqx.modules.goods.dto.ShopQueryDTO;
|
|
|
import com.sqx.modules.goods.entity.GoodsShop;
|
|
|
import com.sqx.modules.goods.service.GoodsService;
|
|
|
@@ -11,7 +10,11 @@ import com.sqx.modules.shop.service.SearchHistoryService;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
-import org.springframework.web.bind.annotation.*;
|
|
|
+import org.springframework.web.bind.annotation.GetMapping;
|
|
|
+import org.springframework.web.bind.annotation.PostMapping;
|
|
|
+import org.springframework.web.bind.annotation.RequestBody;
|
|
|
+import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
+import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
@Api(tags={"用户端-商品"})
|
|
|
@RestController
|
|
|
@@ -46,22 +49,6 @@ public class AppGoodsController {
|
|
|
return goodsService.selectGoodsById(goodsId);
|
|
|
}
|
|
|
|
|
|
- /*@Login
|
|
|
- @ApiOperation("获取该商品规格名")
|
|
|
- @GetMapping(value = "selectSkuByGoodsId")
|
|
|
- public Result selectSkuByGoodsId(Long goodsId){
|
|
|
- //goodsService.selectSkuByGoodsId(goodsId)
|
|
|
- return null;
|
|
|
- }
|
|
|
-
|
|
|
- @Login
|
|
|
- @ApiOperation("获取该商品详细规格")
|
|
|
- @GetMapping(value = "selectAttrByGoodsId")
|
|
|
- public Result selectAttrByGoodsId(Long goodsId){
|
|
|
- //goodsService.selectAttrByGoodsId(goodsId);
|
|
|
- return null;
|
|
|
- }*/
|
|
|
-
|
|
|
@ApiOperation("条件筛选店铺")
|
|
|
@GetMapping(value = "selectShop")
|
|
|
public Result selectShop(ShopQueryDTO queryDTO){
|