csharp.json 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. {
  2. "data": [
  3. {
  4. "expression": "${pk}",
  5. "text": "",
  6. "children": [
  7. {
  8. "expression": "${pk.columnName}",
  9. "text": "主键表字段名"
  10. },
  11. {
  12. "expression": "${pk.type}",
  13. "text": "主键数据库类型"
  14. },
  15. {
  16. "expression": "${pk.javaFieldName}",
  17. "text": "主键java字段名"
  18. },
  19. {
  20. "expression": "${pk.javaFieldNameUF}",
  21. "text": "主键java字段名首字母大写"
  22. },
  23. {
  24. "expression": "${pk.javaType}",
  25. "text": "主键字段的java类型"
  26. },
  27. {
  28. "expression": "${pk.javaTypeBox}",
  29. "text": "主键字段的java装箱类型,如Integer"
  30. },
  31. {
  32. "expression": "${pk.isIdentity}",
  33. "text": "是否自增,返回boolean"
  34. },
  35. {
  36. "expression": "${pk.mybatisJdbcType}",
  37. "text": "mybatis定义的jdbcType"
  38. },
  39. {
  40. "expression": "${pk.comment}",
  41. "text": "主键字段注释"
  42. }
  43. ]
  44. },
  45. {
  46. "expression": "${context}",
  47. "text": "",
  48. "children": [
  49. {
  50. "expression": "${context.dbName}",
  51. "text": "数据库名"
  52. },
  53. {
  54. "expression": "${context.className}",
  55. "text": "类名"
  56. },
  57. {
  58. "expression": "${context.packageName}",
  59. "text": "namespace"
  60. },
  61. {
  62. "expression": "${context.pkName}",
  63. "text": "表主键名"
  64. }
  65. ]
  66. },
  67. {
  68. "expression": "${table}",
  69. "text": "",
  70. "children": [
  71. {
  72. "expression": "${table.tableName}",
  73. "text": "数据库表名"
  74. },
  75. {
  76. "expression": "${table.comment}",
  77. "text": "表注释"
  78. }
  79. ]
  80. },
  81. {
  82. "expression": "#foreach($column in $csharpColumns) #end",
  83. "text": "",
  84. "children": [
  85. {
  86. "expression": "${velocityCount}",
  87. "text": "foreach循环下标,从1开始"
  88. },
  89. {
  90. "expression": "${column.columnName}",
  91. "text": "表中字段名"
  92. },
  93. {
  94. "expression": "${column.type}",
  95. "text": "字段的数据库类型"
  96. },
  97. {
  98. "expression": "${column.field}",
  99. "text": "字段名"
  100. },
  101. {
  102. "expression": "${column.property}",
  103. "text": "属性名"
  104. },
  105. {
  106. "expression": "${column.fieldType}",
  107. "text": "字段类型"
  108. },
  109. {
  110. "expression": "${column.isIdentity}",
  111. "text": "是否自增,返回boolean"
  112. },
  113. {
  114. "expression": "${column.isPk}",
  115. "text": "是否主键,返回boolean"
  116. },
  117. {
  118. "expression": "${column.isIdentityPk}",
  119. "text": "是否自增主键,返回boolean"
  120. },
  121. {
  122. "expression": "${column.comment}",
  123. "text": "字段注释"
  124. }
  125. ]
  126. }
  127. ]
  128. }