| | |
| | | import com.ruoyi.promotion.service.IPromotionWishListService; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.apache.poi.ss.formula.functions.T; |
| | | import org.springframework.web.bind.annotation.PathVariable; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | |
| | | import org.springframework.web.bind.annotation.ResponseBody; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.List; |
| | |
| | | @RequestMapping("/getPromotionWishList") |
| | | @ResponseBody |
| | | @ApiOperation(value = "获取心愿单列表") |
| | | public R<PageDTO<PromotionWishList>> getPromotionWishList(PromotionWishListDTO promotionWishListDTO) { |
| | | public R<PageDTO<PromotionWishList>> getPromotionWishList(@RequestBody PromotionWishListDTO promotionWishListDTO) { |
| | | return R.ok(iPromotionWishListService.getPromotionWishList(promotionWishListDTO)); |
| | | } |
| | | |
| | | @RequestMapping("/savePromotionWishList") |
| | | @ResponseBody |
| | | @ApiOperation(value = "添加心愿单列表") |
| | | public R<T> savePromotionWishList(PromotionWishListDTO promotionWishListDTO) { |
| | | public R<T> savePromotionWishList(@RequestBody PromotionWishListDTO promotionWishListDTO) { |
| | | iPromotionWishListService.savePromotionWishList(promotionWishListDTO); |
| | | return R.ok(); |
| | | } |
| | |
| | | @RequestMapping("/getPromotionWishOne") |
| | | @ResponseBody |
| | | @ApiOperation(value = "获取心愿单个") |
| | | public R<PromotionWishList> getPromotionWishOne(PromotionWishListDTO promotionWishListDTO) { |
| | | public R<PromotionWishList> getPromotionWishOne(@RequestBody PromotionWishListDTO promotionWishListDTO) { |
| | | return R.ok(iPromotionWishListService.getPromotionWishOne(promotionWishListDTO)); |
| | | } |
| | | |
| | | @RequestMapping("/delPromotionWishOne") |
| | | @ResponseBody |
| | | @ApiOperation(value = "删除心愿单个") |
| | | public R<T> delPromotionWishOne(PromotionWishListDTO promotionWishListDTO) { |
| | | public R<T> delPromotionWishOne(@RequestBody PromotionWishListDTO promotionWishListDTO) { |
| | | iPromotionWishListService.delPromotionWishOne(promotionWishListDTO); |
| | | return R.ok(); |
| | | } |