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
74970b3b
Commit
74970b3b
authored
Mar 22, 2019
by
王浩
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'haow/dev' into 'test'
add topic relate pictorial info See merge request
!137
parents
a7314679
cda00a06
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
1 deletion
+14
-1
topic.py
api/topic.py
+14
-1
No files found.
api/topic.py
View file @
74970b3b
...
...
@@ -4,7 +4,7 @@
# Date: 2018/11/15
import
json
from
utils.base
import
APIView
from
utils.base
import
APIView
,
get_offset_count
from
utils.logger
import
error_logger
...
...
@@ -197,3 +197,16 @@ class TopicListBatchUpdate(APIView):
return
{
"message"
:
"更新成功"
}
class
TopicRelatePictorialInfo
(
APIView
):
def
get
(
self
,
request
):
id_
=
request
.
POST
.
get
(
'id'
,
''
)
offset
,
count
=
get_offset_count
(
request
)
try
:
data
=
self
.
rpc
[
'venus/sun/topic/relate_pictorial_info'
](
id_
=
id_
,
offset
=
offset
,
count
=
count
)
.
unwrap
()
except
Exception
as
e
:
error_logger
.
error
(
u'获取帖子画报列表失败
%
s'
,
e
)
raise
return
{
'data'
:
data
}
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