swagger.yml 32 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216
  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/IdReq'
  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/IdReq'
  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/IdReq'
  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. # 添加这个 swagger ui 会显示授权按钮
  536. security:
  537. - bearerAuth: []
  538. components:
  539. securitySchemes:
  540. basicAuth:
  541. type: http
  542. scheme: basic
  543. bearerAuth:
  544. type: http
  545. scheme: bearer
  546. schemas:
  547. Nullable:
  548. type: object
  549. required:
  550. - Str
  551. - Int
  552. - Bool
  553. - Slice
  554. properties:
  555. Str:
  556. type: string
  557. description: 字符串参数
  558. Int:
  559. type: integer
  560. description: Int 参数
  561. Bool:
  562. type: boolean
  563. description: Bool 参数
  564. Slice:
  565. type: array
  566. description: Slice 参数
  567. items:
  568. type: integer
  569. NoArgs:
  570. type: object
  571. properties:
  572. noargs:
  573. type: string
  574. description: 无参数,但是 body 中必须传输一个 json 空对象 "{}"
  575. LearningSkillGet:
  576. properties:
  577. id:
  578. type: string
  579. description: 技能 id
  580. name:
  581. type: string
  582. description: 技能名称
  583. LearningSkillAdd:
  584. properties:
  585. instrumentId:
  586. type: string
  587. description: 技能关联的设备 id
  588. name:
  589. type: string
  590. description: 技能名称
  591. LearningSkillUpdate:
  592. required:
  593. - id
  594. properties:
  595. id:
  596. type: string
  597. description: 技能 id
  598. instrumentId:
  599. type: string
  600. description: 技能关联的设备 id
  601. name:
  602. type: string
  603. description: 技能名称
  604. IdReq:
  605. type: object
  606. required:
  607. - id
  608. properties:
  609. id:
  610. type: integer
  611. description: ID
  612. LearningMaterialList:
  613. type: object
  614. properties:
  615. page:
  616. type: object
  617. description: 分页信息,不传默认不分页,返回所有数据
  618. properties:
  619. current:
  620. type: integer
  621. description: 当前页面
  622. size:
  623. type: integer
  624. description: 每页条数
  625. orderBy:
  626. type: object
  627. description: 排序
  628. properties:
  629. type:
  630. type: string
  631. description: 排序方式
  632. enum:
  633. - asc
  634. - desc
  635. value:
  636. type: string
  637. description: 字段名
  638. skillId:
  639. type: integer
  640. description: 按技能 Id 查询
  641. name:
  642. type: string
  643. description: 按资料名称模糊查询
  644. LearningMaterialGet:
  645. type: object
  646. properties:
  647. id:
  648. type: string
  649. description: 资料 id
  650. name:
  651. type: string
  652. description: 资料名称
  653. LearningMaterialAdd:
  654. type: object
  655. required:
  656. - skillId
  657. - name
  658. - type
  659. - enable
  660. properties:
  661. skillId:
  662. type: integer
  663. description: 技能 Id
  664. name:
  665. type: string
  666. description: 资料名称
  667. type:
  668. type: integer
  669. description: 资料类型 1 资料 2 视频
  670. sortNo:
  671. type: integer
  672. description: 排序
  673. enable:
  674. type: integer
  675. description: 是否启用 0 未启用 1 启用
  676. content:
  677. type: string
  678. description: 资料内容
  679. file:
  680. type: array
  681. description: 附件
  682. items:
  683. type: object
  684. properties:
  685. name:
  686. type: string
  687. description: 文件名
  688. url:
  689. type: string
  690. description: 文件地址
  691. size:
  692. type: string
  693. description: 文件大小
  694. extend:
  695. type: string
  696. description: 文件扩展名
  697. LearningMaterialUpdate:
  698. type: object
  699. required:
  700. - id
  701. properties:
  702. id:
  703. type: integer
  704. description: 资料 id
  705. skillId:
  706. type: integer
  707. description: 技能 Id
  708. name:
  709. type: string
  710. description: 资料名称
  711. type:
  712. type: integer
  713. description: 资料类型 1 资料 2 视频
  714. sortNo:
  715. type: integer
  716. description: 排序
  717. enable:
  718. type: integer
  719. description: 是否启用 0 未启用 1 启用
  720. content:
  721. type: string
  722. description: 资料内容
  723. file:
  724. type: array
  725. description: 附件
  726. items:
  727. type: object
  728. properties:
  729. name:
  730. type: string
  731. description: 文件名
  732. url:
  733. type: string
  734. description: 文件地址
  735. size:
  736. type: string
  737. description: 文件大小
  738. extend:
  739. type: string
  740. description: 文件扩展名
  741. LearningQuestionList:
  742. type: object
  743. properties:
  744. page:
  745. type: object
  746. description: 分页信息,不传默认不分页,返回所有数据
  747. properties:
  748. current:
  749. type: integer
  750. description: 当前页面
  751. size:
  752. type: integer
  753. description: 每页条数
  754. orderBy:
  755. type: object
  756. description: 排序
  757. properties:
  758. type:
  759. type: string
  760. description: 排序方式
  761. enum:
  762. - asc
  763. - desc
  764. value:
  765. type: string
  766. description: 字段名
  767. skillId:
  768. type: integer
  769. description: 按技能 Id 查询
  770. name:
  771. type: string
  772. description: 按题目名称模糊查询
  773. LearningQuestionAdd:
  774. type: object
  775. required:
  776. - skillId
  777. - type
  778. - content
  779. properties:
  780. skillId:
  781. type: integer
  782. description: 技能 Id
  783. name:
  784. type: string
  785. description: 题目
  786. nameImage:
  787. type: string
  788. description: 题目图片
  789. type:
  790. type: integer
  791. description: 题型 1 单选 2 多选 3 判断
  792. enable:
  793. type: integer
  794. description: 是否启用 0 未启用 1 启用
  795. content:
  796. type: array
  797. description: 选项
  798. items:
  799. type: object
  800. properties:
  801. name:
  802. type: string
  803. description: 选项
  804. content:
  805. type: string
  806. description: 内容
  807. isCorrect:
  808. type: boolean
  809. description: 是否是答案
  810. explanation:
  811. type: string
  812. description: 题目解析
  813. explanationImage:
  814. type: string
  815. description: 题目解析图片
  816. LearningQuestionUpdate:
  817. type: object
  818. required:
  819. - id
  820. properties:
  821. id:
  822. type: integer
  823. description: 题目 id
  824. skillId:
  825. type: integer
  826. description: 技能 Id
  827. name:
  828. type: string
  829. description: 题目
  830. nameImage:
  831. type: string
  832. description: 题目图片
  833. type:
  834. type: integer
  835. description: 题型 1 单选 2 多选 3 判断
  836. enable:
  837. type: integer
  838. description: 是否启用 0 未启用 1 启用
  839. content:
  840. type: array
  841. description: 选项
  842. items:
  843. type: object
  844. properties:
  845. name:
  846. type: string
  847. description: 选项
  848. content:
  849. type: string
  850. description: 内容
  851. isCorrect:
  852. type: boolean
  853. description: 是否是答案
  854. explanation:
  855. type: string
  856. description: 题目解析
  857. explanationImage:
  858. type: string
  859. description: 题目解析图片
  860. LearningExamRecordAddToMy:
  861. type: object
  862. required:
  863. - skillId
  864. - testpaperId
  865. - status
  866. properties:
  867. skillId:
  868. type: integer
  869. description: 技能 Id
  870. testpaperId:
  871. type: integer
  872. description: 试卷 Id
  873. status:
  874. type: integer
  875. description: 状态 1 通过 2 未通过
  876. LearningExamRecordListMy:
  877. type: object
  878. properties:
  879. page:
  880. type: object
  881. description: 分页信息,不传默认不分页,返回所有数据
  882. properties:
  883. current:
  884. type: integer
  885. description: 当前页面
  886. size:
  887. type: integer
  888. description: 每页条数
  889. orderBy:
  890. type: object
  891. description: 排序
  892. properties:
  893. type:
  894. type: string
  895. description: 排序方式
  896. enum:
  897. - asc
  898. - desc
  899. value:
  900. type: string
  901. description: 字段名
  902. skillId:
  903. type: integer
  904. description: 技能 Id
  905. testpaperId:
  906. type: integer
  907. description: 试卷 Id
  908. status:
  909. type: integer
  910. description: 状态 1 通过 2 未通过
  911. LearningExamRecordList:
  912. type: object
  913. properties:
  914. page:
  915. type: object
  916. description: 分页信息,不传默认不分页,返回所有数据
  917. properties:
  918. current:
  919. type: integer
  920. description: 当前页面
  921. size:
  922. type: integer
  923. description: 每页条数
  924. orderBy:
  925. type: object
  926. description: 排序
  927. properties:
  928. type:
  929. type: string
  930. description: 排序方式
  931. enum:
  932. - asc
  933. - desc
  934. value:
  935. type: string
  936. description: 字段名
  937. skillId:
  938. type: integer
  939. description: 技能 Id
  940. testpaperId:
  941. type: integer
  942. description: 试卷 Id
  943. status:
  944. type: integer
  945. description: 状态 1 通过 2 未通过
  946. userId:
  947. type: integer
  948. description: 用户 Id
  949. LearningLearningRecordAddToMy:
  950. type: object
  951. required:
  952. - materialId
  953. - status
  954. properties:
  955. materialId:
  956. type: integer
  957. description: 资料 Id
  958. status:
  959. type: integer
  960. description: 状态 1 已学习
  961. LearningLearningRecordListMy:
  962. type: object
  963. properties:
  964. page:
  965. type: object
  966. description: 分页信息,不传默认不分页,返回所有数据
  967. properties:
  968. current:
  969. type: integer
  970. description: 当前页面
  971. size:
  972. type: integer
  973. description: 每页条数
  974. orderBy:
  975. type: object
  976. description: 排序
  977. properties:
  978. type:
  979. type: string
  980. description: 排序方式
  981. enum:
  982. - asc
  983. - desc
  984. value:
  985. type: string
  986. description: 字段名
  987. materialId:
  988. type: integer
  989. description: 资料 Id
  990. status:
  991. type: integer
  992. description: 状态 1 已学习
  993. LearningLearningRecordList:
  994. type: object
  995. properties:
  996. page:
  997. type: object
  998. description: 分页信息,不传默认不分页,返回所有数据
  999. properties:
  1000. current:
  1001. type: integer
  1002. description: 当前页面
  1003. size:
  1004. type: integer
  1005. description: 每页条数
  1006. orderBy:
  1007. type: object
  1008. description: 排序
  1009. properties:
  1010. type:
  1011. type: string
  1012. description: 排序方式
  1013. enum:
  1014. - asc
  1015. - desc
  1016. value:
  1017. type: string
  1018. description: 字段名
  1019. materialId:
  1020. type: integer
  1021. description: 资料 Id
  1022. status:
  1023. type: integer
  1024. description: 状态 1 已学习
  1025. userId:
  1026. type: integer
  1027. description: 用户 Id
  1028. examples:
  1029. success:
  1030. summary: 请求成功
  1031. value:
  1032. code: 200,
  1033. msg: "success"
  1034. NullableReqAllPass:
  1035. value:
  1036. Str: ""
  1037. Int: 0
  1038. Bool: false
  1039. Slice: []
  1040. NoArgs:
  1041. value:
  1042. noargs: ""
  1043. LearningSkillGet:
  1044. value:
  1045. Id: 1
  1046. LearningSkillAdd:
  1047. value:
  1048. name: 测试
  1049. instrumentId: [1,2]
  1050. LearningSkillUpdate:
  1051. value:
  1052. name: 测试更新
  1053. instrumentId: [3,4]
  1054. id: 1
  1055. LearningSkillDelete:
  1056. value:
  1057. id: 1
  1058. LearningMaterialList:
  1059. value:
  1060. page:
  1061. current: 2
  1062. size: 2
  1063. orderBy:
  1064. type: desc
  1065. value: id
  1066. skillId: 2
  1067. name: "测试"
  1068. LearningMaterialGet:
  1069. value:
  1070. id: 1
  1071. LearningMaterialAdd:
  1072. value:
  1073. skillId: 2
  1074. name: 测试 1
  1075. type: 2
  1076. sortNo:
  1077. enable: 1
  1078. content: 测试
  1079. file:
  1080. -
  1081. name: "1"
  1082. url: 1.txt
  1083. size: "1"
  1084. extend: .txt
  1085. -
  1086. name: "2"
  1087. url: 2.txt
  1088. size: "2"
  1089. extend: .txt
  1090. LearningMaterialUpdate:
  1091. value:
  1092. id: 1
  1093. skillId: 4
  1094. name: 测试修改
  1095. type: 1
  1096. sortNo: 5
  1097. enable: 0
  1098. content: 测试修改
  1099. file:
  1100. -
  1101. name: "3"
  1102. url: 3.txt
  1103. size: "3"
  1104. extend: .txt
  1105. -
  1106. name: "4"
  1107. url: 4.txt
  1108. size: "4"
  1109. extend: .txt
  1110. LearningMaterialDelete:
  1111. value:
  1112. id: 1
  1113. LearningQuestionGet:
  1114. value:
  1115. id: 1
  1116. LearningQuestionList:
  1117. value:
  1118. page:
  1119. current: 2
  1120. size: 2
  1121. orderBy:
  1122. type: desc
  1123. value: id
  1124. skillId: 2
  1125. name: "测试"
  1126. LearningQuestionAdd:
  1127. value:
  1128. skillId: 2
  1129. name: 测试
  1130. nameImage: https://go.dev/images/gophers/pilot-bust.svg
  1131. type: 1
  1132. enable: 1
  1133. content:
  1134. -
  1135. name: A
  1136. content: 测试A
  1137. image: https://go.dev/images/gophers/pilot-bust.svg
  1138. isCorrect: true
  1139. -
  1140. name: B
  1141. content: 测试B
  1142. image: https://go.dev/images/gophers/pilot-bust.svg
  1143. isCorrect: false
  1144. explanation: 测试
  1145. explanationImage: https://go.dev/images/gophers/pilot-bust.svg
  1146. LearningQuestionUpdate:
  1147. value:
  1148. id: 1
  1149. skillId: 5
  1150. name: 测试修改
  1151. nameImage: https://go.dev/images/gophers/pilot-bust.svg
  1152. type: 2
  1153. enable: 1
  1154. content:
  1155. -
  1156. name: A
  1157. image: https://go.dev/images/gophers/pilot-bust.svg
  1158. content: 测试测试修改A
  1159. isCorrect: true
  1160. -
  1161. name: B
  1162. image: https://go.dev/images/gophers/pilot-bust.svg
  1163. content: 测试测试修改B
  1164. isCorrect: true
  1165. explanation: 测试测试修改
  1166. explanationImage: https://go.dev/images/gophers/pilot-bust.svg
  1167. LearningQuestionDelete:
  1168. value:
  1169. id: 1
  1170. LearningExamRecordAddToMy:
  1171. value:
  1172. skillId: 2
  1173. testpaperId: 2
  1174. status: 2
  1175. LearningExamRecordListMy:
  1176. value:
  1177. skillId: 2
  1178. LearningExamRecordList:
  1179. value:
  1180. skillId: 2
  1181. LearningLearningRecordAddToMy:
  1182. value:
  1183. materialId: 2
  1184. status: 2
  1185. LearningLearningRecordListMy:
  1186. value:
  1187. materialId: 2
  1188. LearningLearningRecordList:
  1189. value:
  1190. materialId: 2