|
|
@@ -3,12 +3,16 @@ package com.template.controller;
|
|
|
|
|
|
import com.template.annotation.DESRespondSecret;
|
|
|
import com.template.api.SmartNewsControllerAPI;
|
|
|
+import com.template.model.pojo.SmartNews;
|
|
|
import com.template.model.result.CommonResult;
|
|
|
+import com.template.services.SmartNewsService;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
+import java.util.List;
|
|
|
+
|
|
|
/**
|
|
|
* <p>
|
|
|
* 前端控制器
|
|
|
@@ -22,12 +26,13 @@ import org.springframework.web.bind.annotation.RestController;
|
|
|
public class SmartNewsController implements SmartNewsControllerAPI {
|
|
|
|
|
|
@Autowired
|
|
|
+ SmartNewsService smartNewsService;
|
|
|
|
|
|
@Override
|
|
|
- public CommonResult remindingList() {
|
|
|
-
|
|
|
+ public CommonResult newsList() {
|
|
|
+ List<SmartNews> smartNews=smartNewsService.newsList();
|
|
|
|
|
|
- return null;
|
|
|
+ return CommonResult.ok(smartNews);
|
|
|
}
|
|
|
}
|
|
|
|