Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
MCMS
Commits
7146a2e1
Commit
7146a2e1
authored
Nov 25, 2020
by
xierz
Browse files
规范方法名
parent
57d66f87
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/main/java/net/mingsoft/cms/action/ContentAction.java
View file @
7146a2e1
...
...
@@ -123,9 +123,9 @@ public class ContentAction extends BaseAction {
*/
@ApiOperation
(
value
=
"根据封面获取文章列表接口"
)
@ApiImplicitParam
(
name
=
"categoryId"
,
value
=
"分类编号"
,
required
=
true
,
paramType
=
"query"
)
@GetMapping
(
"/get
By
FengMian"
)
@GetMapping
(
"/get
From
FengMian"
)
@ResponseBody
public
ResultData
get
By
FengMian
(
@ModelAttribute
@ApiIgnore
ContentEntity
content
){
public
ResultData
get
From
FengMian
(
@ModelAttribute
@ApiIgnore
ContentEntity
content
){
if
(
content
.
getCategoryId
()
==
null
)
{
return
ResultData
.
build
().
error
();
}
...
...
src/main/webapp/WEB-INF/manager/cms/content/form.ftl
View file @
7146a2e1
...
...
@@ -525,9 +525,9 @@
})
;
},
//根据封面获取当前文章
get
By
FengMian
:
function
(
categoryId
)
{
get
From
FengMian
:
function
(
categoryId
)
{
var
that
=
this
;
ms
.http.get
(
ms
.manager
+
"/cms/content/get
By
FengMian.do"
,
{
ms
.http.get
(
ms
.manager
+
"/cms/content/get
From
FengMian.do"
,
{
"categoryId"
:
categoryId
})
.then
(
function
(
res
)
{
if
(
res
.result
)
{
...
...
@@ -680,7 +680,7 @@
this
.get
(
this
.form.id
)
;
}
if
(
this
.type
)
{
this
.get
By
FengMian
(
this
.form.categoryId
)
;
this
.get
From
FengMian
(
this
.form.categoryId
)
;
this
.returnIsShow
=
false
;
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment