|
@@ -1,7 +1,9 @@
|
|
|
package com.hssx.website.controller;
|
|
|
|
|
|
|
|
|
+import com.hssx.website.entity.Cooperations;
|
|
|
import com.hssx.website.service.ArticleService;
|
|
|
+import com.hssx.website.service.CooperationsService;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Controller;
|
|
@@ -21,12 +23,14 @@ public class ArticleController {
|
|
|
|
|
|
@Autowired
|
|
|
private ArticleService articleService;
|
|
|
+ @Autowired
|
|
|
+ private CooperationsService cooperationsService;
|
|
|
|
|
|
- @ApiOperation("添加/修改公司")
|
|
|
- @GetMapping("/add")
|
|
|
- public String indexHtml(Model model) {
|
|
|
+ @ApiOperation("案例")
|
|
|
+ @GetMapping("/article")
|
|
|
+ public String index(Model model) {
|
|
|
model = articleService.getList(model);
|
|
|
- return "hello";
|
|
|
+ return "index";
|
|
|
}
|
|
|
// @GetMapping("/")
|
|
|
// public String index(Model model) {
|
|
@@ -34,5 +38,11 @@ public class ArticleController {
|
|
|
// return "index";
|
|
|
// }
|
|
|
|
|
|
+ @ApiOperation("合作伙伴")
|
|
|
+ @GetMapping("/cooperations")
|
|
|
+ public String cooperations(Model model) {
|
|
|
+ model = cooperationsService.getList(model);
|
|
|
+ return "index";
|
|
|
+ }
|
|
|
}
|
|
|
|