|
|
|
@ -30,8 +30,8 @@ import java.util.List;
|
|
|
|
|
@Api(tags = "商品交易中心")
|
|
|
|
|
public class StuGoodsTradingCenterController {
|
|
|
|
|
|
|
|
|
|
@Autowired
|
|
|
|
|
private StuGoodsTradingCenterService stuGoodsTradingCenterService;
|
|
|
|
|
@Resource
|
|
|
|
|
StuGoodsTradingCenterService tradingCenterService;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -41,7 +41,7 @@ public class StuGoodsTradingCenterController {
|
|
|
|
|
public ResultEntity getSmallAdPlacement(String userId) {
|
|
|
|
|
|
|
|
|
|
//销量前10位的商品
|
|
|
|
|
return stuGoodsTradingCenterService.getSmallAdPlacement(userId);
|
|
|
|
|
return tradingCenterService.getSmallAdPlacement(userId);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -51,7 +51,7 @@ public class StuGoodsTradingCenterController {
|
|
|
|
|
public ResultEntity getAllProductInquiries(String userId) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return stuGoodsTradingCenterService.AllProductInquiries(userId);
|
|
|
|
|
return tradingCenterService.AllProductInquiries(userId);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -61,7 +61,7 @@ public class StuGoodsTradingCenterController {
|
|
|
|
|
@GetMapping("/productInquiry")
|
|
|
|
|
public ResultEntity getProductInquiry(String userId,String keyWord) {
|
|
|
|
|
|
|
|
|
|
return stuGoodsTradingCenterService.getProductInquiry(userId,keyWord);
|
|
|
|
|
return tradingCenterService.getProductInquiry(userId,keyWord);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -69,6 +69,14 @@ public class StuGoodsTradingCenterController {
|
|
|
|
|
|
|
|
|
|
//todo 查询购物车数量
|
|
|
|
|
|
|
|
|
|
@ApiOperation("购物车数量")
|
|
|
|
|
@AnonymousAccess
|
|
|
|
|
@GetMapping("/numberOfShopping")
|
|
|
|
|
public ResultEntity getNumberOfShopping(String userId) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return tradingCenterService.getNumberOfShopping(userId);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//大广告招租
|
|
|
|
|
|
|
|
|
@ -77,7 +85,7 @@ public class StuGoodsTradingCenterController {
|
|
|
|
|
@GetMapping("/bigAdPlacement")
|
|
|
|
|
public ResultEntity getBigAdPlacement(String userId) {
|
|
|
|
|
|
|
|
|
|
return stuGoodsTradingCenterService.getBigAdPlacement(userId);
|
|
|
|
|
return tradingCenterService.getBigAdPlacement(userId);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -86,7 +94,7 @@ public class StuGoodsTradingCenterController {
|
|
|
|
|
@GetMapping("/getTypeQuery")
|
|
|
|
|
public ResultEntity getTypeQuery(String userId,String type) {
|
|
|
|
|
|
|
|
|
|
return stuGoodsTradingCenterService.getTypeQuery(userId,type);
|
|
|
|
|
return tradingCenterService.getTypeQuery(userId,type);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -94,8 +102,7 @@ public class StuGoodsTradingCenterController {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Resource
|
|
|
|
|
StuGoodsTradingCenterService tradingCenterService;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ApiOperation("购物车信息展示")
|
|
|
|
|
@PostMapping("/getShoppingCartInfo")
|
|
|
|
@ -106,4 +113,9 @@ public class StuGoodsTradingCenterController {
|
|
|
|
|
|
|
|
|
|
return new ResultEntity(HttpStatus.OK,"购物车信息", tradingCenterService.getShoppingCartInfo(userId,index,size));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|