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
35c6ad51
Commit
35c6ad51
authored
Jul 20, 2021
by
wanli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
✨
feat(手表后端接口): 按照需求返回相应参数
parent
b8e0d843
Changes
3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
112 additions
and
33 deletions
+112
-33
tools/build_out/controllers/api.py
tools/build_out/controllers/api.py
+2
-2
tools/build_out/models/app.py
tools/build_out/models/app.py
+2
-0
tools/build_out/views/openapi.py
tools/build_out/views/openapi.py
+108
-31
No files found.
tools/build_out/controllers/api.py
View file @
35c6ad51
'''
Author: your name
Date: 2021-07-12 11:14:48
LastEditTime: 2021-07-20 11:
15:28
LastEditTime: 2021-07-20 11:
56:53
LastEditors: Please set LastEditors
Description: In User Settings Edit
FilePath:
\
evm-store
\t
ools
\b
uild_out
\
controllers
\a
ppi.py
...
...
@@ -172,7 +172,7 @@ class AppReview(object):
return
app
,
ResponseCode
.
HTTP_SUCCESS
def
getLauncher
(
self
,
params
,
jwt
=
{}):
device
=
DeviceModel
.
query
.
filter
(
DeviceModel
.
imei
==
params
.
get
(
"imei"
),
App
Model
.
is_delete
==
False
)
.
one_or_none
()
device
=
DeviceModel
.
query
.
filter
(
DeviceModel
.
imei
==
params
.
get
(
"imei"
),
Device
Model
.
is_delete
==
False
)
.
one_or_none
()
if
not
device
:
return
None
,
ResponseCode
.
DEVICE_NOT_EXISTS
...
...
tools/build_out/models/app.py
View file @
35c6ad51
...
...
@@ -48,6 +48,7 @@ class AppModel(PrimaryModel):
def
to_dict
(
self
):
return
{
'uuid'
:
self
.
uuid
,
'app_name'
:
self
.
app_name
,
'app_icon'
:
self
.
app_icon
,
'app_version'
:
self
.
app_version
,
...
...
@@ -83,6 +84,7 @@ class PostAppSchema(ma.SQLAlchemySchema):
app_screen_size
=
ma
.
auto_field
()
app_arch
=
ma
.
auto_field
()
app_review
=
ma
.
auto_field
(
required
=
False
)
remarks
=
fields
.
String
(
required
=
False
)
logo
=
fields
.
Raw
(
required
=
False
)
fileList
=
fields
.
Raw
(
required
=
False
)
...
...
tools/build_out/views/openapi.py
View file @
35c6ad51
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