Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
周伟奇
/
bmw-ocr
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
5ccd03be
authored
2024-05-24 17:23:48 +0800
by
冯轩
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
MOD:api/doc
1 parent
c64af440
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
src/apps/doc/views.py
src/apps/doc/views.py
View file @
5ccd03b
...
...
@@ -1065,8 +1065,17 @@ class DocView(DocGenericView, DocHandler):
create_time_start
=
args
.
get
(
'create_time_start'
)
create_time_end
=
args
.
get
(
'create_time_end'
)
# 角色权限不符,返回空列表
token
=
request
.
META
.
get
(
"HTTP_AUTHORIZATION"
)
user_role
=
rh
.
get_token
(
token
[
-
11
:])
self
.
running_log
.
info
(
'[api doc] [user_role={0}] '
.
format
(
user_role
))
if
user_role
==
-
1
or
(
user_role
==
1
and
business_type
==
'HIL'
)
or
(
user_role
==
2
and
business_type
==
'AFC'
):
pagination
=
{
'current'
:
page
,
'total'
:
0
,
'page_size'
:
page_size
}
res
=
{
'pagination'
:
pagination
,
'doc_list'
:
[]
}
return
response
.
ok
(
data
=
res
)
status_query
=
Q
(
status
=
status
)
if
status
is
not
None
else
Q
()
application_id_query
=
Q
(
application_id__contains
=
application_id
)
if
application_id
is
not
None
else
Q
()
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
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 post a comment