using SqlSugar;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace WMS.BZModels.Models.UserCenterManager
{
[Tenant("usercenter")]
[SugarTable("Acl_UserRelation")]
public class AclUserRelation : BaseModel
{
///
/// UserId
///
[SugarColumn(ColumnDataType = "bigint", Length = 50, IsNullable = true)]
public long? UserId { get; set; }
///
/// 分类:1-角色, 2-用户组
///
[SugarColumn(ColumnDataType = "int", IsNullable = true, ColumnDescription = "分类:1-角色 2-用户组")]
public int? ObjectTypeNum { get; set; }
///
/// ObjectId
///
[SugarColumn(ColumnDataType = "bigint", Length = 50, IsNullable = true)]
public long? ObjectId { get; set; }
}
[Description("权限对象类型")]
public enum ACLObjType
{
///
/// 其他
///
[Description("用户")]
UserItem = 0,
///
/// 窗体
///
[Description("角色")]
UserRole = 1,
///
/// 窗体
///
[Description("用户组")]
UserGrp = 2,
}
}