AclUserRelation.cs 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. using SqlSugar;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.ComponentModel;
  5. using System.Linq;
  6. using System.Text;
  7. using System.Threading.Tasks;
  8. namespace WMS.BZModels.Models.UserCenterManager
  9. {
  10. [Tenant("usercenter")]
  11. [SugarTable("Acl_UserRelation")]
  12. public class AclUserRelation : BaseModel
  13. {
  14. /// <summary>
  15. /// UserId
  16. /// </summary>
  17. [SugarColumn(ColumnDataType = "bigint", Length = 50, IsNullable = true)]
  18. public long? UserId { get; set; }
  19. /// <summary>
  20. /// 分类:1-角色, 2-用户组
  21. /// </summary>
  22. [SugarColumn(ColumnDataType = "int", IsNullable = true, ColumnDescription = "分类:1-角色 2-用户组")]
  23. public int? ObjectTypeNum { get; set; }
  24. /// <summary>
  25. /// ObjectId
  26. /// </summary>
  27. [SugarColumn(ColumnDataType = "bigint", Length = 50, IsNullable = true)]
  28. public long? ObjectId { get; set; }
  29. }
  30. [Description("权限对象类型")]
  31. public enum ACLObjType
  32. {
  33. /// <summary>
  34. /// 其他
  35. /// </summary>
  36. [Description("用户")]
  37. UserItem = 0,
  38. /// <summary>
  39. /// 窗体
  40. /// </summary>
  41. [Description("角色")]
  42. UserRole = 1,
  43. /// <summary>
  44. /// 窗体
  45. /// </summary>
  46. [Description("用户组")]
  47. UserGrp = 2,
  48. }
  49. }