using System.Collections.Generic;
using System.Threading.Tasks;
using Newtonsoft.Json.Linq;
using SWS.Commons;
using SWS.Model;
using SWS.Share;
namespace SWS.Service
{
public class RelService : HttpService
{
public RelService() : base()
{
}
///
/// 根据关联关系的名字拿关联关系的Id
///
///
///
///
public async Task GetRelDefByName(string RelName)
{
var res = await this.GetAsync($"RelApi/GetRelDefByName?projId={GlobalObject.curProject.ProjectId}&RelName={RelName}");
if (res.code == 200)
{
return res.data;
}
else
{
return null;
}
}
/////
///// 批量保存(增、改)开关。传入集合。同时建立和rel。
///// 只会在开关箱界面里调用(新建)
/////
/////
///// 分电箱的工程ID
/////
//public async Task> SaveBreakers(string PDBId)
//{
// var res = await this.PostBodyAsync, string>($"PDBApi/SaveBreakers?projId={GlobalObject.curProject?.ProjectId}", PDBId);
// if (res.code == 200)
// {
// //return res.info;
// return res.data;
// }
// return null;
//}
}
}