swagger.json 37 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117
  1. {
  2. "swagger": "2.0",
  3. "info": {
  4. "contact": {}
  5. },
  6. "paths": {
  7. "/api-sa/v1/audio/batchDelete": {
  8. "delete": {
  9. "produces": [
  10. "application/json"
  11. ],
  12. "tags": [
  13. "音频"
  14. ],
  15. "summary": "批量删除音频",
  16. "parameters": [
  17. {
  18. "description": "参数",
  19. "name": "object",
  20. "in": "body",
  21. "required": true,
  22. "schema": {
  23. "$ref": "#/definitions/request.BatchProcessAudio"
  24. }
  25. }
  26. ],
  27. "responses": {
  28. "200": {
  29. "description": "成功",
  30. "schema": {
  31. "$ref": "#/definitions/util.Response"
  32. }
  33. }
  34. }
  35. }
  36. },
  37. "/api-sa/v1/audio/batchProcess": {
  38. "post": {
  39. "produces": [
  40. "application/json"
  41. ],
  42. "tags": [
  43. "音频"
  44. ],
  45. "summary": "批量处理音频",
  46. "parameters": [
  47. {
  48. "description": "参数",
  49. "name": "object",
  50. "in": "body",
  51. "required": true,
  52. "schema": {
  53. "$ref": "#/definitions/request.BatchProcessAudio"
  54. }
  55. }
  56. ],
  57. "responses": {
  58. "200": {
  59. "description": "成功",
  60. "schema": {
  61. "$ref": "#/definitions/util.Response"
  62. }
  63. }
  64. }
  65. }
  66. },
  67. "/api-sa/v1/audio/delete": {
  68. "delete": {
  69. "produces": [
  70. "application/json"
  71. ],
  72. "tags": [
  73. "音频"
  74. ],
  75. "summary": "删除音频",
  76. "parameters": [
  77. {
  78. "description": "参数",
  79. "name": "object",
  80. "in": "body",
  81. "required": true,
  82. "schema": {
  83. "$ref": "#/definitions/request.ProcessAudio"
  84. }
  85. }
  86. ],
  87. "responses": {
  88. "200": {
  89. "description": "成功",
  90. "schema": {
  91. "$ref": "#/definitions/util.Response"
  92. }
  93. }
  94. }
  95. }
  96. },
  97. "/api-sa/v1/audio/download": {
  98. "get": {
  99. "produces": [
  100. "application/json"
  101. ],
  102. "tags": [
  103. "音频"
  104. ],
  105. "summary": "音频下载",
  106. "parameters": [
  107. {
  108. "type": "integer",
  109. "name": "fileType",
  110. "in": "query"
  111. },
  112. {
  113. "type": "integer",
  114. "name": "id",
  115. "in": "query",
  116. "required": true
  117. }
  118. ],
  119. "responses": {
  120. "200": {
  121. "description": "成功",
  122. "schema": {
  123. "allOf": [
  124. {
  125. "$ref": "#/definitions/util.Response"
  126. },
  127. {
  128. "type": "object",
  129. "properties": {
  130. "data": {
  131. "$ref": "#/definitions/models.Audio"
  132. }
  133. }
  134. }
  135. ]
  136. }
  137. }
  138. }
  139. }
  140. },
  141. "/api-sa/v1/audio/export": {
  142. "get": {
  143. "produces": [
  144. "application/json"
  145. ],
  146. "tags": [
  147. "音频检索结果到处"
  148. ],
  149. "summary": "音频检索结果到处",
  150. "parameters": [
  151. {
  152. "type": "string",
  153. "description": "开始时间",
  154. "name": "beginTime",
  155. "in": "query"
  156. },
  157. {
  158. "type": "string",
  159. "description": "司机号",
  160. "name": "driverNumber",
  161. "in": "query"
  162. },
  163. {
  164. "type": "string",
  165. "description": "结束时间",
  166. "name": "endTime",
  167. "in": "query"
  168. },
  169. {
  170. "enum": [
  171. 1,
  172. 2
  173. ],
  174. "type": "integer",
  175. "x-enum-comments": {
  176. "BoolTypeFalse": "false",
  177. "BoolTypeTrue": "true"
  178. },
  179. "x-enum-varnames": [
  180. "BoolTypeTrue",
  181. "BoolTypeFalse"
  182. ],
  183. "description": "是否关注 1关注 2未关注",
  184. "name": "isFollowed",
  185. "in": "query"
  186. },
  187. {
  188. "type": "string",
  189. "description": "关键字",
  190. "name": "keyword",
  191. "in": "query"
  192. },
  193. {
  194. "type": "string",
  195. "description": "机车号",
  196. "name": "locomotiveNumber",
  197. "in": "query"
  198. },
  199. {
  200. "type": "integer",
  201. "description": "页码",
  202. "name": "page",
  203. "in": "query"
  204. },
  205. {
  206. "type": "integer",
  207. "description": "每页大小",
  208. "name": "pageSize",
  209. "in": "query"
  210. },
  211. {
  212. "type": "string",
  213. "description": "车站号",
  214. "name": "stationNumber",
  215. "in": "query"
  216. },
  217. {
  218. "type": "array",
  219. "items": {
  220. "enum": [
  221. 0,
  222. 1,
  223. 2,
  224. 3,
  225. 4
  226. ],
  227. "type": "integer"
  228. },
  229. "collectionFormat": "csv",
  230. "description": "音频状态数组",
  231. "name": "statusList",
  232. "in": "query"
  233. },
  234. {
  235. "type": "string",
  236. "description": "车次",
  237. "name": "trainNumber",
  238. "in": "query"
  239. }
  240. ],
  241. "responses": {
  242. "200": {
  243. "description": "成功",
  244. "schema": {
  245. "allOf": [
  246. {
  247. "$ref": "#/definitions/util.ResponseList"
  248. },
  249. {
  250. "type": "object",
  251. "properties": {
  252. "data": {
  253. "type": "array",
  254. "items": {
  255. "$ref": "#/definitions/models.Audio"
  256. }
  257. }
  258. }
  259. }
  260. ]
  261. }
  262. }
  263. }
  264. }
  265. },
  266. "/api-sa/v1/audio/follow": {
  267. "post": {
  268. "produces": [
  269. "application/json"
  270. ],
  271. "tags": [
  272. "音频"
  273. ],
  274. "summary": "关注/取消关注",
  275. "parameters": [
  276. {
  277. "description": "参数",
  278. "name": "object",
  279. "in": "body",
  280. "required": true,
  281. "schema": {
  282. "$ref": "#/definitions/request.FollowReq"
  283. }
  284. }
  285. ],
  286. "responses": {
  287. "200": {
  288. "description": "成功",
  289. "schema": {
  290. "allOf": [
  291. {
  292. "$ref": "#/definitions/util.Response"
  293. },
  294. {
  295. "type": "object",
  296. "properties": {
  297. "data": {
  298. "$ref": "#/definitions/response.FollowResp"
  299. }
  300. }
  301. }
  302. ]
  303. }
  304. }
  305. }
  306. }
  307. },
  308. "/api-sa/v1/audio/info": {
  309. "get": {
  310. "produces": [
  311. "application/json"
  312. ],
  313. "tags": [
  314. "音频"
  315. ],
  316. "summary": "音频详情,含解析结果",
  317. "parameters": [
  318. {
  319. "type": "integer",
  320. "name": "fileType",
  321. "in": "query"
  322. },
  323. {
  324. "type": "integer",
  325. "name": "id",
  326. "in": "query",
  327. "required": true
  328. }
  329. ],
  330. "responses": {
  331. "200": {
  332. "description": "成功",
  333. "schema": {
  334. "allOf": [
  335. {
  336. "$ref": "#/definitions/util.Response"
  337. },
  338. {
  339. "type": "object",
  340. "properties": {
  341. "data": {
  342. "$ref": "#/definitions/models.Audio"
  343. }
  344. }
  345. }
  346. ]
  347. }
  348. }
  349. }
  350. }
  351. },
  352. "/api-sa/v1/audio/list": {
  353. "get": {
  354. "produces": [
  355. "application/json"
  356. ],
  357. "tags": [
  358. "音频"
  359. ],
  360. "summary": "音频分析检索",
  361. "parameters": [
  362. {
  363. "type": "string",
  364. "description": "开始时间",
  365. "name": "beginTime",
  366. "in": "query"
  367. },
  368. {
  369. "type": "string",
  370. "description": "司机号",
  371. "name": "driverNumber",
  372. "in": "query"
  373. },
  374. {
  375. "type": "string",
  376. "description": "结束时间",
  377. "name": "endTime",
  378. "in": "query"
  379. },
  380. {
  381. "enum": [
  382. 1,
  383. 2
  384. ],
  385. "type": "integer",
  386. "x-enum-comments": {
  387. "BoolTypeFalse": "false",
  388. "BoolTypeTrue": "true"
  389. },
  390. "x-enum-varnames": [
  391. "BoolTypeTrue",
  392. "BoolTypeFalse"
  393. ],
  394. "description": "是否关注 1关注 2未关注",
  395. "name": "isFollowed",
  396. "in": "query"
  397. },
  398. {
  399. "type": "string",
  400. "description": "关键字",
  401. "name": "keyword",
  402. "in": "query"
  403. },
  404. {
  405. "type": "string",
  406. "description": "机车号",
  407. "name": "locomotiveNumber",
  408. "in": "query"
  409. },
  410. {
  411. "type": "integer",
  412. "description": "页码",
  413. "name": "page",
  414. "in": "query"
  415. },
  416. {
  417. "type": "integer",
  418. "description": "每页大小",
  419. "name": "pageSize",
  420. "in": "query"
  421. },
  422. {
  423. "type": "string",
  424. "description": "车站号",
  425. "name": "stationNumber",
  426. "in": "query"
  427. },
  428. {
  429. "type": "array",
  430. "items": {
  431. "enum": [
  432. 0,
  433. 1,
  434. 2,
  435. 3,
  436. 4
  437. ],
  438. "type": "integer"
  439. },
  440. "collectionFormat": "csv",
  441. "description": "音频状态数组",
  442. "name": "statusList",
  443. "in": "query"
  444. },
  445. {
  446. "type": "string",
  447. "description": "车次",
  448. "name": "trainNumber",
  449. "in": "query"
  450. }
  451. ],
  452. "responses": {
  453. "200": {
  454. "description": "成功",
  455. "schema": {
  456. "allOf": [
  457. {
  458. "$ref": "#/definitions/util.ResponseList"
  459. },
  460. {
  461. "type": "object",
  462. "properties": {
  463. "data": {
  464. "type": "array",
  465. "items": {
  466. "$ref": "#/definitions/models.Audio"
  467. }
  468. }
  469. }
  470. }
  471. ]
  472. }
  473. }
  474. }
  475. }
  476. },
  477. "/api-sa/v1/audio/preLoadPath": {
  478. "get": {
  479. "produces": [
  480. "application/json"
  481. ],
  482. "tags": [
  483. "音频自动加载路径"
  484. ],
  485. "summary": "音频自动加载路径",
  486. "responses": {
  487. "200": {
  488. "description": "成功",
  489. "schema": {
  490. "allOf": [
  491. {
  492. "$ref": "#/definitions/util.Response"
  493. },
  494. {
  495. "type": "object",
  496. "properties": {
  497. "data": {
  498. "$ref": "#/definitions/response.PreLoadPathResp"
  499. }
  500. }
  501. }
  502. ]
  503. }
  504. }
  505. }
  506. }
  507. },
  508. "/api-sa/v1/audio/process": {
  509. "post": {
  510. "produces": [
  511. "application/json"
  512. ],
  513. "tags": [
  514. "音频"
  515. ],
  516. "summary": "处理音频",
  517. "parameters": [
  518. {
  519. "description": "参数",
  520. "name": "object",
  521. "in": "body",
  522. "required": true,
  523. "schema": {
  524. "$ref": "#/definitions/request.ProcessAudio"
  525. }
  526. }
  527. ],
  528. "responses": {
  529. "200": {
  530. "description": "成功",
  531. "schema": {
  532. "$ref": "#/definitions/util.Response"
  533. }
  534. }
  535. }
  536. }
  537. },
  538. "/api-sa/v1/audio/trainInfoList": {
  539. "get": {
  540. "produces": [
  541. "application/json"
  542. ],
  543. "tags": [
  544. "音频"
  545. ],
  546. "summary": "获取火车信息",
  547. "parameters": [
  548. {
  549. "enum": [
  550. 1,
  551. 2,
  552. 3
  553. ],
  554. "type": "integer",
  555. "x-enum-comments": {
  556. "ClassLocomotive": "机车",
  557. "ClassStation": "车站",
  558. "ClassTrain": "车次"
  559. },
  560. "x-enum-varnames": [
  561. "ClassLocomotive",
  562. "ClassTrain",
  563. "ClassStation"
  564. ],
  565. "description": "信息分类 1机车2车次3车站",
  566. "name": "class",
  567. "in": "query"
  568. },
  569. {
  570. "type": "integer",
  571. "description": "页码",
  572. "name": "page",
  573. "in": "query"
  574. },
  575. {
  576. "type": "integer",
  577. "description": "每页大小",
  578. "name": "pageSize",
  579. "in": "query"
  580. },
  581. {
  582. "type": "integer",
  583. "description": "上级id",
  584. "name": "parentID",
  585. "in": "query"
  586. }
  587. ],
  588. "responses": {
  589. "200": {
  590. "description": "成功",
  591. "schema": {
  592. "allOf": [
  593. {
  594. "$ref": "#/definitions/util.ResponseList"
  595. },
  596. {
  597. "type": "object",
  598. "properties": {
  599. "data": {
  600. "type": "array",
  601. "items": {
  602. "$ref": "#/definitions/models.TrainInfo"
  603. }
  604. }
  605. }
  606. }
  607. ]
  608. }
  609. }
  610. }
  611. }
  612. },
  613. "/api-sa/v1/audio/upload": {
  614. "post": {
  615. "consumes": [
  616. "multipart/form-data"
  617. ],
  618. "produces": [
  619. "application/json"
  620. ],
  621. "tags": [
  622. "音频"
  623. ],
  624. "summary": "上传音频",
  625. "parameters": [
  626. {
  627. "type": "array",
  628. "items": {
  629. "type": "file"
  630. },
  631. "collectionFormat": "csv",
  632. "description": "多文件上传",
  633. "name": "file",
  634. "in": "formData"
  635. }
  636. ],
  637. "responses": {
  638. "200": {
  639. "description": "成功",
  640. "schema": {
  641. "$ref": "#/definitions/util.Response"
  642. }
  643. }
  644. }
  645. }
  646. },
  647. "/api-sa/v1/text/add": {
  648. "post": {
  649. "produces": [
  650. "application/json"
  651. ],
  652. "tags": [
  653. "文字库"
  654. ],
  655. "summary": "新增文字",
  656. "parameters": [
  657. {
  658. "description": "参数",
  659. "name": "object",
  660. "in": "body",
  661. "required": true,
  662. "schema": {
  663. "$ref": "#/definitions/request.AddTextReq"
  664. }
  665. }
  666. ],
  667. "responses": {
  668. "200": {
  669. "description": "成功",
  670. "schema": {
  671. "$ref": "#/definitions/util.Response"
  672. }
  673. }
  674. }
  675. }
  676. },
  677. "/api-sa/v1/text/delete": {
  678. "delete": {
  679. "produces": [
  680. "application/json"
  681. ],
  682. "tags": [
  683. "文字库"
  684. ],
  685. "summary": "修改文字",
  686. "parameters": [
  687. {
  688. "description": "参数",
  689. "name": "object",
  690. "in": "body",
  691. "required": true,
  692. "schema": {
  693. "$ref": "#/definitions/request.AddTextReq"
  694. }
  695. }
  696. ],
  697. "responses": {
  698. "200": {
  699. "description": "成功",
  700. "schema": {
  701. "$ref": "#/definitions/util.Response"
  702. }
  703. }
  704. }
  705. }
  706. },
  707. "/api-sa/v1/text/list": {
  708. "get": {
  709. "produces": [
  710. "application/json"
  711. ],
  712. "tags": [
  713. "文字库"
  714. ],
  715. "summary": "文字库列表",
  716. "parameters": [
  717. {
  718. "type": "string",
  719. "description": "关键字",
  720. "name": "keyword",
  721. "in": "query"
  722. },
  723. {
  724. "type": "integer",
  725. "description": "页码",
  726. "name": "page",
  727. "in": "query"
  728. },
  729. {
  730. "type": "integer",
  731. "description": "每页大小",
  732. "name": "pageSize",
  733. "in": "query"
  734. }
  735. ],
  736. "responses": {
  737. "200": {
  738. "description": "成功",
  739. "schema": {
  740. "allOf": [
  741. {
  742. "$ref": "#/definitions/util.ResponseList"
  743. },
  744. {
  745. "type": "object",
  746. "properties": {
  747. "data": {
  748. "type": "array",
  749. "items": {
  750. "$ref": "#/definitions/models.Word"
  751. }
  752. }
  753. }
  754. }
  755. ]
  756. }
  757. }
  758. }
  759. }
  760. },
  761. "/api-sa/v1/text/update": {
  762. "post": {
  763. "produces": [
  764. "application/json"
  765. ],
  766. "tags": [
  767. "文字库"
  768. ],
  769. "summary": "修改文字",
  770. "parameters": [
  771. {
  772. "description": "参数",
  773. "name": "object",
  774. "in": "body",
  775. "required": true,
  776. "schema": {
  777. "$ref": "#/definitions/request.AddTextReq"
  778. }
  779. }
  780. ],
  781. "responses": {
  782. "200": {
  783. "description": "成功",
  784. "schema": {
  785. "$ref": "#/definitions/util.Response"
  786. }
  787. }
  788. }
  789. }
  790. }
  791. },
  792. "definitions": {
  793. "constvar.AudioStatus": {
  794. "type": "integer",
  795. "enum": [
  796. 0,
  797. 1,
  798. 2,
  799. 3,
  800. 4
  801. ],
  802. "x-enum-comments": {
  803. "AudioStatusFailed": "处理失败",
  804. "AudioStatusFinish": "处理完成",
  805. "AudioStatusProcessing": "处理中",
  806. "AudioStatusUploadOk": "上传成功 待处理",
  807. "AudioStatusUploading": "上传中"
  808. },
  809. "x-enum-varnames": [
  810. "AudioStatusUploading",
  811. "AudioStatusUploadOk",
  812. "AudioStatusProcessing",
  813. "AudioStatusFinish",
  814. "AudioStatusFailed"
  815. ]
  816. },
  817. "constvar.BoolType": {
  818. "type": "integer",
  819. "enum": [
  820. 1,
  821. 2
  822. ],
  823. "x-enum-comments": {
  824. "BoolTypeFalse": "false",
  825. "BoolTypeTrue": "true"
  826. },
  827. "x-enum-varnames": [
  828. "BoolTypeTrue",
  829. "BoolTypeFalse"
  830. ]
  831. },
  832. "constvar.Class": {
  833. "type": "integer",
  834. "enum": [
  835. 1,
  836. 2,
  837. 3
  838. ],
  839. "x-enum-comments": {
  840. "ClassLocomotive": "机车",
  841. "ClassStation": "车站",
  842. "ClassTrain": "车次"
  843. },
  844. "x-enum-varnames": [
  845. "ClassLocomotive",
  846. "ClassTrain",
  847. "ClassStation"
  848. ]
  849. },
  850. "gorm.DeletedAt": {
  851. "type": "object",
  852. "properties": {
  853. "time": {
  854. "type": "string"
  855. },
  856. "valid": {
  857. "description": "Valid is true if Time is not NULL",
  858. "type": "boolean"
  859. }
  860. }
  861. },
  862. "models.Audio": {
  863. "type": "object",
  864. "properties": {
  865. "audioStatus": {
  866. "description": "音频状态",
  867. "allOf": [
  868. {
  869. "$ref": "#/definitions/constvar.AudioStatus"
  870. }
  871. ]
  872. },
  873. "audioText": {
  874. "description": "解析出的文本",
  875. "type": "string"
  876. },
  877. "createdAt": {
  878. "type": "string"
  879. },
  880. "deletedAt": {
  881. "$ref": "#/definitions/gorm.DeletedAt"
  882. },
  883. "driverNumber": {
  884. "description": "司机号",
  885. "type": "string"
  886. },
  887. "id": {
  888. "type": "integer"
  889. },
  890. "isFollowed": {
  891. "description": "是否关注 1关注 2未关注",
  892. "allOf": [
  893. {
  894. "$ref": "#/definitions/constvar.BoolType"
  895. }
  896. ]
  897. },
  898. "kilometerMarker": {
  899. "description": "公里标",
  900. "type": "string"
  901. },
  902. "locomotiveNumber": {
  903. "description": "机车号",
  904. "type": "string"
  905. },
  906. "name": {
  907. "description": "音频名称",
  908. "type": "string"
  909. },
  910. "occurrenceTime": {
  911. "type": "string"
  912. },
  913. "routeNumber": {
  914. "description": "交路号",
  915. "type": "string"
  916. },
  917. "score": {
  918. "description": "置信度",
  919. "type": "number"
  920. },
  921. "size": {
  922. "description": "音频大小",
  923. "type": "integer"
  924. },
  925. "station": {
  926. "description": "车站",
  927. "type": "string"
  928. },
  929. "trainNumber": {
  930. "description": "车次",
  931. "type": "string"
  932. },
  933. "updatedAt": {
  934. "type": "string"
  935. },
  936. "words": {
  937. "description": "匹配到的文字数组",
  938. "type": "array",
  939. "items": {
  940. "type": "string"
  941. }
  942. }
  943. }
  944. },
  945. "models.TrainInfo": {
  946. "type": "object",
  947. "properties": {
  948. "class": {
  949. "description": "分类 1 机车 2车次 3 车站",
  950. "allOf": [
  951. {
  952. "$ref": "#/definitions/constvar.Class"
  953. }
  954. ]
  955. },
  956. "createdAt": {
  957. "type": "string"
  958. },
  959. "deletedAt": {
  960. "$ref": "#/definitions/gorm.DeletedAt"
  961. },
  962. "id": {
  963. "type": "integer"
  964. },
  965. "name": {
  966. "description": "名称",
  967. "type": "string"
  968. },
  969. "parentID": {
  970. "description": "上级id",
  971. "type": "integer"
  972. },
  973. "updatedAt": {
  974. "type": "string"
  975. }
  976. }
  977. },
  978. "models.Word": {
  979. "type": "object",
  980. "properties": {
  981. "content": {
  982. "description": "文字",
  983. "type": "string"
  984. },
  985. "createdAt": {
  986. "type": "string"
  987. },
  988. "deletedAt": {
  989. "$ref": "#/definitions/gorm.DeletedAt"
  990. },
  991. "id": {
  992. "type": "integer"
  993. },
  994. "locomotiveNumber": {
  995. "description": "机车号",
  996. "type": "string"
  997. },
  998. "updatedAt": {
  999. "type": "string"
  1000. }
  1001. }
  1002. },
  1003. "request.AddTextReq": {
  1004. "type": "object",
  1005. "required": [
  1006. "content",
  1007. "locomotiveNumber"
  1008. ],
  1009. "properties": {
  1010. "content": {
  1011. "description": "音频名称",
  1012. "type": "string"
  1013. },
  1014. "id": {
  1015. "type": "integer"
  1016. },
  1017. "locomotiveNumber": {
  1018. "description": "机车号",
  1019. "type": "string"
  1020. }
  1021. }
  1022. },
  1023. "request.BatchProcessAudio": {
  1024. "type": "object",
  1025. "required": [
  1026. "ids"
  1027. ],
  1028. "properties": {
  1029. "ids": {
  1030. "type": "array",
  1031. "items": {
  1032. "type": "integer"
  1033. }
  1034. }
  1035. }
  1036. },
  1037. "request.FollowReq": {
  1038. "type": "object",
  1039. "required": [
  1040. "id"
  1041. ],
  1042. "properties": {
  1043. "id": {
  1044. "type": "integer"
  1045. }
  1046. }
  1047. },
  1048. "request.ProcessAudio": {
  1049. "type": "object",
  1050. "required": [
  1051. "id"
  1052. ],
  1053. "properties": {
  1054. "fileType": {
  1055. "type": "integer"
  1056. },
  1057. "id": {
  1058. "type": "integer"
  1059. }
  1060. }
  1061. },
  1062. "response.FollowResp": {
  1063. "type": "object",
  1064. "properties": {
  1065. "followStatus": {
  1066. "description": "1 已关注 2未关注",
  1067. "allOf": [
  1068. {
  1069. "$ref": "#/definitions/constvar.BoolType"
  1070. }
  1071. ]
  1072. }
  1073. }
  1074. },
  1075. "response.PreLoadPathResp": {
  1076. "type": "object",
  1077. "properties": {
  1078. "preLoadPath": {
  1079. "type": "string"
  1080. }
  1081. }
  1082. },
  1083. "util.Response": {
  1084. "type": "object",
  1085. "properties": {
  1086. "code": {
  1087. "type": "integer"
  1088. },
  1089. "data": {},
  1090. "msg": {
  1091. "type": "string"
  1092. }
  1093. }
  1094. },
  1095. "util.ResponseList": {
  1096. "type": "object",
  1097. "properties": {
  1098. "code": {
  1099. "type": "integer"
  1100. },
  1101. "data": {},
  1102. "msg": {
  1103. "type": "string"
  1104. },
  1105. "page": {
  1106. "type": "integer"
  1107. },
  1108. "pageSize": {
  1109. "type": "integer"
  1110. },
  1111. "total": {
  1112. "type": "integer"
  1113. }
  1114. }
  1115. }
  1116. }
  1117. }