swagger.yml 44 KB

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