namespace Yw.CAL.HttpClient
|
{
|
/// <summary>
|
/// 报警等级
|
/// </summary>
|
public class BimfaceFileRelationLabel : BaseCAL<AddBimfaceFileRelationLabelInput, UpdateBimfaceFileRelationLabelInput, BimfaceFileRelationLabelDto>, IBimfaceFileRelationLabel
|
{
|
protected override string Prefix
|
{
|
get { return $"{Yw.BLL.Bimface.ConfigHelper.HttpUrl}/Bimface/File/Relation/Label"; }
|
}
|
|
/// <summary>
|
///
|
/// </summary>
|
public async Task<List<BimfaceFileRelationLabelDto>> GetByRelationID(long RelationID)
|
{
|
var paras = new List<(string Name, object Value)>()
|
{
|
(nameof(RelationID),RelationID)
|
};
|
return await GetUrl("GetByRelationID@V1.0").Get<List<BimfaceFileRelationLabelDto>>(paras);
|
}
|
|
/// <summary>
|
///
|
/// </summary>
|
public async Task<bool> UpdateContent(long ID, string Content)
|
{
|
return await GetUrl("UpdateContent@V1.0").Put<bool>(new { ID, Content });
|
}
|
|
/// <summary>
|
///
|
/// </summary>
|
public async Task<bool> Save(SaveBimfaceFileRelationLabelInput input)
|
{
|
return await GetUrl("Save@V1.0").Post<bool>(input);
|
}
|
|
|
}
|
}
|