6
0

swagger.yml 40 KB

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