template_service.json 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183
  1. {
  2. "templateName":"服务",
  3. "templateCode":"service",
  4. "templateKey":"serviceId",
  5. "templateKeyName":"服务ID",
  6. "searchCode": "name",
  7. "searchName": "服务名称",
  8. "conditions": [
  9. {
  10. "name": "应用名称",
  11. "inputType": "choose",
  12. "componentName": "chooseApp",
  13. "code": "appName",
  14. "key": "appId",
  15. "whereCondition": "equal"
  16. },
  17. {
  18. "name": "服务名称",
  19. "inputType": "input",
  20. "code": "serviceName",
  21. "whereCondition": "like"
  22. },
  23. {
  24. "name": "服务编码",
  25. "inputType": "input",
  26. "code": "serviceCode",
  27. "whereCondition": "like"
  28. },
  29. {
  30. "name": "调用地址",
  31. "inputType": "input",
  32. "code": "serviceUrl",
  33. "whereCondition": "like"
  34. }
  35. ],
  36. "columns":[
  37. {
  38. "code":"name",
  39. "cnCode":"服务名称",
  40. "desc":"必填,请填写服务名称",
  41. "required":true,
  42. "hasDefaultValue":false,
  43. "inputType":"input",
  44. "limit":"maxLength",
  45. "limitParam":"50",
  46. "limitErrInfo":"服务名称不能超过50",
  47. "show": true
  48. },
  49. {
  50. "code":"serviceCode",
  51. "cnCode":"服务编码",
  52. "desc":"必填,请填写服务编码如 service.saveService",
  53. "required":true,
  54. "hasDefaultValue":false,
  55. "inputType":"input",
  56. "limit":"maxin",
  57. "limitParam":"2,50",
  58. "limitErrInfo":"服务编码必须在2至50字符之间",
  59. "show": true
  60. },
  61. {
  62. "code":"businessTypeCd",
  63. "cnCode":"秘钥",
  64. "desc":"可填,请填写秘钥,如果填写了需要加密传输",
  65. "required":true,
  66. "hasDefaultValue":true,
  67. "defaultValue":"API",
  68. "inputType":"none",
  69. "limit":"maxin",
  70. "limitParam":"2,4",
  71. "limitErrInfo":"业务类型必须为API",
  72. "show": false
  73. },
  74. {
  75. "code":"seq",
  76. "cnCode":"序列",
  77. "desc":"必填,请填写序列",
  78. "required":true,
  79. "hasDefaultValue":true,
  80. "defaultValue":"1",
  81. "inputType":"none",
  82. "limit":"maxLength",
  83. "limitParam":"1",
  84. "limitErrInfo":"序列格式错误",
  85. "show": false
  86. },
  87. {
  88. "code":"messageQueueName",
  89. "cnCode":"消息队列",
  90. "desc":"可填,请填写消息队列,订单在异步调用时使用",
  91. "required":false,
  92. "hasDefaultValue":false,
  93. "defaultValue":"",
  94. "inputType":"input",
  95. "limit":"maxLength",
  96. "limitParam":"50",
  97. "limitErrInfo":"消息队列不能超过50",
  98. "show": true
  99. },
  100. {
  101. "code":"isInstance",
  102. "cnCode":"是否实例",
  103. "desc":"可填,请填写实例 Y 或N",
  104. "required":true,
  105. "hasDefaultValue":true,
  106. "defaultValue":"Y",
  107. "inputType":"input",
  108. "limit":"maxLength",
  109. "limitParam":"50",
  110. "limitErrInfo":"实例不能超过50",
  111. "show": false
  112. }
  113. ,
  114. {
  115. "code":"url",
  116. "cnCode":"调用地址",
  117. "desc":"可填,请填写调用地址",
  118. "required":false,
  119. "hasDefaultValue":true,
  120. "defaultValue":"http://order-service/orderApi/service",
  121. "inputType":"input",
  122. "limit":"maxLength",
  123. "limitParam":"200",
  124. "limitErrInfo":"调用地址不能超过200",
  125. "show": true
  126. },
  127. {
  128. "code":"method",
  129. "cnCode":"调用方式",
  130. "desc":"必填,请填写调用方式",
  131. "required":true,
  132. "hasDefaultValue":false,
  133. "inputType":"select",
  134. "selectValue":"GET,POST",
  135. "selectValueName":"http get,http post",
  136. "limit":"maxLength",
  137. "limitParam":"50",
  138. "limitErrInfo":"调用方式不能超过50",
  139. "show": true
  140. },
  141. {
  142. "code":"timeout",
  143. "cnCode":"超时时间",
  144. "desc":"必填,请填写超时时间",
  145. "required":true,
  146. "hasDefaultValue":true,
  147. "defaultValue":"60",
  148. "inputType":"input",
  149. "limit":"num",
  150. "limitParam":"",
  151. "limitErrInfo":"超时时间必须为数字",
  152. "show": false
  153. },
  154. {
  155. "code":"retryCount",
  156. "cnCode":"重试次数",
  157. "desc":"必填,请填写重试次数",
  158. "required":true,
  159. "hasDefaultValue":true,
  160. "defaultValue":"3",
  161. "inputType":"input",
  162. "limit":"num",
  163. "limitParam":"",
  164. "limitErrInfo":"重试次数必须为数字",
  165. "show": false
  166. },
  167. {
  168. "code":"provideAppId",
  169. "cnCode":"提供服务",
  170. "desc":"必填,请填写提供服务",
  171. "required":true,
  172. "hasDefaultValue":true,
  173. "defaultValue":"8000418002",
  174. "inputType":"none",
  175. "limit":"num",
  176. "limitParam":"",
  177. "limitErrInfo":"重试次数必须为数字",
  178. "show": false
  179. }
  180. ]
  181. }