| | |
| | | |
| | | |
| | | import cn.lili.base.Result; |
| | | import cn.lili.modules.lmk.domain.form.StorePrizeProofForm; |
| | | import cn.lili.modules.lmk.domain.query.PrizeClaimRecordQuery; |
| | | import cn.lili.modules.lmk.domain.query.ScanPrizeQuery; |
| | | import cn.lili.modules.lmk.service.PrizeClaimRecordService; |
| | | import cn.lili.modules.lmk.service.ScanPrizeService; |
| | | import cn.lili.modules.lmk.service.StorePrizeProofService; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.RequiredArgsConstructor; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | /** |
| | | * lmk-shop-java |
| | |
| | | @RestController |
| | | @RequestMapping("/store/lmk/scan-prize") |
| | | public class StorePrizeClaimController { |
| | | private final ScanPrizeService scanPrizeService; |
| | | private final PrizeClaimRecordService prizeClaimRecordService; |
| | | private final StorePrizeProofService storePrizeProofService; |
| | | |
| | | @GetMapping("/page") |
| | | @ApiOperation(value = "分页", notes = "分页") |
| | | public Result page(ScanPrizeQuery query) { |
| | | return scanPrizeService.page(query,"seller"); |
| | | public Result page(PrizeClaimRecordQuery query) { |
| | | return prizeClaimRecordService.page(query,"seller"); |
| | | } |
| | | |
| | | @PostMapping |
| | | public Result add(@RequestBody StorePrizeProofForm storePrizeProofForm) { |
| | | return storePrizeProofService.add(storePrizeProofForm); |
| | | } |
| | | } |