template_1.json 3.7 KB

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