Commit 95ca2f1d authored by lcn's avatar lcn

测试一下

parent d9234456
......@@ -268,7 +268,7 @@ class ElecIndex(Model):
@dataclass
class ElecIndexResponse(Model):
"""指标统计-常规参数+电能质量test"""
"""指标统计-常规参数+电能质量"""
ctnum: int = Opt(Int('二表法 | 三表法').eg(3))
common_indexes: list = Opt(List('常规参数统计列表').items(ElecIndex))
elec_qual_indexes: list = Opt(List('电能质量统计列表').items(ElecIndex))
......
......@@ -475,7 +475,11 @@ async def post_elec_index(req, body: PageRequest) -> ElecIndexResponse:
log.error("param error, ranges is NULL")
raise ParamException(message="param error, ranges is NULL")
# return await elec_index_service(cid, point_id, date_start, date_end)
return await elec_index_service_new15(cid, point_id, date_start, date_end)
return ElecIndexResponse(
ctnum=3, common_indexes=[],
elec_qual_indexes=[]
)
# return await elec_index_service_new15(cid, point_id, date_start, date_end)
@summary("电能质量-历史曲线")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment