|
@@ -0,0 +1,31 @@
|
|
|
+package com.ym.mec.cms.controller;
|
|
|
+
|
|
|
+import io.swagger.annotations.Api;
|
|
|
+import io.swagger.annotations.ApiImplicitParam;
|
|
|
+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.PathVariable;
|
|
|
+import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
+import org.springframework.web.bind.annotation.RestController;
|
|
|
+
|
|
|
+import com.ym.mec.cms.service.SysNewsInformationService;
|
|
|
+import com.ym.mec.common.controller.BaseController;
|
|
|
+
|
|
|
+@RestController
|
|
|
+@RequestMapping("news")
|
|
|
+@Api(tags = "资讯服务")
|
|
|
+public class NewsController extends BaseController {
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ private SysNewsInformationService sysNewsInformationService;
|
|
|
+
|
|
|
+ @ApiOperation("根据用户名查询用户信息接口")
|
|
|
+ @ApiImplicitParam(name = "type", value = "资讯类型", required = true, dataType = "int", paramType = "path")
|
|
|
+ @GetMapping("/list/{type}")
|
|
|
+ public Object getList(@PathVariable("type") int type) {
|
|
|
+ return succeed();
|
|
|
+ }
|
|
|
+
|
|
|
+}
|