颐和api

Sys_Role_Function.cs 1.1KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. using MadRunFabric.Common;
  2. using MongoDB.Bson.Serialization.Attributes;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.ComponentModel.DataAnnotations;
  6. namespace MadRunFabric.Model
  7. {
  8. public class Sys_Role_Function : IBaseModel<string>
  9. {
  10. /// <summary>
  11. /// id
  12. /// </summary>
  13. [Key]
  14. [BsonRepresentation(MongoDB.Bson.BsonType.ObjectId)]
  15. public string id { get; set; }
  16. /// <summary>
  17. /// 角色id外键
  18. /// </summary>
  19. [BsonRepresentation(MongoDB.Bson.BsonType.ObjectId)]
  20. public string role_id { get; set; }
  21. /// <summary>
  22. /// Role分类1-角色2-部门-3用户
  23. /// </summary>
  24. public int role_type { get; set; } = 1;
  25. /// <summary>
  26. /// 类型1-模块2-按钮
  27. /// </summary>
  28. public int function_type { get; set; } = 1;
  29. /// <summary>
  30. /// 功能id外键
  31. /// </summary>
  32. [BsonRepresentation(MongoDB.Bson.BsonType.ObjectId)]
  33. public string function_id { get; set; }
  34. }
  35. }