admin_swagger.yaml 42 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891
  1. basePath: /api
  2. definitions:
  3. Gwen_http_request_admin.Login:
  4. properties:
  5. password:
  6. type: string
  7. platform:
  8. type: string
  9. username:
  10. type: string
  11. required:
  12. - password
  13. - username
  14. type: object
  15. admin.AddressBookForm:
  16. properties:
  17. alias:
  18. type: string
  19. forceAlwaysRelay:
  20. type: boolean
  21. hash:
  22. type: string
  23. hostname:
  24. type: string
  25. id:
  26. type: string
  27. loginName:
  28. type: string
  29. online:
  30. type: boolean
  31. password:
  32. type: string
  33. platform:
  34. type: string
  35. rdpPort:
  36. type: string
  37. rdpUsername:
  38. type: string
  39. row_id:
  40. type: integer
  41. sameServer:
  42. type: boolean
  43. tags:
  44. items:
  45. type: string
  46. type: array
  47. user_id:
  48. type: integer
  49. user_ids:
  50. items:
  51. type: integer
  52. type: array
  53. username:
  54. type: string
  55. required:
  56. - id
  57. type: object
  58. admin.ChangeCurPasswordForm:
  59. properties:
  60. new_password:
  61. maxLength: 20
  62. minLength: 4
  63. type: string
  64. old_password:
  65. maxLength: 20
  66. minLength: 4
  67. type: string
  68. required:
  69. - new_password
  70. - old_password
  71. type: object
  72. admin.GroupForm:
  73. properties:
  74. id:
  75. type: integer
  76. name:
  77. type: string
  78. required:
  79. - name
  80. type: object
  81. admin.LoginPayload:
  82. properties:
  83. nickname:
  84. type: string
  85. route_names:
  86. items:
  87. type: string
  88. type: array
  89. token:
  90. type: string
  91. username:
  92. type: string
  93. type: object
  94. admin.OauthForm:
  95. properties:
  96. auto_register:
  97. type: boolean
  98. client_id:
  99. type: string
  100. client_secret:
  101. type: string
  102. id:
  103. type: integer
  104. op:
  105. type: string
  106. redirect_url:
  107. type: string
  108. required:
  109. - client_id
  110. - client_secret
  111. - op
  112. - redirect_url
  113. type: object
  114. admin.PeerBatchDeleteForm:
  115. properties:
  116. row_ids:
  117. items:
  118. type: integer
  119. type: array
  120. required:
  121. - row_ids
  122. type: object
  123. admin.PeerForm:
  124. properties:
  125. cpu:
  126. type: string
  127. hostname:
  128. type: string
  129. id:
  130. type: string
  131. memory:
  132. type: string
  133. os:
  134. type: string
  135. row_id:
  136. type: integer
  137. username:
  138. type: string
  139. uuid:
  140. type: string
  141. version:
  142. type: string
  143. type: object
  144. admin.ShareByWebClientForm:
  145. properties:
  146. expire:
  147. type: integer
  148. id:
  149. type: string
  150. password:
  151. type: string
  152. password_type:
  153. description: 只能是once,fixed
  154. enum:
  155. - once
  156. - fixed
  157. type: string
  158. required:
  159. - id
  160. - password
  161. - password_type
  162. type: object
  163. admin.TagForm:
  164. properties:
  165. color:
  166. type: integer
  167. id:
  168. type: integer
  169. name:
  170. type: string
  171. user_id:
  172. type: integer
  173. required:
  174. - color
  175. - name
  176. type: object
  177. admin.UserForm:
  178. properties:
  179. avatar:
  180. type: string
  181. group_id:
  182. type: integer
  183. id:
  184. type: integer
  185. is_admin:
  186. type: boolean
  187. nickname:
  188. description: Password string `json:"password" validate:"required,gte=4,lte=20"`
  189. type: string
  190. status:
  191. allOf:
  192. - $ref: '#/definitions/model.StatusCode'
  193. minimum: 0
  194. username:
  195. maxLength: 10
  196. minLength: 4
  197. type: string
  198. required:
  199. - group_id
  200. - status
  201. - username
  202. type: object
  203. admin.UserOauthItem:
  204. properties:
  205. status:
  206. type: integer
  207. third_type:
  208. type: string
  209. type: object
  210. admin.UserPasswordForm:
  211. properties:
  212. id:
  213. type: integer
  214. password:
  215. maxLength: 20
  216. minLength: 4
  217. type: string
  218. required:
  219. - id
  220. - password
  221. type: object
  222. model.AddressBook:
  223. properties:
  224. alias:
  225. type: string
  226. created_at:
  227. type: string
  228. forceAlwaysRelay:
  229. type: boolean
  230. hash:
  231. type: string
  232. hostname:
  233. type: string
  234. id:
  235. type: string
  236. loginName:
  237. type: string
  238. online:
  239. type: boolean
  240. password:
  241. type: string
  242. platform:
  243. type: string
  244. rdpPort:
  245. type: string
  246. rdpUsername:
  247. type: string
  248. row_id:
  249. type: integer
  250. sameServer:
  251. type: boolean
  252. tags:
  253. items:
  254. type: string
  255. type: array
  256. updated_at:
  257. type: string
  258. user_id:
  259. type: integer
  260. username:
  261. type: string
  262. type: object
  263. model.AddressBookList:
  264. properties:
  265. list:
  266. items:
  267. $ref: '#/definitions/model.AddressBook'
  268. type: array
  269. page:
  270. type: integer
  271. page_size:
  272. type: integer
  273. total:
  274. type: integer
  275. type: object
  276. model.Group:
  277. properties:
  278. created_at:
  279. type: string
  280. id:
  281. type: integer
  282. name:
  283. type: string
  284. type:
  285. type: integer
  286. updated_at:
  287. type: string
  288. type: object
  289. model.GroupList:
  290. properties:
  291. list:
  292. items:
  293. $ref: '#/definitions/model.Group'
  294. type: array
  295. page:
  296. type: integer
  297. page_size:
  298. type: integer
  299. total:
  300. type: integer
  301. type: object
  302. model.LoginLog:
  303. properties:
  304. client:
  305. description: webadmin,webclient,app,
  306. type: string
  307. created_at:
  308. type: string
  309. id:
  310. type: integer
  311. ip:
  312. type: string
  313. platform:
  314. description: windows,linux,mac,android,ios
  315. type: string
  316. type:
  317. description: account,oauth
  318. type: string
  319. updated_at:
  320. type: string
  321. user_id:
  322. type: integer
  323. uuid:
  324. type: string
  325. type: object
  326. model.LoginLogList:
  327. properties:
  328. list:
  329. items:
  330. $ref: '#/definitions/model.LoginLog'
  331. type: array
  332. page:
  333. type: integer
  334. page_size:
  335. type: integer
  336. total:
  337. type: integer
  338. type: object
  339. model.Oauth:
  340. properties:
  341. auto_register:
  342. type: boolean
  343. client_id:
  344. type: string
  345. client_secret:
  346. type: string
  347. created_at:
  348. type: string
  349. id:
  350. type: integer
  351. op:
  352. type: string
  353. redirect_url:
  354. type: string
  355. updated_at:
  356. type: string
  357. type: object
  358. model.OauthList:
  359. properties:
  360. list:
  361. items:
  362. $ref: '#/definitions/model.Oauth'
  363. type: array
  364. page:
  365. type: integer
  366. page_size:
  367. type: integer
  368. total:
  369. type: integer
  370. type: object
  371. model.Peer:
  372. properties:
  373. cpu:
  374. type: string
  375. created_at:
  376. type: string
  377. hostname:
  378. type: string
  379. id:
  380. type: string
  381. last_online_time:
  382. type: integer
  383. memory:
  384. type: string
  385. os:
  386. type: string
  387. row_id:
  388. type: integer
  389. updated_at:
  390. type: string
  391. user:
  392. $ref: '#/definitions/model.User'
  393. user_id:
  394. type: integer
  395. username:
  396. type: string
  397. uuid:
  398. type: string
  399. version:
  400. type: string
  401. type: object
  402. model.PeerList:
  403. properties:
  404. list:
  405. items:
  406. $ref: '#/definitions/model.Peer'
  407. type: array
  408. page:
  409. type: integer
  410. page_size:
  411. type: integer
  412. total:
  413. type: integer
  414. type: object
  415. model.StatusCode:
  416. enum:
  417. - 1
  418. - 2
  419. type: integer
  420. x-enum-comments:
  421. COMMON_STATUS_DISABLED: 通用状态 禁用
  422. COMMON_STATUS_ENABLE: 通用状态 启用
  423. x-enum-varnames:
  424. - COMMON_STATUS_ENABLE
  425. - COMMON_STATUS_DISABLED
  426. model.Tag:
  427. properties:
  428. color:
  429. description: color 是flutter的颜色值,从0x00000000 到 0xFFFFFFFF; 前两位表示透明度,后面6位表示颜色,
  430. 可以转成rgba
  431. type: integer
  432. created_at:
  433. type: string
  434. id:
  435. type: integer
  436. name:
  437. type: string
  438. updated_at:
  439. type: string
  440. user_id:
  441. type: integer
  442. type: object
  443. model.TagList:
  444. properties:
  445. list:
  446. items:
  447. $ref: '#/definitions/model.Tag'
  448. type: array
  449. page:
  450. type: integer
  451. page_size:
  452. type: integer
  453. total:
  454. type: integer
  455. type: object
  456. model.User:
  457. properties:
  458. avatar:
  459. type: string
  460. created_at:
  461. type: string
  462. group_id:
  463. type: integer
  464. id:
  465. type: integer
  466. is_admin:
  467. type: boolean
  468. nickname:
  469. type: string
  470. status:
  471. $ref: '#/definitions/model.StatusCode'
  472. updated_at:
  473. type: string
  474. username:
  475. type: string
  476. type: object
  477. model.UserList:
  478. properties:
  479. list:
  480. items:
  481. $ref: '#/definitions/model.User'
  482. type: array
  483. page:
  484. type: integer
  485. page_size:
  486. type: integer
  487. total:
  488. type: integer
  489. type: object
  490. response.Response:
  491. properties:
  492. code:
  493. type: integer
  494. data: {}
  495. message:
  496. type: string
  497. type: object
  498. info:
  499. contact: {}
  500. description: 接口
  501. title: 管理系统API
  502. version: "1.0"
  503. paths:
  504. /admin/address_book/create:
  505. post:
  506. consumes:
  507. - application/json
  508. description: 批量创建地址簿
  509. parameters:
  510. - description: 地址簿信息
  511. in: body
  512. name: body
  513. required: true
  514. schema:
  515. $ref: '#/definitions/admin.AddressBookForm'
  516. produces:
  517. - application/json
  518. responses:
  519. "200":
  520. description: OK
  521. schema:
  522. allOf:
  523. - $ref: '#/definitions/response.Response'
  524. - properties:
  525. data:
  526. $ref: '#/definitions/model.AddressBook'
  527. type: object
  528. "500":
  529. description: Internal Server Error
  530. schema:
  531. $ref: '#/definitions/response.Response'
  532. security:
  533. - token: []
  534. summary: 批量创建地址簿
  535. tags:
  536. - 地址簿
  537. /admin/address_book/delete:
  538. post:
  539. consumes:
  540. - application/json
  541. description: 地址簿删除
  542. parameters:
  543. - description: 地址簿信息
  544. in: body
  545. name: body
  546. required: true
  547. schema:
  548. $ref: '#/definitions/admin.AddressBookForm'
  549. produces:
  550. - application/json
  551. responses:
  552. "200":
  553. description: OK
  554. schema:
  555. $ref: '#/definitions/response.Response'
  556. "500":
  557. description: Internal Server Error
  558. schema:
  559. $ref: '#/definitions/response.Response'
  560. security:
  561. - token: []
  562. summary: 地址簿删除
  563. tags:
  564. - 地址簿
  565. /admin/address_book/detail/{id}:
  566. get:
  567. consumes:
  568. - application/json
  569. description: 地址簿详情
  570. parameters:
  571. - description: ID
  572. in: path
  573. name: id
  574. required: true
  575. type: integer
  576. produces:
  577. - application/json
  578. responses:
  579. "200":
  580. description: OK
  581. schema:
  582. allOf:
  583. - $ref: '#/definitions/response.Response'
  584. - properties:
  585. data:
  586. $ref: '#/definitions/model.AddressBook'
  587. type: object
  588. "500":
  589. description: Internal Server Error
  590. schema:
  591. $ref: '#/definitions/response.Response'
  592. security:
  593. - token: []
  594. summary: 地址簿详情
  595. tags:
  596. - 地址簿
  597. /admin/address_book/list:
  598. get:
  599. consumes:
  600. - application/json
  601. description: 地址簿列表
  602. parameters:
  603. - description: 页码
  604. in: query
  605. name: page
  606. type: integer
  607. - description: 页大小
  608. in: query
  609. name: page_size
  610. type: integer
  611. - description: 用户id
  612. in: query
  613. name: user_id
  614. type: integer
  615. - description: 是否是我的
  616. in: query
  617. name: is_my
  618. type: integer
  619. produces:
  620. - application/json
  621. responses:
  622. "200":
  623. description: OK
  624. schema:
  625. allOf:
  626. - $ref: '#/definitions/response.Response'
  627. - properties:
  628. data:
  629. $ref: '#/definitions/model.AddressBookList'
  630. type: object
  631. "500":
  632. description: Internal Server Error
  633. schema:
  634. $ref: '#/definitions/response.Response'
  635. security:
  636. - token: []
  637. summary: 地址簿列表
  638. tags:
  639. - 地址簿
  640. /admin/address_book/share:
  641. post:
  642. consumes:
  643. - application/json
  644. description: 地址簿分享
  645. parameters:
  646. - description: 地址簿信息
  647. in: body
  648. name: body
  649. required: true
  650. schema:
  651. $ref: '#/definitions/admin.ShareByWebClientForm'
  652. produces:
  653. - application/json
  654. responses:
  655. "200":
  656. description: OK
  657. schema:
  658. $ref: '#/definitions/response.Response'
  659. "500":
  660. description: Internal Server Error
  661. schema:
  662. $ref: '#/definitions/response.Response'
  663. security:
  664. - token: []
  665. summary: 地址簿分享
  666. tags:
  667. - 地址簿
  668. /admin/address_book/update:
  669. post:
  670. consumes:
  671. - application/json
  672. description: 地址簿编辑
  673. parameters:
  674. - description: 地址簿信息
  675. in: body
  676. name: body
  677. required: true
  678. schema:
  679. $ref: '#/definitions/admin.AddressBookForm'
  680. produces:
  681. - application/json
  682. responses:
  683. "200":
  684. description: OK
  685. schema:
  686. allOf:
  687. - $ref: '#/definitions/response.Response'
  688. - properties:
  689. data:
  690. $ref: '#/definitions/model.AddressBook'
  691. type: object
  692. "500":
  693. description: Internal Server Error
  694. schema:
  695. $ref: '#/definitions/response.Response'
  696. security:
  697. - token: []
  698. summary: 地址簿编辑
  699. tags:
  700. - 地址簿
  701. /admin/app-config:
  702. get:
  703. consumes:
  704. - application/json
  705. description: APP服务配置
  706. produces:
  707. - application/json
  708. responses:
  709. "200":
  710. description: OK
  711. schema:
  712. $ref: '#/definitions/response.Response'
  713. "500":
  714. description: Internal Server Error
  715. schema:
  716. $ref: '#/definitions/response.Response'
  717. security:
  718. - token: []
  719. summary: APP服务配置
  720. tags:
  721. - ADMIN
  722. /admin/file/oss_token:
  723. get:
  724. consumes:
  725. - application/json
  726. description: 获取ossToken
  727. produces:
  728. - application/json
  729. responses:
  730. "200":
  731. description: OK
  732. schema:
  733. $ref: '#/definitions/response.Response'
  734. "500":
  735. description: Internal Server Error
  736. schema:
  737. $ref: '#/definitions/response.Response'
  738. security:
  739. - token: []
  740. summary: 获取ossToken
  741. tags:
  742. - 文件
  743. /admin/file/upload:
  744. post:
  745. consumes:
  746. - multipart/form-data
  747. description: 上传文件到本地
  748. parameters:
  749. - description: 上传文件示例
  750. in: formData
  751. name: file
  752. required: true
  753. type: file
  754. produces:
  755. - application/json
  756. responses:
  757. "200":
  758. description: OK
  759. schema:
  760. $ref: '#/definitions/response.Response'
  761. "500":
  762. description: Internal Server Error
  763. schema:
  764. $ref: '#/definitions/response.Response'
  765. security:
  766. - token: []
  767. summary: 上传文件到本地
  768. tags:
  769. - 文件
  770. /admin/group/create:
  771. post:
  772. consumes:
  773. - application/json
  774. description: 创建群组
  775. parameters:
  776. - description: 群组信息
  777. in: body
  778. name: body
  779. required: true
  780. schema:
  781. $ref: '#/definitions/admin.GroupForm'
  782. produces:
  783. - application/json
  784. responses:
  785. "200":
  786. description: OK
  787. schema:
  788. allOf:
  789. - $ref: '#/definitions/response.Response'
  790. - properties:
  791. data:
  792. $ref: '#/definitions/model.Group'
  793. type: object
  794. "500":
  795. description: Internal Server Error
  796. schema:
  797. $ref: '#/definitions/response.Response'
  798. security:
  799. - token: []
  800. summary: 创建群组
  801. tags:
  802. - 群组
  803. /admin/group/delete:
  804. post:
  805. consumes:
  806. - application/json
  807. description: 群组删除
  808. parameters:
  809. - description: 群组信息
  810. in: body
  811. name: body
  812. required: true
  813. schema:
  814. $ref: '#/definitions/admin.GroupForm'
  815. produces:
  816. - application/json
  817. responses:
  818. "200":
  819. description: OK
  820. schema:
  821. $ref: '#/definitions/response.Response'
  822. "500":
  823. description: Internal Server Error
  824. schema:
  825. $ref: '#/definitions/response.Response'
  826. security:
  827. - token: []
  828. summary: 群组删除
  829. tags:
  830. - 群组
  831. /admin/group/detail/{id}:
  832. get:
  833. consumes:
  834. - application/json
  835. description: 群组详情
  836. parameters:
  837. - description: ID
  838. in: path
  839. name: id
  840. required: true
  841. type: integer
  842. produces:
  843. - application/json
  844. responses:
  845. "200":
  846. description: OK
  847. schema:
  848. allOf:
  849. - $ref: '#/definitions/response.Response'
  850. - properties:
  851. data:
  852. $ref: '#/definitions/model.Group'
  853. type: object
  854. "500":
  855. description: Internal Server Error
  856. schema:
  857. $ref: '#/definitions/response.Response'
  858. security:
  859. - token: []
  860. summary: 群组详情
  861. tags:
  862. - 群组
  863. /admin/group/list:
  864. get:
  865. consumes:
  866. - application/json
  867. description: 群组列表
  868. parameters:
  869. - description: 页码
  870. in: query
  871. name: page
  872. type: integer
  873. - description: 页大小
  874. in: query
  875. name: page_size
  876. type: integer
  877. produces:
  878. - application/json
  879. responses:
  880. "200":
  881. description: OK
  882. schema:
  883. allOf:
  884. - $ref: '#/definitions/response.Response'
  885. - properties:
  886. data:
  887. $ref: '#/definitions/model.GroupList'
  888. type: object
  889. "500":
  890. description: Internal Server Error
  891. schema:
  892. $ref: '#/definitions/response.Response'
  893. security:
  894. - token: []
  895. summary: 群组列表
  896. tags:
  897. - 群组
  898. /admin/group/update:
  899. post:
  900. consumes:
  901. - application/json
  902. description: 群组编辑
  903. parameters:
  904. - description: 群组信息
  905. in: body
  906. name: body
  907. required: true
  908. schema:
  909. $ref: '#/definitions/admin.GroupForm'
  910. produces:
  911. - application/json
  912. responses:
  913. "200":
  914. description: OK
  915. schema:
  916. allOf:
  917. - $ref: '#/definitions/response.Response'
  918. - properties:
  919. data:
  920. $ref: '#/definitions/model.Group'
  921. type: object
  922. "500":
  923. description: Internal Server Error
  924. schema:
  925. $ref: '#/definitions/response.Response'
  926. security:
  927. - token: []
  928. summary: 群组编辑
  929. tags:
  930. - 群组
  931. /admin/login:
  932. post:
  933. consumes:
  934. - application/json
  935. description: 登录
  936. parameters:
  937. - description: 登录信息
  938. in: body
  939. name: body
  940. required: true
  941. schema:
  942. $ref: '#/definitions/Gwen_http_request_admin.Login'
  943. produces:
  944. - application/json
  945. responses:
  946. "200":
  947. description: OK
  948. schema:
  949. allOf:
  950. - $ref: '#/definitions/response.Response'
  951. - properties:
  952. data:
  953. $ref: '#/definitions/admin.LoginPayload'
  954. type: object
  955. "500":
  956. description: Internal Server Error
  957. schema:
  958. $ref: '#/definitions/response.Response'
  959. security:
  960. - token: []
  961. summary: 登录
  962. tags:
  963. - 登录
  964. /admin/loginLog/delete:
  965. post:
  966. consumes:
  967. - application/json
  968. description: 登录日志删除
  969. parameters:
  970. - description: 登录日志信息
  971. in: body
  972. name: body
  973. required: true
  974. schema:
  975. $ref: '#/definitions/model.LoginLog'
  976. produces:
  977. - application/json
  978. responses:
  979. "200":
  980. description: OK
  981. schema:
  982. $ref: '#/definitions/response.Response'
  983. "500":
  984. description: Internal Server Error
  985. schema:
  986. $ref: '#/definitions/response.Response'
  987. security:
  988. - token: []
  989. summary: 登录日志删除
  990. tags:
  991. - 登录日志
  992. /admin/loginLog/detail/{id}:
  993. get:
  994. consumes:
  995. - application/json
  996. description: 登录日志详情
  997. parameters:
  998. - description: ID
  999. in: path
  1000. name: id
  1001. required: true
  1002. type: integer
  1003. produces:
  1004. - application/json
  1005. responses:
  1006. "200":
  1007. description: OK
  1008. schema:
  1009. allOf:
  1010. - $ref: '#/definitions/response.Response'
  1011. - properties:
  1012. data:
  1013. $ref: '#/definitions/model.LoginLog'
  1014. type: object
  1015. "500":
  1016. description: Internal Server Error
  1017. schema:
  1018. $ref: '#/definitions/response.Response'
  1019. security:
  1020. - token: []
  1021. summary: 登录日志详情
  1022. tags:
  1023. - 登录日志
  1024. /admin/loginLog/list:
  1025. get:
  1026. consumes:
  1027. - application/json
  1028. description: 登录日志列表
  1029. parameters:
  1030. - description: 页码
  1031. in: query
  1032. name: page
  1033. type: integer
  1034. - description: 页大小
  1035. in: query
  1036. name: page_size
  1037. type: integer
  1038. - description: 用户ID
  1039. in: query
  1040. name: user_id
  1041. type: integer
  1042. produces:
  1043. - application/json
  1044. responses:
  1045. "200":
  1046. description: OK
  1047. schema:
  1048. allOf:
  1049. - $ref: '#/definitions/response.Response'
  1050. - properties:
  1051. data:
  1052. $ref: '#/definitions/model.LoginLogList'
  1053. type: object
  1054. "500":
  1055. description: Internal Server Error
  1056. schema:
  1057. $ref: '#/definitions/response.Response'
  1058. security:
  1059. - token: []
  1060. summary: 登录日志列表
  1061. tags:
  1062. - 登录日志
  1063. /admin/logout:
  1064. post:
  1065. consumes:
  1066. - application/json
  1067. description: 登出
  1068. produces:
  1069. - application/json
  1070. responses:
  1071. "200":
  1072. description: OK
  1073. schema:
  1074. $ref: '#/definitions/response.Response'
  1075. "500":
  1076. description: Internal Server Error
  1077. schema:
  1078. $ref: '#/definitions/response.Response'
  1079. summary: 登出
  1080. tags:
  1081. - 登录
  1082. /admin/oauth/create:
  1083. post:
  1084. consumes:
  1085. - application/json
  1086. description: 创建Oauth
  1087. parameters:
  1088. - description: Oauth信息
  1089. in: body
  1090. name: body
  1091. required: true
  1092. schema:
  1093. $ref: '#/definitions/admin.OauthForm'
  1094. produces:
  1095. - application/json
  1096. responses:
  1097. "200":
  1098. description: OK
  1099. schema:
  1100. allOf:
  1101. - $ref: '#/definitions/response.Response'
  1102. - properties:
  1103. data:
  1104. $ref: '#/definitions/model.Oauth'
  1105. type: object
  1106. "500":
  1107. description: Internal Server Error
  1108. schema:
  1109. $ref: '#/definitions/response.Response'
  1110. security:
  1111. - token: []
  1112. summary: 创建Oauth
  1113. tags:
  1114. - Oauth
  1115. /admin/oauth/delete:
  1116. post:
  1117. consumes:
  1118. - application/json
  1119. description: Oauth删除
  1120. parameters:
  1121. - description: Oauth信息
  1122. in: body
  1123. name: body
  1124. required: true
  1125. schema:
  1126. $ref: '#/definitions/admin.OauthForm'
  1127. produces:
  1128. - application/json
  1129. responses:
  1130. "200":
  1131. description: OK
  1132. schema:
  1133. $ref: '#/definitions/response.Response'
  1134. "500":
  1135. description: Internal Server Error
  1136. schema:
  1137. $ref: '#/definitions/response.Response'
  1138. security:
  1139. - token: []
  1140. summary: Oauth删除
  1141. tags:
  1142. - Oauth
  1143. /admin/oauth/detail/{id}:
  1144. get:
  1145. consumes:
  1146. - application/json
  1147. description: Oauth详情
  1148. parameters:
  1149. - description: ID
  1150. in: path
  1151. name: id
  1152. required: true
  1153. type: integer
  1154. produces:
  1155. - application/json
  1156. responses:
  1157. "200":
  1158. description: OK
  1159. schema:
  1160. allOf:
  1161. - $ref: '#/definitions/response.Response'
  1162. - properties:
  1163. data:
  1164. $ref: '#/definitions/model.Oauth'
  1165. type: object
  1166. "500":
  1167. description: Internal Server Error
  1168. schema:
  1169. $ref: '#/definitions/response.Response'
  1170. security:
  1171. - token: []
  1172. summary: Oauth详情
  1173. tags:
  1174. - Oauth
  1175. /admin/oauth/list:
  1176. get:
  1177. consumes:
  1178. - application/json
  1179. description: Oauth列表
  1180. parameters:
  1181. - description: 页码
  1182. in: query
  1183. name: page
  1184. type: integer
  1185. - description: 页大小
  1186. in: query
  1187. name: page_size
  1188. type: integer
  1189. produces:
  1190. - application/json
  1191. responses:
  1192. "200":
  1193. description: OK
  1194. schema:
  1195. allOf:
  1196. - $ref: '#/definitions/response.Response'
  1197. - properties:
  1198. data:
  1199. $ref: '#/definitions/model.OauthList'
  1200. type: object
  1201. "500":
  1202. description: Internal Server Error
  1203. schema:
  1204. $ref: '#/definitions/response.Response'
  1205. security:
  1206. - token: []
  1207. summary: Oauth列表
  1208. tags:
  1209. - Oauth
  1210. /admin/oauth/update:
  1211. post:
  1212. consumes:
  1213. - application/json
  1214. description: Oauth编辑
  1215. parameters:
  1216. - description: Oauth信息
  1217. in: body
  1218. name: body
  1219. required: true
  1220. schema:
  1221. $ref: '#/definitions/admin.OauthForm'
  1222. produces:
  1223. - application/json
  1224. responses:
  1225. "200":
  1226. description: OK
  1227. schema:
  1228. allOf:
  1229. - $ref: '#/definitions/response.Response'
  1230. - properties:
  1231. data:
  1232. $ref: '#/definitions/model.OauthList'
  1233. type: object
  1234. "500":
  1235. description: Internal Server Error
  1236. schema:
  1237. $ref: '#/definitions/response.Response'
  1238. security:
  1239. - token: []
  1240. summary: Oauth编辑
  1241. tags:
  1242. - Oauth
  1243. /admin/peer/create:
  1244. post:
  1245. consumes:
  1246. - application/json
  1247. description: 创建设备
  1248. parameters:
  1249. - description: 设备信息
  1250. in: body
  1251. name: body
  1252. required: true
  1253. schema:
  1254. $ref: '#/definitions/admin.PeerForm'
  1255. produces:
  1256. - application/json
  1257. responses:
  1258. "200":
  1259. description: OK
  1260. schema:
  1261. allOf:
  1262. - $ref: '#/definitions/response.Response'
  1263. - properties:
  1264. data:
  1265. $ref: '#/definitions/model.Peer'
  1266. type: object
  1267. "500":
  1268. description: Internal Server Error
  1269. schema:
  1270. $ref: '#/definitions/response.Response'
  1271. security:
  1272. - token: []
  1273. summary: 创建设备
  1274. tags:
  1275. - 设备
  1276. /admin/peer/delete:
  1277. post:
  1278. consumes:
  1279. - application/json
  1280. description: 批量设备删除
  1281. parameters:
  1282. - description: 设备id
  1283. in: body
  1284. name: body
  1285. required: true
  1286. schema:
  1287. $ref: '#/definitions/admin.PeerBatchDeleteForm'
  1288. produces:
  1289. - application/json
  1290. responses:
  1291. "200":
  1292. description: OK
  1293. schema:
  1294. $ref: '#/definitions/response.Response'
  1295. "500":
  1296. description: Internal Server Error
  1297. schema:
  1298. $ref: '#/definitions/response.Response'
  1299. security:
  1300. - token: []
  1301. summary: 批量设备删除
  1302. tags:
  1303. - 设备
  1304. /admin/peer/detail/{id}:
  1305. get:
  1306. consumes:
  1307. - application/json
  1308. description: 设备详情
  1309. parameters:
  1310. - description: ID
  1311. in: path
  1312. name: id
  1313. required: true
  1314. type: integer
  1315. produces:
  1316. - application/json
  1317. responses:
  1318. "200":
  1319. description: OK
  1320. schema:
  1321. allOf:
  1322. - $ref: '#/definitions/response.Response'
  1323. - properties:
  1324. data:
  1325. $ref: '#/definitions/model.Peer'
  1326. type: object
  1327. "500":
  1328. description: Internal Server Error
  1329. schema:
  1330. $ref: '#/definitions/response.Response'
  1331. security:
  1332. - token: []
  1333. summary: 设备详情
  1334. tags:
  1335. - 设备
  1336. /admin/peer/list:
  1337. get:
  1338. consumes:
  1339. - application/json
  1340. description: 设备列表
  1341. parameters:
  1342. - description: 页码
  1343. in: query
  1344. name: page
  1345. type: integer
  1346. - description: 页大小
  1347. in: query
  1348. name: page_size
  1349. type: integer
  1350. - description: 时间
  1351. in: query
  1352. name: time_ago
  1353. type: integer
  1354. - description: ID
  1355. in: query
  1356. name: id
  1357. type: string
  1358. - description: 主机名
  1359. in: query
  1360. name: hostname
  1361. type: string
  1362. produces:
  1363. - application/json
  1364. responses:
  1365. "200":
  1366. description: OK
  1367. schema:
  1368. allOf:
  1369. - $ref: '#/definitions/response.Response'
  1370. - properties:
  1371. data:
  1372. $ref: '#/definitions/model.PeerList'
  1373. type: object
  1374. "500":
  1375. description: Internal Server Error
  1376. schema:
  1377. $ref: '#/definitions/response.Response'
  1378. security:
  1379. - token: []
  1380. summary: 设备列表
  1381. tags:
  1382. - 设备
  1383. /admin/peer/update:
  1384. post:
  1385. consumes:
  1386. - application/json
  1387. description: 设备编辑
  1388. parameters:
  1389. - description: 设备信息
  1390. in: body
  1391. name: body
  1392. required: true
  1393. schema:
  1394. $ref: '#/definitions/admin.PeerForm'
  1395. produces:
  1396. - application/json
  1397. responses:
  1398. "200":
  1399. description: OK
  1400. schema:
  1401. allOf:
  1402. - $ref: '#/definitions/response.Response'
  1403. - properties:
  1404. data:
  1405. $ref: '#/definitions/model.Peer'
  1406. type: object
  1407. "500":
  1408. description: Internal Server Error
  1409. schema:
  1410. $ref: '#/definitions/response.Response'
  1411. security:
  1412. - token: []
  1413. summary: 设备编辑
  1414. tags:
  1415. - 设备
  1416. /admin/server-config:
  1417. get:
  1418. consumes:
  1419. - application/json
  1420. description: 服务配置,给webclient提供api-server
  1421. produces:
  1422. - application/json
  1423. responses:
  1424. "200":
  1425. description: OK
  1426. schema:
  1427. $ref: '#/definitions/response.Response'
  1428. "500":
  1429. description: Internal Server Error
  1430. schema:
  1431. $ref: '#/definitions/response.Response'
  1432. security:
  1433. - token: []
  1434. summary: RUSTDESK服务配置
  1435. tags:
  1436. - ADMIN
  1437. /admin/tag/create:
  1438. post:
  1439. consumes:
  1440. - application/json
  1441. description: 创建标签
  1442. parameters:
  1443. - description: 标签信息
  1444. in: body
  1445. name: body
  1446. required: true
  1447. schema:
  1448. $ref: '#/definitions/admin.TagForm'
  1449. produces:
  1450. - application/json
  1451. responses:
  1452. "200":
  1453. description: OK
  1454. schema:
  1455. allOf:
  1456. - $ref: '#/definitions/response.Response'
  1457. - properties:
  1458. data:
  1459. $ref: '#/definitions/model.Tag'
  1460. type: object
  1461. "500":
  1462. description: Internal Server Error
  1463. schema:
  1464. $ref: '#/definitions/response.Response'
  1465. security:
  1466. - token: []
  1467. summary: 创建标签
  1468. tags:
  1469. - 标签
  1470. /admin/tag/delete:
  1471. post:
  1472. consumes:
  1473. - application/json
  1474. description: 标签删除
  1475. parameters:
  1476. - description: 标签信息
  1477. in: body
  1478. name: body
  1479. required: true
  1480. schema:
  1481. $ref: '#/definitions/admin.TagForm'
  1482. produces:
  1483. - application/json
  1484. responses:
  1485. "200":
  1486. description: OK
  1487. schema:
  1488. $ref: '#/definitions/response.Response'
  1489. "500":
  1490. description: Internal Server Error
  1491. schema:
  1492. $ref: '#/definitions/response.Response'
  1493. security:
  1494. - token: []
  1495. summary: 标签删除
  1496. tags:
  1497. - 标签
  1498. /admin/tag/detail/{id}:
  1499. get:
  1500. consumes:
  1501. - application/json
  1502. description: 标签详情
  1503. parameters:
  1504. - description: ID
  1505. in: path
  1506. name: id
  1507. required: true
  1508. type: integer
  1509. produces:
  1510. - application/json
  1511. responses:
  1512. "200":
  1513. description: OK
  1514. schema:
  1515. allOf:
  1516. - $ref: '#/definitions/response.Response'
  1517. - properties:
  1518. data:
  1519. $ref: '#/definitions/model.Tag'
  1520. type: object
  1521. "500":
  1522. description: Internal Server Error
  1523. schema:
  1524. $ref: '#/definitions/response.Response'
  1525. security:
  1526. - token: []
  1527. summary: 标签详情
  1528. tags:
  1529. - 标签
  1530. /admin/tag/list:
  1531. get:
  1532. consumes:
  1533. - application/json
  1534. description: 标签列表
  1535. parameters:
  1536. - description: 页码
  1537. in: query
  1538. name: page
  1539. type: integer
  1540. - description: 页大小
  1541. in: query
  1542. name: page_size
  1543. type: integer
  1544. - description: 是否是我的
  1545. in: query
  1546. name: is_my
  1547. type: integer
  1548. - description: 用户id
  1549. in: query
  1550. name: user_id
  1551. type: integer
  1552. produces:
  1553. - application/json
  1554. responses:
  1555. "200":
  1556. description: OK
  1557. schema:
  1558. allOf:
  1559. - $ref: '#/definitions/response.Response'
  1560. - properties:
  1561. data:
  1562. $ref: '#/definitions/model.TagList'
  1563. type: object
  1564. "500":
  1565. description: Internal Server Error
  1566. schema:
  1567. $ref: '#/definitions/response.Response'
  1568. security:
  1569. - token: []
  1570. summary: 标签列表
  1571. tags:
  1572. - 标签
  1573. /admin/tag/update:
  1574. post:
  1575. consumes:
  1576. - application/json
  1577. description: 标签编辑
  1578. parameters:
  1579. - description: 标签信息
  1580. in: body
  1581. name: body
  1582. required: true
  1583. schema:
  1584. $ref: '#/definitions/admin.TagForm'
  1585. produces:
  1586. - application/json
  1587. responses:
  1588. "200":
  1589. description: OK
  1590. schema:
  1591. allOf:
  1592. - $ref: '#/definitions/response.Response'
  1593. - properties:
  1594. data:
  1595. $ref: '#/definitions/model.Tag'
  1596. type: object
  1597. "500":
  1598. description: Internal Server Error
  1599. schema:
  1600. $ref: '#/definitions/response.Response'
  1601. security:
  1602. - token: []
  1603. summary: 标签编辑
  1604. tags:
  1605. - 标签
  1606. /admin/user/changeCurPwd:
  1607. post:
  1608. consumes:
  1609. - application/json
  1610. description: 修改当前用户密码
  1611. parameters:
  1612. - description: 用户信息
  1613. in: body
  1614. name: body
  1615. required: true
  1616. schema:
  1617. $ref: '#/definitions/admin.ChangeCurPasswordForm'
  1618. produces:
  1619. - application/json
  1620. responses:
  1621. "200":
  1622. description: OK
  1623. schema:
  1624. $ref: '#/definitions/response.Response'
  1625. "500":
  1626. description: Internal Server Error
  1627. schema:
  1628. $ref: '#/definitions/response.Response'
  1629. security:
  1630. - token: []
  1631. summary: 修改当前用户密码
  1632. tags:
  1633. - 用户
  1634. /admin/user/create:
  1635. post:
  1636. consumes:
  1637. - application/json
  1638. description: 创建管理员
  1639. parameters:
  1640. - description: 管理员信息
  1641. in: body
  1642. name: body
  1643. required: true
  1644. schema:
  1645. $ref: '#/definitions/admin.UserForm'
  1646. produces:
  1647. - application/json
  1648. responses:
  1649. "200":
  1650. description: OK
  1651. schema:
  1652. allOf:
  1653. - $ref: '#/definitions/response.Response'
  1654. - properties:
  1655. data:
  1656. $ref: '#/definitions/model.User'
  1657. type: object
  1658. "500":
  1659. description: Internal Server Error
  1660. schema:
  1661. $ref: '#/definitions/response.Response'
  1662. security:
  1663. - token: []
  1664. summary: 创建管理员
  1665. tags:
  1666. - 用户
  1667. /admin/user/current:
  1668. get:
  1669. consumes:
  1670. - application/json
  1671. description: 当前用户
  1672. produces:
  1673. - application/json
  1674. responses:
  1675. "200":
  1676. description: OK
  1677. schema:
  1678. allOf:
  1679. - $ref: '#/definitions/response.Response'
  1680. - properties:
  1681. data:
  1682. $ref: '#/definitions/admin.LoginPayload'
  1683. type: object
  1684. "500":
  1685. description: Internal Server Error
  1686. schema:
  1687. $ref: '#/definitions/response.Response'
  1688. security:
  1689. - token: []
  1690. summary: 当前用户
  1691. tags:
  1692. - 用户
  1693. /admin/user/delete:
  1694. post:
  1695. consumes:
  1696. - application/json
  1697. description: 管理员编删除
  1698. parameters:
  1699. - description: 用户信息
  1700. in: body
  1701. name: body
  1702. required: true
  1703. schema:
  1704. $ref: '#/definitions/admin.UserForm'
  1705. produces:
  1706. - application/json
  1707. responses:
  1708. "200":
  1709. description: OK
  1710. schema:
  1711. $ref: '#/definitions/response.Response'
  1712. "500":
  1713. description: Internal Server Error
  1714. schema:
  1715. $ref: '#/definitions/response.Response'
  1716. security:
  1717. - token: []
  1718. summary: 管理员删除
  1719. tags:
  1720. - 用户
  1721. /admin/user/detail/{id}:
  1722. get:
  1723. consumes:
  1724. - application/json
  1725. description: 管理员详情
  1726. parameters:
  1727. - description: ID
  1728. in: path
  1729. name: id
  1730. required: true
  1731. type: integer
  1732. produces:
  1733. - application/json
  1734. responses:
  1735. "200":
  1736. description: OK
  1737. schema:
  1738. allOf:
  1739. - $ref: '#/definitions/response.Response'
  1740. - properties:
  1741. data:
  1742. $ref: '#/definitions/model.User'
  1743. type: object
  1744. "500":
  1745. description: Internal Server Error
  1746. schema:
  1747. $ref: '#/definitions/response.Response'
  1748. security:
  1749. - token: []
  1750. summary: 管理员详情
  1751. tags:
  1752. - 用户
  1753. /admin/user/list:
  1754. get:
  1755. consumes:
  1756. - application/json
  1757. description: 管理员列表
  1758. parameters:
  1759. - description: 页码
  1760. in: query
  1761. name: page
  1762. type: integer
  1763. - description: 页大小
  1764. in: query
  1765. name: page_size
  1766. type: integer
  1767. - description: 账户
  1768. in: query
  1769. name: username
  1770. type: integer
  1771. produces:
  1772. - application/json
  1773. responses:
  1774. "200":
  1775. description: OK
  1776. schema:
  1777. allOf:
  1778. - $ref: '#/definitions/response.Response'
  1779. - properties:
  1780. data:
  1781. $ref: '#/definitions/model.UserList'
  1782. type: object
  1783. "500":
  1784. description: Internal Server Error
  1785. schema:
  1786. $ref: '#/definitions/response.Response'
  1787. security:
  1788. - token: []
  1789. summary: 管理员列表
  1790. tags:
  1791. - 用户
  1792. /admin/user/myOauth:
  1793. get:
  1794. consumes:
  1795. - application/json
  1796. description: 我的授权
  1797. produces:
  1798. - application/json
  1799. responses:
  1800. "200":
  1801. description: OK
  1802. schema:
  1803. allOf:
  1804. - $ref: '#/definitions/response.Response'
  1805. - properties:
  1806. data:
  1807. items:
  1808. $ref: '#/definitions/admin.UserOauthItem'
  1809. type: array
  1810. type: object
  1811. "500":
  1812. description: Internal Server Error
  1813. schema:
  1814. $ref: '#/definitions/response.Response'
  1815. security:
  1816. - token: []
  1817. summary: 我的授权
  1818. tags:
  1819. - 用户
  1820. /admin/user/update:
  1821. post:
  1822. consumes:
  1823. - application/json
  1824. description: 管理员编辑
  1825. parameters:
  1826. - description: 用户信息
  1827. in: body
  1828. name: body
  1829. required: true
  1830. schema:
  1831. $ref: '#/definitions/admin.UserForm'
  1832. produces:
  1833. - application/json
  1834. responses:
  1835. "200":
  1836. description: OK
  1837. schema:
  1838. allOf:
  1839. - $ref: '#/definitions/response.Response'
  1840. - properties:
  1841. data:
  1842. $ref: '#/definitions/model.User'
  1843. type: object
  1844. "500":
  1845. description: Internal Server Error
  1846. schema:
  1847. $ref: '#/definitions/response.Response'
  1848. security:
  1849. - token: []
  1850. summary: 管理员编辑
  1851. tags:
  1852. - 用户
  1853. /admin/user/updatePassword:
  1854. post:
  1855. consumes:
  1856. - application/json
  1857. description: 修改密码
  1858. parameters:
  1859. - description: 用户信息
  1860. in: body
  1861. name: body
  1862. required: true
  1863. schema:
  1864. $ref: '#/definitions/admin.UserPasswordForm'
  1865. produces:
  1866. - application/json
  1867. responses:
  1868. "200":
  1869. description: OK
  1870. schema:
  1871. $ref: '#/definitions/response.Response'
  1872. "500":
  1873. description: Internal Server Error
  1874. schema:
  1875. $ref: '#/definitions/response.Response'
  1876. security:
  1877. - token: []
  1878. summary: 修改密码
  1879. tags:
  1880. - 用户
  1881. securityDefinitions:
  1882. BearerAuth:
  1883. in: header
  1884. name: Authorization
  1885. type: apiKey
  1886. token:
  1887. in: header
  1888. name: api-token
  1889. type: apiKey
  1890. swagger: "2.0"