docs.go 37 KB

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