lixiaojun
2024-07-11 da1c001309ed262c55514633490ab8c1b8f68916
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
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);
        }
 
 
    }
}