chore: 同步当前开发内容
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace TakeoutSaaS.Infrastructure.Identity.Options;
|
||||
|
||||
/// <summary>
|
||||
/// 管理后台初始账号配置。
|
||||
/// </summary>
|
||||
public sealed class AdminSeedOptions
|
||||
{
|
||||
public List<SeedUserOptions> Users { get; set; } = new();
|
||||
}
|
||||
|
||||
public sealed class SeedUserOptions
|
||||
{
|
||||
[Required]
|
||||
public string Account { get; set; } = string.Empty;
|
||||
|
||||
[Required]
|
||||
public string Password { get; set; } = string.Empty;
|
||||
|
||||
[Required]
|
||||
public string DisplayName { get; set; } = string.Empty;
|
||||
|
||||
public Guid TenantId { get; set; }
|
||||
public Guid? MerchantId { get; set; }
|
||||
public string[] Roles { get; set; } = Array.Empty<string>();
|
||||
public string[] Permissions { get; set; } = Array.Empty<string>();
|
||||
}
|
||||
Reference in New Issue
Block a user