| | |
| | | package cc.mrbird.febs.mall.controller; |
| | | |
| | | import cc.mrbird.febs.common.entity.FebsResponse; |
| | | import cc.mrbird.febs.mall.service.IApiMallActService; |
| | | import cc.mrbird.febs.mall.vo.ApiActivityVo; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import io.swagger.annotations.ApiResponse; |
| | | import io.swagger.annotations.ApiResponses; |
| | | import lombok.RequiredArgsConstructor; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.PathVariable; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | |
| | | public class ApiMallActController { |
| | | |
| | | private final IApiMallActService iApiMallActService; |
| | | @ApiOperation(value = "获取活动详情", notes = "获取活动详情") |
| | | @ApiResponses({ |
| | | @ApiResponse(code = 200, message = "success", response = ApiActivityVo.class) |
| | | }) |
| | | @GetMapping(value = "/getActiy/{id}") |
| | | public FebsResponse getActivity(@PathVariable("id") Long id) { |
| | | return new FebsResponse().success().data(iApiMallActService.findApiMallActDetailsById(id)); |
| | | } |
| | | |
| | | } |