package com.ruoyi.auction.controller.forepart;
|
|
|
import com.ruoyi.auction.controller.forepart.dto.AuctionSalesroomGoodsDTO;
|
import com.ruoyi.auction.controller.forepart.dto.MemberAuctionSalesroomDTO;
|
import com.ruoyi.auction.controller.forepart.vo.AuctionSalesroomVO;
|
import com.ruoyi.auction.controller.forepart.vo.ForepartAuctionSalesroomGoodsVO;
|
import com.ruoyi.auction.controller.forepart.vo.MemberAuctionSalesroomVO;
|
import com.ruoyi.auction.domain.AuctionSalesroomGoods;
|
import com.ruoyi.auction.service.IAuctionSalesroomGoodsService;
|
import com.ruoyi.common.core.domain.R;
|
import com.ruoyi.common.core.utils.page.PageDTO;
|
import io.swagger.annotations.ApiOperation;
|
import java.util.List;
|
import javax.annotation.Resource;
|
import org.apache.poi.ss.formula.functions.T;
|
import org.springframework.web.bind.annotation.RequestBody;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.ResponseBody;
|
import org.springframework.web.bind.annotation.RestController;
|
|
/**
|
* <p>
|
* 拍卖场商品关系表 前端控制器
|
* </p>
|
*
|
* @author mitao
|
* @since 2024-05-16
|
*/
|
@RestController
|
@RequestMapping("/forepart/auction-salesroom-goods")
|
public class ForepartAuctionSalesroomGoodsController {
|
|
|
@Resource
|
private IAuctionSalesroomGoodsService iAuctionSalesroomGoodsService;
|
|
/**
|
* 拍卖大屏的商品介绍
|
*
|
*/
|
@RequestMapping("/getAuctionSalesroomGoods")
|
@ResponseBody
|
@ApiOperation(value = "拍卖大屏的商品介绍")
|
public R<ForepartAuctionSalesroomGoodsVO> getAuctionSalesroomGoods(@RequestBody AuctionSalesroomGoodsDTO ationSalesroomGoodsDTO) {
|
return R.ok(iAuctionSalesroomGoodsService.getAuctionSalesroomGoods(ationSalesroomGoodsDTO));
|
}
|
|
/**
|
* 拍卖师端拍卖场信息
|
*
|
*/
|
@RequestMapping("/getAuctionSalesroominfo")
|
@ResponseBody
|
@ApiOperation(value = "拍卖师端拍卖场信息")
|
public R<AuctionSalesroomVO> getAuctionSalesroominfo(@RequestBody AuctionSalesroomGoodsDTO ationSalesroomGoodsDTO) {
|
return R.ok(iAuctionSalesroomGoodsService.getAuctionSalesroominfo(ationSalesroomGoodsDTO));
|
}
|
|
/**
|
* 拍卖师端拍卖场立即开始
|
*
|
*/
|
@RequestMapping("/auctionSalesroomStart")
|
@ResponseBody
|
@ApiOperation(value = "拍卖师端拍卖场立即开始")
|
public R<T> auctionSalesroomStart(@RequestBody AuctionSalesroomGoodsDTO ationSalesroomGoodsDTO) {
|
iAuctionSalesroomGoodsService.auctionSalesroomStart(ationSalesroomGoodsDTO);
|
return R.ok();
|
}
|
|
|
/**
|
* 拍卖师端拍卖场立即开始
|
*
|
*/
|
@RequestMapping("/auctionSalesroomEnd")
|
@ResponseBody
|
@ApiOperation(value = "拍卖师端拍卖场立即结束")
|
public R<T> auctionSalesroomEnd(@RequestBody AuctionSalesroomGoodsDTO ationSalesroomGoodsDTO) {
|
iAuctionSalesroomGoodsService.auctionSalesroomEnd(ationSalesroomGoodsDTO);
|
return R.ok();
|
}
|
|
|
/**
|
* 判断拍卖师端是否还有未拍卖商品
|
*
|
*/
|
@RequestMapping("/isAuctionSalesroom")
|
@ResponseBody
|
@ApiOperation(value = "判断拍卖师端是否还有未拍卖商品")
|
public R<List<AuctionSalesroomGoods>> isAuctionSalesroom(@RequestBody AuctionSalesroomGoodsDTO ationSalesroomGoodsDTO) {
|
return R.ok(iAuctionSalesroomGoodsService.isAuctionSalesroom(ationSalesroomGoodsDTO));
|
}
|
|
|
/**
|
* 拍卖师端拍卖场下一个立即开始
|
*
|
*/
|
@RequestMapping("/auctionSalesroomGoodsStart")
|
@ResponseBody
|
@ApiOperation(value = "拍卖师端拍卖场下一个立即开始")
|
public R<T> auctionSalesroomGoodsStart(@RequestBody AuctionSalesroomGoodsDTO auctionSalesroomGoodsDTO) {
|
iAuctionSalesroomGoodsService.auctionSalesroomGoodsStart(auctionSalesroomGoodsDTO);
|
return R.ok();
|
}
|
|
|
|
/**
|
* 拍卖师端拍卖场下一个立即结束
|
*
|
*/
|
@RequestMapping("/auctionSalesroomGoodsEnd")
|
@ResponseBody
|
@ApiOperation(value = "拍卖师端拍卖场下一个立即结束")
|
public R<T> auctionSalesroomGoodsEnd(@RequestBody AuctionSalesroomGoodsDTO auctionSalesroomGoodsDTO) {
|
iAuctionSalesroomGoodsService.auctionSalesroomGoodsStart(auctionSalesroomGoodsDTO);
|
return R.ok();
|
}
|
|
|
|
}
|