TsysUserRoleViewModel.cs 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace Ropin.Inspection.Model
  7. {
  8. public class TsysUserRoleViewModel : BaseViewModel
  9. {
  10. public Guid C_UserCode { get; set; }
  11. public Guid C_RoleCode { get; set; }
  12. }
  13. public class TsysRolePrivViewModel : BaseViewModel
  14. {
  15. public Guid C_RoleCode { get; set; }
  16. public string C_PrivilegeCode { get; set; }
  17. public Guid C_CreateBy { get; set; }
  18. public DateTime D_CreateOn { get; set; }
  19. public int? I_Type { get; set; }
  20. }
  21. public class RolePrivViewModel : BaseViewModel
  22. {
  23. public IEnumerable<RolePrivTree> RolePrivS { get; set; }
  24. public string RoleCode { get; set; }
  25. }
  26. public class RolePrivTree
  27. {
  28. public string C_Code { get; set; }
  29. public string C_ParentCode { get; set; }
  30. public string C_Module { get; set; }
  31. public string C_Type { get; set; }
  32. public string C_Name { get; set; }
  33. public int? I_Sort { get; set; }
  34. public string C_ImageUrl { get; set; }
  35. public string C_PageUrl { get; set; }
  36. public string C_Remark { get; set; }
  37. public List<RolePrivTree> Children { get; set; }
  38. public bool Open { get; set; } = true;
  39. }
  40. }