mirror of
				https://gitee.com/ThingsGateway/ThingsGateway.git
				synced 2025-11-04 17:43:58 +08:00 
			
		
		
		
	调整种子文件,增加Pro版本种子文件录入
This commit is contained in:
		@@ -22,6 +22,9 @@ public class DriverPluginSeedData : ISqlSugarEntitySeedData<DriverPlugin>
 | 
			
		||||
    /// <inheritdoc/>
 | 
			
		||||
    public IEnumerable<DriverPlugin> SeedData()
 | 
			
		||||
    {
 | 
			
		||||
        return SeedDataUtil.GetSeedData<DriverPlugin>("driver_plugin.json");
 | 
			
		||||
        return SeedDataUtil.GetSeedData<DriverPlugin>("driver_plugin.json")
 | 
			
		||||
            .Concat(SeedDataUtil.GetSeedData<DriverPlugin>("pro_driver_plugin.json"))
 | 
			
		||||
            .Concat(SeedDataUtil.GetSeedData<DriverPlugin>("custom_driver_plugin.json"))
 | 
			
		||||
            ;
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
@@ -22,6 +22,6 @@ public class OpenApiUserSeedData : ISqlSugarEntitySeedData<OpenApiUser>
 | 
			
		||||
    /// <inheritdoc/>
 | 
			
		||||
    public IEnumerable<OpenApiUser> SeedData()
 | 
			
		||||
    {
 | 
			
		||||
        return SeedDataUtil.GetSeedData<OpenApiUser>("gatewayopenapi_user.json");
 | 
			
		||||
        return SeedDataUtil.GetSeedData<OpenApiUser>("gateway_openapi_user.json");
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
@@ -6,7 +6,7 @@
 | 
			
		||||
 | 
			
		||||
	<ItemGroup>
 | 
			
		||||
	  <None Remove="SeedData\Json\driver_plugin.json" />
 | 
			
		||||
	  <None Remove="SeedData\Json\gatewayopenapi_user.json" />
 | 
			
		||||
	  <None Remove="SeedData\Json\gateway_openapi_user.json" />
 | 
			
		||||
	  <None Remove="SeedData\Json\gateway_relation.json" />
 | 
			
		||||
	</ItemGroup>
 | 
			
		||||
 | 
			
		||||
@@ -24,7 +24,7 @@
 | 
			
		||||
	  <Content Include="SeedData\Json\gateway_resource.json">
 | 
			
		||||
	    <CopyToOutputDirectory>Always</CopyToOutputDirectory>
 | 
			
		||||
	  </Content>
 | 
			
		||||
	  <Content Include="SeedData\Json\gatewayopenapi_user.json">
 | 
			
		||||
	  <Content Include="SeedData\Json\gateway_openapi_user.json">
 | 
			
		||||
	    <CopyToOutputDirectory>Always</CopyToOutputDirectory>
 | 
			
		||||
	  </Content>
 | 
			
		||||
	  <Content Include="SeedData\Json\gateway_relation.json">
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user