接口描述:

  • 获取指定Id下的所有子节点(包含本身)。

请求 URL:

  • http|https://host/api/v1/region/method/get.region.son.list/

请求方式:

  • GET
  • POST

是否授权:

业务参数:

参数名 类型 是否必须 范围值 默认值 示例值 描述
region_id integer gt[]:0 [123,125] 区域编号
region_all integer in:0,1 0 0 包括已删除区域 0=否 1=是

响应参数:

参数名 类型 是否返回 示例值 描述
status integer 200 状态码
message string success 消息信息
data array [] 返回数组
data 类型 是否返回 示例值 描述
region_id integer 123 区域编号
parent_id integer 12 父区域编号
region_name string 杭州市 区域名称
sort integer 50 区域排序值

响应示例:

  1. {
  2. "status": 200,
  3. "message": "success",
  4. "data": [
  5. {
  6. "region_id": 123,
  7. "parent_id": 12,
  8. "region_name": "杭州市",
  9. "sort": 50
  10. },
  11. {
  12. "region_id": 1362,
  13. "parent_id": 123,
  14. "region_name": "上城区",
  15. "sort": 50
  16. },
  17. {
  18. "region_id": 1363,
  19. "parent_id": 123,
  20. "region_name": "下城区",
  21. "sort": 50
  22. },
  23. {
  24. "region_id": 1364,
  25. "parent_id": 123,
  26. "region_name": "江干区",
  27. "sort": 50
  28. },
  29. {
  30. "region_id": 1365,
  31. "parent_id": 123,
  32. "region_name": "拱墅区",
  33. "sort": 50
  34. },
  35. {
  36. "region_id": 1366,
  37. "parent_id": 123,
  38. "region_name": "西湖区",
  39. "sort": 50
  40. },
  41. {
  42. "region_id": 1367,
  43. "parent_id": 123,
  44. "region_name": "滨江区",
  45. "sort": 50
  46. },
  47. {
  48. "region_id": 1368,
  49. "parent_id": 123,
  50. "region_name": "萧山区",
  51. "sort": 50
  52. },
  53. {
  54. "region_id": 1369,
  55. "parent_id": 123,
  56. "region_name": "余杭区",
  57. "sort": 50
  58. },
  59. {
  60. "region_id": 1370,
  61. "parent_id": 123,
  62. "region_name": "桐庐县",
  63. "sort": 50
  64. },
  65. {
  66. "region_id": 1371,
  67. "parent_id": 123,
  68. "region_name": "淳安县",
  69. "sort": 50
  70. },
  71. {
  72. "region_id": 1372,
  73. "parent_id": 123,
  74. "region_name": "建德市",
  75. "sort": 50
  76. },
  77. {
  78. "region_id": 1373,
  79. "parent_id": 123,
  80. "region_name": "富阳区",
  81. "sort": 50
  82. },
  83. {
  84. "region_id": 1374,
  85. "parent_id": 123,
  86. "region_name": "临安市",
  87. "sort": 50
  88. },
  89. {
  90. "region_id": 1375,
  91. "parent_id": 123,
  92. "region_name": "其它区",
  93. "sort": 50
  94. },
  95. {
  96. "region_id": 125,
  97. "parent_id": 12,
  98. "region_name": "温州市",
  99. "sort": 50
  100. },
  101. {
  102. "region_id": 1388,
  103. "parent_id": 125,
  104. "region_name": "鹿城区",
  105. "sort": 50
  106. },
  107. {
  108. "region_id": 1389,
  109. "parent_id": 125,
  110. "region_name": "龙湾区",
  111. "sort": 50
  112. },
  113. {
  114. "region_id": 1390,
  115. "parent_id": 125,
  116. "region_name": "瓯海区",
  117. "sort": 50
  118. },
  119. {
  120. "region_id": 1391,
  121. "parent_id": 125,
  122. "region_name": "洞头县",
  123. "sort": 50
  124. },
  125. {
  126. "region_id": 1392,
  127. "parent_id": 125,
  128. "region_name": "永嘉县",
  129. "sort": 50
  130. },
  131. {
  132. "region_id": 1393,
  133. "parent_id": 125,
  134. "region_name": "平阳县",
  135. "sort": 50
  136. },
  137. {
  138. "region_id": 1394,
  139. "parent_id": 125,
  140. "region_name": "苍南县",
  141. "sort": 50
  142. },
  143. {
  144. "region_id": 1395,
  145. "parent_id": 125,
  146. "region_name": "文成县",
  147. "sort": 50
  148. },
  149. {
  150. "region_id": 1396,
  151. "parent_id": 125,
  152. "region_name": "泰顺县",
  153. "sort": 50
  154. },
  155. {
  156. "region_id": 1397,
  157. "parent_id": 125,
  158. "region_name": "瑞安市",
  159. "sort": 50
  160. },
  161. {
  162. "region_id": 1398,
  163. "parent_id": 125,
  164. "region_name": "乐清市",
  165. "sort": 50
  166. },
  167. {
  168. "region_id": 1399,
  169. "parent_id": 125,
  170. "region_name": "其它区",
  171. "sort": 50
  172. }
  173. ]
  174. }

备注:

文档更新时间: 2018-05-21 20:52