|
@@ -0,0 +1,35 @@
|
|
|
+package com.caimei.www.controller.unlimited;
|
|
|
+
|
|
|
+import com.caimei.www.controller.BaseController;
|
|
|
+import org.springframework.stereotype.Controller;
|
|
|
+import org.springframework.web.bind.annotation.GetMapping;
|
|
|
+
|
|
|
+/**
|
|
|
+ * Description
|
|
|
+ *
|
|
|
+ * @author : Charles
|
|
|
+ * @date : 2020/7/31
|
|
|
+ */
|
|
|
+@Controller
|
|
|
+public class ArticleController extends BaseController {
|
|
|
+
|
|
|
+ private static final String ARTICLE_LIST_PATH = "article/list";
|
|
|
+ private static final String ARTICLE_DETAIL_PATH = "article/detail";
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 文章列表页
|
|
|
+ */
|
|
|
+ @GetMapping("/article/list.html")
|
|
|
+ public String articleList() {
|
|
|
+ return ARTICLE_LIST_PATH;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 文章详情页
|
|
|
+ */
|
|
|
+ @GetMapping("/article/detail.html")
|
|
|
+ public String articleDetail() {
|
|
|
+ return ARTICLE_DETAIL_PATH;
|
|
|
+ }
|
|
|
+
|
|
|
+}
|