优化管理后台菜单种子数据
This commit is contained in:
parent
d535aa285e
commit
ea3a7f2226
@ -1 +1 @@
|
||||
Subproject commit fa776f0281564ebc3f7c3173420b86026f71eedd
|
||||
Subproject commit 2d4bb55d3bd38890b034dc802c96c29c5220909d
|
||||
@ -25,6 +25,9 @@ public class Program
|
||||
context.Configuration);
|
||||
});
|
||||
await builder.AddApplicationAsync<JiShe.IoT.IoTHttpApiHostModule>();
|
||||
#if DEBUG
|
||||
builder.WebHost.UseUrls($"http://+:10500");
|
||||
#endif
|
||||
var app = builder.Build();
|
||||
await app.InitializeApplicationAsync();
|
||||
await app.RunAsync();
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
"JiShe.IoT.HttpApi.Host": {
|
||||
"commandName": "Project",
|
||||
"launchBrowser": true,
|
||||
"applicationUrl": "http://localhost:44315",
|
||||
"applicationUrl": "http://localhost:10500",
|
||||
"environmentVariables": {
|
||||
"ASPNETCORE_ENVIRONMENT": "Development"
|
||||
}
|
||||
|
||||
@ -43,8 +43,4 @@
|
||||
<PrivateAssets>compile; contentFiles; build; buildMultitargeting; buildTransitive; analyzers; native</PrivateAssets>
|
||||
</PackageReference>
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Folder Include="Migrations\" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
|
||||
@ -13,8 +13,8 @@ using Volo.Abp.EntityFrameworkCore;
|
||||
namespace JiShe.IoT.Migrations
|
||||
{
|
||||
[DbContext(typeof(IoTDbContext))]
|
||||
[Migration("20250620054425_initCreat")]
|
||||
partial class initCreat
|
||||
[Migration("20250708065507_InitialCreate")]
|
||||
partial class InitialCreate
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
||||
@ -306,6 +306,15 @@ namespace JiShe.IoT.Migrations
|
||||
.HasColumnType("int")
|
||||
.HasComment("心跳间隔");
|
||||
|
||||
b.Property<int>("IoTPlatform")
|
||||
.HasColumnType("int")
|
||||
.HasComment("物联网平台类型,默认没有指定");
|
||||
|
||||
b.Property<string>("IoTPlatformDeviceOpenId")
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasComment("集中器在物联网平台中的设备ID");
|
||||
|
||||
b.Property<bool>("IsDeleted")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("tinyint(1)")
|
||||
@ -352,6 +361,11 @@ namespace JiShe.IoT.Migrations
|
||||
.HasColumnType("int")
|
||||
.HasComment("旧系统授权最后修改者Id");
|
||||
|
||||
b.Property<string>("PlatformPassword")
|
||||
.HasMaxLength(80)
|
||||
.HasColumnType("varchar(80)")
|
||||
.HasComment("物联网平台设备密码");
|
||||
|
||||
b.Property<int>("ProjectID")
|
||||
.HasColumnType("int")
|
||||
.HasComment("项目ID");
|
||||
@ -605,11 +619,11 @@ namespace JiShe.IoT.Migrations
|
||||
.HasComment("租户ID");
|
||||
|
||||
b.Property<decimal>("TimesA")
|
||||
.HasColumnType("decimal(12, 4)")
|
||||
.HasColumnType("decimal(18,4)")
|
||||
.HasComment("倍率A");
|
||||
|
||||
b.Property<decimal>("Timev")
|
||||
.HasColumnType("decimal(12, 4)")
|
||||
.HasColumnType("decimal(18,4)")
|
||||
.HasComment("倍率V");
|
||||
|
||||
b.Property<bool>("TripState")
|
||||
@ -6,7 +6,7 @@ using Microsoft.EntityFrameworkCore.Migrations;
|
||||
namespace JiShe.IoT.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class initCreat : Migration
|
||||
public partial class InitialCreate : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
@ -773,6 +773,11 @@ namespace JiShe.IoT.Migrations
|
||||
.Annotation("MySql:CharSet", "utf8mb4"),
|
||||
HardwareReleaseDate = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "硬件软件发布日期:日月年")
|
||||
.Annotation("MySql:CharSet", "utf8mb4"),
|
||||
IoTPlatformDeviceOpenId = table.Column<string>(type: "varchar(50)", maxLength: 50, nullable: true, comment: "集中器在物联网平台中的设备ID")
|
||||
.Annotation("MySql:CharSet", "utf8mb4"),
|
||||
IoTPlatform = table.Column<int>(type: "int", nullable: false, comment: "物联网平台类型,默认没有指定"),
|
||||
PlatformPassword = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "物联网平台设备密码")
|
||||
.Annotation("MySql:CharSet", "utf8mb4"),
|
||||
ConcurrencyStamp = table.Column<string>(type: "varchar(40)", maxLength: 40, nullable: false)
|
||||
.Annotation("MySql:CharSet", "utf8mb4"),
|
||||
CreationTime = table.Column<DateTime>(type: "datetime(6)", nullable: false),
|
||||
@ -869,8 +874,8 @@ namespace JiShe.IoT.Migrations
|
||||
.Annotation("MySql:CharSet", "utf8mb4"),
|
||||
ArchiveStatus = table.Column<bool>(type: "tinyint(1)", nullable: false, comment: "归档状态"),
|
||||
TripState = table.Column<bool>(type: "tinyint(1)", nullable: false, comment: "是否跳闸"),
|
||||
TimesA = table.Column<decimal>(type: "decimal(12,4)", nullable: false, comment: "倍率A"),
|
||||
Timev = table.Column<decimal>(type: "decimal(12,4)", nullable: false, comment: "倍率V"),
|
||||
TimesA = table.Column<decimal>(type: "decimal(18,4)", nullable: false, comment: "倍率A"),
|
||||
Timev = table.Column<decimal>(type: "decimal(18,4)", nullable: false, comment: "倍率V"),
|
||||
HaveValve = table.Column<bool>(type: "tinyint(1)", nullable: true, comment: "是否带阀控"),
|
||||
FocusId = table.Column<int>(type: "int", nullable: false, comment: "集中器ID"),
|
||||
MeterId = table.Column<int>(type: "int", nullable: false, comment: "表计ID"),
|
||||
@ -303,6 +303,15 @@ namespace JiShe.IoT.Migrations
|
||||
.HasColumnType("int")
|
||||
.HasComment("心跳间隔");
|
||||
|
||||
b.Property<int>("IoTPlatform")
|
||||
.HasColumnType("int")
|
||||
.HasComment("物联网平台类型,默认没有指定");
|
||||
|
||||
b.Property<string>("IoTPlatformDeviceOpenId")
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasComment("集中器在物联网平台中的设备ID");
|
||||
|
||||
b.Property<bool>("IsDeleted")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("tinyint(1)")
|
||||
@ -349,6 +358,11 @@ namespace JiShe.IoT.Migrations
|
||||
.HasColumnType("int")
|
||||
.HasComment("旧系统授权最后修改者Id");
|
||||
|
||||
b.Property<string>("PlatformPassword")
|
||||
.HasMaxLength(80)
|
||||
.HasColumnType("varchar(80)")
|
||||
.HasComment("物联网平台设备密码");
|
||||
|
||||
b.Property<int>("ProjectID")
|
||||
.HasColumnType("int")
|
||||
.HasComment("项目ID");
|
||||
@ -602,11 +616,11 @@ namespace JiShe.IoT.Migrations
|
||||
.HasComment("租户ID");
|
||||
|
||||
b.Property<decimal>("TimesA")
|
||||
.HasColumnType("decimal(12, 4)")
|
||||
.HasColumnType("decimal(18,4)")
|
||||
.HasComment("倍率A");
|
||||
|
||||
b.Property<decimal>("Timev")
|
||||
.HasColumnType("decimal(12, 4)")
|
||||
.HasColumnType("decimal(18,4)")
|
||||
.HasComment("倍率V");
|
||||
|
||||
b.Property<bool>("TripState")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user