From 01d6fa48a0de7a21988e89f71721b6b85e53b517 Mon Sep 17 00:00:00 2001 From: mitao <2763622819@qq.com> Date: 星期四, 06 三月 2025 16:33:53 +0800 Subject: [PATCH] 去掉资讯图片必填限制 --- ruoyi-modules/ruoyi-goods/src/main/java/com/ruoyi/goods/controller/inner/GoodsSeriesController.java | 20 ++++++++++++++++++-- 1 files changed, 18 insertions(+), 2 deletions(-) diff --git a/ruoyi-modules/ruoyi-goods/src/main/java/com/ruoyi/goods/controller/inner/GoodsSeriesController.java b/ruoyi-modules/ruoyi-goods/src/main/java/com/ruoyi/goods/controller/inner/GoodsSeriesController.java index c7bc4fb..bce688b 100644 --- a/ruoyi-modules/ruoyi-goods/src/main/java/com/ruoyi/goods/controller/inner/GoodsSeriesController.java +++ b/ruoyi-modules/ruoyi-goods/src/main/java/com/ruoyi/goods/controller/inner/GoodsSeriesController.java @@ -1,8 +1,13 @@ package com.ruoyi.goods.controller.inner; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RestController; +import com.ruoyi.common.core.domain.R; +import com.ruoyi.common.security.annotation.InnerAuth; +import com.ruoyi.system.api.domain.GoodsSeries; +import com.ruoyi.goods.service.IGoodsSeriesService; +import org.springframework.web.bind.annotation.*; + +import javax.annotation.Resource; /** * <p> @@ -16,4 +21,15 @@ @RequestMapping("/goods-series") public class GoodsSeriesController { + @Resource + private IGoodsSeriesService iGoodsSeriesService; + @InnerAuth + @PostMapping("/getSeriesOne") + @ResponseBody + public R<GoodsSeries> getSeriesOne(@RequestBody Long seriesId) { + GoodsSeries goodsSeriesOne=iGoodsSeriesService.getById(seriesId); + return R.ok(goodsSeriesOne); + + } + } -- Gitblit v1.7.1