Add curve api and test

This commit is contained in:
WQY\qiong
2022-10-22 13:17:42 +08:00
parent bb1d772eaa
commit 9e8a84c4c0
6 changed files with 131 additions and 2 deletions

View File

@@ -339,6 +339,20 @@ def set_pattern(name: str, cs: ChangeSet) -> ChangeSet:
return api.set_pattern(name, cs)
############################################################
# curve 11.[CURVES]
############################################################
def get_curve_schema(name: str) -> dict[str, dict[str, Any]]:
return api.get_curve_schema(name)
def get_curve(name: str, id: str) -> dict[str, Any]:
return api.get_curve(name, id)
def set_curve(name: str, cs: ChangeSet) -> ChangeSet:
return api.set_curve(name, cs)
############################################################
# coord 24.[COORDINATES]
############################################################