swagger.yml 38 KB

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