10 changed files with 15223 additions and 12 deletions
-
19src/Shentun.Peis.Application.Contracts/QueueRegisters/QueueRegisterListByRoomIdInputDto.cs
-
1src/Shentun.Peis.Application.Contracts/Rooms/RoomIdInputDto.cs
-
11src/Shentun.Peis.Application.Contracts/Rooms/RoomNoInputDto.cs
-
51src/Shentun.Peis.Application/QueueRegisters/QueueRegisterAppService.cs
-
8src/Shentun.Peis.Domain/Rooms/Room.cs
-
24src/Shentun.Peis.Domain/Rooms/RoomManager.cs
-
2src/Shentun.Peis.EntityFrameworkCore/DbMapping/Rooms/RoomDbMapping.cs
-
15069src/Shentun.Peis.EntityFrameworkCore/Migrations/20240723111319_room_add_room_no.Designer.cs
-
39src/Shentun.Peis.EntityFrameworkCore/Migrations/20240723111319_room_add_room_no.cs
-
11src/Shentun.Peis.EntityFrameworkCore/Migrations/PeisDbContextModelSnapshot.cs
@ -0,0 +1,19 @@ |
|||
using System; |
|||
using System.Collections.Generic; |
|||
using System.Text; |
|||
|
|||
namespace Shentun.Peis.QueueRegisters |
|||
{ |
|||
public class QueueRegisterListByRoomIdInputDto |
|||
{ |
|||
/// <summary>
|
|||
/// 房间ID
|
|||
/// </summary>
|
|||
public Guid RoomId { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 项目类别id集合
|
|||
/// </summary>
|
|||
public List<Guid> ItemTypeIds { get; set; } = new List<Guid>(); |
|||
} |
|||
} |
|||
@ -0,0 +1,11 @@ |
|||
using System; |
|||
using System.Collections.Generic; |
|||
using System.Text; |
|||
|
|||
namespace Shentun.Peis.Rooms |
|||
{ |
|||
public class RoomNoInputDto |
|||
{ |
|||
public string RoomNo { get; set; } |
|||
} |
|||
} |
|||
15069
src/Shentun.Peis.EntityFrameworkCore/Migrations/20240723111319_room_add_room_no.Designer.cs
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
@ -0,0 +1,39 @@ |
|||
using Microsoft.EntityFrameworkCore.Migrations; |
|||
|
|||
#nullable disable |
|||
|
|||
namespace Shentun.Peis.Migrations |
|||
{ |
|||
public partial class room_add_room_no : Migration |
|||
{ |
|||
protected override void Up(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.AddColumn<string>( |
|||
name: "room_no", |
|||
table: "room", |
|||
type: "character(3)", |
|||
fixedLength: true, |
|||
maxLength: 3, |
|||
nullable: false, |
|||
defaultValue: "", |
|||
comment: "房间号"); |
|||
|
|||
migrationBuilder.CreateIndex( |
|||
name: "ix_room_room_no", |
|||
table: "room", |
|||
column: "room_no", |
|||
unique: true); |
|||
} |
|||
|
|||
protected override void Down(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.DropIndex( |
|||
name: "ix_room_room_no", |
|||
table: "room"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "room_no", |
|||
table: "room"); |
|||
} |
|||
} |
|||
} |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue