规范方法名

This commit is contained in:
xierz 2020-11-25 14:38:31 +08:00
parent 57d66f8701
commit 7146a2e115
2 changed files with 5 additions and 5 deletions

View File

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

View File

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