swagger.yml 44 KB

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