admin_swagger.yaml 45 KB

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