swagger.yml 43 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617
  1. openapi: 3.0.0
  2. info:
  3. title: learning
  4. description: 培训考试
  5. version: 0.0.1
  6. paths:
  7. /Test.Nullable:
  8. post:
  9. tags:
  10. - 测试
  11. operationId: Test.Nullable
  12. summary: 测试空值参数
  13. requestBody:
  14. required: true
  15. content:
  16. application/json:
  17. schema:
  18. oneOf:
  19. - $ref: '#/components/schemas/Nullable'
  20. examples:
  21. AllPass:
  22. $ref: '#/components/examples/NullableReqAllPass'
  23. responses:
  24. 200:
  25. description: 请求成功
  26. content:
  27. application/json:
  28. examples:
  29. success:
  30. $ref: "#/components/examples/success"
  31. /LearningSkill.List:
  32. post:
  33. tags:
  34. - 考试培训-技能
  35. operationId: LearningSkillList
  36. summary: 技能列表
  37. requestBody:
  38. required: true
  39. content:
  40. application/json:
  41. schema:
  42. oneOf:
  43. - $ref: '#/components/schemas/NoArgs'
  44. examples:
  45. NoArgs:
  46. $ref: '#/components/examples/NoArgs'
  47. responses:
  48. 200:
  49. description: 请求成功
  50. content:
  51. application/json:
  52. examples:
  53. success:
  54. $ref: "#/components/examples/success"
  55. /LearningSkill.ListMy:
  56. post:
  57. tags:
  58. - 考试培训-技能
  59. operationId: LearningSkillListMy
  60. summary: 我的技能列表
  61. requestBody:
  62. required: true
  63. content:
  64. application/json:
  65. schema:
  66. oneOf:
  67. - $ref: '#/components/schemas/NoArgs'
  68. examples:
  69. NoArgs:
  70. $ref: '#/components/examples/NoArgs'
  71. responses:
  72. 200:
  73. description: 请求成功
  74. content:
  75. application/json:
  76. examples:
  77. success:
  78. $ref: "#/components/examples/success"
  79. /LearningSkill.Get:
  80. post:
  81. tags:
  82. - 考试培训-技能
  83. operationId: LearningSkill.Get
  84. summary: 技能详情
  85. requestBody:
  86. required: true
  87. content:
  88. application/json:
  89. schema:
  90. oneOf:
  91. - $ref: '#/components/schemas/LearningSkillGet'
  92. examples:
  93. LearningSkillGet:
  94. $ref: '#/components/examples/LearningSkillGet'
  95. responses:
  96. 200:
  97. description: 请求成功
  98. content:
  99. application/json:
  100. examples:
  101. success:
  102. $ref: "#/components/examples/success"
  103. /LearningSkill.Add:
  104. post:
  105. tags:
  106. - 考试培训-技能
  107. operationId: LearningSkill.Add
  108. summary: 添加技能
  109. requestBody:
  110. required: true
  111. content:
  112. application/json:
  113. schema:
  114. oneOf:
  115. - $ref: '#/components/schemas/LearningSkillAdd'
  116. examples:
  117. LearningSkillAdd:
  118. $ref: '#/components/examples/LearningSkillAdd'
  119. responses:
  120. 200:
  121. description: 请求成功
  122. content:
  123. application/json:
  124. examples:
  125. success:
  126. $ref: "#/components/examples/success"
  127. /LearningSkill.Update:
  128. post:
  129. tags:
  130. - 考试培训-技能
  131. operationId: LearningSkill.Update
  132. summary: 更新技能
  133. requestBody:
  134. required: true
  135. content:
  136. application/json:
  137. schema:
  138. oneOf:
  139. - $ref: '#/components/schemas/LearningSkillUpdate'
  140. examples:
  141. LearningSkillUpdate:
  142. $ref: '#/components/examples/LearningSkillUpdate'
  143. responses:
  144. 200:
  145. description: 请求成功
  146. content:
  147. application/json:
  148. examples:
  149. success:
  150. $ref: "#/components/examples/success"
  151. /LearningSkill.Delete:
  152. post:
  153. tags:
  154. - 考试培训-技能
  155. operationId: LearningSkill.Delete
  156. summary: 删除技能
  157. requestBody:
  158. required: true
  159. content:
  160. application/json:
  161. schema:
  162. oneOf:
  163. - $ref: '#/components/schemas/IdsReq'
  164. examples:
  165. LearningSkillDelete:
  166. $ref: '#/components/examples/LearningSkillDelete'
  167. responses:
  168. 200:
  169. description: 请求成功
  170. content:
  171. application/json:
  172. examples:
  173. success:
  174. $ref: "#/components/examples/success"
  175. /LearningMaterial.List:
  176. post:
  177. tags:
  178. - 考试培训-资料
  179. operationId: LearningMaterial.List
  180. summary: 查询资料
  181. requestBody:
  182. required: true
  183. content:
  184. application/json:
  185. schema:
  186. oneOf:
  187. - $ref: '#/components/schemas/LearningMaterialList'
  188. examples:
  189. LearningMaterialList:
  190. $ref: '#/components/examples/LearningMaterialList'
  191. responses:
  192. 200:
  193. description: 请求成功
  194. content:
  195. application/json:
  196. examples:
  197. success:
  198. $ref: "#/components/examples/success"
  199. /LearningMaterial.ListMy:
  200. post:
  201. tags:
  202. - 考试培训-资料
  203. operationId: LearningMaterialListMy
  204. summary: 我的资料
  205. requestBody:
  206. required: true
  207. content:
  208. application/json:
  209. schema:
  210. oneOf:
  211. - $ref: '#/components/schemas/LearningMaterialListMy'
  212. examples:
  213. LearningMaterialListMy:
  214. $ref: '#/components/examples/LearningMaterialListMy'
  215. responses:
  216. 200:
  217. description: 请求成功
  218. content:
  219. application/json:
  220. examples:
  221. success:
  222. $ref: "#/components/examples/success"
  223. /LearningMaterial.Get:
  224. post:
  225. tags:
  226. - 考试培训-资料
  227. operationId: LearningMaterialGet
  228. summary: 资料详情
  229. requestBody:
  230. required: true
  231. content:
  232. application/json:
  233. schema:
  234. oneOf:
  235. - $ref: '#/components/schemas/LearningMaterialGet'
  236. examples:
  237. LearningMaterialGet:
  238. $ref: '#/components/examples/LearningMaterialGet'
  239. responses:
  240. 200:
  241. description: 请求成功
  242. content:
  243. application/json:
  244. examples:
  245. success:
  246. $ref: "#/components/examples/success"
  247. /LearningMaterial.Add:
  248. post:
  249. tags:
  250. - 考试培训-资料
  251. operationId: LearningMaterialAdd
  252. summary: 添加资料
  253. requestBody:
  254. required: true
  255. content:
  256. application/json:
  257. schema:
  258. oneOf:
  259. - $ref: '#/components/schemas/LearningMaterialAdd'
  260. examples:
  261. LearningMaterialAdd:
  262. $ref: '#/components/examples/LearningMaterialAdd'
  263. responses:
  264. 200:
  265. description: 请求成功
  266. content:
  267. application/json:
  268. examples:
  269. success:
  270. $ref: "#/components/examples/success"
  271. /LearningMaterial.Update:
  272. post:
  273. tags:
  274. - 考试培训-资料
  275. operationId: LearningMaterialUpdate
  276. summary: 修改资料
  277. requestBody:
  278. required: true
  279. content:
  280. application/json:
  281. schema:
  282. oneOf:
  283. - $ref: '#/components/schemas/LearningMaterialUpdate'
  284. examples:
  285. LearningMaterialUpdate:
  286. $ref: '#/components/examples/LearningMaterialUpdate'
  287. responses:
  288. 200:
  289. description: 请求成功
  290. content:
  291. application/json:
  292. examples:
  293. success:
  294. $ref: "#/components/examples/success"
  295. /LearningMaterial.Delete:
  296. post:
  297. tags:
  298. - 考试培训-资料
  299. operationId: LearningMaterialDelete
  300. summary: 删除资料
  301. requestBody:
  302. required: true
  303. content:
  304. application/json:
  305. schema:
  306. oneOf:
  307. - $ref: '#/components/schemas/IdsReq'
  308. examples:
  309. LearningMaterialDelete:
  310. $ref: '#/components/examples/LearningMaterialDelete'
  311. responses:
  312. 200:
  313. description: 请求成功
  314. content:
  315. application/json:
  316. examples:
  317. success:
  318. $ref: "#/components/examples/success"
  319. /LearningQuestion.Get:
  320. post:
  321. tags:
  322. - 考试培训-题库
  323. operationId: LearningQuestionGet
  324. summary: 题库详情
  325. requestBody:
  326. required: true
  327. content:
  328. application/json:
  329. schema:
  330. oneOf:
  331. - $ref: '#/components/schemas/IdReq'
  332. examples:
  333. LearningQuestionGet:
  334. $ref: '#/components/examples/LearningQuestionGet'
  335. responses:
  336. 200:
  337. description: 请求成功
  338. content:
  339. application/json:
  340. examples:
  341. success:
  342. $ref: "#/components/examples/success"
  343. /LearningQuestion.List:
  344. post:
  345. tags:
  346. - 考试培训-题库
  347. operationId: LearningQuestionList
  348. summary: 查询题库
  349. requestBody:
  350. required: true
  351. content:
  352. application/json:
  353. schema:
  354. oneOf:
  355. - $ref: '#/components/schemas/LearningQuestionList'
  356. examples:
  357. LearningQuestionList:
  358. $ref: '#/components/examples/LearningQuestionList'
  359. responses:
  360. 200:
  361. description: 请求成功
  362. content:
  363. application/json:
  364. examples:
  365. success:
  366. $ref: "#/components/examples/success"
  367. /LearningQuestion.Add:
  368. post:
  369. tags:
  370. - 考试培训-题库
  371. operationId: LearningQuestionAdd
  372. summary: 添加题库
  373. requestBody:
  374. required: true
  375. content:
  376. application/json:
  377. schema:
  378. oneOf:
  379. - $ref: '#/components/schemas/LearningQuestionAdd'
  380. examples:
  381. LearningQuestionAdd:
  382. $ref: '#/components/examples/LearningQuestionAdd'
  383. responses:
  384. 200:
  385. description: 请求成功
  386. content:
  387. application/json:
  388. examples:
  389. success:
  390. $ref: "#/components/examples/success"
  391. /LearningQuestion.Update:
  392. post:
  393. tags:
  394. - 考试培训-题库
  395. operationId: LearningQuestionUpdate
  396. summary: 更新题库
  397. requestBody:
  398. required: true
  399. content:
  400. application/json:
  401. schema:
  402. oneOf:
  403. - $ref: '#/components/schemas/LearningQuestionUpdate'
  404. examples:
  405. LearningQuestionUpdate:
  406. $ref: '#/components/examples/LearningQuestionUpdate'
  407. responses:
  408. 200:
  409. description: 请求成功
  410. content:
  411. application/json:
  412. examples:
  413. success:
  414. $ref: "#/components/examples/success"
  415. /LearningQuestion.Delete:
  416. post:
  417. tags:
  418. - 考试培训-题库
  419. operationId: LearningQuestionDelete
  420. summary: 删除题库
  421. requestBody:
  422. required: true
  423. content:
  424. application/json:
  425. schema:
  426. oneOf:
  427. - $ref: '#/components/schemas/IdsReq'
  428. examples:
  429. LearningQuestionDelete:
  430. $ref: '#/components/examples/LearningQuestionDelete'
  431. responses:
  432. 200:
  433. description: 请求成功
  434. content:
  435. application/json:
  436. examples:
  437. success:
  438. $ref: "#/components/examples/success"
  439. /LearningQuestion.Template:
  440. post:
  441. tags:
  442. - 考试培训-题库
  443. operationId: LearningQuestionTemplate
  444. summary: 下载批量上传题目模板
  445. requestBody:
  446. required: true
  447. content:
  448. application/json:
  449. schema:
  450. oneOf:
  451. - $ref: '#/components/schemas/NoArgs'
  452. examples:
  453. NoArgs:
  454. $ref: '#/components/examples/NoArgs'
  455. responses:
  456. 200:
  457. description: 请求成功
  458. content:
  459. application/json:
  460. examples:
  461. success:
  462. $ref: "#/components/examples/success"
  463. /LearningQuestion.BatchUpload:
  464. post:
  465. tags:
  466. - 考试培训-题库
  467. operationId: LearningQuestionBatchUpload
  468. summary: 批量上传题库
  469. requestBody:
  470. required: true
  471. content:
  472. application/json:
  473. schema:
  474. oneOf:
  475. - $ref: '#/components/schemas/LearningQuestionBatchUpload'
  476. examples:
  477. LearningQuestionBatchUpload:
  478. $ref: '#/components/examples/LearningQuestionBatchUpload'
  479. responses:
  480. 200:
  481. description: 请求成功
  482. content:
  483. application/json:
  484. examples:
  485. success:
  486. $ref: "#/components/examples/success"
  487. /LearningExamRecord.AddToMy:
  488. post:
  489. tags:
  490. - 考试培训-考试记录
  491. operationId: LearningExamRecordAddToMy
  492. summary: 添加考试记录
  493. requestBody:
  494. required: true
  495. content:
  496. application/json:
  497. schema:
  498. oneOf:
  499. - $ref: '#/components/schemas/LearningExamRecordAddToMy'
  500. examples:
  501. LearningExamRecordAddToMy:
  502. $ref: '#/components/examples/LearningExamRecordAddToMy'
  503. responses:
  504. 200:
  505. description: 请求成功
  506. content:
  507. application/json:
  508. examples:
  509. success:
  510. $ref: "#/components/examples/success"
  511. /LearningExamRecord.ListMy:
  512. post:
  513. tags:
  514. - 考试培训-考试记录
  515. operationId: LearningExamRecordListMy
  516. summary: 查询我的考试记录
  517. requestBody:
  518. required: true
  519. content:
  520. application/json:
  521. schema:
  522. oneOf:
  523. - $ref: '#/components/schemas/LearningExamRecordListMy'
  524. examples:
  525. LearningExamRecordListMy:
  526. $ref: '#/components/examples/LearningExamRecordListMy'
  527. responses:
  528. 200:
  529. description: 请求成功
  530. content:
  531. application/json:
  532. examples:
  533. success:
  534. $ref: "#/components/examples/success"
  535. /LearningExamRecord.List:
  536. post:
  537. tags:
  538. - 考试培训-考试记录
  539. operationId: LearningExamRecordList
  540. summary: 查询考试记录
  541. requestBody:
  542. required: true
  543. content:
  544. application/json:
  545. schema:
  546. oneOf:
  547. - $ref: '#/components/schemas/LearningExamRecordList'
  548. examples:
  549. LearningExamRecordList:
  550. $ref: '#/components/examples/LearningExamRecordList'
  551. responses:
  552. 200:
  553. description: 请求成功
  554. content:
  555. application/json:
  556. examples:
  557. success:
  558. $ref: "#/components/examples/success"
  559. /LearningLearningRecord.AddToMy:
  560. post:
  561. tags:
  562. - 考试培训-学习记录
  563. operationId: LearningLearningRecordAddToMy
  564. summary: 添加学习记录
  565. requestBody:
  566. required: true
  567. content:
  568. application/json:
  569. schema:
  570. oneOf:
  571. - $ref: '#/components/schemas/LearningLearningRecordAddToMy'
  572. examples:
  573. LearningLearningRecordAddToMy:
  574. $ref: '#/components/examples/LearningLearningRecordAddToMy'
  575. responses:
  576. 200:
  577. description: 请求成功
  578. content:
  579. application/json:
  580. examples:
  581. success:
  582. $ref: "#/components/examples/success"
  583. /LearningLearningRecord.ListMy:
  584. post:
  585. tags:
  586. - 考试培训-学习记录
  587. operationId: LearningLearningRecordListMy
  588. summary: 查询我的学习记录
  589. requestBody:
  590. required: true
  591. content:
  592. application/json:
  593. schema:
  594. oneOf:
  595. - $ref: '#/components/schemas/LearningLearningRecordListMy'
  596. examples:
  597. LearningLearningRecordListMy:
  598. $ref: '#/components/examples/LearningLearningRecordListMy'
  599. responses:
  600. 200:
  601. description: 请求成功
  602. content:
  603. application/json:
  604. examples:
  605. success:
  606. $ref: "#/components/examples/success"
  607. /LearningLearningRecord.List:
  608. post:
  609. tags:
  610. - 考试培训-学习记录
  611. operationId: LearningLearningRecordList
  612. summary: 查询学习记录
  613. requestBody:
  614. required: true
  615. content:
  616. application/json:
  617. schema:
  618. oneOf:
  619. - $ref: '#/components/schemas/LearningLearningRecordList'
  620. examples:
  621. LearningLearningRecordList:
  622. $ref: '#/components/examples/LearningLearningRecordList'
  623. responses:
  624. 200:
  625. description: 请求成功
  626. content:
  627. application/json:
  628. examples:
  629. success:
  630. $ref: "#/components/examples/success"
  631. /LearningTestpaper.Get:
  632. post:
  633. tags:
  634. - 考试培训-试卷
  635. operationId: LearningTestpaperGet
  636. summary: 试卷详情
  637. requestBody:
  638. required: true
  639. content:
  640. application/json:
  641. schema:
  642. oneOf:
  643. - $ref: '#/components/schemas/IdReq'
  644. examples:
  645. LearningTestpaperGet:
  646. $ref: '#/components/examples/LearningTestpaperGet'
  647. responses:
  648. 200:
  649. description: 请求成功
  650. content:
  651. application/json:
  652. examples:
  653. success:
  654. $ref: "#/components/examples/success"
  655. /LearningTestpaper.List:
  656. post:
  657. tags:
  658. - 考试培训-试卷
  659. operationId: LearningTestpaperList
  660. summary: 查询试卷
  661. requestBody:
  662. required: true
  663. content:
  664. application/json:
  665. schema:
  666. oneOf:
  667. - $ref: '#/components/schemas/LearningTestpaperList'
  668. examples:
  669. LearningTestpaperList:
  670. $ref: '#/components/examples/LearningTestpaperList'
  671. responses:
  672. 200:
  673. description: 请求成功
  674. content:
  675. application/json:
  676. examples:
  677. success:
  678. $ref: "#/components/examples/success"
  679. /LearningTestpaper.ListMy:
  680. post:
  681. tags:
  682. - 考试培训-试卷
  683. operationId: LearningTestpaperListMy
  684. summary: 我的试卷
  685. requestBody:
  686. required: true
  687. content:
  688. application/json:
  689. schema:
  690. oneOf:
  691. - $ref: '#/components/schemas/NoArgs'
  692. examples:
  693. LearningTestpaperList:
  694. $ref: '#/components/examples/NoArgs'
  695. responses:
  696. 200:
  697. description: 请求成功
  698. content:
  699. application/json:
  700. examples:
  701. success:
  702. $ref: "#/components/examples/success"
  703. /LearningTestpaper.Add:
  704. post:
  705. tags:
  706. - 考试培训-试卷
  707. operationId: LearningTestpaperAdd
  708. summary: 添加试卷
  709. requestBody:
  710. required: true
  711. content:
  712. application/json:
  713. schema:
  714. oneOf:
  715. - $ref: '#/components/schemas/LearningTestpaperAdd'
  716. examples:
  717. LearningTestpaperAdd:
  718. $ref: '#/components/examples/LearningTestpaperAdd'
  719. responses:
  720. 200:
  721. description: 请求成功
  722. content:
  723. application/json:
  724. examples:
  725. success:
  726. $ref: "#/components/examples/success"
  727. /LearningTestpaper.Update:
  728. post:
  729. tags:
  730. - 考试培训-试卷
  731. operationId: LearningTestpaperUpdate
  732. summary: 更新试卷
  733. requestBody:
  734. required: true
  735. content:
  736. application/json:
  737. schema:
  738. oneOf:
  739. - $ref: '#/components/schemas/LearningTestpaperUpdate'
  740. examples:
  741. LearningTestpaperUpdate:
  742. $ref: '#/components/examples/LearningTestpaperUpdate'
  743. responses:
  744. 200:
  745. description: 请求成功
  746. content:
  747. application/json:
  748. examples:
  749. success:
  750. $ref: "#/components/examples/success"
  751. /LearningTestpaper.Delete:
  752. post:
  753. tags:
  754. - 考试培训-试卷
  755. operationId: LearningTestpaperDelete
  756. summary: 删除试卷
  757. requestBody:
  758. required: true
  759. content:
  760. application/json:
  761. schema:
  762. oneOf:
  763. - $ref: '#/components/schemas/IdsReq'
  764. examples:
  765. LearningTestpaperDelete:
  766. $ref: '#/components/examples/LearningTestpaperDelete'
  767. responses:
  768. 200:
  769. description: 请求成功
  770. content:
  771. application/json:
  772. examples:
  773. success:
  774. $ref: "#/components/examples/success"
  775. # 添加这个 swagger ui 会显示授权按钮
  776. security:
  777. - bearerAuth: []
  778. components:
  779. securitySchemes:
  780. basicAuth:
  781. type: http
  782. scheme: basic
  783. bearerAuth:
  784. type: http
  785. scheme: bearer
  786. schemas:
  787. Nullable:
  788. type: object
  789. required:
  790. - Str
  791. - Int
  792. - Bool
  793. - Slice
  794. properties:
  795. Str:
  796. type: string
  797. description: 字符串参数
  798. Int:
  799. type: integer
  800. description: Int 参数
  801. Bool:
  802. type: boolean
  803. description: Bool 参数
  804. Slice:
  805. type: array
  806. description: Slice 参数
  807. items:
  808. type: integer
  809. NoArgs:
  810. type: object
  811. properties:
  812. noargs:
  813. type: string
  814. description: 无参数,但是 body 中必须传输一个 json 空对象 "{}"
  815. LearningSkillGet:
  816. properties:
  817. id:
  818. type: string
  819. description: 技能 id
  820. name:
  821. type: string
  822. description: 技能名称
  823. LearningSkillAdd:
  824. properties:
  825. instrumentId:
  826. type: string
  827. description: 技能关联的设备 id
  828. name:
  829. type: string
  830. description: 技能名称
  831. LearningSkillUpdate:
  832. required:
  833. - id
  834. properties:
  835. id:
  836. type: string
  837. description: 技能 id
  838. instrumentId:
  839. type: string
  840. description: 技能关联的设备 id
  841. name:
  842. type: string
  843. description: 技能名称
  844. IdReq:
  845. type: object
  846. required:
  847. - id
  848. properties:
  849. id:
  850. type: integer
  851. description: ID
  852. IdsReq:
  853. type: object
  854. required:
  855. - id
  856. properties:
  857. id:
  858. type: array
  859. description: ID
  860. items:
  861. type: integer
  862. LearningMaterialList:
  863. type: object
  864. properties:
  865. page:
  866. type: object
  867. description: 分页信息,不传默认不分页,返回所有数据
  868. properties:
  869. current:
  870. type: integer
  871. description: 当前页面
  872. size:
  873. type: integer
  874. description: 每页条数
  875. orderBy:
  876. type: object
  877. description: 排序
  878. properties:
  879. type:
  880. type: string
  881. description: 排序方式
  882. enum:
  883. - asc
  884. - desc
  885. value:
  886. type: string
  887. description: 字段名
  888. skillId:
  889. type: integer
  890. description: 按技能 Id 查询
  891. name:
  892. type: string
  893. description: 按资料名称模糊查询
  894. LearningMaterialListMy:
  895. type: object
  896. required:
  897. - skillId
  898. properties:
  899. skillId:
  900. type: integer
  901. description: 按技能 Id 查询
  902. LearningMaterialGet:
  903. type: object
  904. properties:
  905. id:
  906. type: string
  907. description: 资料 id
  908. name:
  909. type: string
  910. description: 资料名称
  911. LearningMaterialAdd:
  912. type: object
  913. required:
  914. - skillId
  915. - name
  916. - type
  917. - enable
  918. - content
  919. properties:
  920. skillId:
  921. type: integer
  922. description: 技能 Id
  923. name:
  924. type: string
  925. description: 资料名称
  926. type:
  927. type: integer
  928. description: 资料类型 1 资料 2 视频
  929. sortNo:
  930. type: integer
  931. description: 排序
  932. enable:
  933. type: integer
  934. description: 是否启用 0 未启用 1 启用
  935. content:
  936. type: string
  937. description: 资料内容
  938. file:
  939. type: array
  940. description: 附件
  941. items:
  942. type: object
  943. properties:
  944. name:
  945. type: string
  946. description: 文件名
  947. url:
  948. type: string
  949. description: 文件地址
  950. size:
  951. type: string
  952. description: 文件大小
  953. extend:
  954. type: string
  955. description: 文件扩展名
  956. LearningMaterialUpdate:
  957. type: object
  958. required:
  959. - id
  960. properties:
  961. id:
  962. type: integer
  963. description: 资料 id
  964. skillId:
  965. type: integer
  966. description: 技能 Id
  967. name:
  968. type: string
  969. description: 资料名称
  970. type:
  971. type: integer
  972. description: 资料类型 1 资料 2 视频
  973. sortNo:
  974. type: integer
  975. description: 排序
  976. enable:
  977. type: integer
  978. description: 是否启用 0 未启用 1 启用
  979. content:
  980. type: string
  981. description: 资料内容
  982. file:
  983. type: array
  984. description: 附件
  985. items:
  986. type: object
  987. properties:
  988. name:
  989. type: string
  990. description: 文件名
  991. url:
  992. type: string
  993. description: 文件地址
  994. size:
  995. type: string
  996. description: 文件大小
  997. extend:
  998. type: string
  999. description: 文件扩展名
  1000. LearningQuestionList:
  1001. type: object
  1002. properties:
  1003. page:
  1004. type: object
  1005. description: 分页信息,不传默认不分页,返回所有数据
  1006. properties:
  1007. current:
  1008. type: integer
  1009. description: 当前页面
  1010. size:
  1011. type: integer
  1012. description: 每页条数
  1013. orderBy:
  1014. type: object
  1015. description: 排序
  1016. properties:
  1017. type:
  1018. type: string
  1019. description: 排序方式
  1020. enum:
  1021. - asc
  1022. - desc
  1023. value:
  1024. type: string
  1025. description: 字段名
  1026. skillId:
  1027. type: integer
  1028. description: 按技能 Id 查询
  1029. name:
  1030. type: string
  1031. description: 按题目名称模糊查询
  1032. LearningQuestionAdd:
  1033. type: object
  1034. required:
  1035. - skillId
  1036. - type
  1037. - content
  1038. properties:
  1039. skillId:
  1040. type: integer
  1041. description: 技能 Id
  1042. name:
  1043. type: string
  1044. description: 题目
  1045. nameImage:
  1046. type: string
  1047. description: 题目图片
  1048. type:
  1049. type: integer
  1050. description: 题型 1 单选 2 多选 3 判断
  1051. enable:
  1052. type: integer
  1053. description: 是否启用 0 未启用 1 启用
  1054. content:
  1055. type: array
  1056. description: 选项
  1057. items:
  1058. type: object
  1059. properties:
  1060. name:
  1061. type: string
  1062. description: 选项
  1063. content:
  1064. type: string
  1065. description: 内容
  1066. isCorrect:
  1067. type: boolean
  1068. description: 是否是答案
  1069. explanation:
  1070. type: string
  1071. description: 题目解析
  1072. explanationImage:
  1073. type: string
  1074. description: 题目解析图片
  1075. LearningQuestionUpdate:
  1076. type: object
  1077. required:
  1078. - id
  1079. properties:
  1080. id:
  1081. type: integer
  1082. description: 题目 id
  1083. skillId:
  1084. type: integer
  1085. description: 技能 Id
  1086. name:
  1087. type: string
  1088. description: 题目
  1089. nameImage:
  1090. type: string
  1091. description: 题目图片
  1092. type:
  1093. type: integer
  1094. description: 题型 1 单选 2 多选 3 判断
  1095. enable:
  1096. type: integer
  1097. description: 是否启用 0 未启用 1 启用
  1098. content:
  1099. type: array
  1100. description: 选项
  1101. items:
  1102. type: object
  1103. properties:
  1104. name:
  1105. type: string
  1106. description: 选项
  1107. content:
  1108. type: string
  1109. description: 内容
  1110. isCorrect:
  1111. type: boolean
  1112. description: 是否是答案
  1113. explanation:
  1114. type: string
  1115. description: 题目解析
  1116. explanationImage:
  1117. type: string
  1118. description: 题目解析图片
  1119. LearningQuestionBatchUpload:
  1120. type: object
  1121. required:
  1122. - skillId
  1123. - excelUrl
  1124. properties:
  1125. skillId:
  1126. type: integer
  1127. description: 技能 Id
  1128. excelUrl:
  1129. type: string
  1130. description: excel 地址
  1131. LearningExamRecordAddToMy:
  1132. type: object
  1133. required:
  1134. - skillId
  1135. - testpaperId
  1136. - status
  1137. properties:
  1138. skillId:
  1139. type: integer
  1140. description: 技能 Id
  1141. testpaperId:
  1142. type: integer
  1143. description: 试卷 Id
  1144. status:
  1145. type: integer
  1146. description: 状态 1 通过 2 未通过
  1147. LearningExamRecordListMy:
  1148. type: object
  1149. properties:
  1150. page:
  1151. type: object
  1152. description: 分页信息,不传默认不分页,返回所有数据
  1153. properties:
  1154. current:
  1155. type: integer
  1156. description: 当前页面
  1157. size:
  1158. type: integer
  1159. description: 每页条数
  1160. orderBy:
  1161. type: object
  1162. description: 排序
  1163. properties:
  1164. type:
  1165. type: string
  1166. description: 排序方式
  1167. enum:
  1168. - asc
  1169. - desc
  1170. value:
  1171. type: string
  1172. description: 字段名
  1173. skillId:
  1174. type: integer
  1175. description: 技能 Id
  1176. testpaperId:
  1177. type: integer
  1178. description: 试卷 Id
  1179. status:
  1180. type: integer
  1181. description: 状态 1 通过 2 未通过
  1182. LearningExamRecordList:
  1183. type: object
  1184. properties:
  1185. page:
  1186. type: object
  1187. description: 分页信息,不传默认不分页,返回所有数据
  1188. properties:
  1189. current:
  1190. type: integer
  1191. description: 当前页面
  1192. size:
  1193. type: integer
  1194. description: 每页条数
  1195. orderBy:
  1196. type: object
  1197. description: 排序
  1198. properties:
  1199. type:
  1200. type: string
  1201. description: 排序方式
  1202. enum:
  1203. - asc
  1204. - desc
  1205. value:
  1206. type: string
  1207. description: 字段名
  1208. skillId:
  1209. type: integer
  1210. description: 技能 Id
  1211. testpaperId:
  1212. type: integer
  1213. description: 试卷 Id
  1214. status:
  1215. type: integer
  1216. description: 状态 1 通过 2 未通过
  1217. userId:
  1218. type: integer
  1219. description: 用户 Id
  1220. LearningLearningRecordAddToMy:
  1221. type: object
  1222. required:
  1223. - materialId
  1224. - status
  1225. properties:
  1226. materialId:
  1227. type: integer
  1228. description: 资料 Id
  1229. status:
  1230. type: integer
  1231. description: 状态 1 已学习
  1232. LearningLearningRecordListMy:
  1233. type: object
  1234. properties:
  1235. page:
  1236. type: object
  1237. description: 分页信息,不传默认不分页,返回所有数据
  1238. properties:
  1239. current:
  1240. type: integer
  1241. description: 当前页面
  1242. size:
  1243. type: integer
  1244. description: 每页条数
  1245. orderBy:
  1246. type: object
  1247. description: 排序
  1248. properties:
  1249. type:
  1250. type: string
  1251. description: 排序方式
  1252. enum:
  1253. - asc
  1254. - desc
  1255. value:
  1256. type: string
  1257. description: 字段名
  1258. materialId:
  1259. type: integer
  1260. description: 资料 Id
  1261. status:
  1262. type: integer
  1263. description: 状态 1 已学习
  1264. LearningLearningRecordList:
  1265. type: object
  1266. properties:
  1267. page:
  1268. type: object
  1269. description: 分页信息,不传默认不分页,返回所有数据
  1270. properties:
  1271. current:
  1272. type: integer
  1273. description: 当前页面
  1274. size:
  1275. type: integer
  1276. description: 每页条数
  1277. orderBy:
  1278. type: object
  1279. description: 排序
  1280. properties:
  1281. type:
  1282. type: string
  1283. description: 排序方式
  1284. enum:
  1285. - asc
  1286. - desc
  1287. value:
  1288. type: string
  1289. description: 字段名
  1290. materialId:
  1291. type: integer
  1292. description: 资料 Id
  1293. status:
  1294. type: integer
  1295. description: 状态 1 已学习
  1296. userId:
  1297. type: integer
  1298. description: 用户 Id
  1299. LearningTestpaperList:
  1300. type: object
  1301. properties:
  1302. page:
  1303. type: object
  1304. description: 分页信息,不传默认不分页,返回所有数据
  1305. properties:
  1306. current:
  1307. type: integer
  1308. description: 当前页面
  1309. size:
  1310. type: integer
  1311. description: 每页条数
  1312. orderBy:
  1313. type: object
  1314. description: 排序
  1315. properties:
  1316. type:
  1317. type: string
  1318. description: 排序方式
  1319. enum:
  1320. - asc
  1321. - desc
  1322. value:
  1323. type: string
  1324. description: 字段名
  1325. skillId:
  1326. type: integer
  1327. description: 技能 Id
  1328. enable:
  1329. type: integer
  1330. description: 是否启用 0 未启用 1 启用
  1331. LearningTestpaperAdd:
  1332. type: object
  1333. required:
  1334. - skillId
  1335. - name
  1336. - timeLimit
  1337. - passLimit
  1338. - question
  1339. properties:
  1340. skillId:
  1341. type: integer
  1342. description: 技能 Id
  1343. name:
  1344. type: string
  1345. description: 试卷名称
  1346. timeLimit:
  1347. type: string
  1348. description: 答题时间/分钟
  1349. passLimit:
  1350. type: string
  1351. description: 合格标准/题数
  1352. question:
  1353. type: string
  1354. description: 关联问题 Id 列表
  1355. LearningTestpaperUpdate:
  1356. type: object
  1357. required:
  1358. - id
  1359. properties:
  1360. id:
  1361. type: integer
  1362. description: 试卷 id
  1363. skillId:
  1364. type: integer
  1365. description: 技能 Id
  1366. name:
  1367. type: string
  1368. description: 试卷名称
  1369. timeLimit:
  1370. type: string
  1371. description: 答题时间/分钟
  1372. passLimit:
  1373. type: string
  1374. description: 合格标准/题数
  1375. question:
  1376. type: string
  1377. description: 关联问题 Id 列表
  1378. enable:
  1379. type: integer
  1380. description: 是否启用 0 未启用 1 启用
  1381. examples:
  1382. success:
  1383. summary: 请求成功
  1384. value:
  1385. code: 200,
  1386. msg: "success"
  1387. NullableReqAllPass:
  1388. value:
  1389. Str: ""
  1390. Int: 0
  1391. Bool: false
  1392. Slice: []
  1393. NoArgs:
  1394. value:
  1395. noargs: ""
  1396. LearningSkillGet:
  1397. value:
  1398. Id: 1
  1399. LearningSkillAdd:
  1400. value:
  1401. name: 测试
  1402. instrumentId: [1,2]
  1403. LearningSkillUpdate:
  1404. value:
  1405. name: 测试更新
  1406. instrumentId: [3,4]
  1407. id: 1
  1408. LearningSkillDelete:
  1409. value:
  1410. id: [1]
  1411. LearningMaterialList:
  1412. value:
  1413. page:
  1414. current: 2
  1415. size: 2
  1416. orderBy:
  1417. type: desc
  1418. value: id
  1419. skillId: 2
  1420. name: "测试"
  1421. LearningMaterialListMy:
  1422. value:
  1423. skillId: 2
  1424. LearningMaterialGet:
  1425. value:
  1426. id: 1
  1427. LearningMaterialAdd:
  1428. value:
  1429. skillId: 2
  1430. name: 测试 1
  1431. type: 2
  1432. sortNo:
  1433. enable: 1
  1434. content: 测试
  1435. file:
  1436. -
  1437. name: "1"
  1438. url: 1.txt
  1439. size: "1"
  1440. extend: .txt
  1441. -
  1442. name: "2"
  1443. url: 2.txt
  1444. size: "2"
  1445. extend: .txt
  1446. LearningMaterialUpdate:
  1447. value:
  1448. id: 1
  1449. skillId: 4
  1450. name: 测试修改
  1451. type: 1
  1452. sortNo: 5
  1453. enable: 0
  1454. content: 测试修改
  1455. file:
  1456. -
  1457. name: "3"
  1458. url: 3.txt
  1459. size: "3"
  1460. extend: .txt
  1461. -
  1462. name: "4"
  1463. url: 4.txt
  1464. size: "4"
  1465. extend: .txt
  1466. LearningMaterialDelete:
  1467. value:
  1468. id: [1]
  1469. LearningQuestionGet:
  1470. value:
  1471. id: 1
  1472. LearningQuestionList:
  1473. value:
  1474. page:
  1475. current: 2
  1476. size: 2
  1477. orderBy:
  1478. type: desc
  1479. value: id
  1480. skillId: 2
  1481. name: "测试"
  1482. LearningQuestionAdd:
  1483. value:
  1484. skillId: 2
  1485. name: 测试
  1486. nameImage: https://go.dev/images/gophers/pilot-bust.svg
  1487. type: 1
  1488. enable: 1
  1489. content:
  1490. -
  1491. name: A
  1492. content: 测试A
  1493. image: https://go.dev/images/gophers/pilot-bust.svg
  1494. isCorrect: true
  1495. -
  1496. name: B
  1497. content: 测试B
  1498. image: https://go.dev/images/gophers/pilot-bust.svg
  1499. isCorrect: false
  1500. explanation: 测试
  1501. explanationImage: https://go.dev/images/gophers/pilot-bust.svg
  1502. LearningQuestionUpdate:
  1503. value:
  1504. id: 1
  1505. skillId: 5
  1506. name: 测试修改
  1507. nameImage: https://go.dev/images/gophers/pilot-bust.svg
  1508. type: 2
  1509. enable: 1
  1510. content:
  1511. -
  1512. name: A
  1513. image: https://go.dev/images/gophers/pilot-bust.svg
  1514. content: 测试测试修改A
  1515. isCorrect: true
  1516. -
  1517. name: B
  1518. image: https://go.dev/images/gophers/pilot-bust.svg
  1519. content: 测试测试修改B
  1520. isCorrect: true
  1521. explanation: 测试测试修改
  1522. explanationImage: https://go.dev/images/gophers/pilot-bust.svg
  1523. LearningQuestionDelete:
  1524. value:
  1525. id: [1]
  1526. LearningExamRecordAddToMy:
  1527. value:
  1528. skillId: 2
  1529. testpaperId: 2
  1530. status: 2
  1531. LearningExamRecordListMy:
  1532. value:
  1533. skillId: 2
  1534. LearningExamRecordList:
  1535. value:
  1536. skillId: 2
  1537. LearningLearningRecordAddToMy:
  1538. value:
  1539. materialId: 2
  1540. status: 1
  1541. LearningLearningRecordListMy:
  1542. value:
  1543. materialId: 2
  1544. LearningLearningRecordList:
  1545. value:
  1546. materialId: 2
  1547. LearningTestpaperGet:
  1548. value:
  1549. id: 1
  1550. LearningTestpaperList:
  1551. value:
  1552. page:
  1553. current: 2
  1554. size: 2
  1555. orderBy:
  1556. type: desc
  1557. value: id
  1558. skillId: 2
  1559. LearningTestpaperAdd:
  1560. value:
  1561. skillId: 2
  1562. name: "试卷"
  1563. timeLimit: 5
  1564. passLimit: 2
  1565. question: [2,3]
  1566. LearningTestpaperUpdate:
  1567. value:
  1568. id: 1
  1569. skillId: 5
  1570. name: "测试试卷"
  1571. timeLimit: 10
  1572. passLimit: 1
  1573. question: [4,5,6]
  1574. enable: 1
  1575. LearningTestpaperDelete:
  1576. value:
  1577. id: [1]
  1578. LearningQuestionBatchUpload:
  1579. value:
  1580. skillId: 5
  1581. excelUrl: http://192.168.0.252:9390/9,21086966c07b68