首页>代码>SpringBoot开发网站后台管理系统>/springboot-mini/src/main/java/com/zyxx/api/controller/NewsInfoApiController.java
package com.zyxx.api.controller; import com.zyxx.api.service.NewsInfoApiService; import com.zyxx.common.utils.ResponseResult; import com.zyxx.sys.service.SysDictDetailService; import io.swagger.annotations.Api; import io.swagger.annotations.ApiImplicitParam; import io.swagger.annotations.ApiImplicitParams; import io.swagger.annotations.ApiOperation; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; /** * 新闻资讯 * * @Author Lizhou * @Date 2020-09-26 10:28:28 **/ @Api(tags = "新闻资讯") @RestController @RequestMapping("api/newsInfo") public class NewsInfoApiController { @Autowired private NewsInfoApiService newsInfoApiService; @Autowired private SysDictDetailService sysDictDetailService; @ApiOperation(value = "获取新闻资讯类型", notes = "获取新闻资讯类型") @GetMapping("listNewsType") public ResponseResult listNewsType() { return ResponseResult.success(sysDictDetailService.listSysDictDetailByDictCode("news_type")); } @ApiOperation(value = "根据类型分页查询新闻资讯", notes = "根据类型分页查询新闻资讯") @ApiImplicitParams({ @ApiImplicitParam(name = "page", value = "页码"), @ApiImplicitParam(name = "limit", value = "条数"), @ApiImplicitParam(name = "type", value = "类型") }) @PostMapping("listNewsInfoByType") public ResponseResult listNewsInfoByType(Integer page, Integer limit, Integer type) { return newsInfoApiService.listNewsInfoByType(page, limit, type); } @ApiOperation(value = "获取新闻资讯详情", notes = "获取新闻资讯详情") @ApiImplicitParams(@ApiImplicitParam(name = "id", value = "id", required = true)) @PostMapping("getNewsInfoById") public ResponseResult getNewsInfoById(Integer id) { return newsInfoApiService.getNewsInfoById(id); } }

15578157792 LV7
2024年10月24日
Tomcat80 LV5
2024年8月14日
9605451tjb LV4
2024年8月7日
TY0165 LV20
2024年6月18日
llllllK LV5
2024年5月13日
Luck_ZDM LV12
2024年4月12日
13521878735 LV3
2024年3月26日
森sdfgf LV8
2024年2月8日
skook7 LV2
2023年12月14日
qwerdf963 LV3
2023年11月20日

哪里的完整版 LV8
2月26日
Boss绝 LV9
1月27日
ma406805131 LV19
2024年12月19日
wjh007 LV5
2024年12月17日
sjwc88 LV3
2024年12月4日
王愉悦 LV4
2024年12月3日
haomc052829 LV4
2024年12月3日
shaohuaqingfu LV3
2024年11月6日
15578157792 LV7
2024年10月24日
bluerstar LV1
2024年10月23日