6
0

swagger.yml 39 KB

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