Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
csst-dfs
csst-dfs-api-cluster
Commits
5e0687e4
Commit
5e0687e4
authored
Jan 16, 2023
by
Wei Shoulin
Browse files
➰
rename msc
➡
mbi
parent
9b146a2e
Changes
5
Hide whitespace changes
Inline
Side-by-side
csst_dfs_api_cluster/m
sc
/__init__.py
→
csst_dfs_api_cluster/m
bi
/__init__.py
View file @
5e0687e4
from
.level1
import
Level1DataApi
from
.level1
import
Level1DataApi
from
.level1prc
import
Level1PrcApi
from
.level1prc
import
Level1PrcApi
from
.level2
import
Level2DataApi
from
.level2
import
Level2DataApi
\ No newline at end of file
from
.level2co
import
Level2CoApi
\ No newline at end of file
csst_dfs_api_cluster/m
sc
/level1.py
→
csst_dfs_api_cluster/m
bi
/level1.py
View file @
5e0687e4
...
@@ -93,7 +93,7 @@ class Level1DataApi(object):
...
@@ -93,7 +93,7 @@ class Level1DataApi(object):
return
Result
.
error
(
message
=
f
"data not found"
)
return
Result
.
error
(
message
=
f
"data not found"
)
return
Result
.
ok_data
(
data
=
Level1Record
().
from_proto_model
(
resp
.
record
))
return
Result
.
ok_data
(
data
=
Level1Record
().
from_proto_model
(
resp
.
record
))
except
grpc
.
RpcError
as
e
:
except
grpc
.
RpcError
as
e
:
return
Result
.
error
(
message
=
"%s:%s"
%
(
e
.
code
().
value
,
e
.
details
()))
return
Result
.
error
(
message
=
"%s:%s"
%
(
e
.
code
().
value
,
e
.
details
()))
...
@@ -143,7 +143,7 @@ class Level1DataApi(object):
...
@@ -143,7 +143,7 @@ class Level1DataApi(object):
def
write
(
self
,
**
kwargs
):
def
write
(
self
,
**
kwargs
):
''' insert a level1 record into database
''' insert a level1 record into database
parameter kwargs:
parameter kwargs:
level0_id : [str]
level0_id : [str]
data_type : [str]
data_type : [str]
...
...
csst_dfs_api_cluster/m
sc
/level1prc.py
→
csst_dfs_api_cluster/m
bi
/level1prc.py
View file @
5e0687e4
File moved
csst_dfs_api_cluster/m
sc
/level2.py
→
csst_dfs_api_cluster/m
bi
/level2.py
View file @
5e0687e4
File moved
csst_dfs_api_cluster/m
sc
/level2co.py
→
csst_dfs_api_cluster/m
bi
/level2co.py
View file @
5e0687e4
File moved
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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