12 changed files with 14468 additions and 11 deletions
-
14src/Shentun.Peis.Application.Contracts/MyUser/IdentityUserCreateNoEmailDto.cs
-
6src/Shentun.Peis.Application.Contracts/MyUser/IdentityUserUpdateInputDto.cs
-
6src/Shentun.Peis.Application.Contracts/MyUser/IdentityUserWithExtensionDto.cs
-
31src/Shentun.Peis.Application.Contracts/MyUser/ListByOperatorTypeDto.cs
-
14src/Shentun.Peis.Application.Contracts/MyUser/OperatorTypeIuputDto.cs
-
32src/Shentun.Peis.Application/MyUser/MyUserAppService.cs
-
36src/Shentun.Peis.Domain.Shared/Enums/UserOperatorTypeFlag.cs
-
10src/Shentun.Peis.EntityFrameworkCore/EntityFrameworkCore/PeisEfCoreEntityExtensionMappings.cs
-
14286src/Shentun.Peis.EntityFrameworkCore/Migrations/20240515100759_init20240515001.Designer.cs
-
27src/Shentun.Peis.EntityFrameworkCore/Migrations/20240515100759_init20240515001.cs
-
6src/Shentun.Peis.EntityFrameworkCore/Migrations/PeisDbContextModelSnapshot.cs
-
11src/Shentun.Peis.HttpApi.Host/PeisHttpApiHostModule.cs
@ -0,0 +1,31 @@ |
|||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.Text; |
||||
|
|
||||
|
namespace Shentun.Peis.MyUser |
||||
|
{ |
||||
|
public class ListByOperatorTypeDto |
||||
|
{ |
||||
|
/// <summary>
|
||||
|
/// ID
|
||||
|
/// </summary>
|
||||
|
public Guid Id { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 账号
|
||||
|
/// </summary>
|
||||
|
public string UserName { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 姓名
|
||||
|
/// </summary>
|
||||
|
public string Surname { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 快捷码
|
||||
|
/// </summary>
|
||||
|
public string SimpleCode { get; set; } |
||||
|
|
||||
|
|
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,14 @@ |
|||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.Text; |
||||
|
|
||||
|
namespace Shentun.Peis.MyUser |
||||
|
{ |
||||
|
public class OperatorTypeIuputDto |
||||
|
{ |
||||
|
/// <summary>
|
||||
|
/// 用户操作类别集合 0-操作员,1-医生,2-总检医生,3-医生和总检医生
|
||||
|
/// </summary>
|
||||
|
public List<char> OperatorTypes { get; set; } |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,36 @@ |
|||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.ComponentModel; |
||||
|
using System.Text; |
||||
|
|
||||
|
namespace Shentun.Peis.Enums |
||||
|
{ |
||||
|
|
||||
|
public static class UserOperatorTypeFlag |
||||
|
{ |
||||
|
/// <summary>
|
||||
|
/// 操作员
|
||||
|
/// </summary>
|
||||
|
[Description("操作员")] |
||||
|
public const char Operator = '0'; |
||||
|
|
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 医生
|
||||
|
/// </summary>
|
||||
|
[Description("医生")] |
||||
|
public const char Doctor = '1'; |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 总检医生
|
||||
|
/// </summary>
|
||||
|
[Description("总检医生")] |
||||
|
public const char SumDoctor = '2'; |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 医生和总检医生
|
||||
|
/// </summary>
|
||||
|
[Description("医生和总检医生")] |
||||
|
public const char DoctorAndSumDoctor = '3'; |
||||
|
} |
||||
|
} |
||||
14286
src/Shentun.Peis.EntityFrameworkCore/Migrations/20240515100759_init20240515001.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,27 @@ |
|||||
|
using Microsoft.EntityFrameworkCore.Migrations; |
||||
|
|
||||
|
#nullable disable |
||||
|
|
||||
|
namespace Shentun.Peis.Migrations |
||||
|
{ |
||||
|
public partial class init20240515001 : Migration |
||||
|
{ |
||||
|
protected override void Up(MigrationBuilder migrationBuilder) |
||||
|
{ |
||||
|
migrationBuilder.AddColumn<char>( |
||||
|
name: "operator_type", |
||||
|
table: "abp_users", |
||||
|
type: "character(1)", |
||||
|
maxLength: 1, |
||||
|
nullable: false, |
||||
|
defaultValueSql: "'0'"); |
||||
|
} |
||||
|
|
||||
|
protected override void Down(MigrationBuilder migrationBuilder) |
||||
|
{ |
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "operator_type", |
||||
|
table: "abp_users"); |
||||
|
} |
||||
|
} |
||||
|
} |
||||
Write
Preview
Loading…
Cancel
Save
Reference in new issue