版博士V2.0程序
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
 
 
 
 

34 řádky
1012 B

  1. using SqlSugar;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. namespace Models
  8. {
  9. [SugarIndex("index_{table}_code", nameof(Right.Code), OrderByType.Asc, isUnique: true)]
  10. public class Right : BaseTable
  11. {
  12. public Right() { }
  13. public Right(string code,string name,string groupName="默认")
  14. {
  15. Code=code;
  16. Name=name;
  17. GroupName=groupName;
  18. CreateUserCode = "admin";
  19. ModifyUserCode = "admin";
  20. }
  21. public bool check { get; set; }
  22. public string GroupName { get; set; }//分组名
  23. [SugarColumn(Length = 16)]
  24. public string Code { get; set; }
  25. public string Name { get; set; }
  26. //用于根据权限查所有角色时用
  27. //[Navigate(typeof(RoleRightMap), nameof(RoleRightMap.RightId), nameof(RoleRightMap.RoleId))]//注意顺序
  28. //public List<Role> RoleList { get; set; }
  29. }
  30. }