ACIModels.cs 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. using System.Collections.Generic;
  2. namespace Wicture.DbRESTFul.PMT.Models
  3. {
  4. public class ACIModels
  5. {
  6. }
  7. public class Parameter
  8. {
  9. public string name { get; set; }
  10. public string type { get; set; }
  11. public bool nullable { get; set; } = false;
  12. public string description { get; set; }
  13. }
  14. public class ApiCreateData
  15. {
  16. public bool allowAnonymous { get; set; } = false;
  17. public string Cache { get; set; } = "{\"enabled\":false,\"type\":\"redis\",\"expiration\":300}";
  18. public string implementation { get; set; }
  19. public bool implemented { get; set; } = true;
  20. public string method { get; set; }
  21. public string mock { get; set; } = "[]";
  22. public string module { get; set; }
  23. public int moduleId { get; set; }
  24. public string Name { get; set; }
  25. public string note { get; set; }
  26. public string owner { get; set; }
  27. public string parameter { get; set; }
  28. public int projectId { get; set; }
  29. public string result { get; set; }
  30. public string summary { get; set; }
  31. public string title { get; set; }
  32. public string url { get; set; }
  33. public bool useAbsoluteUrl { get; set; } = false;
  34. public string version { get; set; } = "1.0.0";
  35. public string protocol { get; set; }
  36. public bool deprecated { get; set; } = false;
  37. }
  38. public class CsiCreateData
  39. {
  40. public string code { get; set; } = "";
  41. public bool isCodeObject { get; set; } = false;
  42. public string middleWares { get; set; } = "{}";
  43. public int moduleId { get; set; }
  44. public string module { get; set; }
  45. public string name { get; set; }
  46. public bool queryOnly { get; set; }
  47. public int projectId { get; set; }
  48. public string rawCode { get; set; }
  49. public bool requiredTransaction { get; set; }
  50. public string resultSet { get; set; }
  51. }
  52. public class Module
  53. {
  54. public int ModuleId { get; set; }
  55. public string ModuleName { get; set; }
  56. }
  57. public class Methods
  58. {
  59. public Method Title { get; set; }
  60. }
  61. public enum Method
  62. {
  63. Get,
  64. List,
  65. Create,
  66. Update,
  67. Delete
  68. }
  69. public class ACIData
  70. {
  71. public string TableName { get; set; }
  72. public string ColumnName { get; set; }
  73. public string Key { get; set; }
  74. }
  75. public class DefaultACIColumn
  76. {
  77. public string title { get; set; }
  78. public string table { get; set; }
  79. public string name { get; set; }
  80. public string type { get; set; }
  81. public string description { get; set; }
  82. public string @default { get; set; }
  83. public bool primary_key { get; set; }
  84. public bool nullable { get; set; }
  85. }
  86. public class DefaultACITable
  87. {
  88. public string title { get; set; }
  89. public string name { get; set; }
  90. public string description { get; set; }
  91. public List<DefaultACIColumn> columns { get; set; }
  92. }
  93. }