admin_swagger.yaml 46 KB

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