GenTableDto.cs 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. using ZR.Model.System.Generate;
  2. namespace ZR.Model.System.Dto
  3. {
  4. public class GenTableDto
  5. {
  6. public int TableId { get; set; }
  7. public string TableName { get; set; }
  8. public string TableComment { get; set; }
  9. public string SubTableName { get; set; }
  10. public string SubTableFkName { get; set; }
  11. public string ClassName { get; set; }
  12. public string TplCategory { get; set; }
  13. public string BaseNameSpace { get; set; }
  14. public string ModuleName { get; set; }
  15. public string BusinessName { get; set; }
  16. public string FunctionName { get; set; }
  17. public string FunctionAuthor { get; set; }
  18. public string GenType { get; set; }
  19. public string GenPath { get; set; }
  20. //public string PermissionPrefix { get; set; }
  21. public string Remark { get; set; }
  22. /// <summary>
  23. /// 额外参数
  24. /// </summary>
  25. public CodeOptions Params { get; set; }
  26. public List<GenTableColumnDto> Columns { get; set; }
  27. }
  28. public class GenTableColumnDto
  29. {
  30. public int ColumnId { get; set; }
  31. public int TableId { get; set; }
  32. public string ColumnComment { get; set; }
  33. public string CsharpType { get; set; }
  34. public string CsharpField { get; set; }
  35. public bool IsInsert { get; set; }
  36. public bool IsEdit { get; set; }
  37. public bool IsList { get; set; }
  38. public bool IsQuery { get; set; }
  39. public bool IsSort { get; set; }
  40. public bool IsRequired { get; set; }
  41. public bool IsExport { get; set; }
  42. /// <summary>
  43. /// 显示类型(文本框、文本域、下拉框、复选框、单选框、日期控件)
  44. /// </summary>
  45. public string HtmlType { get; set; }
  46. /// <summary>
  47. /// 查询类型(等于、不等于、大于、小于、范围)
  48. /// </summary>
  49. public string QueryType { get; set; } = "EQ";
  50. public int Sort { get; set; }
  51. /// <summary>
  52. /// 字典类型
  53. /// </summary>
  54. public string DictType { get; set; }
  55. /// <summary>
  56. /// 备注
  57. /// </summary>
  58. public string Remark { get; set; }
  59. /// <summary>
  60. /// 自动填充类型
  61. /// </summary>
  62. public int? AutoFillType { get; set; }
  63. }
  64. }