Pārlūkot izejas kodu

规范方法名

xierz 5 gadi atpakaļ
vecāks
revīzija
7146a2e115

+ 2 - 2
src/main/java/net/mingsoft/cms/action/ContentAction.java

@@ -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();
 		}

+ 3 - 3
src/main/webapp/WEB-INF/manager/cms/content/form.ftl

@@ -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;
             }
         }