swagger.yml 27 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051
  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. # 添加这个 swagger ui 会显示授权按钮
  464. security:
  465. - bearerAuth: []
  466. components:
  467. securitySchemes:
  468. basicAuth:
  469. type: http
  470. scheme: basic
  471. bearerAuth:
  472. type: http
  473. scheme: bearer
  474. schemas:
  475. Nullable:
  476. type: object
  477. required:
  478. - Str
  479. - Int
  480. - Bool
  481. - Slice
  482. properties:
  483. Str:
  484. type: string
  485. description: 字符串参数
  486. Int:
  487. type: integer
  488. description: Int 参数
  489. Bool:
  490. type: boolean
  491. description: Bool 参数
  492. Slice:
  493. type: array
  494. description: Slice 参数
  495. items:
  496. type: integer
  497. NoArgs:
  498. type: object
  499. properties:
  500. noargs:
  501. type: string
  502. description: 无参数,但是 body 中必须传输一个 json 空对象 "{}"
  503. LearningSkillGet:
  504. properties:
  505. id:
  506. type: string
  507. description: 技能 id
  508. name:
  509. type: string
  510. description: 技能名称
  511. LearningSkillAdd:
  512. properties:
  513. instrumentId:
  514. type: string
  515. description: 技能关联的设备 id
  516. name:
  517. type: string
  518. description: 技能名称
  519. LearningSkillUpdate:
  520. required:
  521. - id
  522. properties:
  523. id:
  524. type: string
  525. description: 技能 id
  526. instrumentId:
  527. type: string
  528. description: 技能关联的设备 id
  529. name:
  530. type: string
  531. description: 技能名称
  532. IdReq:
  533. type: object
  534. required:
  535. - id
  536. properties:
  537. id:
  538. type: integer
  539. description: ID
  540. LearningMaterialList:
  541. type: object
  542. properties:
  543. page:
  544. type: object
  545. description: 分页信息,不传默认不分页,返回所有数据
  546. properties:
  547. current:
  548. type: integer
  549. description: 当前页面
  550. size:
  551. type: integer
  552. description: 每页条数
  553. orderBy:
  554. type: object
  555. description: 排序
  556. properties:
  557. type:
  558. type: string
  559. description: 排序方式
  560. enum:
  561. - asc
  562. - desc
  563. value:
  564. type: string
  565. description: 字段名
  566. skillId:
  567. type: integer
  568. description: 按技能 Id 查询
  569. name:
  570. type: string
  571. description: 按资料名称模糊查询
  572. LearningMaterialGet:
  573. type: object
  574. properties:
  575. id:
  576. type: string
  577. description: 资料 id
  578. name:
  579. type: string
  580. description: 资料名称
  581. LearningMaterialAdd:
  582. type: object
  583. required:
  584. - skillId
  585. - name
  586. - type
  587. - enable
  588. properties:
  589. skillId:
  590. type: integer
  591. description: 技能 Id
  592. name:
  593. type: string
  594. description: 资料名称
  595. type:
  596. type: integer
  597. description: 资料类型 1 资料 2 视频
  598. sortNo:
  599. type: integer
  600. description: 排序
  601. enable:
  602. type: integer
  603. description: 是否启用 0 未启用 1 启用
  604. content:
  605. type: string
  606. description: 资料内容
  607. file:
  608. type: array
  609. description: 附件
  610. items:
  611. type: object
  612. properties:
  613. name:
  614. type: string
  615. description: 文件名
  616. url:
  617. type: string
  618. description: 文件地址
  619. size:
  620. type: string
  621. description: 文件大小
  622. extend:
  623. type: string
  624. description: 文件扩展名
  625. LearningMaterialUpdate:
  626. type: object
  627. required:
  628. - id
  629. properties:
  630. id:
  631. type: integer
  632. description: 资料 id
  633. skillId:
  634. type: integer
  635. description: 技能 Id
  636. name:
  637. type: string
  638. description: 资料名称
  639. type:
  640. type: integer
  641. description: 资料类型 1 资料 2 视频
  642. sortNo:
  643. type: integer
  644. description: 排序
  645. enable:
  646. type: integer
  647. description: 是否启用 0 未启用 1 启用
  648. content:
  649. type: string
  650. description: 资料内容
  651. file:
  652. type: array
  653. description: 附件
  654. items:
  655. type: object
  656. properties:
  657. name:
  658. type: string
  659. description: 文件名
  660. url:
  661. type: string
  662. description: 文件地址
  663. size:
  664. type: string
  665. description: 文件大小
  666. extend:
  667. type: string
  668. description: 文件扩展名
  669. LearningQuestionList:
  670. type: object
  671. properties:
  672. page:
  673. type: object
  674. description: 分页信息,不传默认不分页,返回所有数据
  675. properties:
  676. current:
  677. type: integer
  678. description: 当前页面
  679. size:
  680. type: integer
  681. description: 每页条数
  682. orderBy:
  683. type: object
  684. description: 排序
  685. properties:
  686. type:
  687. type: string
  688. description: 排序方式
  689. enum:
  690. - asc
  691. - desc
  692. value:
  693. type: string
  694. description: 字段名
  695. skillId:
  696. type: integer
  697. description: 按技能 Id 查询
  698. name:
  699. type: string
  700. description: 按题目名称模糊查询
  701. LearningQuestionAdd:
  702. type: object
  703. required:
  704. - skillId
  705. - type
  706. - content
  707. properties:
  708. skillId:
  709. type: integer
  710. description: 技能 Id
  711. name:
  712. type: string
  713. description: 题目
  714. nameImage:
  715. type: string
  716. description: 题目图片
  717. type:
  718. type: integer
  719. description: 题型 1 单选 2 多选 3 判断
  720. enable:
  721. type: integer
  722. description: 是否启用 0 未启用 1 启用
  723. content:
  724. type: array
  725. description: 选项
  726. items:
  727. type: object
  728. properties:
  729. name:
  730. type: string
  731. description: 选项
  732. content:
  733. type: string
  734. description: 内容
  735. isCorrect:
  736. type: boolean
  737. description: 是否是答案
  738. explanation:
  739. type: string
  740. description: 题目解析
  741. explanationImage:
  742. type: string
  743. description: 题目解析图片
  744. LearningQuestionUpdate:
  745. type: object
  746. required:
  747. - id
  748. properties:
  749. id:
  750. type: integer
  751. description: 题目 id
  752. skillId:
  753. type: integer
  754. description: 技能 Id
  755. name:
  756. type: string
  757. description: 题目
  758. nameImage:
  759. type: string
  760. description: 题目图片
  761. type:
  762. type: integer
  763. description: 题型 1 单选 2 多选 3 判断
  764. enable:
  765. type: integer
  766. description: 是否启用 0 未启用 1 启用
  767. content:
  768. type: array
  769. description: 选项
  770. items:
  771. type: object
  772. properties:
  773. name:
  774. type: string
  775. description: 选项
  776. content:
  777. type: string
  778. description: 内容
  779. isCorrect:
  780. type: boolean
  781. description: 是否是答案
  782. explanation:
  783. type: string
  784. description: 题目解析
  785. explanationImage:
  786. type: string
  787. description: 题目解析图片
  788. LearningExamRecordAddToMy:
  789. type: object
  790. required:
  791. - skillId
  792. - testpaperId
  793. - status
  794. properties:
  795. skillId:
  796. type: integer
  797. description: 技
  798. testpaperId:
  799. type: integer
  800. description: 试
  801. status:
  802. type: integer
  803. description: 状态 1 通过 2 未通过
  804. LearningExamRecordListMy:
  805. type: object
  806. properties:
  807. page:
  808. type: object
  809. description: 分页信息,不传默认不分页,返回所有数据
  810. properties:
  811. current:
  812. type: integer
  813. description: 当前页面
  814. size:
  815. type: integer
  816. description: 每页条数
  817. orderBy:
  818. type: object
  819. description: 排序
  820. properties:
  821. type:
  822. type: string
  823. description: 排序方式
  824. enum:
  825. - asc
  826. - desc
  827. value:
  828. type: string
  829. description: 字段名
  830. skillId:
  831. type: integer
  832. description: 技
  833. testpaperId:
  834. type: integer
  835. description: 试
  836. status:
  837. type: integer
  838. description: 状态 1 通过 2 未通过
  839. LearningExamRecordList:
  840. type: object
  841. properties:
  842. page:
  843. type: object
  844. description: 分页信息,不传默认不分页,返回所有数据
  845. properties:
  846. current:
  847. type: integer
  848. description: 当前页面
  849. size:
  850. type: integer
  851. description: 每页条数
  852. orderBy:
  853. type: object
  854. description: 排序
  855. properties:
  856. type:
  857. type: string
  858. description: 排序方式
  859. enum:
  860. - asc
  861. - desc
  862. value:
  863. type: string
  864. description: 字段名
  865. skillId:
  866. type: integer
  867. description: 技
  868. testpaperId:
  869. type: integer
  870. description: 试
  871. status:
  872. type: integer
  873. description: 状态 1 通过 2 未通过
  874. userId:
  875. type: integer
  876. description: 用户 Id
  877. examples:
  878. success:
  879. summary: 请求成功
  880. value:
  881. code: 200,
  882. msg: "success"
  883. NullableReqAllPass:
  884. value:
  885. Str: ""
  886. Int: 0
  887. Bool: false
  888. Slice: []
  889. NoArgs:
  890. value:
  891. noargs: ""
  892. LearningSkillGet:
  893. value:
  894. Id: 1
  895. LearningSkillAdd:
  896. value:
  897. name: 测试
  898. instrumentId: [1,2]
  899. LearningSkillUpdate:
  900. value:
  901. name: 测试更新
  902. instrumentId: [3,4]
  903. id: 1
  904. LearningSkillDelete:
  905. value:
  906. id: 1
  907. LearningMaterialList:
  908. value:
  909. page:
  910. current: 2
  911. size: 2
  912. orderBy:
  913. type: desc
  914. value: id
  915. skillId: 2
  916. name: "测试"
  917. LearningMaterialGet:
  918. value:
  919. id: 1
  920. LearningMaterialAdd:
  921. value:
  922. skillId: 2
  923. name: 测试 1
  924. type: 2
  925. sortNo:
  926. enable: 1
  927. content: 测试
  928. file:
  929. -
  930. name: "1"
  931. url: 1.txt
  932. size: "1"
  933. extend: .txt
  934. -
  935. name: "2"
  936. url: 2.txt
  937. size: "2"
  938. extend: .txt
  939. LearningMaterialUpdate:
  940. value:
  941. id: 1
  942. skillId: 4
  943. name: 测试修改
  944. type: 1
  945. sortNo: 5
  946. enable: 0
  947. content: 测试修改
  948. file:
  949. -
  950. name: "3"
  951. url: 3.txt
  952. size: "3"
  953. extend: .txt
  954. -
  955. name: "4"
  956. url: 4.txt
  957. size: "4"
  958. extend: .txt
  959. LearningMaterialDelete:
  960. value:
  961. id: 1
  962. LearningQuestionGet:
  963. value:
  964. id: 1
  965. LearningQuestionList:
  966. value:
  967. page:
  968. current: 2
  969. size: 2
  970. orderBy:
  971. type: desc
  972. value: id
  973. skillId: 2
  974. name: "测试"
  975. LearningQuestionAdd:
  976. value:
  977. skillId: 2
  978. name: 测试
  979. nameImage: https://go.dev/images/gophers/pilot-bust.svg
  980. type: 1
  981. enable: 1
  982. content:
  983. -
  984. name: A
  985. content: 测试A
  986. image: https://go.dev/images/gophers/pilot-bust.svg
  987. isCorrect: true
  988. -
  989. name: B
  990. content: 测试B
  991. image: https://go.dev/images/gophers/pilot-bust.svg
  992. isCorrect: false
  993. explanation: 测试
  994. explanationImage: https://go.dev/images/gophers/pilot-bust.svg
  995. LearningQuestionUpdate:
  996. value:
  997. id: 1
  998. skillId: 5
  999. name: 测试修改
  1000. nameImage: https://go.dev/images/gophers/pilot-bust.svg
  1001. type: 2
  1002. enable: 1
  1003. content:
  1004. -
  1005. name: A
  1006. image: https://go.dev/images/gophers/pilot-bust.svg
  1007. content: 测试测试修改A
  1008. isCorrect: true
  1009. -
  1010. name: B
  1011. image: https://go.dev/images/gophers/pilot-bust.svg
  1012. content: 测试测试修改B
  1013. isCorrect: true
  1014. explanation: 测试测试修改
  1015. explanationImage: https://go.dev/images/gophers/pilot-bust.svg
  1016. LearningQuestionDelete:
  1017. value:
  1018. id: 1
  1019. LearningExamRecordAddToMy:
  1020. value:
  1021. skillId: 2
  1022. testpaperId: 2
  1023. status: 2
  1024. LearningExamRecordListMy:
  1025. value:
  1026. skillId: 2
  1027. LearningExamRecordList:
  1028. value:
  1029. skillId: 2