appCtorParamsJsonSchema.json 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181
  1. {
  2. "$schema": "http://json-schema.org/draft-04/schema",
  3. "title": "主配置",
  4. "type": "object",
  5. "required": [
  6. "UITemplateVersion",
  7. "PosId",
  8. "Username",
  9. "Password",
  10. "AuthServiceBaseUrl",
  11. "TransactionServiceBaseUrl",
  12. "DiscountServiceBaseUrl",
  13. "OnlineDiscount",
  14. "DiscountTimeout",
  15. "DeviceSN",
  16. "PromoCategories",
  17. "FuelMappingArr",
  18. "CardAppType",
  19. "ReservedBalance",
  20. "PumpMode",
  21. "Interval",
  22. "ConnectionString",
  23. "StationNo",
  24. "StationName"
  25. ],
  26. "format": "table",
  27. "properties": {
  28. "UITemplateVersion": {
  29. "type": "string",
  30. "readOnly": true,
  31. "default": "1.0",
  32. "format": "hidden",
  33. "options": {
  34. "compact": true
  35. }
  36. },
  37. "PosId": {
  38. "type": "integer",
  39. "title": "lang-zh-ch:POS编号lang-en-us:Id of POS App",
  40. "default": 1
  41. },
  42. "Username": {
  43. "type": "string",
  44. "title": "lang-zh-ch:云端用户名lang-en-us:User name of cloud",
  45. "default": "888"
  46. },
  47. "Password": {
  48. "type": "string",
  49. "title": "lang-zh-ch:云端用户密码lang-en-us:User password of cloud.",
  50. "default": "999999"
  51. },
  52. "AuthServiceBaseUrl": {
  53. "type": "string",
  54. "title": "lang-zh-ch:认证服务基础URL lang-en-us:Base URL of Authorization Service",
  55. "default": "http://localhost:8698/"
  56. },
  57. "TransactionServiceBaseUrl": {
  58. "type": "string",
  59. "title": "lang-zh-ch:交易服务基础URL lang-en-us:Base URL of Transaction Service",
  60. "default": "http://localhost:8698/"
  61. },
  62. "DiscountServiceBaseUrl": {
  63. "type": "string",
  64. "title": "lang-zh-ch:折扣服务基础URL lang-en-us:Base URL of Discount Service",
  65. "default": "http://localhost:8698/"
  66. },
  67. "OnlineDiscount": {
  68. "type": "boolean",
  69. "title": "lang-zh-ch:是否应用在线IC卡折扣lang-en-us:Online IC card discount or NOT",
  70. "default": "true"
  71. },
  72. "DiscountTimeout": {
  73. "type": "integer",
  74. "title": "lang-zh-ch:在线计算折扣的超时时间(单位:秒)lang-en-us:Online discount timeout (in seconds)",
  75. "default": "20"
  76. },
  77. "DeviceSN": {
  78. "type": "string",
  79. "title": "lang-zh-ch:虚拟设备编号(GUID)lang-en-us:Device SN (GUID) of iPosApp instance",
  80. "default": "1F30394A-C902-4953-9E68-9E7AD201A091"
  81. },
  82. "PromoCategories": {
  83. "type": "string",
  84. "title": "lang-zh-ch:适用折扣的商品类别lang-en-us:Product category applicable for discount",
  85. "default": ""
  86. },
  87. "FuelMappingArr": {
  88. "type": "array",
  89. "minItems": 1,
  90. "format": "tabs",
  91. "uniqueItems": true,
  92. "title": "lang-zh-ch:油品映射lang-en-us:Fuel barcode and product code mapping for Sps",
  93. "items": {
  94. "type": "object",
  95. "title": "lang-zh-ch:油品编码映射lang-en-us:Fuel Mapping",
  96. "headerTemplate": "{{ self.Barcode }} <-> {{ self.FuelNo }}",
  97. "required": [ "Barcode", "FuelNo" ],
  98. "properties": {
  99. "Barcode": {
  100. "type": "integer",
  101. "title": "lang-zh-ch:油品编号lang-en-us:Fuel barcode"
  102. },
  103. "FuelNo": {
  104. "type": "string",
  105. "title": "lang-zh-ch:后台油品lang-en-us:Fuel product code(e.g. 2001, 1021, 1040, 1090)"
  106. }
  107. }
  108. }
  109. },
  110. "CardAppType": {
  111. "type": "integer",
  112. "format": "table",
  113. "title": "lang-zh-ch:卡应用类型,对应UI板中的设置lang-en-us:Card application type, same as on UI Board",
  114. "enum": [ 1, 2 ],
  115. "options": {
  116. "enum_titles": [ "1=感应卡", "2=CPU卡" ]
  117. }
  118. },
  119. "ReservedBalance": {
  120. "type": "integer",
  121. "title": "lang-zh-ch:IC卡保留的余额(此部分无法用于加油),单位:元lang-en-us:Reserved balance of the IC card, which can not be used for fueling, in Yuan",
  122. "default": 0
  123. },
  124. "PumpMode": {
  125. "type": "integer",
  126. "format": "table",
  127. "title": "lang-zh-ch:油机工作模式,例如:卡自助,对应UI板中的设置lang-en-us:Mode of the pump, e.g. Self service, same as on UI Board",
  128. "enum": [ 1, 2 ],
  129. "options": {
  130. "enum_titles": [ "1=卡自助", "2=后台自动授权" ]
  131. }
  132. },
  133. "Interval": {
  134. "type": "integer",
  135. "title": "lang-zh-ch:终端通讯检查间隔lang-en-us:Interval for terminal communication check",
  136. "default": 20
  137. },
  138. "ConnectionString": {
  139. "type": "object",
  140. "title": "lang-zh-ch:后台数据库连接字符串lang-en-us:Connection string against SPS Database",
  141. "required": [
  142. "Server",
  143. "Port",
  144. "Username",
  145. "Password"
  146. ],
  147. "properties": {
  148. "Server": {
  149. "type": "string",
  150. "title": "lang-zh-ch:服务器地址lang-en-us:Database Server IP Address",
  151. "default": "localhost"
  152. },
  153. "Port": {
  154. "type": "integer",
  155. "title": "lang-zh-ch:服务器端口lang-en-us:Database Server Port",
  156. "default": 3306
  157. },
  158. "Username": {
  159. "type": "string",
  160. "title": "lang-zh-ch:用户名lang-en-us:User Name",
  161. "default": "root"
  162. },
  163. "Password": {
  164. "type": "string",
  165. "title": "lang-zh-ch:密码URL lang-en-us:Password",
  166. "default": "***"
  167. }
  168. }
  169. },
  170. "StationNo": {
  171. "type": "integer",
  172. "title": "lang-zh-ch:加油站编号lang-en-us:Station Number",
  173. "default": 20
  174. },
  175. "StationName": {
  176. "type": "string",
  177. "title": "lang-zh-ch:加油站名称lang-en-us:Station Name",
  178. "default": 20
  179. }
  180. }
  181. }