规范方法名

master
xierz 5 years ago
parent 57d66f8701
commit 7146a2e115
  1. 4
      src/main/java/net/mingsoft/cms/action/ContentAction.java
  2. 6
      src/main/webapp/WEB-INF/manager/cms/content/form.ftl

@ -123,9 +123,9 @@ public class ContentAction extends BaseAction {
*/
@ApiOperation(value = "根据封面获取文章列表接口")
@ApiImplicitParam(name = "categoryId", value = "分类编号", required =true,paramType="query")
@GetMapping("/getByFengMian")
@GetMapping("/getFromFengMian")
@ResponseBody
public ResultData getByFengMian(@ModelAttribute @ApiIgnore ContentEntity content){
public ResultData getFromFengMian(@ModelAttribute @ApiIgnore ContentEntity content){
if(content.getCategoryId() == null) {
return ResultData.build().error();
}

@ -525,9 +525,9 @@
});
},
//根据封面获取当前文章
getByFengMian: function (categoryId) {
getFromFengMian: function (categoryId) {
var that = this;
ms.http.get(ms.manager + "/cms/content/getByFengMian.do", {
ms.http.get(ms.manager + "/cms/content/getFromFengMian.do", {
"categoryId": categoryId
}).then(function (res) {
if (res.result) {
@ -680,7 +680,7 @@
this.get(this.form.id);
}
if (this.type) {
this.getByFengMian(this.form.categoryId);
this.getFromFengMian(this.form.categoryId);
this.returnIsShow = false;
}
}

Loading…
Cancel
Save