Commit 0e77e0b2 authored by shiyu's avatar shiyu

首页专场

parent c6596744
......@@ -75,6 +75,11 @@ public class SpecialPerformanceServiceImpl implements SpecialPerformanceService
@Override
public Result findInfo(SpecialPerformanceRequestDto dto) {
return null;
}
@Override
public Result findInfos(SpecialPerformanceRequestDto dto) {
try {
Date now = new Date();
//到时自动开始,修改状态
......
......@@ -12,6 +12,13 @@ public interface SpecialPerformanceService {
*/
Result findInfo(SpecialPerformanceRequestDto dto);
/**
* 查询专场信息
* @return
*/
Result findInfos(SpecialPerformanceRequestDto dto);
/**
* 查询专场商品列表
* @param dto
......
......@@ -40,6 +40,17 @@ public class SpecialPerformanceController {
}
@ApiOperation(value = "查询专场信息")
@PostMapping("/findInfos")
public Result findInfos(@RequestBody SpecialPerformanceRequestDto dto) {
logger.info("查询专场信息,请求参数:{}", JSON.toJSONString(dto));
if (dto.getType() == null) {
return Result.failed(ResultCode.PARAM_ERROR);
}
return specialPerformanceService.findInfos(dto);
}
@ApiOperation(value = "查询专场商品列表")
@PostMapping("/findItemList")
public Result findItemList(@RequestBody SpecialPerformanceRequestDto dto) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment