[关闭]
@apis1990 2016-08-14T03:42:19.000000Z 字数 5410 阅读 1056

v2-教练端


获取教练端学员订单列表


1.URL:/service/api/v2/coachuser/get_coach_student_orders.php

测试地址:http://36.33.24.119:8081/api/v2/coachuser/get_coach_student_orders.php

2.请求方式:POST

3.请求参数:

参数 类型 是否必须 描述
coach_id int yes 教练ID(101)
status int yes 订单状态(1)
page int yes 分页(1)

5.接口返回结果

  1. {
  2. "code": 200,
  3. "data": [
  4. {
  5. "user_id": "11843", // 用户ID
  6. "user_name": "王平", //用户名
  7. "user_phone": "18804607136", // 用户号码
  8. "photo_id": "10", // 学员头像
  9. "order_no": "2016021499554810", //订单号
  10. "order_id": "2299", // 订单ID
  11. "order_status": "1", // 订单状态
  12. "order_status_title": "已付款", //
  13. "appoint_time": "2016-02-15", // 预约时间
  14. "order_time": "1455447724", // 订单时间戳
  15. "coach_id": "101", // 教练ID
  16. "money": "130.00", // 总价
  17. "pay_type": "2", // 支付方式
  18. "pay_type_title": "线下支付",
  19. "licence": "C1", // 牌照
  20. "lesson": "科目二", // 科目
  21. "appoint_period": [ // 时间段
  22. "9:00-10:00"
  23. ],
  24. "pay_time_limit": 180, // 支付限时(3分钟)
  25. "coach_comment": "", // 教练评价
  26. "is_student_commented": 0, // 是否学员已评价 (1:已评价 0:未评价)
  27. "student_comment": "", // 学员评价
  28. "cancel_type": "0", // 1:学员端取消 2:教练端取消
  29. "cancel_reason": "" // 取消原因
  30. },
  31. {
  32. "user_id": "10079",
  33. "user_name": "黎连英",
  34. "user_phone": "15878072741",
  35. "photo_id": "10", // 学员头像
  36. "order_no": "2016021454535450",
  37. "order_id": "2276",
  38. "order_status": "1",
  39. "order_status_title": "已付款",
  40. "appoint_time": "2016-02-15",
  41. "order_time": "1455423894",
  42. "coach_id": "101",
  43. "money": "130.00",
  44. "pay_type": "2",
  45. "pay_type_title": "线下支付",
  46. "licence": "C1",
  47. "lesson": "科目二",
  48. "appoint_period": [
  49. "14:00-15:00"
  50. ],
  51. "pay_time_limit": 180,
  52. "coach_comment": "",
  53. "is_student_commented": 0,
  54. "student_comment": "",
  55. "cancel_type": "0",
  56. "cancel_reason": ""
  57. },
  58. {
  59. "user_id": "7863",
  60. "user_name": "雷令寿",
  61. "user_phone": "18007744508",
  62. "photo_id": "10", // 学员头像
  63. "order_no": "2016021456509951",
  64. "order_id": "2272",
  65. "order_status": "1",
  66. "order_status_title": "已付款",
  67. "appoint_time": "2016-02-15",
  68. "order_time": "1455422456",
  69. "coach_id": "101",
  70. "money": "260.00",
  71. "pay_type": "2",
  72. "pay_type_title": "线下支付",
  73. "licence": "C1",
  74. "lesson": "科目二",
  75. "appoint_period": [
  76. "15:00-16:00",
  77. "16:00-17:00"
  78. ],
  79. "pay_time_limit": 180,
  80. "coach_comment": "",
  81. "is_student_commented": 0,
  82. "student_comment": "",
  83. "cancel_type": "0",
  84. "cancel_reason": ""
  85. },
  86. {
  87. "user_id": "7857",
  88. "user_name": "陈婉丽",
  89. "user_phone": "13878481266",
  90. "photo_id": "10", // 学员头像
  91. "order_no": "2016021498509951",
  92. "order_id": "2271",
  93. "order_status": "1",
  94. "order_status_title": "已付款",
  95. "appoint_time": "2016-02-15",
  96. "order_time": "1455422427",
  97. "coach_id": "101",
  98. "money": "260.00",
  99. "pay_type": "2",
  100. "pay_type_title": "线下支付",
  101. "licence": "C1",
  102. "lesson": "科目二",
  103. "appoint_period": [
  104. "10:00-11:00",
  105. "11:00-12:00"
  106. ],
  107. "pay_time_limit": 180,
  108. "coach_comment": "",
  109. "is_student_commented": 0,
  110. "student_comment": "",
  111. "cancel_type": "0",
  112. "cancel_reason": ""
  113. },
  114. {
  115. "user_id": "7863",
  116. "user_name": "雷令寿",
  117. "user_phone": "18007744508",
  118. "photo_id": "10", // 学员头像
  119. "order_no": "2016021354545655",
  120. "order_id": "2258",
  121. "order_status": "1",
  122. "order_status_title": "已付款",
  123. "appoint_time": "2016-02-14",
  124. "order_time": "1455376326",
  125. "coach_id": "101",
  126. "money": "130.00",
  127. "pay_type": "2",
  128. "pay_type_title": "线下支付",
  129. "licence": "C1",
  130. "lesson": "科目二",
  131. "appoint_period": [
  132. "18:00-19:00"
  133. ],
  134. "pay_time_limit": 180,
  135. "coach_comment": "",
  136. "is_student_commented": 0,
  137. "student_comment": "",
  138. "cancel_type": "0",
  139. "cancel_reason": ""
  140. },
  141. {
  142. "user_id": "7863",
  143. "user_name": "雷令寿",
  144. "user_phone": "18007744508",
  145. "photo_id": "10", // 学员头像
  146. "order_no": "2016021348514999",
  147. "order_id": "2238",
  148. "order_status": "1",
  149. "order_status_title": "已付款",
  150. "appoint_time": "2016-02-14",
  151. "order_time": "1455343296",
  152. "coach_id": "101",
  153. "money": "260.00",
  154. "pay_type": "2",
  155. "pay_type_title": "线下支付",
  156. "licence": "C1",
  157. "lesson": "科目二",
  158. "appoint_period": [
  159. "19:00-20:00",
  160. "20:00-21:00"
  161. ],
  162. "pay_time_limit": 180,
  163. "coach_comment": "",
  164. "is_student_commented": 0,
  165. "student_comment": "",
  166. "cancel_type": "0",
  167. "cancel_reason": ""
  168. },
  169. {
  170. "user_id": "9741",
  171. "user_name": "胡家榕",
  172. "user_phone": "13877413977",
  173. "photo_id": "10", // 学员头像
  174. "order_no": "2016021355985456",
  175. "order_id": "2237",
  176. "order_status": "1",
  177. "order_status_title": "已付款",
  178. "appoint_time": "2016-02-14",
  179. "order_time": "1455343255",
  180. "coach_id": "101",
  181. "money": "130.00",
  182. "pay_type": "2",
  183. "pay_type_title": "线下支付",
  184. "licence": "C1",
  185. "lesson": "科目二",
  186. "appoint_period": [
  187. "14:00-15:00"
  188. ],
  189. "pay_time_limit": 180,
  190. "coach_comment": "",
  191. "is_student_commented": 0,
  192. "student_comment": "",
  193. "cancel_type": "0",
  194. "cancel_reason": ""
  195. },
  196. {
  197. "user_id": "7393",
  198. "user_name": "谢锦昌",
  199. "user_phone": "15278468041",
  200. "photo_id": "10", // 学员头像
  201. "order_no": "2016021353985054",
  202. "order_id": "2235",
  203. "order_status": "1",
  204. "order_status_title": "已付款",
  205. "appoint_time": "2016-02-14",
  206. "order_time": "1455343237",
  207. "coach_id": "101",
  208. "money": "260.00",
  209. "pay_type": "2",
  210. "pay_type_title": "线下支付",
  211. "licence": "C1",
  212. "lesson": "科目二",
  213. "appoint_period": [
  214. "15:00-16:00",
  215. "16:00-17:00"
  216. ],
  217. "pay_time_limit": 180,
  218. "coach_comment": "",
  219. "is_student_commented": 0,
  220. "student_comment": "",
  221. "cancel_type": "0",
  222. "cancel_reason": ""
  223. },
  224. {
  225. "user_id": "7857",
  226. "user_name": "陈婉丽",
  227. "user_phone": "13878481266",
  228. "photo_id": "10", // 学员头像
  229. "order_no": "2016020150100555",
  230. "order_id": "2112",
  231. "order_status": "1",
  232. "order_status_title": "已付款",
  233. "appoint_time": "2016-02-04",
  234. "order_time": "1454299778",
  235. "coach_id": "101",
  236. "money": "130.00",
  237. "pay_type": "2",
  238. "pay_type_title": "线下支付",
  239. "licence": "C1",
  240. "lesson": "科目二",
  241. "appoint_period": [
  242. "14:00-15:00"
  243. ],
  244. "pay_time_limit": 180,
  245. "coach_comment": "",
  246. "is_student_commented": 0,
  247. "student_comment": "",
  248. "cancel_type": "0",
  249. "cancel_reason": ""
  250. },
  251. {
  252. "user_id": "7393",
  253. "user_name": "谢锦昌",
  254. "user_phone": "15278468041",
  255. "photo_id": "10", // 学员头像
  256. "order_no": "2016020153101501",
  257. "order_id": "2110",
  258. "order_status": "1",
  259. "order_status_title": "已付款",
  260. "appoint_time": "2016-02-03",
  261. "order_time": "1454299301",
  262. "coach_id": "101",
  263. "money": "260.00",
  264. "pay_type": "2",
  265. "pay_type_title": "线下支付",
  266. "licence": "C1",
  267. "lesson": "科目二",
  268. "appoint_period": [
  269. "20:00-21:00",
  270. "21:00-22:00"
  271. ],
  272. "pay_time_limit": 180,
  273. "coach_comment": "",
  274. "is_student_commented": 0,
  275. "student_comment": "",
  276. "cancel_type": "0",
  277. "cancel_reason": ""
  278. }
  279. ]
  280. }
添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注