Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
C
cms_sys
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
西魏
cms_sys
Commits
7146a2e1
Commit
7146a2e1
authored
Nov 25, 2020
by
xierz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
规范方法名
parent
57d66f87
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
ContentAction.java
src/main/java/net/mingsoft/cms/action/ContentAction.java
+2
-2
form.ftl
src/main/webapp/WEB-INF/manager/cms/content/form.ftl
+3
-3
No files found.
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
Markdown
is supported
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