Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
sun
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
1
Merge Requests
1
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
alpha
sun
Commits
89ec5ee2
Commit
89ec5ee2
authored
Aug 07, 2019
by
王浩
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'haow/dev' into 'test'
fix code See merge request
!292
parents
489f919b
a395e744
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
0 deletions
+17
-0
reply.py
api/reply.py
+16
-0
urls.py
api/urls.py
+1
-0
No files found.
api/reply.py
View file @
89ec5ee2
...
@@ -204,3 +204,19 @@ class ReplyManageBatchMove(APIView):
...
@@ -204,3 +204,19 @@ class ReplyManageBatchMove(APIView):
return
{
return
{
"message"
:
'更新成功'
,
"message"
:
'更新成功'
,
}
}
class
ReplyManageEdit
(
APIView
):
def
post
(
self
,
request
):
id_
=
request
.
POST
.
get
(
'id'
)
content
=
request
.
POST
.
get
(
'content'
)
try
:
self
.
rpc
[
'venus/sun/reply/manage/edit'
](
id_
=
id_
,
data
=
{
'content'
:
content
})
.
unwrap
()
except
Exception
as
e
:
error_logger
.
error
(
u'平移reply失败
%
s'
%
(
e
))
raise
return
{
"message"
:
'更新成功'
,
}
api/urls.py
View file @
89ec5ee2
...
@@ -223,6 +223,7 @@ urlpatterns = [
...
@@ -223,6 +223,7 @@ urlpatterns = [
url
(
r'^reply/vote$'
,
ReplyVote
.
as_view
()),
url
(
r'^reply/vote$'
,
ReplyVote
.
as_view
()),
# 评论管理
# 评论管理
url
(
r'^reply/manage/edit$'
,
ReplyManageEdit
.
as_view
()),
url
(
r'^reply/manage/batch/move$'
,
ReplyManageBatchMove
.
as_view
()),
url
(
r'^reply/manage/batch/move$'
,
ReplyManageBatchMove
.
as_view
()),
url
(
r'^reply/manage/list$'
,
ReplyManageListView
.
as_view
()),
url
(
r'^reply/manage/list$'
,
ReplyManageListView
.
as_view
()),
url
(
r'^reply/manage/create$'
,
ReplyManageCreateView
.
as_view
()),
url
(
r'^reply/manage/create$'
,
ReplyManageCreateView
.
as_view
()),
...
...
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