Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
evm-store
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
wanli
evm-store
Commits
32df1548
Commit
32df1548
authored
Jul 29, 2021
by
wanli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🐞
fix(): 修复接口响应状态码错误bug
parent
54c10741
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
48 additions
and
0 deletions
+48
-0
tools/build_out/webcreator/response.py
tools/build_out/webcreator/response.py
+24
-0
tools/resources/webcreator/response.py
tools/resources/webcreator/response.py
+24
-0
No files found.
tools/build_out/webcreator/response.py
View file @
32df1548
'''
Author: your name
Date: 2021-07-15 09:33:39
LastEditTime: 2021-07-19 17:40:36
LastEditors: Please set LastEditors
Description: In User Settings Edit
FilePath:
\
evm-store
\t
ools
\b
uild_out
\
webcreator
\r
esponse.py
'''
# -*- coding: utf_8 -*-
# -*- coding: utf_8 -*-
'''
'''
...
@@ -79,6 +87,22 @@ class ResponseCode(object):
...
@@ -79,6 +87,22 @@ class ResponseCode(object):
USER_EXISTS
=
(
1010002
,
'user already exists'
)
USER_EXISTS
=
(
1010002
,
'user already exists'
)
USER_PASSWORD_ERROR
=
(
1010003
,
'password error'
)
USER_PASSWORD_ERROR
=
(
1010003
,
'password error'
)
# 应用模块
APPLICATION_NOT_EXISTS
=
(
3010001
,
'application not exists'
)
APPLICATION_EXISTS
=
(
3010002
,
'application already exists'
)
# 文件管理模块
FILE_NOT_EXISTS
=
(
3010001
,
'file not exists'
)
FILE_EXISTS
=
(
3010002
,
'file already exists'
)
DIRECTORY_NOT_EXISTS
=
(
3010003
,
'directory not exists'
)
DIRECTORY_EXISTS
=
(
3010004
,
'directory already exists'
)
# 设备管理模块
DEVICE_NOT_EXISTS
=
(
3010001
,
'device not exists'
)
DEVICE_EXISTS
=
(
3010002
,
'device already exists'
)
IMEI_NOT_EXISTS
=
(
3010001
,
'device imei not exists'
)
IMEI_EXISTS
=
(
3010002
,
'device imei already exists'
)
def
response_result
(
response
,
msg
=
None
,
data
=
None
,
**
kwargs
):
def
response_result
(
response
,
msg
=
None
,
data
=
None
,
**
kwargs
):
c
,
m
=
response
c
,
m
=
response
...
...
tools/resources/webcreator/response.py
View file @
32df1548
'''
Author: your name
Date: 2021-07-15 09:33:39
LastEditTime: 2021-07-19 17:40:36
LastEditors: Please set LastEditors
Description: In User Settings Edit
FilePath:
\
evm-store
\t
ools
\b
uild_out
\
webcreator
\r
esponse.py
'''
# -*- coding: utf_8 -*-
# -*- coding: utf_8 -*-
'''
'''
...
@@ -79,6 +87,22 @@ class ResponseCode(object):
...
@@ -79,6 +87,22 @@ class ResponseCode(object):
USER_EXISTS
=
(
1010002
,
'user already exists'
)
USER_EXISTS
=
(
1010002
,
'user already exists'
)
USER_PASSWORD_ERROR
=
(
1010003
,
'password error'
)
USER_PASSWORD_ERROR
=
(
1010003
,
'password error'
)
# 应用模块
APPLICATION_NOT_EXISTS
=
(
3010001
,
'application not exists'
)
APPLICATION_EXISTS
=
(
3010002
,
'application already exists'
)
# 文件管理模块
FILE_NOT_EXISTS
=
(
3010001
,
'file not exists'
)
FILE_EXISTS
=
(
3010002
,
'file already exists'
)
DIRECTORY_NOT_EXISTS
=
(
3010003
,
'directory not exists'
)
DIRECTORY_EXISTS
=
(
3010004
,
'directory already exists'
)
# 设备管理模块
DEVICE_NOT_EXISTS
=
(
3010001
,
'device not exists'
)
DEVICE_EXISTS
=
(
3010002
,
'device already exists'
)
IMEI_NOT_EXISTS
=
(
3010001
,
'device imei not exists'
)
IMEI_EXISTS
=
(
3010002
,
'device imei already exists'
)
def
response_result
(
response
,
msg
=
None
,
data
=
None
,
**
kwargs
):
def
response_result
(
response
,
msg
=
None
,
data
=
None
,
**
kwargs
):
c
,
m
=
response
c
,
m
=
response
...
...
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