Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
beyond-clouds
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
4
Issues
4
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
段启岩
beyond-clouds
Commits
65b07337
Commit
65b07337
authored
Feb 02, 2020
by
段启岩
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
controller添加api前缀
parent
258aa545
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
src/main/java/cn/meteor/beyondclouds/modules/content/api/ContentApi.java
+4
-6
src/main/java/cn/meteor/beyondclouds/modules/project/api/ProjectApi.java
+1
-0
src/main/java/cn/meteor/beyondclouds/modules/project/api/ProjectCommentApi.java
+1
-0
No files found.
src/main/java/cn/meteor/beyondclouds/modules/content/api/ContentApi.java
View file @
65b07337
...
...
@@ -13,10 +13,7 @@ import io.swagger.annotations.Api;
import
io.swagger.annotations.ApiOperation
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.validation.BindingResult
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.PathVariable
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.springframework.web.bind.annotation.*
;
import
javax.validation.Valid
;
...
...
@@ -26,6 +23,7 @@ import javax.validation.Valid;
*/
@Api
(
tags
=
"CMS内容API"
)
@RestController
@RequestMapping
(
"/api"
)
public
class
ContentApi
{
private
IContentService
contentService
;
...
...
@@ -44,7 +42,7 @@ public class ContentApi {
*/
@Anonymous
@ApiOperation
(
"内容列表"
)
@GetMapping
(
"/
api/
channel/{channelId}/contents"
)
@GetMapping
(
"/channel/{channelId}/contents"
)
public
Response
getContentPage
(
@PathVariable
(
"channelId"
)
Integer
channelId
,
@RequestParam
(
"type"
)
Integer
contentType
,
@Valid
PageForm
pageForm
,
BindingResult
bindingResult
)
{
...
...
@@ -64,7 +62,7 @@ public class ContentApi {
@Anonymous
@ApiOperation
(
"内容详情"
)
@GetMapping
(
"/
api/
content/{contentId}"
)
@GetMapping
(
"/content/{contentId}"
)
public
Response
<
ContentDetail
>
getContentDetail
(
@PathVariable
(
"contentId"
)
Integer
contentId
)
{
try
{
...
...
src/main/java/cn/meteor/beyondclouds/modules/project/api/ProjectApi.java
View file @
65b07337
...
...
@@ -27,6 +27,7 @@ import javax.validation.Valid;
*/
@Api
(
tags
=
"项目API"
)
@RestController
@RequestMapping
(
"/api"
)
public
class
ProjectApi
{
private
IProjectService
projectService
;
...
...
src/main/java/cn/meteor/beyondclouds/modules/project/api/ProjectCommentApi.java
View file @
65b07337
...
...
@@ -25,6 +25,7 @@ import javax.validation.Valid;
*/
@Api
(
tags
=
"项目评论API"
)
@RestController
@RequestMapping
(
"/api"
)
public
class
ProjectCommentApi
{
private
IProjectCommentService
projectCommentService
;
...
...
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