校园报修.json 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780
  1. {
  2. "project": {
  3. "name": "校园报修",
  4. "description": "",
  5. "details": {
  6. "variable": [],
  7. "servers": [
  8. {
  9. "server_id": "default",
  10. "name": "默认服务"
  11. }
  12. ],
  13. "markList": [
  14. {
  15. "key": "developing",
  16. "name": "开发中",
  17. "color": "#3A86FF",
  18. "is_default": true
  19. },
  20. {
  21. "key": "complated",
  22. "name": "已完成",
  23. "color": "#2BA58F",
  24. "is_default": true
  25. },
  26. {
  27. "key": "modifying",
  28. "name": "需修改",
  29. "color": "#EC4646",
  30. "is_default": true
  31. }
  32. ],
  33. "script": {
  34. "pre_script": "",
  35. "test": ""
  36. },
  37. "request": {
  38. "query": [
  39. {
  40. "is_checked": "1",
  41. "type": "Text",
  42. "key": "",
  43. "value": "",
  44. "description": ""
  45. }
  46. ],
  47. "header": [
  48. {
  49. "is_checked": "1",
  50. "type": "Text",
  51. "key": "",
  52. "value": "",
  53. "description": ""
  54. }
  55. ],
  56. "body": [
  57. {
  58. "is_checked": "1",
  59. "type": "Text",
  60. "key": "",
  61. "value": "",
  62. "description": ""
  63. }
  64. ]
  65. }
  66. }
  67. },
  68. "apis": [
  69. {
  70. "target_type": "folder",
  71. "name": "校园报修管理端",
  72. "mark": "developing",
  73. "sort": 1,
  74. "tags": [],
  75. "request": {
  76. "description": ""
  77. },
  78. "children": [
  79. {
  80. "target_type": "api",
  81. "name": "注册接口",
  82. "mark": "complated",
  83. "sort": 1,
  84. "tags": [],
  85. "method": "POST",
  86. "mock": "{}",
  87. "mock_url": "/repair/api/login/Register",
  88. "request": {
  89. "url": "{{url}}/repair/api/login/Register",
  90. "description": "",
  91. "event": {
  92. "pre_script": "",
  93. "test": ""
  94. },
  95. "body": {
  96. "mode": "json",
  97. "parameter": [
  98. {
  99. "description": "",
  100. "is_checked": 1,
  101. "key": "files",
  102. "type": "File",
  103. "not_null": "1",
  104. "field_type": "File",
  105. "value": "D:\\upload\\3d323299-583e-4765-b9d5-50fdf40cdc1a.jpg"
  106. }
  107. ],
  108. "raw": "{\r\n \"account\": \"admin\",\r\n \"password\": \"123456\",\r\n \"phone\":\"123456789\",\r\n \"username\":\"ceshi\",\r\n \"cardNumber\":\"sdadasdasad\",\r\n \"schoolId\":\"1\"\r\n}",
  109. "raw_para": [],
  110. "raw_schema": []
  111. }
  112. },
  113. "response": {
  114. "success": {
  115. "raw": "",
  116. "parameter": [],
  117. "expect": {
  118. "name": "成功",
  119. "isDefault": -1,
  120. "code": 200,
  121. "contentType": "json",
  122. "verifyType": "mock",
  123. "mock": "{}",
  124. "schema": {
  125. "type": "object"
  126. }
  127. }
  128. },
  129. "error": {
  130. "raw": "",
  131. "parameter": [],
  132. "expect": {
  133. "name": "失败",
  134. "isDefault": -1,
  135. "code": 201,
  136. "contentType": "json",
  137. "verifyType": "mock",
  138. "mock": "",
  139. "schema": {
  140. "type": "object"
  141. }
  142. }
  143. }
  144. },
  145. "children": []
  146. },
  147. {
  148. "target_type": "api",
  149. "name": "系统设置数据查询",
  150. "mark": "complated",
  151. "sort": 2,
  152. "tags": [],
  153. "method": "GET",
  154. "mock": "{}",
  155. "mock_url": "/repair/api/repairSystemSetting/queryRepairSystemSetting",
  156. "request": {
  157. "url": "{{url}}/repair/api/repairSystemSetting/queryRepairSystemSetting",
  158. "description": "",
  159. "event": {
  160. "pre_script": "",
  161. "test": ""
  162. },
  163. "body": {
  164. "mode": "form-data",
  165. "parameter": [],
  166. "raw": "",
  167. "raw_para": [],
  168. "raw_schema": []
  169. },
  170. "header": {
  171. "parameter": [
  172. {
  173. "description": "用户标识",
  174. "field_type": "String",
  175. "is_checked": 1,
  176. "key": "user_head",
  177. "value": "16084D92FEDF19A31AD05ED28073756C3D20D41DA43F8F78FC84ACF77BEDEDB34BEDAE6870358C8A6BCEF6448DA00228",
  178. "not_null": 1,
  179. "type": "Text"
  180. },
  181. {
  182. "description": "token",
  183. "field_type": "String",
  184. "is_checked": 1,
  185. "key": "token",
  186. "value": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJwYXNzd29yZCI6IkI5QUQyOUQ1N0IwMTk0RTU1NDc3NkQ1QzE3QjM1NUM2IiwiZXhwIjoxNjk1NzE2OTU0LCJpYXQiOjE2OTU2MzA1NTQsImFjY291bnQiOiJhZG1pbiJ9.wZPVOkNTWfYHPJ-staSUQKFC8TJQYZIkdV1wNc_8RAE",
  187. "not_null": 1,
  188. "type": "Text"
  189. }
  190. ]
  191. }
  192. },
  193. "response": {
  194. "success": {
  195. "raw": "",
  196. "parameter": [],
  197. "expect": {
  198. "name": "成功",
  199. "isDefault": -1,
  200. "code": 200,
  201. "contentType": "json",
  202. "verifyType": "mock",
  203. "mock": "{}",
  204. "schema": {
  205. "type": "object"
  206. }
  207. }
  208. },
  209. "error": {
  210. "raw": "",
  211. "parameter": [],
  212. "expect": {
  213. "name": "失败",
  214. "isDefault": -1,
  215. "code": 201,
  216. "contentType": "json",
  217. "verifyType": "mock",
  218. "mock": "",
  219. "schema": {
  220. "type": "object"
  221. }
  222. }
  223. }
  224. },
  225. "children": []
  226. },
  227. {
  228. "target_type": "api",
  229. "name": "登录接口",
  230. "mark": "complated",
  231. "sort": 1,
  232. "tags": [],
  233. "method": "POST",
  234. "mock": "{}",
  235. "mock_url": "/repair/api/login/Login",
  236. "request": {
  237. "url": "{{url}}/repair/api/login/Login",
  238. "description": "",
  239. "event": {
  240. "pre_script": "",
  241. "test": ""
  242. },
  243. "body": {
  244. "mode": "json",
  245. "parameter": [
  246. {
  247. "description": "",
  248. "is_checked": 1,
  249. "key": "files",
  250. "type": "File",
  251. "not_null": "1",
  252. "field_type": "File",
  253. "value": "D:\\upload\\3d323299-583e-4765-b9d5-50fdf40cdc1a.jpg"
  254. }
  255. ],
  256. "raw": "{\r\n \"account\":\"admin\",\r\n \"password\":\"123456\"\r\n}",
  257. "raw_para": [],
  258. "raw_schema": []
  259. }
  260. },
  261. "response": {
  262. "success": {
  263. "raw": "",
  264. "parameter": [],
  265. "expect": {
  266. "name": "成功",
  267. "isDefault": -1,
  268. "code": 200,
  269. "contentType": "json",
  270. "verifyType": "mock",
  271. "mock": "{}",
  272. "schema": {
  273. "type": "object"
  274. }
  275. }
  276. },
  277. "error": {
  278. "raw": "",
  279. "parameter": [],
  280. "expect": {
  281. "name": "失败",
  282. "isDefault": -1,
  283. "code": 201,
  284. "contentType": "json",
  285. "verifyType": "mock",
  286. "mock": "",
  287. "schema": {
  288. "type": "object"
  289. }
  290. }
  291. }
  292. },
  293. "children": []
  294. },
  295. {
  296. "target_type": "api",
  297. "name": "报修区域统计",
  298. "mark": "complated",
  299. "sort": 12,
  300. "tags": [],
  301. "method": "GET",
  302. "mock": "{}",
  303. "mock_url": "/repair/api/repairRecord/repairArea",
  304. "request": {
  305. "url": "{{url}}/repair/api/repairRecord/repairArea?state=0&currentPage=1&pageCount=10",
  306. "description": "报修校区统计",
  307. "event": {
  308. "pre_script": "",
  309. "test": ""
  310. },
  311. "body": {
  312. "mode": "form-data",
  313. "parameter": [],
  314. "raw": "",
  315. "raw_para": [],
  316. "raw_schema": []
  317. },
  318. "header": {
  319. "parameter": [
  320. {
  321. "description": "用户标识",
  322. "field_type": "String",
  323. "is_checked": 1,
  324. "key": "user_head",
  325. "value": "16084D92FEDF19A31AD05ED28073756C3D20D41DA43F8F78FC84ACF77BEDEDB34BEDAE6870358C8A6BCEF6448DA00228",
  326. "not_null": 1,
  327. "type": "Text"
  328. },
  329. {
  330. "description": "token",
  331. "field_type": "String",
  332. "is_checked": 1,
  333. "key": "token",
  334. "value": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJwYXNzd29yZCI6IkI5QUQyOUQ1N0IwMTk0RTU1NDc3NkQ1QzE3QjM1NUM2IiwiZXhwIjoxNjk1NzE2OTU0LCJpYXQiOjE2OTU2MzA1NTQsImFjY291bnQiOiJhZG1pbiJ9.wZPVOkNTWfYHPJ-staSUQKFC8TJQYZIkdV1wNc_8RAE",
  335. "not_null": 1,
  336. "type": "Text"
  337. }
  338. ]
  339. },
  340. "query": {
  341. "parameter": [
  342. {
  343. "description": "状态\n全部:0\n本年:1\n本月:2\n本周:3\n今天:4",
  344. "field_type": "Integer",
  345. "is_checked": 1,
  346. "key": "state",
  347. "value": "0",
  348. "not_null": 1,
  349. "type": "Text"
  350. },
  351. {
  352. "description": "页数",
  353. "field_type": "Integer",
  354. "is_checked": 1,
  355. "key": "currentPage",
  356. "value": "1",
  357. "not_null": 1,
  358. "type": "Text"
  359. },
  360. {
  361. "description": "当前页面显示数据条数",
  362. "field_type": "String",
  363. "is_checked": 1,
  364. "key": "pageCount",
  365. "value": "10",
  366. "not_null": 1,
  367. "type": "Text"
  368. }
  369. ]
  370. }
  371. },
  372. "response": {
  373. "success": {
  374. "raw": "",
  375. "parameter": [],
  376. "expect": {
  377. "name": "成功",
  378. "isDefault": -1,
  379. "code": 200,
  380. "contentType": "json",
  381. "verifyType": "mock",
  382. "mock": "{}",
  383. "schema": {
  384. "type": "object"
  385. }
  386. }
  387. },
  388. "error": {
  389. "raw": "",
  390. "parameter": [],
  391. "expect": {
  392. "name": "失败",
  393. "isDefault": -1,
  394. "code": 201,
  395. "contentType": "json",
  396. "verifyType": "mock",
  397. "mock": "",
  398. "schema": {
  399. "type": "object"
  400. }
  401. }
  402. }
  403. },
  404. "children": []
  405. },
  406. {
  407. "target_type": "api",
  408. "name": "报修校区统计",
  409. "mark": "complated",
  410. "sort": 11,
  411. "tags": [],
  412. "method": "GET",
  413. "mock": "{}",
  414. "mock_url": "/repair/api/repairRecord/repairCampus",
  415. "request": {
  416. "url": "{{url}}/repair/api/repairRecord/repairCampus?state=0",
  417. "description": "报修校区统计",
  418. "event": {
  419. "pre_script": "",
  420. "test": ""
  421. },
  422. "body": {
  423. "mode": "form-data",
  424. "parameter": [],
  425. "raw": "",
  426. "raw_para": [],
  427. "raw_schema": []
  428. },
  429. "header": {
  430. "parameter": [
  431. {
  432. "description": "用户标识",
  433. "field_type": "String",
  434. "is_checked": 1,
  435. "key": "user_head",
  436. "value": "16084D92FEDF19A31AD05ED28073756C3D20D41DA43F8F78FC84ACF77BEDEDB34BEDAE6870358C8A6BCEF6448DA00228",
  437. "not_null": 1,
  438. "type": "Text"
  439. },
  440. {
  441. "description": "token",
  442. "field_type": "String",
  443. "is_checked": 1,
  444. "key": "token",
  445. "value": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJwYXNzd29yZCI6IkI5QUQyOUQ1N0IwMTk0RTU1NDc3NkQ1QzE3QjM1NUM2IiwiZXhwIjoxNjk1NzE2OTU0LCJpYXQiOjE2OTU2MzA1NTQsImFjY291bnQiOiJhZG1pbiJ9.wZPVOkNTWfYHPJ-staSUQKFC8TJQYZIkdV1wNc_8RAE",
  446. "not_null": 1,
  447. "type": "Text"
  448. }
  449. ]
  450. },
  451. "query": {
  452. "parameter": [
  453. {
  454. "description": "状态\n全部:0\n本年:1\n本月:2\n本周:3\n今天:4",
  455. "field_type": "Integer",
  456. "is_checked": 1,
  457. "key": "state",
  458. "value": "0",
  459. "not_null": 1,
  460. "type": "Text"
  461. }
  462. ]
  463. }
  464. },
  465. "response": {
  466. "success": {
  467. "raw": "",
  468. "parameter": [],
  469. "expect": {
  470. "name": "成功",
  471. "isDefault": -1,
  472. "code": 200,
  473. "contentType": "json",
  474. "verifyType": "mock",
  475. "mock": "{}",
  476. "schema": {
  477. "type": "object"
  478. }
  479. }
  480. },
  481. "error": {
  482. "raw": "",
  483. "parameter": [],
  484. "expect": {
  485. "name": "失败",
  486. "isDefault": -1,
  487. "code": 201,
  488. "contentType": "json",
  489. "verifyType": "mock",
  490. "mock": "",
  491. "schema": {
  492. "type": "object"
  493. }
  494. }
  495. }
  496. },
  497. "children": []
  498. }
  499. ]
  500. },
  501. {
  502. "target_type": "folder",
  503. "name": "校园报修移动端",
  504. "mark": "developing",
  505. "sort": 3,
  506. "tags": [],
  507. "request": {
  508. "description": ""
  509. },
  510. "children": [
  511. {
  512. "target_type": "api",
  513. "name": "微信授权",
  514. "mark": "developing",
  515. "sort": 14,
  516. "tags": [],
  517. "method": "GET",
  518. "mock": "{}",
  519. "mock_url": "/repair/api/login/XOpenid",
  520. "request": {
  521. "url": "{{url}}/repair/api/login/XOpenid?code=&userId=",
  522. "description": "",
  523. "event": {
  524. "pre_script": "",
  525. "test": ""
  526. },
  527. "query": {
  528. "parameter": [
  529. {
  530. "description": "微信code",
  531. "field_type": "String",
  532. "is_checked": 1,
  533. "key": "code",
  534. "value": "",
  535. "not_null": 1,
  536. "type": "Text"
  537. },
  538. {
  539. "description": "用户ID",
  540. "field_type": "Integer",
  541. "is_checked": 1,
  542. "key": "userId",
  543. "value": "",
  544. "not_null": 1,
  545. "type": "Text"
  546. }
  547. ]
  548. }
  549. },
  550. "response": {
  551. "success": {
  552. "raw": "",
  553. "parameter": [],
  554. "expect": {
  555. "name": "成功",
  556. "isDefault": 1,
  557. "code": 200,
  558. "contentType": "json",
  559. "verifyType": "schema",
  560. "mock": "",
  561. "schema": {}
  562. }
  563. },
  564. "error": {
  565. "raw": "",
  566. "parameter": [],
  567. "expect": {
  568. "name": "失败",
  569. "isDefault": -1,
  570. "code": 404,
  571. "contentType": "json",
  572. "verifyType": "schema",
  573. "mock": "",
  574. "schema": {}
  575. }
  576. }
  577. },
  578. "children": []
  579. },
  580. {
  581. "target_type": "api",
  582. "name": "微校授权",
  583. "mark": "developing",
  584. "sort": 13,
  585. "tags": [],
  586. "method": "GET",
  587. "mock": "{}",
  588. "mock_url": "/repair/api/login/Openid",
  589. "request": {
  590. "url": "{{url}}/repair/api/login/Openid?wxcode=",
  591. "description": "",
  592. "event": {
  593. "pre_script": "",
  594. "test": ""
  595. },
  596. "query": {
  597. "parameter": [
  598. {
  599. "description": "小程序的微校code",
  600. "field_type": "String",
  601. "is_checked": 1,
  602. "key": "wxcode",
  603. "value": "",
  604. "not_null": 1,
  605. "type": "Text"
  606. }
  607. ]
  608. }
  609. },
  610. "response": {
  611. "success": {
  612. "raw": "",
  613. "parameter": [],
  614. "expect": {
  615. "name": "成功",
  616. "isDefault": 1,
  617. "code": 200,
  618. "contentType": "json",
  619. "verifyType": "schema",
  620. "mock": "",
  621. "schema": []
  622. }
  623. },
  624. "error": {
  625. "raw": "",
  626. "parameter": [],
  627. "expect": {
  628. "name": "失败",
  629. "isDefault": -1,
  630. "code": 404,
  631. "contentType": "json",
  632. "verifyType": "schema",
  633. "mock": "",
  634. "schema": []
  635. }
  636. }
  637. },
  638. "children": []
  639. },
  640. {
  641. "target_type": "api",
  642. "name": "查看后端代码版本",
  643. "mark": "developing",
  644. "sort": 12,
  645. "tags": [],
  646. "method": "GET",
  647. "mock": "{}",
  648. "mock_url": "/repair/api/login/queryReduce",
  649. "request": {
  650. "url": "{{url}}/repair/api/login/queryReduce",
  651. "description": "",
  652. "event": {
  653. "pre_script": "",
  654. "test": ""
  655. }
  656. },
  657. "response": {
  658. "success": {
  659. "raw": "",
  660. "parameter": [],
  661. "expect": {
  662. "name": "成功",
  663. "isDefault": 1,
  664. "code": 200,
  665. "contentType": "json",
  666. "verifyType": "schema",
  667. "mock": "",
  668. "schema": {}
  669. }
  670. },
  671. "error": {
  672. "raw": "",
  673. "parameter": [],
  674. "expect": {
  675. "name": "失败",
  676. "isDefault": -1,
  677. "code": 404,
  678. "contentType": "json",
  679. "verifyType": "schema",
  680. "mock": "",
  681. "schema": {}
  682. }
  683. }
  684. },
  685. "children": []
  686. }
  687. ]
  688. }
  689. ],
  690. "envs": [
  691. {
  692. "env_id": "-1",
  693. "list": {
  694. "url": {
  695. "type": "1",
  696. "value": "http://101.42.162.31:8088/",
  697. "current_value": "http://101.42.162.31:8088/"
  698. }
  699. },
  700. "name": "默认环境",
  701. "pre_url": "",
  702. "pre_urls": {
  703. "default": ""
  704. }
  705. },
  706. {
  707. "env_id": "-2",
  708. "list": {},
  709. "name": "Mock环境",
  710. "pre_url": "https://console-mock.apipost.cn/mock/3227c6b0-40a8-4217-957f-9b15e0b349b7/",
  711. "pre_urls": {
  712. "default": "https://console-mock.apipost.cn/mock/3227c6b0-40a8-4217-957f-9b15e0b349b7/"
  713. }
  714. },
  715. {
  716. "env_id": "02e56d91-9777-4e3c-88a8-9a23469f0895",
  717. "list": {
  718. "url": {
  719. "current_value": "https://chtech.ncjti.edu.cn/campusMaintenance/repair-api",
  720. "type": "1",
  721. "value": "https://chtech.ncjti.edu.cn/campusMaintenance/repair-api",
  722. "description": ""
  723. }
  724. },
  725. "name": "线上地址",
  726. "pre_url": "",
  727. "pre_urls": {
  728. "default": ""
  729. }
  730. },
  731. {
  732. "env_id": "2012c6be-bb94-4abe-92ba-c3aa0fdbac91",
  733. "list": {
  734. "url": {
  735. "current_value": "https://chtech.ncjti.edu.cn/campusMaintenance/repair-api",
  736. "type": "1",
  737. "value": "https://chtech.ncjti.edu.cn/campusMaintenance/repair-api",
  738. "description": ""
  739. }
  740. },
  741. "name": "测试环境",
  742. "pre_url": "",
  743. "pre_urls": {
  744. "default": ""
  745. }
  746. },
  747. {
  748. "env_id": "503688d4-e4ae-49ed-9063-9066c930aa1a",
  749. "list": {
  750. "url": {
  751. "current_value": "http://52bun2.natappfree.cc",
  752. "type": "1",
  753. "value": "http://52bun2.natappfree.cc",
  754. "description": ""
  755. }
  756. },
  757. "name": "内网",
  758. "pre_url": "",
  759. "pre_urls": {
  760. "default": ""
  761. }
  762. },
  763. {
  764. "env_id": "bcdbae83-6c5d-465c-ae0c-d45f26f51959",
  765. "list": {
  766. "url": {
  767. "type": "1",
  768. "value": "http://localhost:8080/",
  769. "current_value": "http://localhost:8080/"
  770. }
  771. },
  772. "name": "本地",
  773. "pre_url": "",
  774. "pre_urls": {
  775. "default": ""
  776. }
  777. }
  778. ],
  779. "models": []
  780. }