修改User模块
This commit is contained in:
1 parent
d6471f97d3
commit
bb7162aaf6
21 files changed
+278
-336
No files matched your search
@@ -1,3 +1,4 @@
|
||||
using Store.Users.Contracts.Enums;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
@@ -33,9 +34,9 @@ namespace Store.Users.Contracts.Dtos
|
||||
public string CardId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 用户分组 3主号 4客服 5加盟 8登录 9采购 10加盟 11上货
|
||||
/// 用户分组,参见 <see cref="UserGroup"/>。
|
||||
/// </summary>
|
||||
public byte GroupId { get; set; }
|
||||
public UserGroup GroupId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 父账户用户名
|
||||
@@ -73,9 +74,9 @@ namespace Store.Users.Contracts.Dtos
|
||||
public string Notes { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 超管等级 0 普通用户 1 超级管理员
|
||||
/// 超管等级,参见 <see cref="UserAdminLevel"/>。
|
||||
/// </summary>
|
||||
public short? SaLevel { get; set; }
|
||||
public UserAdminLevel? SaLevel { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 账户权限
|
||||
@@ -138,7 +139,7 @@ namespace Store.Users.Contracts.Dtos
|
||||
/// </summary>
|
||||
public bool IsMainUser
|
||||
{
|
||||
get => string.IsNullOrWhiteSpace(ParentUserName);
|
||||
get => GroupId == UserGroup.MainAccount && string.IsNullOrWhiteSpace(ParentUserName);
|
||||
}
|
||||
/// <summary>
|
||||
/// 是否OEM租户
|
||||
|
||||
Reference in new issue
Block a user