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
809c0d93
Commit
809c0d93
authored
Feb 20, 2020
by
段启岩
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改API路径
parent
3cfb6540
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/post/api/PostPraiseApi.java
+2
-2
src/main/java/cn/meteor/beyondclouds/modules/project/api/ProjectPraiseApi.java
+2
-2
src/main/java/cn/meteor/beyondclouds/modules/question/api/QuestionPraiseApi.java
+2
-2
No files found.
src/main/java/cn/meteor/beyondclouds/modules/post/api/PostPraiseApi.java
View file @
809c0d93
...
...
@@ -18,7 +18,7 @@ import org.springframework.web.bind.annotation.*;
public
class
PostPraiseApi
{
@ApiOperation
(
"点赞"
)
@PostMapping
(
"/
blog
/{targetId}/praise"
)
@PostMapping
(
"/
post
/{targetId}/praise"
)
public
Response
praise
(
@PathVariable
(
"targetId"
)
String
targetId
,
@RequestParam
(
"targetType"
)
Integer
targetType
)
{
Subject
subject
=
SubjectUtils
.
getSubject
();
...
...
@@ -30,7 +30,7 @@ public class PostPraiseApi {
}
@ApiOperation
(
"点赞"
)
@DeleteMapping
(
"/
blog
/{targetId}/praise"
)
@DeleteMapping
(
"/
post
/{targetId}/praise"
)
public
Response
deletePraise
(
@PathVariable
(
"targetId"
)
String
targetId
,
@RequestParam
(
"targetType"
)
Integer
targetType
)
{
Subject
subject
=
SubjectUtils
.
getSubject
();
...
...
src/main/java/cn/meteor/beyondclouds/modules/project/api/ProjectPraiseApi.java
View file @
809c0d93
...
...
@@ -18,7 +18,7 @@ import org.springframework.web.bind.annotation.*;
public
class
ProjectPraiseApi
{
@ApiOperation
(
"点赞"
)
@PostMapping
(
"/
blog
/{targetId}/praise"
)
@PostMapping
(
"/
project
/{targetId}/praise"
)
public
Response
praise
(
@PathVariable
(
"targetId"
)
String
targetId
,
@RequestParam
(
"targetType"
)
Integer
targetType
)
{
Subject
subject
=
SubjectUtils
.
getSubject
();
...
...
@@ -30,7 +30,7 @@ public class ProjectPraiseApi {
}
@ApiOperation
(
"点赞"
)
@DeleteMapping
(
"/
blog
/{targetId}/praise"
)
@DeleteMapping
(
"/
project
/{targetId}/praise"
)
public
Response
deletePraise
(
@PathVariable
(
"targetId"
)
String
targetId
,
@RequestParam
(
"targetType"
)
Integer
targetType
)
{
Subject
subject
=
SubjectUtils
.
getSubject
();
...
...
src/main/java/cn/meteor/beyondclouds/modules/question/api/QuestionPraiseApi.java
View file @
809c0d93
...
...
@@ -18,7 +18,7 @@ import org.springframework.web.bind.annotation.*;
public
class
QuestionPraiseApi
{
@ApiOperation
(
"点赞"
)
@PostMapping
(
"/
blog
/{targetId}/praise"
)
@PostMapping
(
"/
question
/{targetId}/praise"
)
public
Response
praise
(
@PathVariable
(
"targetId"
)
String
targetId
,
@RequestParam
(
"targetType"
)
Integer
targetType
)
{
Subject
subject
=
SubjectUtils
.
getSubject
();
...
...
@@ -30,7 +30,7 @@ public class QuestionPraiseApi {
}
@ApiOperation
(
"点赞"
)
@DeleteMapping
(
"/
blog
/{targetId}/praise"
)
@DeleteMapping
(
"/
question
/{targetId}/praise"
)
public
Response
deletePraise
(
@PathVariable
(
"targetId"
)
String
targetId
,
@RequestParam
(
"targetType"
)
Integer
targetType
)
{
Subject
subject
=
SubjectUtils
.
getSubject
();
...
...
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