太湖之光文章详情

This commit is contained in:
wangjinlei
2024-06-07 15:06:18 +08:00
parent 2639884eef
commit b40858c767

View File

@@ -1,6 +1,7 @@
package com.peanut.modules.common.controller;
import com.peanut.common.utils.R;
import com.peanut.modules.common.entity.TaihuWelfareEntity;
import com.peanut.modules.common.service.TaihuWelfareService;
import com.peanut.modules.common.to.ParamTo;
import lombok.extern.slf4j.Slf4j;
@@ -9,6 +10,8 @@ import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.Map;
@Slf4j
@RestController("commonTaihuWelfare")
@RequestMapping("common/taihuWelfare")
@@ -26,4 +29,10 @@ public class TaihuWelfareController {
return taihuWelfareService.getTaihuWelfareProductList(param);
}
@RequestMapping("/getTaihuWelfareArticleDetail")
public R getTaihuWelfareArticleDetail(@RequestBody Map<String,Integer> map){
TaihuWelfareEntity byId = taihuWelfareService.getById(map.get("id"));
return R.ok().put("result",byId);
}
}