| | |
| | | import io.swagger.annotations.ApiParam; |
| | | import lombok.RequiredArgsConstructor; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.DeleteMapping; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.PathVariable; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | |
| | | @RestController |
| | | @RequestMapping("/mgt/promotion-wish-list") |
| | | @RequiredArgsConstructor |
| | | @Api(value = "管理后台-心愿求购管理相关接口", tags = "管理后台-心愿求购管理相关接口") |
| | | @Api(value = "管理后台-心愿求购管理相关接口", tags = "管理后台-心愿求购管理相关接口筛选条件为:用户发布") |
| | | public class MgtPromotionWishListController { |
| | | |
| | | private final IPromotionWishListService promotionWishListService; |
| | |
| | | promotionWishListService.reply(dto); |
| | | return R.ok(); |
| | | } |
| | | |
| | | /** |
| | | * 删除 |
| | | * |
| | | * @param id 心愿求购id |
| | | */ |
| | | @ApiOperation("删除") |
| | | @DeleteMapping("/{id}") |
| | | public R<?> delete( |
| | | @ApiParam(name = "id", value = "心愿求购id", required = true) @PathVariable("id") Long id) { |
| | | promotionWishListService.removeById(id); |
| | | return R.ok(); |
| | | } |
| | | } |