全部产品

获取基础模型类型和贴图面集合(ListPackageDesignModelTypes)

更新时间:2020-04-21 13:21:52

介绍

用于获取基础模型类型及相应的贴图面集合。

应用场景:初始化的时候,前端获取所有的盒型类型和参数。

点击这里进行在线API调试

参数定义

入参: 无

输出:

缩略图与盒型类型的映射表。

字段 类型 描述
modelType string 模型类型,参考没写类型枚举定义
elements List<ModelTypeElement> 盒型可贴图元素名称列表

ModelTypeElement:

字段 类型 是否必须 描述
sideName string 盒型可贴图面片名称

示例:

  1. {
  2. "RequestId": "28D3ED96-8249-4E71-84F0-xxxxxxxxxx",
  3. "Message": "success",
  4. "Data": {
  5. "ModelTypeList": [
  6. {
  7. "ModelType": "ECircleBoxModelType",
  8. "Elements": [
  9. {
  10. "SideName": "mat_lower_body"
  11. },
  12. {
  13. "SideName": "mat_upper_body"
  14. },
  15. {
  16. "SideName": "mat_upper_cap"
  17. }
  18. ]
  19. },
  20. {
  21. "ModelType": "EDoublePlugBoxModelType",
  22. "Elements": [
  23. {
  24. "SideName": "mat_back"
  25. },
  26. {
  27. "SideName": "mat_bottom"
  28. },
  29. {
  30. "SideName": "mat_front"
  31. },
  32. {
  33. "SideName": "mat_left"
  34. },
  35. {
  36. "SideName": "mat_right"
  37. },
  38. {
  39. "SideName": "mat_top"
  40. }
  41. ]
  42. },
  43. {
  44. "ModelType": "EFlipLidBoxModelType",
  45. "Elements": [
  46. {
  47. "SideName": "mat_back"
  48. },
  49. {
  50. "SideName": "mat_bottom"
  51. },
  52. {
  53. "SideName": "mat_front"
  54. },
  55. {
  56. "SideName": "mat_left"
  57. },
  58. {
  59. "SideName": "mat_right"
  60. },
  61. {
  62. "SideName": "mat_top"
  63. }
  64. ]
  65. },
  66. {
  67. "ModelType": "EPullBoxModelType",
  68. "Elements": [
  69. {
  70. "SideName": "mat_bottom"
  71. },
  72. {
  73. "SideName": "mat_left"
  74. },
  75. {
  76. "SideName": "mat_right"
  77. },
  78. {
  79. "SideName": "mat_top"
  80. }
  81. ]
  82. },
  83. {
  84. "ModelType": "EUpBottomBoxModelType",
  85. "Elements": [
  86. {
  87. "SideName": "mat_lower_back"
  88. },
  89. {
  90. "SideName": "mat_lower_bottom"
  91. },
  92. {
  93. "SideName": "mat_lower_front"
  94. },
  95. {
  96. "SideName": "mat_lower_left"
  97. },
  98. {
  99. "SideName": "mat_lower_right"
  100. },
  101. {
  102. "SideName": "mat_upper_back"
  103. },
  104. {
  105. "SideName": "mat_upper_front"
  106. },
  107. {
  108. "SideName": "mat_upper_left"
  109. },
  110. {
  111. "SideName": "mat_upper_right"
  112. },
  113. {
  114. "SideName": "mat_upper_top"
  115. }
  116. ]
  117. },
  118. {
  119. "ModelType": "ECutoutHandleBagModelType",
  120. "Elements": [
  121. {
  122. "SideName": "mat_back"
  123. },
  124. {
  125. "SideName": "mat_bottom"
  126. },
  127. {
  128. "SideName": "mat_front"
  129. },
  130. {
  131. "SideName": "mat_left"
  132. },
  133. {
  134. "SideName": "mat_right"
  135. }
  136. ]
  137. },
  138. {
  139. "ModelType": "EWireHandleBagModelType",
  140. "Elements": [
  141. {
  142. "SideName": "mat_back"
  143. },
  144. {
  145. "SideName": "mat_bottom"
  146. },
  147. {
  148. "SideName": "mat_front"
  149. },
  150. {
  151. "SideName": "mat_left"
  152. },
  153. {
  154. "SideName": "mat_right"
  155. }
  156. ]
  157. },
  158. {
  159. "ModelType": "EDoubleSealedBagModelType",
  160. "Elements": [
  161. {
  162. "SideName": "mat_front"
  163. },
  164. {
  165. "SideName": "mat_back"
  166. }
  167. ]
  168. },
  169. {
  170. "ModelType": "ESingleSealedBagModelType",
  171. "Elements": [
  172. {
  173. "SideName": "mat_back"
  174. },
  175. {
  176. "SideName": "mat_bottom"
  177. },
  178. {
  179. "SideName": "mat_front"
  180. }
  181. ]
  182. }
  183. ]
  184. },
  185. "Code": "0"
  186. }