csharp.json 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  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.delPrefix}",
  63. "text": "删除前缀"
  64. },
  65. {
  66. "expression": "${context.pkName}",
  67. "text": "表主键名"
  68. },
  69. {
  70. "expression": "${context.datetime}",
  71. "text": "日期时间,年月日时分秒"
  72. },
  73. {
  74. "expression": "${context.date}",
  75. "text": "日期,年月日"
  76. },
  77. {
  78. "expression": "${context.time}",
  79. "text": "时间,时分秒"
  80. }
  81. ]
  82. },
  83. {
  84. "expression": "${table}",
  85. "text": "",
  86. "children": [
  87. {
  88. "expression": "${table.tableName}",
  89. "text": "数据库表名"
  90. },
  91. {
  92. "expression": "${table.comment}",
  93. "text": "表注释"
  94. },
  95. {
  96. "expression": "${table.schema}",
  97. "text": "PostgreSQL中的Schema"
  98. }
  99. ]
  100. },
  101. {
  102. "expression": "#foreach($column in $csharpColumns) #end",
  103. "text": "",
  104. "children": [
  105. {
  106. "expression": "${velocityCount}",
  107. "text": "foreach循环下标,从1开始"
  108. },
  109. {
  110. "expression": "${column.columnName}",
  111. "text": "表中字段名"
  112. },
  113. {
  114. "expression": "${column.type}",
  115. "text": "字段的数据库类型"
  116. },
  117. {
  118. "expression": "${column.field}",
  119. "text": "字段名"
  120. },
  121. {
  122. "expression": "${column.property}",
  123. "text": "属性名"
  124. },
  125. {
  126. "expression": "${column.fieldType}",
  127. "text": "字段类型"
  128. },
  129. {
  130. "expression": "${column.isIdentity}",
  131. "text": "是否自增,返回boolean"
  132. },
  133. {
  134. "expression": "${column.isPk}",
  135. "text": "是否主键,返回boolean"
  136. },
  137. {
  138. "expression": "${column.isIdentityPk}",
  139. "text": "是否自增主键,返回boolean"
  140. },
  141. {
  142. "expression": "${column.comment}",
  143. "text": "字段注释"
  144. }
  145. ]
  146. }
  147. ]
  148. }