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
ad7d06d1
Commit
ad7d06d1
authored
6 years ago
by
zhanglu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
帖子图片列表
parent
fa66f16c
master
dev
like-pre/r01
quick-reply
refactor
test
No related merge requests found
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
topic.py
api/topic.py
+1
-1
urls.py
api/urls.py
+1
-0
No files found.
api/topic.py
View file @
ad7d06d1
...
...
@@ -49,7 +49,7 @@ class TopicImageListView(APIView):
page
=
int
(
request
.
GET
.
get
(
'page'
,
1
))
limit
=
int
(
request
.
GET
.
get
(
'limit'
,
50
))
filters
=
json
.
loads
(
request
.
GET
.
get
(
'filter'
,
"{}"
))
sorts_by
=
'2'
# request.GET.getlist('sort[]'
)
sorts_by
=
json
.
loads
(
request
.
GET
.
get
(
'sort_params'
,
"[3]"
)
)
res
=
self
.
rpc
[
'physical/search/business/topic'
](
offset
=
(
page
-
1
)
*
limit
,
...
...
This diff is collapsed.
Click to expand it.
api/urls.py
View file @
ad7d06d1
...
...
@@ -53,6 +53,7 @@ urlpatterns = [
# topic相关
url
(
r'^topic/list$'
,
TopicListView
.
as_view
()),
url
(
r'^topic/img/list$'
,
TopicImageListView
.
as_view
()),
url
(
r'^topic/detail$'
,
TopicUpdateOrCreateView
.
as_view
()),
url
(
r'^topic/create$'
,
TopicUpdateOrCreateView
.
as_view
()),
url
(
r'^topic/batch_update$'
,
TopicListBatchUpdate
.
as_view
()),
...
...
This diff is collapsed.
Click to expand it.
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