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
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
谢林臻
sun
Commits
b18762d5
Commit
b18762d5
authored
Oct 21, 2019
by
yangchenglin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tag榜单
parent
11f4a480
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
0 deletions
+14
-0
tag.py
api/tag.py
+13
-0
urls.py
api/urls.py
+1
-0
No files found.
api/tag.py
View file @
b18762d5
...
@@ -260,6 +260,19 @@ class SearchDefaultKeyword(APIView):
...
@@ -260,6 +260,19 @@ class SearchDefaultKeyword(APIView):
return
data
return
data
class
TagRelatePictorialInfo
(
APIView
):
def
get
(
self
,
request
):
id_
=
request
.
GET
.
get
(
'id'
)
offset
,
count
=
get_offset_count
(
request
)
try
:
data
=
self
.
rpc
[
'venus/sun/tag/relate_pictorial_info'
](
id_
=
id_
,
offset
=
offset
,
count
=
count
)
.
unwrap
()
except
Exception
as
e
:
error_logger
.
error
(
u'获取画报列表失败
%
s'
,
e
)
raise
return
{
'data'
:
data
}
class
TagSetListView
(
APIView
):
class
TagSetListView
(
APIView
):
def
get
(
self
,
request
):
def
get
(
self
,
request
):
...
...
api/urls.py
View file @
b18762d5
...
@@ -108,6 +108,7 @@ urlpatterns = [
...
@@ -108,6 +108,7 @@ urlpatterns = [
url
(
r'^tag/filter/delete$'
,
TagFilterDelete
.
as_view
()),
url
(
r'^tag/filter/delete$'
,
TagFilterDelete
.
as_view
()),
url
(
r'^tag/search_recommend_keyword$'
,
TagSearchRecommendKeyword
.
as_view
()),
url
(
r'^tag/search_recommend_keyword$'
,
TagSearchRecommendKeyword
.
as_view
()),
url
(
r'^tag/search_default_keyword$'
,
SearchDefaultKeyword
.
as_view
()),
url
(
r'^tag/search_default_keyword$'
,
SearchDefaultKeyword
.
as_view
()),
url
(
r'^tag/related_pictorial_info$'
,
TagRelatePictorialInfo
.
as_view
()),
# 标签类型相关
# 标签类型相关
url
(
r'^tag/tagtype/list$'
,
TagTypeListView
.
as_view
()),
url
(
r'^tag/tagtype/list$'
,
TagTypeListView
.
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