Explorar el Código

新增方法添加到接口中

zhangqian hace 1 año
padre
commit
0de84e30e2
Se han modificado 2 ficheros con 4 adiciones y 1 borrados
  1. 3 0
      datacenter_client/types.go
  2. 1 1
      datacenter_client/v1/ObtainRangeFirstLast.go

+ 3 - 0
datacenter_client/types.go

@@ -275,6 +275,9 @@ type (
 		// ObtainRangeMaxMin 查询最大最小值
 		ObtainRangeMaxMin(req *RangeMaxMinReq) (resp *InstrumentCompareData, err error)
 
+		// ObtainRangeMaxMin 查询最大最小值
+		ObtainRangeFirstLast(req *RangeFirstLastReq) (resp *RangeFirstLast, err error)
+
 		// GetWorkingUfByCode 获得uf工况数据
 		GetWorkingUfByCode(DcWorkingReq) (*GetWorkingUfByCodeResp, error)
 		// FindWorkingUfByCycle 查询uf工况数据, 按周期进行过滤

+ 1 - 1
datacenter_client/v1/ObtainRangeFirstLast.go

@@ -8,7 +8,7 @@ import (
 )
 
 func (d *DcApi) ObtainRangeFirstLast(req *datacenter_client.RangeFirstLastReq) (resp *datacenter_client.RangeFirstLast, err error) {
-	url := d.serviceUrl("/item-history/max-min")
+	url := d.serviceUrl("/item-history/first-last")
 	h := httplib.Get(url)
 	h.Param("project_id", req.ProjectId)
 	h.Param("item_name", req.ItemName)