Browse Source

项目详情返回项目类型(是否为夸克项目)

lifa 1 year ago
parent
commit
b68f012386

+ 1 - 1
src/platform/ZhonTai.Admin/Services/DiTuiAPI/DiTuiAPIService.cs

@@ -70,7 +70,7 @@ namespace ZhonTai.Admin.Services.DiTuiAPI
                 .FirstAsync(a => new { a.Name, a.TenantId });
             if(org is null)
             {
-                throw ResultOutput.Exception($"未查询到相关平台信息,请核实Platform");
+                throw ResultOutput.Exception($"未查询到相关平台信息,请核实平台信息是否正确");
             }
 
             using (_platformUserRepository.DataFilter.DisableAll())

+ 7 - 1
src/platform/ZhonTai.Admin/Services/DiTuiAPI/Dto/ProjectDescOutput.cs

@@ -13,7 +13,7 @@ namespace ZhonTai.Admin.Services.DiTuiAPI.Dto
 
         }
 
-        public ProjectDescOutput(long id, string logo, string name,string price, string settleDay, string description)
+        public ProjectDescOutput(long id, string logo, string name,string price, string settleDay, string description,int projectType)
         {
             Id = id;
             Logo = logo;
@@ -21,6 +21,7 @@ namespace ZhonTai.Admin.Services.DiTuiAPI.Dto
             Price = price;
             SettleDay = settleDay;
             Description = description;
+            ProjectType = projectType.ToString();
         }
         /// <summary>
         /// ID 
@@ -46,5 +47,10 @@ namespace ZhonTai.Admin.Services.DiTuiAPI.Dto
         /// 项目详情
         /// </summary>
         public string Description { get; set; }
+
+        /// <summary>
+        /// 项目类型
+        /// </summary>
+        public string ProjectType { get; set; }
     }
 }

+ 1 - 1
src/platform/ZhonTai.Admin/Services/DiTuiAPI/ProjectsService.cs

@@ -156,7 +156,7 @@ namespace ZhonTai.Admin.Services.DiTuiAPI
             
             var result = await _projectRepository.Select.DisableGlobalFilter()
                 .Where(a => a.Id == id)
-                .FirstAsync(a => new ProjectDescOutput(a.Id,a.Logo,a.Name,"",a.SettleDay.ToString(),a.Tips));
+                .FirstAsync(a => new ProjectDescOutput(a.Id,a.Logo,a.Name,"",a.SettleDay.ToString(),a.Tips,a.ProjectType));
 
             var maxPrice = await _projectPriceRepository
                         .Select

+ 5 - 0
src/platform/ZhonTai.Admin/ZhonTai.Admin.xml

@@ -6048,6 +6048,11 @@
             项目详情
             </summary>
         </member>
+        <member name="P:ZhonTai.Admin.Services.DiTuiAPI.Dto.ProjectDescOutput.ProjectType">
+            <summary>
+            项目类型
+            </summary>
+        </member>
         <member name="P:ZhonTai.Admin.Services.DiTuiAPI.Dto.ProjectQrcodePageInput.ProjectId">
             <summary>
             项目Id