2025-08-15 15:25:44 +08:00

32 lines
765 B
C#

using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using DI_Electrical.Models;
namespace DI_Electrical.Services
{
public class DataItemService : HttpService
{
public DataItemService( ) : base()
{
}
public async Task<List<ec_dataitemdetail>> GetDetails(string itemCode)
{
var res = await this.GetAsync<List<ec_dataitemdetail>>($"DataItemApi/GetDetails?projectId={GlobalObject.curProject.ProjectId}&itemCode={itemCode}");
//OnRefresh();
if (res.code == 200)
{
return res.data;
}
else
{
return null;//ERROR INFO
}
}
}
}