diff --git a/ReZero.sln b/ReZero.sln index fc9ce5b..6c5b36e 100644 --- a/ReZero.sln +++ b/ReZero.sln @@ -7,7 +7,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ReZero", "ReZero\ReZero.csproj", "{55D7478B-38DD-47A9-B1AA-4E7EAAF7DDC2}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SuperAPITest", "SuperAPI\SuperAPITest.csproj", "{A04287D1-F1AF-4102-924A-A9EB3B9B7A66}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "medical.insu.transfomer", "SuperAPI\medical.insu.transfomer.csproj", "{A04287D1-F1AF-4102-924A-A9EB3B9B7A66}" EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "NugetTest", "NugetTest\NugetTest.csproj", "{BA1AD8C9-8AEC-4E0E-9F68-FC0D1403731C}" EndProject @@ -17,6 +17,16 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "DemoTest", "DemoTest", "{10 EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "DependencyInjectionTest", "DependencyInjectionTest\DependencyInjectionTest.csproj", "{E7355DEA-E652-4C6A-960C-CECF4B4EB673}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "medical.transfomer.entity", "medical.jzyb.entity\medical.transfomer.entity.csproj", "{0755F58C-76F9-43DC-A4BE-BEA52DE28439}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "medical.transfomer.business", "medical.transfomer.business\medical.transfomer.business.csproj", "{9518ADBB-507D-4530-891B-7C2423006624}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "medical.transfomer.dto", "medical.transfomer.dto\medical.transfomer.dto.csproj", "{2906FADC-1A72-45AB-BD65-215AA1288EC0}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "medical.transfomer.dal", "medical.transfomer.dal\medical.transfomer.dal.csproj", "{066B2678-5991-4B7A-B5DE-636529E988FE}" +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "medical.transfomer", "medical.transfomer", "{02EA681E-C7D8-13C7-8484-4AC65E1B71E8}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -43,13 +53,34 @@ Global {E7355DEA-E652-4C6A-960C-CECF4B4EB673}.Debug|Any CPU.Build.0 = Debug|Any CPU {E7355DEA-E652-4C6A-960C-CECF4B4EB673}.Release|Any CPU.ActiveCfg = Release|Any CPU {E7355DEA-E652-4C6A-960C-CECF4B4EB673}.Release|Any CPU.Build.0 = Release|Any CPU + {0755F58C-76F9-43DC-A4BE-BEA52DE28439}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {0755F58C-76F9-43DC-A4BE-BEA52DE28439}.Debug|Any CPU.Build.0 = Debug|Any CPU + {0755F58C-76F9-43DC-A4BE-BEA52DE28439}.Release|Any CPU.ActiveCfg = Release|Any CPU + {0755F58C-76F9-43DC-A4BE-BEA52DE28439}.Release|Any CPU.Build.0 = Release|Any CPU + {9518ADBB-507D-4530-891B-7C2423006624}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {9518ADBB-507D-4530-891B-7C2423006624}.Debug|Any CPU.Build.0 = Debug|Any CPU + {9518ADBB-507D-4530-891B-7C2423006624}.Release|Any CPU.ActiveCfg = Release|Any CPU + {9518ADBB-507D-4530-891B-7C2423006624}.Release|Any CPU.Build.0 = Release|Any CPU + {2906FADC-1A72-45AB-BD65-215AA1288EC0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {2906FADC-1A72-45AB-BD65-215AA1288EC0}.Debug|Any CPU.Build.0 = Debug|Any CPU + {2906FADC-1A72-45AB-BD65-215AA1288EC0}.Release|Any CPU.ActiveCfg = Release|Any CPU + {2906FADC-1A72-45AB-BD65-215AA1288EC0}.Release|Any CPU.Build.0 = Release|Any CPU + {066B2678-5991-4B7A-B5DE-636529E988FE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {066B2678-5991-4B7A-B5DE-636529E988FE}.Debug|Any CPU.Build.0 = Debug|Any CPU + {066B2678-5991-4B7A-B5DE-636529E988FE}.Release|Any CPU.ActiveCfg = Release|Any CPU + {066B2678-5991-4B7A-B5DE-636529E988FE}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE EndGlobalSection GlobalSection(NestedProjects) = preSolution + {BA1AD8C9-8AEC-4E0E-9F68-FC0D1403731C} = {1032E893-22CF-4883-8857-049526541333} {EA58EB55-47DD-44FD-A12A-0231F97F06C5} = {1032E893-22CF-4883-8857-049526541333} {E7355DEA-E652-4C6A-960C-CECF4B4EB673} = {1032E893-22CF-4883-8857-049526541333} + {0755F58C-76F9-43DC-A4BE-BEA52DE28439} = {02EA681E-C7D8-13C7-8484-4AC65E1B71E8} + {9518ADBB-507D-4530-891B-7C2423006624} = {02EA681E-C7D8-13C7-8484-4AC65E1B71E8} + {2906FADC-1A72-45AB-BD65-215AA1288EC0} = {02EA681E-C7D8-13C7-8484-4AC65E1B71E8} + {066B2678-5991-4B7A-B5DE-636529E988FE} = {02EA681E-C7D8-13C7-8484-4AC65E1B71E8} EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution SolutionGuid = {C3ACCBAF-6C08-4037-A398-1D5A9188B7E9} diff --git a/SuperAPI/Controllers/MyApiController.cs b/SuperAPI/Controllers/MyApiController.cs index c54c3a4..9822697 100644 --- a/SuperAPI/Controllers/MyApiController.cs +++ b/SuperAPI/Controllers/MyApiController.cs @@ -1,7 +1,7 @@ using Microsoft.AspNetCore.Mvc.RazorPages; using ReZero.SuperAPI; using System.Security.Policy; -namespace SuperAPITest.Controllers +namespace medical.insu.transfomer { /// /// 动态接口 diff --git a/SuperAPI/Controllers/MyApiWithIocController.cs b/SuperAPI/Controllers/MyApiWithIocController.cs index 9f4df68..def0a22 100644 --- a/SuperAPI/Controllers/MyApiWithIocController.cs +++ b/SuperAPI/Controllers/MyApiWithIocController.cs @@ -1,6 +1,6 @@ using ReZero.DependencyInjection; using ReZero.SuperAPI; -namespace SuperAPITest.Controllers +namespace medical.insu.transfomer { /// /// 动态接口+IOC diff --git a/SuperAPI/Controllers/MyApiWithUnitOfWorkController.cs b/SuperAPI/Controllers/MyApiWithUnitOfWorkController.cs index 7f13554..063181a 100644 --- a/SuperAPI/Controllers/MyApiWithUnitOfWorkController.cs +++ b/SuperAPI/Controllers/MyApiWithUnitOfWorkController.cs @@ -2,7 +2,7 @@ using ReZero.SuperAPI; using SqlSugar; -namespace SuperAPITest.Controllers +namespace medical.insu.transfomer { /// /// 动态接口+工作单元 diff --git a/SuperAPI/Controllers/StdObjectMappingController.cs b/SuperAPI/Controllers/StdObjectMappingController.cs new file mode 100644 index 0000000..f4fcb39 --- /dev/null +++ b/SuperAPI/Controllers/StdObjectMappingController.cs @@ -0,0 +1,21 @@ +using medical.transfomer.business; +using medical.transfomer.entity; +using Microsoft.AspNetCore.Mvc; +using ReZero.DependencyInjection; +using ReZero.SuperAPI; + +namespace medical.insu.transfomer.Controllers +{ + [Api(200100, GroupName = "分组0")] + public class StdObjectMappingController + { + [DI] + public std_object_mapping_business _StdObjectMappingBusiness { get; set; } + + [ApiMethod("批量插入映射关系")] + public int insertList([FromBody]List list) + { + return _StdObjectMappingBusiness.ListInsert(list); + } + } +} diff --git a/SuperAPI/Controllers/WeatherForecastController.cs b/SuperAPI/Controllers/WeatherForecastController.cs deleted file mode 100644 index 0851a7c..0000000 --- a/SuperAPI/Controllers/WeatherForecastController.cs +++ /dev/null @@ -1,18 +0,0 @@ -using Microsoft.AspNetCore.Mvc; - -namespace ReZeroWeb.Controllers -{ - /// - /// ԭӿ - /// - [ApiController] - [Route("[controller]")] - public class WeatherForecastController : ControllerBase - { - [HttpGet(Name = "GetWeatherForecast")] - public string Get() - { - return "Hello word" ; - } - } -} \ No newline at end of file diff --git a/SuperAPI/Models/MethodConfig.cs b/SuperAPI/Models/MethodConfig.cs deleted file mode 100644 index e0c63a3..0000000 --- a/SuperAPI/Models/MethodConfig.cs +++ /dev/null @@ -1,67 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using SqlSugar; -namespace YbTest.Models -{ - /// - /// 方法信息表 - /// - [SugarTable("STD_METHOD_CONFIG")] - public class MethodConfig - { - - - /// - /// 备 注:唯一标识符(UUID) - /// 默认值: - /// - [SugarColumn(ColumnName="METHOD_ID" ,IsPrimaryKey = true) ] - public string MethodId { get; set; } = null!; - - /// - /// 备 注:方法名称(需符合医保规范) - /// 默认值: - /// - [SugarColumn(ColumnName="METHOD_NAME" ) ] - public string MethodName { get; set; } = null!; - - /// - /// 备 注:方法调用路径 - /// 默认值: - /// - [SugarColumn(ColumnName="METHOD_VALUE" ) ] - public string MethodValue { get; set; } = null!; - - /// - /// 备 注:是否保存入参(0-否,1-是) - /// 默认值: - /// - [SugarColumn(ColumnName="SAVE_INPUT" ) ] - public short SaveInput { get; set; } - - /// - /// 备 注:是否保存出参(0-否,1-是) - /// 默认值: - /// - [SugarColumn(ColumnName="SAVE_OUTPUT" ) ] - public short SaveOutPut { get; set; } - - /// - /// 备 注:所属对接对象(外键关联) - /// 默认值: - /// - [SugarColumn(ColumnName="BIND_OBJECT" ) ] - public long BindObject { get; set; } - - /// - /// 备 注:系统方法名 - /// 默认值: - /// - [SugarColumn(ColumnName="BIND_SYS_CODE" ) ] - public string? BindSysCode { get; set; } - - - } - -} \ No newline at end of file diff --git a/SuperAPI/Models/ObjectAssembly.cs b/SuperAPI/Models/ObjectAssembly.cs deleted file mode 100644 index 3cfaa4b..0000000 --- a/SuperAPI/Models/ObjectAssembly.cs +++ /dev/null @@ -1,62 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using SqlSugar; -namespace YbTest.Models -{ - /// - /// 对象组装表 - /// - [SugarTable("STD_OBJECT_ASSEMBLY")] - public class ObjectAssembly - { - /// - /// 备 注:表名 - /// 默认值: - /// - [SugarColumn(ColumnName = "MAPPING_TABLE")] - public string MappingTable { get; set; } = null!; - - /// - /// 备 注:表归属于那(例如:系统内、医保) - /// 默认值: - /// - [SugarColumn(ColumnName = "ASSEMBLY_TYPE")] - public string AssemblyType { get; set; } = null!; - - /// - /// 备 注:STD_METHOD_CONFIG表ID - /// 默认值: - /// - [SugarColumn(ColumnName = "METHOD_REF")] - public string MethodRef { get; set; } = null!; - - /// - /// 备 注:1 对象 2 列表 - /// 默认值: - /// - [SugarColumn(ColumnName = "OBJECT_TYPE")] - public int ObjectType { get; set; } - - /// - /// 备 注:1 入参 2 出参 - /// 默认值: - /// - [SugarColumn(ColumnName = "PARAMETR_TYPE")] - public int ParameterType { get; set; } - - /// - /// 备 注:id - /// 默认值: - /// - [SugarColumn(ColumnName = "ID", IsPrimaryKey = true, IsIdentity = true)] - public decimal Id { get; set; } - - /// - /// 备 注:属性路径(对象[属性名]) - /// 默认值: - /// - [SugarColumn(ColumnName = "OBJECT_PATH")] - public string ObjectPath { get; set; } = null!; - } -} \ No newline at end of file diff --git a/SuperAPI/Models/ObjectMapping.cs b/SuperAPI/Models/ObjectMapping.cs deleted file mode 100644 index 46649aa..0000000 --- a/SuperAPI/Models/ObjectMapping.cs +++ /dev/null @@ -1,109 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using SqlSugar; -namespace YbTest.Models -{ - /// - /// 对象映射关系表 - /// - [SugarTable("STD_OBJECT_MAPPING")] - public class ObjectMapping - { - - - /// - /// 备 注:主键 - /// 默认值: - /// - [SugarColumn(ColumnName="ID" ,IsPrimaryKey = true,IsIdentity = true) ] - public decimal Id { get; set; } - - /// - /// 备 注:本地系统名称(如姓名 年龄) - /// 默认值: - /// - [SugarColumn(ColumnName="SYSTEM_NAME" ) ] - public string? SystemName { get; set; } - - /// - /// 备 注:本地系统字段名(如name age) - /// 默认值: - /// - [SugarColumn(ColumnName="SYSTEM_FIELD" ) ] - public string? SystemField { get; set; } - - /// - /// 备 注:对接系统名称 - /// 默认值: - /// - [SugarColumn(ColumnName="INTERFACE_NAME" ) ] - public string? InterfaceName { get; set; } - - /// - /// 备 注:对接系统字段名 - /// 默认值: - /// - [SugarColumn(ColumnName="INTERFACE_FIELD" ) ] - public string? InterfaceField { get; set; } - - /// - /// 备 注:对接系统表英文名 - /// 默认值: - /// - [SugarColumn(ColumnName="OBJECT_TABLE_NAME" ) ] - public string? ObjectTableName { get; set; } - - /// - /// 备 注:对接系统表中文名 - /// 默认值: - /// - [SugarColumn(ColumnName="OBJECT_TABLE_CNNAME" ) ] - public string? ObjectTableCnName { get; set; } - - /// - /// 备 注:本地系统表中文名 - /// 默认值: - /// - [SugarColumn(ColumnName="SYSTEM_TABLE_CNNAME" ) ] - public string? SystemTableCnName { get; set; } - - /// - /// 备 注:本地系统表英文名 - /// 默认值: - /// - [SugarColumn(ColumnName="SYSTEM_TABLE_NAME" ) ] - public string? SystemTableName { get; set; } - - /// - /// 备 注:本地系统字段类型 - /// 默认值: - /// - [SugarColumn(ColumnName="SYSTEM_FIELD_TYPE" ) ] - public string? SystemFieldType { get; set; } - - /// - /// 备 注:本地系统字典名称 - /// 默认值: - /// - [SugarColumn(ColumnName="SYSTEM_DICT_NAME" ) ] - public string? SystemDictName { get; set; } - - /// - /// 备 注:对接系统字段类型 - /// 默认值: - /// - [SugarColumn(ColumnName="OBJECT_FIELD_TYPE" ) ] - public string? ObjectFieldType { get; set; } - - /// - /// 备 注:对接系统字典名称 - /// 默认值: - /// - [SugarColumn(ColumnName="OBJECT_DICT_NAME" ) ] - public string? ObjectDictName { get; set; } - - - } - -} \ No newline at end of file diff --git a/SuperAPI/Program.cs b/SuperAPI/Program.cs index 0a158b0..4b41212 100644 --- a/SuperAPI/Program.cs +++ b/SuperAPI/Program.cs @@ -6,7 +6,6 @@ using ReZero; using ReZero.Configuration; using ReZero.SuperAPI; using SqlSugar; -using SuperAPITest; using System.Reflection; using System.Runtime.CompilerServices; using System.Text; @@ -43,7 +42,7 @@ builder.Services.AddReZeroServices(api => //IOCҵҪм̼ var assemblyList = Assembly.GetExecutingAssembly() - .GetAllDependentAssemblies(it => it.Contains("SuperAPITest")) + .GetAllDependentAssemblies(it => it.Contains("medical.insu.transfomer")) .ToArray(); apiObj!.DependencyInjectionOptions = new DependencyInjectionOptions(assemblyList); diff --git a/SuperAPI/SuperAPITest.csproj b/SuperAPI/medical.insu.transfomer.csproj similarity index 65% rename from SuperAPI/SuperAPITest.csproj rename to SuperAPI/medical.insu.transfomer.csproj index 5a5f4b6..3f1c3f9 100644 --- a/SuperAPI/SuperAPITest.csproj +++ b/SuperAPI/medical.insu.transfomer.csproj @@ -18,6 +18,10 @@ + + + + diff --git a/ReZero/SuperAPI/DatabseModels/Entities/STD/STD_METHOD_CONFIG.cs b/medical.jzyb.entity/STD/STD_METHOD_CONFIG.cs similarity index 97% rename from ReZero/SuperAPI/DatabseModels/Entities/STD/STD_METHOD_CONFIG.cs rename to medical.jzyb.entity/STD/STD_METHOD_CONFIG.cs index ee9402d..a3dc3df 100644 --- a/ReZero/SuperAPI/DatabseModels/Entities/STD/STD_METHOD_CONFIG.cs +++ b/medical.jzyb.entity/STD/STD_METHOD_CONFIG.cs @@ -2,7 +2,9 @@ using System.Collections.Generic; using System.Linq; using SqlSugar; -namespace ReZero.SuperAPI.STD +namespace medical.transfomer.entity + + { /// /// 方法信息表 diff --git a/ReZero/SuperAPI/DatabseModels/Entities/STD/STD_OBJECT_ASSEMBLY.cs b/medical.jzyb.entity/STD/STD_OBJECT_ASSEMBLY.cs similarity index 97% rename from ReZero/SuperAPI/DatabseModels/Entities/STD/STD_OBJECT_ASSEMBLY.cs rename to medical.jzyb.entity/STD/STD_OBJECT_ASSEMBLY.cs index 7cad5f5..a8d1486 100644 --- a/ReZero/SuperAPI/DatabseModels/Entities/STD/STD_OBJECT_ASSEMBLY.cs +++ b/medical.jzyb.entity/STD/STD_OBJECT_ASSEMBLY.cs @@ -2,7 +2,8 @@ using System.Collections.Generic; using System.Linq; using SqlSugar; -namespace ReZero.SuperAPI.STD +namespace medical.transfomer.entity + { /// /// 对象组装表 diff --git a/ReZero/SuperAPI/DatabseModels/Entities/STD/STD_OBJECT_MAPPING.cs b/medical.jzyb.entity/STD/STD_OBJECT_MAPPING.cs similarity index 98% rename from ReZero/SuperAPI/DatabseModels/Entities/STD/STD_OBJECT_MAPPING.cs rename to medical.jzyb.entity/STD/STD_OBJECT_MAPPING.cs index f0c4b98..1c8750c 100644 --- a/ReZero/SuperAPI/DatabseModels/Entities/STD/STD_OBJECT_MAPPING.cs +++ b/medical.jzyb.entity/STD/STD_OBJECT_MAPPING.cs @@ -2,7 +2,8 @@ using System.Collections.Generic; using System.Linq; using SqlSugar; -namespace Models +namespace medical.transfomer.entity + { /// /// 对象映射关系表 diff --git a/medical.jzyb.entity/medical.transfomer.entity.csproj b/medical.jzyb.entity/medical.transfomer.entity.csproj new file mode 100644 index 0000000..dda8094 --- /dev/null +++ b/medical.jzyb.entity/medical.transfomer.entity.csproj @@ -0,0 +1,13 @@ + + + + net8.0 + enable + enable + + + + + + + diff --git a/SuperAPI/Services/InsuranceBusinessServices/IInsuranceBusinessService.cs b/medical.transfomer.business/InsuranceBusinessServices/IInsuranceBusinessService.cs similarity index 75% rename from SuperAPI/Services/InsuranceBusinessServices/IInsuranceBusinessService.cs rename to medical.transfomer.business/InsuranceBusinessServices/IInsuranceBusinessService.cs index 900965a..80cb725 100644 --- a/SuperAPI/Services/InsuranceBusinessServices/IInsuranceBusinessService.cs +++ b/medical.transfomer.business/InsuranceBusinessServices/IInsuranceBusinessService.cs @@ -1,7 +1,7 @@ -using YbTest.Models.Insurance; +using medical.transfomer.dto; -namespace YbTest.Services.InsuranceBusinessServices; +namespace medical.insu.transfomer.InsuranceBusinessServices; public interface IInsuranceBusinessService { diff --git a/SuperAPI/Services/MedicalInsuranceService.cs b/medical.transfomer.business/MedicalInsuranceService.cs similarity index 98% rename from SuperAPI/Services/MedicalInsuranceService.cs rename to medical.transfomer.business/MedicalInsuranceService.cs index 172202e..b49d8eb 100644 --- a/SuperAPI/Services/MedicalInsuranceService.cs +++ b/medical.transfomer.business/MedicalInsuranceService.cs @@ -1,13 +1,14 @@ using System.Text; using System.Text.RegularExpressions; using System.ComponentModel.DataAnnotations; -using YbTest.Models.Insurance; -using YbTest.Services.InsuranceBusinessServices; using System.Collections.Concurrent; using System.Security.Cryptography; using System.Text.Json; +using medical.insu.transfomer.InsuranceBusinessServices; +using System.Net.Http.Json; +using medical.transfomer.dto; -namespace YbTest.Services +namespace medical.insu.transfomer { public class MedicalInsuranceService { diff --git a/SuperAPI/Services/TransformerService.cs b/medical.transfomer.business/TransformerService.cs similarity index 99% rename from SuperAPI/Services/TransformerService.cs rename to medical.transfomer.business/TransformerService.cs index 881d5bf..578e69b 100644 --- a/SuperAPI/Services/TransformerService.cs +++ b/medical.transfomer.business/TransformerService.cs @@ -5,13 +5,14 @@ // Copyright (c) Manus. All rights reserved. // +using medical.transfomer.dto; using System; using System.Collections.Generic; using System.Linq; using System.Text.Json; using System.Text.Json.Nodes; -namespace YbTest.Models +namespace medical.insu.transfomer { /// /// JSON配置转换服务类 diff --git a/medical.transfomer.business/medical.transfomer.business.csproj b/medical.transfomer.business/medical.transfomer.business.csproj new file mode 100644 index 0000000..245e27c --- /dev/null +++ b/medical.transfomer.business/medical.transfomer.business.csproj @@ -0,0 +1,16 @@ + + + + net8.0 + enable + enable + + + + + + + + + + diff --git a/medical.transfomer.business/std_object_mapping_business.cs b/medical.transfomer.business/std_object_mapping_business.cs new file mode 100644 index 0000000..cb070e7 --- /dev/null +++ b/medical.transfomer.business/std_object_mapping_business.cs @@ -0,0 +1,27 @@ +using medical.transfomer.entity; +using ReZero.DependencyInjection; +using SqlSugar; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace medical.transfomer.business +{ + public class std_object_mapping_business : IScopeContract + { + //属性注入 + [DI] + public ISqlSugarClient? db { get; set; } + + + // 批量插入信息 + public int ListInsert(List list) + { + var result = new List(); + + return db.Insertable(list).ExecuteCommand(); + } + } +} diff --git a/medical.transfomer.dal/medical.transfomer.dal.csproj b/medical.transfomer.dal/medical.transfomer.dal.csproj new file mode 100644 index 0000000..dda8094 --- /dev/null +++ b/medical.transfomer.dal/medical.transfomer.dal.csproj @@ -0,0 +1,13 @@ + + + + net8.0 + enable + enable + + + + + + + diff --git a/SuperAPI/Models/Insurance/InsuranceRequest.cs b/medical.transfomer.dto/Insurance/InsuranceRequest.cs similarity index 98% rename from SuperAPI/Models/Insurance/InsuranceRequest.cs rename to medical.transfomer.dto/Insurance/InsuranceRequest.cs index 6d49f22..d2af3df 100644 --- a/SuperAPI/Models/Insurance/InsuranceRequest.cs +++ b/medical.transfomer.dto/Insurance/InsuranceRequest.cs @@ -1,6 +1,6 @@ using System.ComponentModel.DataAnnotations; -namespace YbTest.Models.Insurance +namespace medical.transfomer.dto { public class InsuranceRequest { diff --git a/SuperAPI/Models/Insurance/InsuranceResponse.cs b/medical.transfomer.dto/Insurance/InsuranceResponse.cs similarity index 95% rename from SuperAPI/Models/Insurance/InsuranceResponse.cs rename to medical.transfomer.dto/Insurance/InsuranceResponse.cs index 4121f15..0860cc2 100644 --- a/SuperAPI/Models/Insurance/InsuranceResponse.cs +++ b/medical.transfomer.dto/Insurance/InsuranceResponse.cs @@ -1,6 +1,6 @@ using System; -namespace YbTest.Models.Insurance +namespace medical.transfomer.dto { public class Response { diff --git a/SuperAPI/Models/MedicalTransactionSystem.cs b/medical.transfomer.dto/MedicalTransactionSystem.cs similarity index 99% rename from SuperAPI/Models/MedicalTransactionSystem.cs rename to medical.transfomer.dto/MedicalTransactionSystem.cs index cf15b23..ffe26c5 100644 --- a/SuperAPI/Models/MedicalTransactionSystem.cs +++ b/medical.transfomer.dto/MedicalTransactionSystem.cs @@ -1,7 +1,7 @@ using System.ComponentModel.DataAnnotations.Schema; using System.ComponentModel.DataAnnotations; -namespace YbTest.Models +namespace medical.transfomer.dto { public class MedicalTransactionSystem { diff --git a/SuperAPI/Models/TransformationConfig.cs b/medical.transfomer.dto/TransformationConfig.cs similarity index 86% rename from SuperAPI/Models/TransformationConfig.cs rename to medical.transfomer.dto/TransformationConfig.cs index 3913e1a..e7d7223 100644 --- a/SuperAPI/Models/TransformationConfig.cs +++ b/medical.transfomer.dto/TransformationConfig.cs @@ -1,6 +1,7 @@ -using Models; -using ReZero.SuperAPI.STD; -namespace YbTest.Models + +using medical.transfomer.entity; + +namespace medical.transfomer.dto { public class TransformationConfig { diff --git a/medical.transfomer.dto/medical.transfomer.dto.csproj b/medical.transfomer.dto/medical.transfomer.dto.csproj new file mode 100644 index 0000000..c14cb2f --- /dev/null +++ b/medical.transfomer.dto/medical.transfomer.dto.csproj @@ -0,0 +1,17 @@ + + + + net8.0 + enable + enable + + + + + + + + + + + diff --git a/medical.transfomer.service/Class1.cs b/medical.transfomer.service/Class1.cs new file mode 100644 index 0000000..c35087d --- /dev/null +++ b/medical.transfomer.service/Class1.cs @@ -0,0 +1,7 @@ +namespace medical.transfomer.service +{ + public class Class1 + { + + } +} diff --git a/medical.transfomer.service/medical.transfomer.service.csproj b/medical.transfomer.service/medical.transfomer.service.csproj new file mode 100644 index 0000000..fa71b7a --- /dev/null +++ b/medical.transfomer.service/medical.transfomer.service.csproj @@ -0,0 +1,9 @@ + + + + net8.0 + enable + enable + + +