From cbbdf554d8387444c4ca194140a05bbcfc163eba Mon Sep 17 00:00:00 2001 From: mitao <2763622819@qq.com> Date: 星期四, 30 五月 2024 18:07:28 +0800 Subject: [PATCH] 1.提交【管理后台】 拍卖场管理相关接口 2.浏览记录基础代码创建 --- ruoyi-modules/ruoyi-auction/src/main/java/com/ruoyi/auction/controller/forepart/ForepartAuctionGoodsController.java | 21 +++++++++++++++++++-- 1 files changed, 19 insertions(+), 2 deletions(-) diff --git a/ruoyi-modules/ruoyi-auction/src/main/java/com/ruoyi/auction/controller/forepart/ForepartAuctionGoodsController.java b/ruoyi-modules/ruoyi-auction/src/main/java/com/ruoyi/auction/controller/forepart/ForepartAuctionGoodsController.java index b194185..fe1c57d 100644 --- a/ruoyi-modules/ruoyi-auction/src/main/java/com/ruoyi/auction/controller/forepart/ForepartAuctionGoodsController.java +++ b/ruoyi-modules/ruoyi-auction/src/main/java/com/ruoyi/auction/controller/forepart/ForepartAuctionGoodsController.java @@ -1,9 +1,14 @@ package com.ruoyi.auction.controller.forepart; -import org.springframework.web.bind.annotation.RequestMapping; +import com.ruoyi.auction.service.IAuctionGoodsService; +import com.ruoyi.common.core.domain.R; +import com.ruoyi.common.security.annotation.InnerAuth; +import com.ruoyi.system.api.domain.AuctionGoods; +import com.ruoyi.system.api.domain.AuctionSalesroom; +import org.springframework.web.bind.annotation.*; -import org.springframework.web.bind.annotation.RestController; +import javax.annotation.Resource; /** * <p> @@ -17,4 +22,16 @@ @RequestMapping("/forepart/auction-goods") public class ForepartAuctionGoodsController { + @Resource + private IAuctionGoodsService iAuctionGoodsService; + + @InnerAuth + @PostMapping("/getAuctionGoodsOne") + @ResponseBody + public R<AuctionGoods> getAuctionGoodsOne(@RequestBody Long auctionSalesroomId) { + AuctionGoods auctionGoods=iAuctionGoodsService.getById(auctionSalesroomId); + return R.ok(auctionGoods); + + } + } -- Gitblit v1.7.1