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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
namespace Yw.CAL.HttpClient
{
    /// <summary>
    /// 
    /// </summary>
    public class BimfaceFileRelation : BaseCAL_Sorter<AddBimfaceFileRelationInput, UpdateBimfaceFileRelationInput, BimfaceFileRelationDto>, IBimfaceFileRelation
    {
        protected override string Prefix
        {
            get { return $"{Yw.BLL.Bimface.ConfigHelper.HttpUrl}/Bimface/File/Relation"; }
        }
 
        /// <summary>
        /// 
        /// </summary>
        public async Task<List<BimfaceFileRelationDto>> GetByObjectTypeAndObjectID(string ObjectType, long ObjectID)
        {
            var paras = new List<(string Name, object Value)>()
            {
                (nameof(ObjectType),ObjectType),
                (nameof(ObjectID),ObjectID)
            };
            return await GetUrl("GetByObjectTypeAndObjectID@V1.0").Get<List<BimfaceFileRelationDto>>(paras);
        }
 
        /// <summary>
        /// 
        /// </summary>
        public async Task<long> InsertObject(AddBimfaceFileRelationInput input)
        {
            return await GetUrl("InsertObject@V1.0").Post<long>(input);
        }
 
        /// <summary>
        /// 
        /// </summary>
        public async Task<long> InsertPage(AddBimfaceFileRelationInput input)
        {
            return await GetUrl("InsertPage@V1.0").Post<long>(input);
        }
 
        /// <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> UpdatePurpose(long ID, string Purpose)
        {
            return await GetUrl("UpdatePurpose@V1.0").Put<bool>(new { ID, Purpose });
        }
 
        /// <summary>
        /// 
        /// </summary>
        public async Task<bool> DeleteExByID(long ID)
        {
            var paras = new List<(string Name, object Value)>()
            {
                (nameof(ID),ID)
            };
            return await GetUrl("DeleteExByID@V1.0").Delete<bool>(paras);
        }
 
 
 
 
 
 
 
 
 
    }
 
}