优化管理后台菜单种子数据

This commit is contained in:
ChenYi 2025-07-08 16:08:03 +08:00
parent d535aa285e
commit ea3a7f2226
7 changed files with 47 additions and 15 deletions

@ -1 +1 @@
Subproject commit fa776f0281564ebc3f7c3173420b86026f71eedd Subproject commit 2d4bb55d3bd38890b034dc802c96c29c5220909d

View File

@ -25,6 +25,9 @@ public class Program
context.Configuration); context.Configuration);
}); });
await builder.AddApplicationAsync<JiShe.IoT.IoTHttpApiHostModule>(); await builder.AddApplicationAsync<JiShe.IoT.IoTHttpApiHostModule>();
#if DEBUG
builder.WebHost.UseUrls($"http://+:10500");
#endif
var app = builder.Build(); var app = builder.Build();
await app.InitializeApplicationAsync(); await app.InitializeApplicationAsync();
await app.RunAsync(); await app.RunAsync();

View File

@ -3,7 +3,7 @@
"JiShe.IoT.HttpApi.Host": { "JiShe.IoT.HttpApi.Host": {
"commandName": "Project", "commandName": "Project",
"launchBrowser": true, "launchBrowser": true,
"applicationUrl": "http://localhost:44315", "applicationUrl": "http://localhost:10500",
"environmentVariables": { "environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development" "ASPNETCORE_ENVIRONMENT": "Development"
} }

View File

@ -43,8 +43,4 @@
<PrivateAssets>compile; contentFiles; build; buildMultitargeting; buildTransitive; analyzers; native</PrivateAssets> <PrivateAssets>compile; contentFiles; build; buildMultitargeting; buildTransitive; analyzers; native</PrivateAssets>
</PackageReference> </PackageReference>
</ItemGroup> </ItemGroup>
<ItemGroup>
<Folder Include="Migrations\" />
</ItemGroup>
</Project> </Project>

View File

@ -13,8 +13,8 @@ using Volo.Abp.EntityFrameworkCore;
namespace JiShe.IoT.Migrations namespace JiShe.IoT.Migrations
{ {
[DbContext(typeof(IoTDbContext))] [DbContext(typeof(IoTDbContext))]
[Migration("20250620054425_initCreat")] [Migration("20250708065507_InitialCreate")]
partial class initCreat partial class InitialCreate
{ {
/// <inheritdoc /> /// <inheritdoc />
protected override void BuildTargetModel(ModelBuilder modelBuilder) protected override void BuildTargetModel(ModelBuilder modelBuilder)
@ -306,6 +306,15 @@ namespace JiShe.IoT.Migrations
.HasColumnType("int") .HasColumnType("int")
.HasComment("心跳间隔"); .HasComment("心跳间隔");
b.Property<int>("IoTPlatform")
.HasColumnType("int")
.HasComment("物联网平台类型,默认没有指定");
b.Property<string>("IoTPlatformDeviceOpenId")
.HasMaxLength(50)
.HasColumnType("varchar(50)")
.HasComment("集中器在物联网平台中的设备ID");
b.Property<bool>("IsDeleted") b.Property<bool>("IsDeleted")
.ValueGeneratedOnAdd() .ValueGeneratedOnAdd()
.HasColumnType("tinyint(1)") .HasColumnType("tinyint(1)")
@ -352,6 +361,11 @@ namespace JiShe.IoT.Migrations
.HasColumnType("int") .HasColumnType("int")
.HasComment("旧系统授权最后修改者Id"); .HasComment("旧系统授权最后修改者Id");
b.Property<string>("PlatformPassword")
.HasMaxLength(80)
.HasColumnType("varchar(80)")
.HasComment("物联网平台设备密码");
b.Property<int>("ProjectID") b.Property<int>("ProjectID")
.HasColumnType("int") .HasColumnType("int")
.HasComment("项目ID"); .HasComment("项目ID");
@ -605,11 +619,11 @@ namespace JiShe.IoT.Migrations
.HasComment("租户ID"); .HasComment("租户ID");
b.Property<decimal>("TimesA") b.Property<decimal>("TimesA")
.HasColumnType("decimal(12, 4)") .HasColumnType("decimal(18,4)")
.HasComment("倍率A"); .HasComment("倍率A");
b.Property<decimal>("Timev") b.Property<decimal>("Timev")
.HasColumnType("decimal(12, 4)") .HasColumnType("decimal(18,4)")
.HasComment("倍率V"); .HasComment("倍率V");
b.Property<bool>("TripState") b.Property<bool>("TripState")

View File

@ -6,7 +6,7 @@ using Microsoft.EntityFrameworkCore.Migrations;
namespace JiShe.IoT.Migrations namespace JiShe.IoT.Migrations
{ {
/// <inheritdoc /> /// <inheritdoc />
public partial class initCreat : Migration public partial class InitialCreate : Migration
{ {
/// <inheritdoc /> /// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder) protected override void Up(MigrationBuilder migrationBuilder)
@ -773,6 +773,11 @@ namespace JiShe.IoT.Migrations
.Annotation("MySql:CharSet", "utf8mb4"), .Annotation("MySql:CharSet", "utf8mb4"),
HardwareReleaseDate = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "硬件软件发布日期:日月年") HardwareReleaseDate = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "硬件软件发布日期:日月年")
.Annotation("MySql:CharSet", "utf8mb4"), .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) ConcurrencyStamp = table.Column<string>(type: "varchar(40)", maxLength: 40, nullable: false)
.Annotation("MySql:CharSet", "utf8mb4"), .Annotation("MySql:CharSet", "utf8mb4"),
CreationTime = table.Column<DateTime>(type: "datetime(6)", nullable: false), CreationTime = table.Column<DateTime>(type: "datetime(6)", nullable: false),
@ -869,8 +874,8 @@ namespace JiShe.IoT.Migrations
.Annotation("MySql:CharSet", "utf8mb4"), .Annotation("MySql:CharSet", "utf8mb4"),
ArchiveStatus = table.Column<bool>(type: "tinyint(1)", nullable: false, comment: "归档状态"), ArchiveStatus = table.Column<bool>(type: "tinyint(1)", nullable: false, comment: "归档状态"),
TripState = 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"), TimesA = table.Column<decimal>(type: "decimal(18,4)", nullable: false, comment: "倍率A"),
Timev = table.Column<decimal>(type: "decimal(12,4)", nullable: false, comment: "倍率V"), Timev = table.Column<decimal>(type: "decimal(18,4)", nullable: false, comment: "倍率V"),
HaveValve = table.Column<bool>(type: "tinyint(1)", nullable: true, comment: "是否带阀控"), HaveValve = table.Column<bool>(type: "tinyint(1)", nullable: true, comment: "是否带阀控"),
FocusId = table.Column<int>(type: "int", nullable: false, comment: "集中器ID"), FocusId = table.Column<int>(type: "int", nullable: false, comment: "集中器ID"),
MeterId = table.Column<int>(type: "int", nullable: false, comment: "表计ID"), MeterId = table.Column<int>(type: "int", nullable: false, comment: "表计ID"),

View File

@ -303,6 +303,15 @@ namespace JiShe.IoT.Migrations
.HasColumnType("int") .HasColumnType("int")
.HasComment("心跳间隔"); .HasComment("心跳间隔");
b.Property<int>("IoTPlatform")
.HasColumnType("int")
.HasComment("物联网平台类型,默认没有指定");
b.Property<string>("IoTPlatformDeviceOpenId")
.HasMaxLength(50)
.HasColumnType("varchar(50)")
.HasComment("集中器在物联网平台中的设备ID");
b.Property<bool>("IsDeleted") b.Property<bool>("IsDeleted")
.ValueGeneratedOnAdd() .ValueGeneratedOnAdd()
.HasColumnType("tinyint(1)") .HasColumnType("tinyint(1)")
@ -349,6 +358,11 @@ namespace JiShe.IoT.Migrations
.HasColumnType("int") .HasColumnType("int")
.HasComment("旧系统授权最后修改者Id"); .HasComment("旧系统授权最后修改者Id");
b.Property<string>("PlatformPassword")
.HasMaxLength(80)
.HasColumnType("varchar(80)")
.HasComment("物联网平台设备密码");
b.Property<int>("ProjectID") b.Property<int>("ProjectID")
.HasColumnType("int") .HasColumnType("int")
.HasComment("项目ID"); .HasComment("项目ID");
@ -602,11 +616,11 @@ namespace JiShe.IoT.Migrations
.HasComment("租户ID"); .HasComment("租户ID");
b.Property<decimal>("TimesA") b.Property<decimal>("TimesA")
.HasColumnType("decimal(12, 4)") .HasColumnType("decimal(18,4)")
.HasComment("倍率A"); .HasComment("倍率A");
b.Property<decimal>("Timev") b.Property<decimal>("Timev")
.HasColumnType("decimal(12, 4)") .HasColumnType("decimal(18,4)")
.HasComment("倍率V"); .HasComment("倍率V");
b.Property<bool>("TripState") b.Property<bool>("TripState")