|
@@ -13,7 +13,6 @@ import com.zheng.cms.rpc.api.CmsArticleService;
|
|
|
import com.zheng.cms.rpc.api.CmsTopicService;
|
|
import com.zheng.cms.rpc.api.CmsTopicService;
|
|
|
import com.zheng.common.base.BaseController;
|
|
import com.zheng.common.base.BaseController;
|
|
|
import com.zheng.common.validator.LengthValidator;
|
|
import com.zheng.common.validator.LengthValidator;
|
|
|
-import com.zheng.common.validator.NotNullValidator;
|
|
|
|
|
import io.swagger.annotations.Api;
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import org.apache.commons.lang.StringUtils;
|
|
import org.apache.commons.lang.StringUtils;
|
|
@@ -22,7 +21,6 @@ import org.slf4j.Logger;
|
|
|
import org.slf4j.LoggerFactory;
|
|
import org.slf4j.LoggerFactory;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Controller;
|
|
import org.springframework.stereotype.Controller;
|
|
|
-import org.springframework.ui.Model;
|
|
|
|
|
import org.springframework.ui.ModelMap;
|
|
import org.springframework.ui.ModelMap;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
|
@@ -51,7 +49,7 @@ public class CmsArticleController extends BaseController {
|
|
|
@RequiresPermissions("cms:article:read")
|
|
@RequiresPermissions("cms:article:read")
|
|
|
@RequestMapping(value = "/index", method = RequestMethod.GET)
|
|
@RequestMapping(value = "/index", method = RequestMethod.GET)
|
|
|
public String index() {
|
|
public String index() {
|
|
|
- return "/manage/article/index";
|
|
|
|
|
|
|
+ return "/jsp/manage/article/index";
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@ApiOperation(value = "文章列表")
|
|
@ApiOperation(value = "文章列表")
|
|
@@ -85,7 +83,7 @@ public class CmsArticleController extends BaseController {
|
|
|
cmsTopicExample.setOrderByClause("ctime desc");
|
|
cmsTopicExample.setOrderByClause("ctime desc");
|
|
|
List<CmsTopic> cmsTopics = cmsTopicService.selectByExample(cmsTopicExample);
|
|
List<CmsTopic> cmsTopics = cmsTopicService.selectByExample(cmsTopicExample);
|
|
|
modelMap.put("cmsTopics", cmsTopics);
|
|
modelMap.put("cmsTopics", cmsTopics);
|
|
|
- return "/manage/article/create";
|
|
|
|
|
|
|
+ return "/jsp/manage/article/create";
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@ApiOperation(value = "新增文章")
|
|
@ApiOperation(value = "新增文章")
|
|
@@ -126,7 +124,7 @@ public class CmsArticleController extends BaseController {
|
|
|
CmsArticle article = cmsArticleService.selectByPrimaryKey(id);
|
|
CmsArticle article = cmsArticleService.selectByPrimaryKey(id);
|
|
|
modelMap.put("cmsTopics", cmsTopics);
|
|
modelMap.put("cmsTopics", cmsTopics);
|
|
|
modelMap.put("article", article);
|
|
modelMap.put("article", article);
|
|
|
- return "/manage/article/update";
|
|
|
|
|
|
|
+ return "/jsp/manage/article/update";
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@ApiOperation(value = "修改文章")
|
|
@ApiOperation(value = "修改文章")
|