admin_swagger.yaml 59 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612
  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. collection_id:
  20. type: integer
  21. forceAlwaysRelay:
  22. type: boolean
  23. hash:
  24. type: string
  25. hostname:
  26. type: string
  27. id:
  28. type: string
  29. loginName:
  30. type: string
  31. online:
  32. type: boolean
  33. password:
  34. type: string
  35. platform:
  36. type: string
  37. rdpPort:
  38. type: string
  39. rdpUsername:
  40. type: string
  41. row_id:
  42. type: integer
  43. sameServer:
  44. type: boolean
  45. tags:
  46. items:
  47. type: string
  48. type: array
  49. user_id:
  50. type: integer
  51. user_ids:
  52. items:
  53. type: integer
  54. type: array
  55. username:
  56. type: string
  57. required:
  58. - id
  59. type: object
  60. admin.ChangeCurPasswordForm:
  61. properties:
  62. new_password:
  63. maxLength: 20
  64. minLength: 4
  65. type: string
  66. old_password:
  67. maxLength: 20
  68. minLength: 4
  69. type: string
  70. required:
  71. - new_password
  72. - old_password
  73. type: object
  74. admin.GroupForm:
  75. properties:
  76. id:
  77. type: integer
  78. name:
  79. type: string
  80. type:
  81. type: integer
  82. required:
  83. - name
  84. type: object
  85. admin.LoginPayload:
  86. properties:
  87. nickname:
  88. type: string
  89. route_names:
  90. items:
  91. type: string
  92. type: array
  93. token:
  94. type: string
  95. username:
  96. type: string
  97. type: object
  98. admin.OauthForm:
  99. properties:
  100. auto_register:
  101. type: boolean
  102. client_id:
  103. type: string
  104. client_secret:
  105. type: string
  106. id:
  107. type: integer
  108. issuer:
  109. type: string
  110. op:
  111. type: string
  112. redirect_url:
  113. type: string
  114. scopes:
  115. type: string
  116. required:
  117. - client_id
  118. - client_secret
  119. - op
  120. - redirect_url
  121. type: object
  122. admin.PeerBatchDeleteForm:
  123. properties:
  124. row_ids:
  125. items:
  126. type: integer
  127. type: array
  128. required:
  129. - row_ids
  130. type: object
  131. admin.PeerForm:
  132. properties:
  133. cpu:
  134. type: string
  135. hostname:
  136. type: string
  137. id:
  138. type: string
  139. memory:
  140. type: string
  141. os:
  142. type: string
  143. row_id:
  144. type: integer
  145. username:
  146. type: string
  147. uuid:
  148. type: string
  149. version:
  150. type: string
  151. type: object
  152. admin.ShareByWebClientForm:
  153. properties:
  154. expire:
  155. type: integer
  156. id:
  157. type: string
  158. password:
  159. type: string
  160. password_type:
  161. description: 只能是once,fixed
  162. enum:
  163. - once
  164. - fixed
  165. type: string
  166. required:
  167. - id
  168. - password
  169. - password_type
  170. type: object
  171. admin.TagForm:
  172. properties:
  173. collection_id:
  174. type: integer
  175. color:
  176. type: integer
  177. id:
  178. type: integer
  179. name:
  180. type: string
  181. user_id:
  182. type: integer
  183. required:
  184. - color
  185. - name
  186. type: object
  187. admin.UserForm:
  188. properties:
  189. avatar:
  190. type: string
  191. group_id:
  192. type: integer
  193. id:
  194. type: integer
  195. is_admin:
  196. type: boolean
  197. nickname:
  198. description: Password string `json:"password" validate:"required,gte=4,lte=20"`
  199. type: string
  200. status:
  201. allOf:
  202. - $ref: '#/definitions/model.StatusCode'
  203. minimum: 0
  204. username:
  205. maxLength: 10
  206. minLength: 4
  207. type: string
  208. required:
  209. - group_id
  210. - status
  211. - username
  212. type: object
  213. admin.UserOauthItem:
  214. properties:
  215. status:
  216. type: integer
  217. third_type:
  218. type: string
  219. type: object
  220. admin.UserPasswordForm:
  221. properties:
  222. id:
  223. type: integer
  224. password:
  225. maxLength: 20
  226. minLength: 4
  227. type: string
  228. required:
  229. - id
  230. - password
  231. type: object
  232. model.AddressBook:
  233. properties:
  234. alias:
  235. type: string
  236. collection:
  237. $ref: '#/definitions/model.AddressBookCollection'
  238. collection_id:
  239. type: integer
  240. created_at:
  241. type: string
  242. forceAlwaysRelay:
  243. type: boolean
  244. hash:
  245. type: string
  246. hostname:
  247. type: string
  248. id:
  249. type: string
  250. loginName:
  251. type: string
  252. online:
  253. type: boolean
  254. password:
  255. type: string
  256. platform:
  257. type: string
  258. rdpPort:
  259. type: string
  260. rdpUsername:
  261. type: string
  262. row_id:
  263. type: integer
  264. sameServer:
  265. type: boolean
  266. tags:
  267. items:
  268. type: string
  269. type: array
  270. updated_at:
  271. type: string
  272. user_id:
  273. type: integer
  274. username:
  275. type: string
  276. type: object
  277. model.AddressBookCollection:
  278. properties:
  279. created_at:
  280. type: string
  281. id:
  282. type: integer
  283. name:
  284. type: string
  285. updated_at:
  286. type: string
  287. user_id:
  288. type: integer
  289. required:
  290. - name
  291. type: object
  292. model.AddressBookCollectionList:
  293. properties:
  294. list:
  295. items:
  296. $ref: '#/definitions/model.AddressBookCollection'
  297. type: array
  298. page:
  299. type: integer
  300. page_size:
  301. type: integer
  302. total:
  303. type: integer
  304. type: object
  305. model.AddressBookCollectionRule:
  306. properties:
  307. collection_id:
  308. type: integer
  309. created_at:
  310. type: string
  311. id:
  312. type: integer
  313. rule:
  314. description: '0: 无 1: 读 2: 读写 3: 完全控制'
  315. maximum: 3
  316. minimum: 1
  317. type: integer
  318. to_id:
  319. type: integer
  320. type:
  321. description: '1: 个人 2: 群组'
  322. maximum: 2
  323. minimum: 1
  324. type: integer
  325. updated_at:
  326. type: string
  327. user_id:
  328. type: integer
  329. required:
  330. - collection_id
  331. - rule
  332. - to_id
  333. - type
  334. type: object
  335. model.AddressBookList:
  336. properties:
  337. list:
  338. items:
  339. $ref: '#/definitions/model.AddressBook'
  340. type: array
  341. page:
  342. type: integer
  343. page_size:
  344. type: integer
  345. total:
  346. type: integer
  347. type: object
  348. model.AuditConn:
  349. properties:
  350. action:
  351. type: string
  352. close_time:
  353. type: integer
  354. conn_id:
  355. type: integer
  356. created_at:
  357. type: string
  358. from_name:
  359. type: string
  360. from_peer:
  361. type: string
  362. id:
  363. type: integer
  364. ip:
  365. type: string
  366. peer_id:
  367. type: string
  368. session_id:
  369. type: string
  370. type:
  371. type: integer
  372. updated_at:
  373. type: string
  374. uuid:
  375. type: string
  376. type: object
  377. model.AuditConnList:
  378. properties:
  379. list:
  380. items:
  381. $ref: '#/definitions/model.AuditConn'
  382. type: array
  383. page:
  384. type: integer
  385. page_size:
  386. type: integer
  387. total:
  388. type: integer
  389. type: object
  390. model.AuditFile:
  391. properties:
  392. created_at:
  393. type: string
  394. from_name:
  395. type: string
  396. from_peer:
  397. type: string
  398. id:
  399. type: integer
  400. info:
  401. type: string
  402. ip:
  403. type: string
  404. is_file:
  405. type: boolean
  406. num:
  407. type: integer
  408. path:
  409. type: string
  410. peer_id:
  411. type: string
  412. type:
  413. type: integer
  414. updated_at:
  415. type: string
  416. uuid:
  417. type: string
  418. type: object
  419. model.AuditFileList:
  420. properties:
  421. list:
  422. items:
  423. $ref: '#/definitions/model.AuditFile'
  424. type: array
  425. page:
  426. type: integer
  427. page_size:
  428. type: integer
  429. total:
  430. type: integer
  431. type: object
  432. model.Group:
  433. properties:
  434. created_at:
  435. type: string
  436. id:
  437. type: integer
  438. name:
  439. type: string
  440. type:
  441. type: integer
  442. updated_at:
  443. type: string
  444. type: object
  445. model.GroupList:
  446. properties:
  447. list:
  448. items:
  449. $ref: '#/definitions/model.Group'
  450. type: array
  451. page:
  452. type: integer
  453. page_size:
  454. type: integer
  455. total:
  456. type: integer
  457. type: object
  458. model.LoginLog:
  459. properties:
  460. client:
  461. description: webadmin,webclient,app,
  462. type: string
  463. created_at:
  464. type: string
  465. id:
  466. type: integer
  467. ip:
  468. type: string
  469. platform:
  470. description: windows,linux,mac,android,ios
  471. type: string
  472. type:
  473. description: account,oauth
  474. type: string
  475. updated_at:
  476. type: string
  477. user_id:
  478. type: integer
  479. user_token_id:
  480. type: integer
  481. uuid:
  482. type: string
  483. type: object
  484. model.LoginLogList:
  485. properties:
  486. list:
  487. items:
  488. $ref: '#/definitions/model.LoginLog'
  489. type: array
  490. page:
  491. type: integer
  492. page_size:
  493. type: integer
  494. total:
  495. type: integer
  496. type: object
  497. model.Oauth:
  498. properties:
  499. auto_register:
  500. type: boolean
  501. client_id:
  502. type: string
  503. client_secret:
  504. type: string
  505. created_at:
  506. type: string
  507. id:
  508. type: integer
  509. issuer:
  510. type: string
  511. op:
  512. type: string
  513. redirect_url:
  514. type: string
  515. scopes:
  516. type: string
  517. updated_at:
  518. type: string
  519. type: object
  520. model.OauthList:
  521. properties:
  522. list:
  523. items:
  524. $ref: '#/definitions/model.Oauth'
  525. type: array
  526. page:
  527. type: integer
  528. page_size:
  529. type: integer
  530. total:
  531. type: integer
  532. type: object
  533. model.Peer:
  534. properties:
  535. cpu:
  536. type: string
  537. created_at:
  538. type: string
  539. hostname:
  540. type: string
  541. id:
  542. type: string
  543. last_online_ip:
  544. type: string
  545. last_online_time:
  546. type: integer
  547. memory:
  548. type: string
  549. os:
  550. type: string
  551. row_id:
  552. type: integer
  553. updated_at:
  554. type: string
  555. user:
  556. $ref: '#/definitions/model.User'
  557. user_id:
  558. type: integer
  559. username:
  560. type: string
  561. uuid:
  562. type: string
  563. version:
  564. type: string
  565. type: object
  566. model.PeerList:
  567. properties:
  568. list:
  569. items:
  570. $ref: '#/definitions/model.Peer'
  571. type: array
  572. page:
  573. type: integer
  574. page_size:
  575. type: integer
  576. total:
  577. type: integer
  578. type: object
  579. model.StatusCode:
  580. enum:
  581. - 1
  582. - 2
  583. type: integer
  584. x-enum-comments:
  585. COMMON_STATUS_DISABLED: 通用状态 禁用
  586. COMMON_STATUS_ENABLE: 通用状态 启用
  587. x-enum-varnames:
  588. - COMMON_STATUS_ENABLE
  589. - COMMON_STATUS_DISABLED
  590. model.Tag:
  591. properties:
  592. collection:
  593. $ref: '#/definitions/model.AddressBookCollection'
  594. collection_id:
  595. type: integer
  596. color:
  597. description: color 是flutter的颜色值,从0x00000000 到 0xFFFFFFFF; 前两位表示透明度,后面6位表示颜色,
  598. 可以转成rgba
  599. type: integer
  600. created_at:
  601. type: string
  602. id:
  603. type: integer
  604. name:
  605. type: string
  606. updated_at:
  607. type: string
  608. user_id:
  609. type: integer
  610. type: object
  611. model.TagList:
  612. properties:
  613. list:
  614. items:
  615. $ref: '#/definitions/model.Tag'
  616. type: array
  617. page:
  618. type: integer
  619. page_size:
  620. type: integer
  621. total:
  622. type: integer
  623. type: object
  624. model.User:
  625. properties:
  626. avatar:
  627. type: string
  628. created_at:
  629. type: string
  630. group_id:
  631. type: integer
  632. id:
  633. type: integer
  634. is_admin:
  635. type: boolean
  636. nickname:
  637. type: string
  638. status:
  639. $ref: '#/definitions/model.StatusCode'
  640. updated_at:
  641. type: string
  642. username:
  643. type: string
  644. type: object
  645. model.UserList:
  646. properties:
  647. list:
  648. items:
  649. $ref: '#/definitions/model.User'
  650. type: array
  651. page:
  652. type: integer
  653. page_size:
  654. type: integer
  655. total:
  656. type: integer
  657. type: object
  658. model.UserToken:
  659. properties:
  660. created_at:
  661. type: string
  662. expired_at:
  663. type: integer
  664. id:
  665. type: integer
  666. token:
  667. type: string
  668. updated_at:
  669. type: string
  670. user_id:
  671. type: integer
  672. type: object
  673. model.UserTokenList:
  674. properties:
  675. list:
  676. items:
  677. $ref: '#/definitions/model.UserToken'
  678. type: array
  679. page:
  680. type: integer
  681. page_size:
  682. type: integer
  683. total:
  684. type: integer
  685. type: object
  686. response.ErrorResponse:
  687. properties:
  688. error:
  689. type: string
  690. type: object
  691. response.Response:
  692. properties:
  693. code:
  694. type: integer
  695. data: {}
  696. message:
  697. type: string
  698. type: object
  699. info:
  700. contact: {}
  701. description: 接口
  702. title: 管理系统API
  703. version: "1.0"
  704. paths:
  705. /admin/address_book/create:
  706. post:
  707. consumes:
  708. - application/json
  709. description: 批量创建地址簿
  710. parameters:
  711. - description: 地址簿信息
  712. in: body
  713. name: body
  714. required: true
  715. schema:
  716. $ref: '#/definitions/admin.AddressBookForm'
  717. produces:
  718. - application/json
  719. responses:
  720. "200":
  721. description: OK
  722. schema:
  723. allOf:
  724. - $ref: '#/definitions/response.Response'
  725. - properties:
  726. data:
  727. $ref: '#/definitions/model.AddressBook'
  728. type: object
  729. "500":
  730. description: Internal Server Error
  731. schema:
  732. $ref: '#/definitions/response.Response'
  733. security:
  734. - token: []
  735. summary: 批量创建地址簿
  736. tags:
  737. - 地址簿
  738. /admin/address_book/delete:
  739. post:
  740. consumes:
  741. - application/json
  742. description: 地址簿删除
  743. parameters:
  744. - description: 地址簿信息
  745. in: body
  746. name: body
  747. required: true
  748. schema:
  749. $ref: '#/definitions/admin.AddressBookForm'
  750. produces:
  751. - application/json
  752. responses:
  753. "200":
  754. description: OK
  755. schema:
  756. $ref: '#/definitions/response.Response'
  757. "500":
  758. description: Internal Server Error
  759. schema:
  760. $ref: '#/definitions/response.Response'
  761. security:
  762. - token: []
  763. summary: 地址簿删除
  764. tags:
  765. - 地址簿
  766. /admin/address_book/detail/{id}:
  767. get:
  768. consumes:
  769. - application/json
  770. description: 地址簿详情
  771. parameters:
  772. - description: ID
  773. in: path
  774. name: id
  775. required: true
  776. type: integer
  777. produces:
  778. - application/json
  779. responses:
  780. "200":
  781. description: OK
  782. schema:
  783. allOf:
  784. - $ref: '#/definitions/response.Response'
  785. - properties:
  786. data:
  787. $ref: '#/definitions/model.AddressBook'
  788. type: object
  789. "500":
  790. description: Internal Server Error
  791. schema:
  792. $ref: '#/definitions/response.Response'
  793. security:
  794. - token: []
  795. summary: 地址簿详情
  796. tags:
  797. - 地址簿
  798. /admin/address_book/list:
  799. get:
  800. consumes:
  801. - application/json
  802. description: 地址簿列表
  803. parameters:
  804. - description: 页码
  805. in: query
  806. name: page
  807. type: integer
  808. - description: 页大小
  809. in: query
  810. name: page_size
  811. type: integer
  812. - description: 用户id
  813. in: query
  814. name: user_id
  815. type: integer
  816. - description: 是否是我的
  817. in: query
  818. name: is_my
  819. type: integer
  820. produces:
  821. - application/json
  822. responses:
  823. "200":
  824. description: OK
  825. schema:
  826. allOf:
  827. - $ref: '#/definitions/response.Response'
  828. - properties:
  829. data:
  830. $ref: '#/definitions/model.AddressBookList'
  831. type: object
  832. "500":
  833. description: Internal Server Error
  834. schema:
  835. $ref: '#/definitions/response.Response'
  836. security:
  837. - token: []
  838. summary: 地址簿列表
  839. tags:
  840. - 地址簿
  841. /admin/address_book/share:
  842. post:
  843. consumes:
  844. - application/json
  845. description: 地址簿分享
  846. parameters:
  847. - description: 地址簿信息
  848. in: body
  849. name: body
  850. required: true
  851. schema:
  852. $ref: '#/definitions/admin.ShareByWebClientForm'
  853. produces:
  854. - application/json
  855. responses:
  856. "200":
  857. description: OK
  858. schema:
  859. $ref: '#/definitions/response.Response'
  860. "500":
  861. description: Internal Server Error
  862. schema:
  863. $ref: '#/definitions/response.Response'
  864. security:
  865. - token: []
  866. summary: 地址簿分享
  867. tags:
  868. - 地址簿
  869. /admin/address_book/update:
  870. post:
  871. consumes:
  872. - application/json
  873. description: 地址簿编辑
  874. parameters:
  875. - description: 地址簿信息
  876. in: body
  877. name: body
  878. required: true
  879. schema:
  880. $ref: '#/definitions/admin.AddressBookForm'
  881. produces:
  882. - application/json
  883. responses:
  884. "200":
  885. description: OK
  886. schema:
  887. allOf:
  888. - $ref: '#/definitions/response.Response'
  889. - properties:
  890. data:
  891. $ref: '#/definitions/model.AddressBook'
  892. type: object
  893. "500":
  894. description: Internal Server Error
  895. schema:
  896. $ref: '#/definitions/response.Response'
  897. security:
  898. - token: []
  899. summary: 地址簿编辑
  900. tags:
  901. - 地址簿
  902. /admin/address_book_collection/create:
  903. post:
  904. consumes:
  905. - application/json
  906. description: 创建地址簿集合
  907. parameters:
  908. - description: 地址簿集合信息
  909. in: body
  910. name: body
  911. required: true
  912. schema:
  913. $ref: '#/definitions/model.AddressBookCollection'
  914. produces:
  915. - application/json
  916. responses:
  917. "200":
  918. description: OK
  919. schema:
  920. allOf:
  921. - $ref: '#/definitions/response.Response'
  922. - properties:
  923. data:
  924. $ref: '#/definitions/model.AddressBookCollection'
  925. type: object
  926. "500":
  927. description: Internal Server Error
  928. schema:
  929. $ref: '#/definitions/response.Response'
  930. security:
  931. - token: []
  932. summary: 创建地址簿集合
  933. /admin/address_book_collection/delete:
  934. post:
  935. consumes:
  936. - application/json
  937. description: 地址簿集合删除
  938. parameters:
  939. - description: 地址簿集合信息
  940. in: body
  941. name: body
  942. required: true
  943. schema:
  944. $ref: '#/definitions/model.AddressBookCollection'
  945. produces:
  946. - application/json
  947. responses:
  948. "200":
  949. description: OK
  950. schema:
  951. $ref: '#/definitions/response.Response'
  952. "500":
  953. description: Internal Server Error
  954. schema:
  955. $ref: '#/definitions/response.Response'
  956. security:
  957. - token: []
  958. summary: 地址簿集合删除
  959. /admin/address_book_collection/detail/{id}:
  960. get:
  961. consumes:
  962. - application/json
  963. description: 地址簿集合详情
  964. parameters:
  965. - description: ID
  966. in: path
  967. name: id
  968. required: true
  969. type: integer
  970. produces:
  971. - application/json
  972. responses:
  973. "200":
  974. description: OK
  975. schema:
  976. allOf:
  977. - $ref: '#/definitions/response.Response'
  978. - properties:
  979. data:
  980. $ref: '#/definitions/model.AddressBookCollection'
  981. type: object
  982. "500":
  983. description: Internal Server Error
  984. schema:
  985. $ref: '#/definitions/response.Response'
  986. security:
  987. - token: []
  988. summary: 地址簿集合详情
  989. /admin/address_book_collection/list:
  990. get:
  991. consumes:
  992. - application/json
  993. description: 地址簿集合列表
  994. parameters:
  995. - description: 页码
  996. in: query
  997. name: page
  998. type: integer
  999. - description: 页大小
  1000. in: query
  1001. name: page_size
  1002. type: integer
  1003. - description: 是否是我的
  1004. in: query
  1005. name: is_my
  1006. type: integer
  1007. - description: 用户id
  1008. in: query
  1009. name: user_id
  1010. type: integer
  1011. produces:
  1012. - application/json
  1013. responses:
  1014. "200":
  1015. description: OK
  1016. schema:
  1017. allOf:
  1018. - $ref: '#/definitions/response.Response'
  1019. - properties:
  1020. data:
  1021. $ref: '#/definitions/model.AddressBookCollectionList'
  1022. type: object
  1023. "500":
  1024. description: Internal Server Error
  1025. schema:
  1026. $ref: '#/definitions/response.Response'
  1027. security:
  1028. - token: []
  1029. summary: 地址簿集合列表
  1030. /admin/address_book_collection/update:
  1031. post:
  1032. consumes:
  1033. - application/json
  1034. description: 地址簿集合编辑
  1035. parameters:
  1036. - description: 地址簿集合信息
  1037. in: body
  1038. name: body
  1039. required: true
  1040. schema:
  1041. $ref: '#/definitions/model.AddressBookCollection'
  1042. produces:
  1043. - application/json
  1044. responses:
  1045. "200":
  1046. description: OK
  1047. schema:
  1048. allOf:
  1049. - $ref: '#/definitions/response.Response'
  1050. - properties:
  1051. data:
  1052. $ref: '#/definitions/model.AddressBookCollection'
  1053. type: object
  1054. "500":
  1055. description: Internal Server Error
  1056. schema:
  1057. $ref: '#/definitions/response.Response'
  1058. security:
  1059. - token: []
  1060. summary: 地址簿集合编辑
  1061. /admin/address_book_collection_rule/create:
  1062. post:
  1063. consumes:
  1064. - application/json
  1065. description: 创建地址簿集合规则
  1066. parameters:
  1067. - description: 地址簿集合规则信息
  1068. in: body
  1069. name: body
  1070. required: true
  1071. schema:
  1072. $ref: '#/definitions/model.AddressBookCollectionRule'
  1073. produces:
  1074. - application/json
  1075. responses:
  1076. "200":
  1077. description: OK
  1078. schema:
  1079. allOf:
  1080. - $ref: '#/definitions/response.Response'
  1081. - properties:
  1082. data:
  1083. $ref: '#/definitions/model.AddressBookCollection'
  1084. type: object
  1085. "500":
  1086. description: Internal Server Error
  1087. schema:
  1088. $ref: '#/definitions/response.Response'
  1089. security:
  1090. - token: []
  1091. summary: 创建地址簿集合规则
  1092. /admin/address_book_collection_rule/delete:
  1093. post:
  1094. consumes:
  1095. - application/json
  1096. description: 地址簿集合规则删除
  1097. parameters:
  1098. - description: 地址簿集合规则信息
  1099. in: body
  1100. name: body
  1101. required: true
  1102. schema:
  1103. $ref: '#/definitions/model.AddressBookCollectionRule'
  1104. produces:
  1105. - application/json
  1106. responses:
  1107. "200":
  1108. description: OK
  1109. schema:
  1110. $ref: '#/definitions/response.Response'
  1111. "500":
  1112. description: Internal Server Error
  1113. schema:
  1114. $ref: '#/definitions/response.Response'
  1115. security:
  1116. - token: []
  1117. summary: 地址簿集合规则删除
  1118. /admin/address_book_collection_rule/detail/{id}:
  1119. get:
  1120. consumes:
  1121. - application/json
  1122. description: 地址簿集合规则详情
  1123. parameters:
  1124. - description: ID
  1125. in: path
  1126. name: id
  1127. required: true
  1128. type: integer
  1129. produces:
  1130. - application/json
  1131. responses:
  1132. "200":
  1133. description: OK
  1134. schema:
  1135. allOf:
  1136. - $ref: '#/definitions/response.Response'
  1137. - properties:
  1138. data:
  1139. $ref: '#/definitions/model.AddressBookCollectionRule'
  1140. type: object
  1141. "500":
  1142. description: Internal Server Error
  1143. schema:
  1144. $ref: '#/definitions/response.Response'
  1145. security:
  1146. - token: []
  1147. summary: 地址簿集合规则详情
  1148. /admin/address_book_collection_rule/list:
  1149. get:
  1150. consumes:
  1151. - application/json
  1152. description: 地址簿集合规则列表
  1153. parameters:
  1154. - description: 页码
  1155. in: query
  1156. name: page
  1157. type: integer
  1158. - description: 页大小
  1159. in: query
  1160. name: page_size
  1161. type: integer
  1162. - description: 是否是我的
  1163. in: query
  1164. name: is_my
  1165. type: integer
  1166. - description: 用户id
  1167. in: query
  1168. name: user_id
  1169. type: integer
  1170. - description: 地址簿集合id
  1171. in: query
  1172. name: collection_id
  1173. type: integer
  1174. produces:
  1175. - application/json
  1176. responses:
  1177. "200":
  1178. description: OK
  1179. schema:
  1180. allOf:
  1181. - $ref: '#/definitions/response.Response'
  1182. - properties:
  1183. data:
  1184. $ref: '#/definitions/model.AddressBookCollectionList'
  1185. type: object
  1186. "500":
  1187. description: Internal Server Error
  1188. schema:
  1189. $ref: '#/definitions/response.Response'
  1190. security:
  1191. - token: []
  1192. summary: 地址簿集合规则列表
  1193. /admin/address_book_collection_rule/update:
  1194. post:
  1195. consumes:
  1196. - application/json
  1197. description: 地址簿集合规则编辑
  1198. parameters:
  1199. - description: 地址簿集合规则信息
  1200. in: body
  1201. name: body
  1202. required: true
  1203. schema:
  1204. $ref: '#/definitions/model.AddressBookCollectionRule'
  1205. produces:
  1206. - application/json
  1207. responses:
  1208. "200":
  1209. description: OK
  1210. schema:
  1211. allOf:
  1212. - $ref: '#/definitions/response.Response'
  1213. - properties:
  1214. data:
  1215. $ref: '#/definitions/model.AddressBookCollection'
  1216. type: object
  1217. "500":
  1218. description: Internal Server Error
  1219. schema:
  1220. $ref: '#/definitions/response.Response'
  1221. security:
  1222. - token: []
  1223. summary: 地址簿集合规则编辑
  1224. /admin/app-config:
  1225. get:
  1226. consumes:
  1227. - application/json
  1228. description: APP服务配置
  1229. produces:
  1230. - application/json
  1231. responses:
  1232. "200":
  1233. description: OK
  1234. schema:
  1235. $ref: '#/definitions/response.Response'
  1236. "500":
  1237. description: Internal Server Error
  1238. schema:
  1239. $ref: '#/definitions/response.Response'
  1240. security:
  1241. - token: []
  1242. summary: APP服务配置
  1243. tags:
  1244. - ADMIN
  1245. /admin/audit_conn/delete:
  1246. post:
  1247. consumes:
  1248. - application/json
  1249. description: 文件日志删除
  1250. parameters:
  1251. - description: 文件日志信息
  1252. in: body
  1253. name: body
  1254. required: true
  1255. schema:
  1256. $ref: '#/definitions/model.AuditFile'
  1257. produces:
  1258. - application/json
  1259. responses:
  1260. "200":
  1261. description: OK
  1262. schema:
  1263. $ref: '#/definitions/response.Response'
  1264. "500":
  1265. description: Internal Server Error
  1266. schema:
  1267. $ref: '#/definitions/response.Response'
  1268. security:
  1269. - token: []
  1270. summary: 文件日志删除
  1271. tags:
  1272. - 文件日志
  1273. /admin/audit_conn/list:
  1274. get:
  1275. consumes:
  1276. - application/json
  1277. description: 文件日志列表
  1278. parameters:
  1279. - description: 页码
  1280. in: query
  1281. name: page
  1282. type: integer
  1283. - description: 页大小
  1284. in: query
  1285. name: page_size
  1286. type: integer
  1287. - description: 目标设备
  1288. in: query
  1289. name: peer_id
  1290. type: integer
  1291. - description: 来源设备
  1292. in: query
  1293. name: from_peer
  1294. type: integer
  1295. produces:
  1296. - application/json
  1297. responses:
  1298. "200":
  1299. description: OK
  1300. schema:
  1301. allOf:
  1302. - $ref: '#/definitions/response.Response'
  1303. - properties:
  1304. data:
  1305. $ref: '#/definitions/model.AuditFileList'
  1306. type: object
  1307. "500":
  1308. description: Internal Server Error
  1309. schema:
  1310. $ref: '#/definitions/response.Response'
  1311. security:
  1312. - token: []
  1313. summary: 文件日志列表
  1314. tags:
  1315. - 文件日志
  1316. /admin/file/oss_token:
  1317. get:
  1318. consumes:
  1319. - application/json
  1320. description: 获取ossToken
  1321. produces:
  1322. - application/json
  1323. responses:
  1324. "200":
  1325. description: OK
  1326. schema:
  1327. $ref: '#/definitions/response.Response'
  1328. "500":
  1329. description: Internal Server Error
  1330. schema:
  1331. $ref: '#/definitions/response.Response'
  1332. security:
  1333. - token: []
  1334. summary: 获取ossToken
  1335. tags:
  1336. - 文件
  1337. /admin/file/upload:
  1338. post:
  1339. consumes:
  1340. - multipart/form-data
  1341. description: 上传文件到本地
  1342. parameters:
  1343. - description: 上传文件示例
  1344. in: formData
  1345. name: file
  1346. required: true
  1347. type: file
  1348. produces:
  1349. - application/json
  1350. responses:
  1351. "200":
  1352. description: OK
  1353. schema:
  1354. $ref: '#/definitions/response.Response'
  1355. "500":
  1356. description: Internal Server Error
  1357. schema:
  1358. $ref: '#/definitions/response.Response'
  1359. security:
  1360. - token: []
  1361. summary: 上传文件到本地
  1362. tags:
  1363. - 文件
  1364. /admin/group/create:
  1365. post:
  1366. consumes:
  1367. - application/json
  1368. description: 创建群组
  1369. parameters:
  1370. - description: 群组信息
  1371. in: body
  1372. name: body
  1373. required: true
  1374. schema:
  1375. $ref: '#/definitions/admin.GroupForm'
  1376. produces:
  1377. - application/json
  1378. responses:
  1379. "200":
  1380. description: OK
  1381. schema:
  1382. allOf:
  1383. - $ref: '#/definitions/response.Response'
  1384. - properties:
  1385. data:
  1386. $ref: '#/definitions/model.Group'
  1387. type: object
  1388. "500":
  1389. description: Internal Server Error
  1390. schema:
  1391. $ref: '#/definitions/response.Response'
  1392. security:
  1393. - token: []
  1394. summary: 创建群组
  1395. tags:
  1396. - 群组
  1397. /admin/group/delete:
  1398. post:
  1399. consumes:
  1400. - application/json
  1401. description: 群组删除
  1402. parameters:
  1403. - description: 群组信息
  1404. in: body
  1405. name: body
  1406. required: true
  1407. schema:
  1408. $ref: '#/definitions/admin.GroupForm'
  1409. produces:
  1410. - application/json
  1411. responses:
  1412. "200":
  1413. description: OK
  1414. schema:
  1415. $ref: '#/definitions/response.Response'
  1416. "500":
  1417. description: Internal Server Error
  1418. schema:
  1419. $ref: '#/definitions/response.Response'
  1420. security:
  1421. - token: []
  1422. summary: 群组删除
  1423. tags:
  1424. - 群组
  1425. /admin/group/detail/{id}:
  1426. get:
  1427. consumes:
  1428. - application/json
  1429. description: 群组详情
  1430. parameters:
  1431. - description: ID
  1432. in: path
  1433. name: id
  1434. required: true
  1435. type: integer
  1436. produces:
  1437. - application/json
  1438. responses:
  1439. "200":
  1440. description: OK
  1441. schema:
  1442. allOf:
  1443. - $ref: '#/definitions/response.Response'
  1444. - properties:
  1445. data:
  1446. $ref: '#/definitions/model.Group'
  1447. type: object
  1448. "500":
  1449. description: Internal Server Error
  1450. schema:
  1451. $ref: '#/definitions/response.Response'
  1452. security:
  1453. - token: []
  1454. summary: 群组详情
  1455. tags:
  1456. - 群组
  1457. /admin/group/list:
  1458. get:
  1459. consumes:
  1460. - application/json
  1461. description: 群组列表
  1462. parameters:
  1463. - description: 页码
  1464. in: query
  1465. name: page
  1466. type: integer
  1467. - description: 页大小
  1468. in: query
  1469. name: page_size
  1470. type: integer
  1471. produces:
  1472. - application/json
  1473. responses:
  1474. "200":
  1475. description: OK
  1476. schema:
  1477. allOf:
  1478. - $ref: '#/definitions/response.Response'
  1479. - properties:
  1480. data:
  1481. $ref: '#/definitions/model.GroupList'
  1482. type: object
  1483. "500":
  1484. description: Internal Server Error
  1485. schema:
  1486. $ref: '#/definitions/response.Response'
  1487. security:
  1488. - token: []
  1489. summary: 群组列表
  1490. tags:
  1491. - 群组
  1492. /admin/group/update:
  1493. post:
  1494. consumes:
  1495. - application/json
  1496. description: 群组编辑
  1497. parameters:
  1498. - description: 群组信息
  1499. in: body
  1500. name: body
  1501. required: true
  1502. schema:
  1503. $ref: '#/definitions/admin.GroupForm'
  1504. produces:
  1505. - application/json
  1506. responses:
  1507. "200":
  1508. description: OK
  1509. schema:
  1510. allOf:
  1511. - $ref: '#/definitions/response.Response'
  1512. - properties:
  1513. data:
  1514. $ref: '#/definitions/model.Group'
  1515. type: object
  1516. "500":
  1517. description: Internal Server Error
  1518. schema:
  1519. $ref: '#/definitions/response.Response'
  1520. security:
  1521. - token: []
  1522. summary: 群组编辑
  1523. tags:
  1524. - 群组
  1525. /admin/login:
  1526. post:
  1527. consumes:
  1528. - application/json
  1529. description: 登录
  1530. parameters:
  1531. - description: 登录信息
  1532. in: body
  1533. name: body
  1534. required: true
  1535. schema:
  1536. $ref: '#/definitions/Gwen_http_request_admin.Login'
  1537. produces:
  1538. - application/json
  1539. responses:
  1540. "200":
  1541. description: OK
  1542. schema:
  1543. allOf:
  1544. - $ref: '#/definitions/response.Response'
  1545. - properties:
  1546. data:
  1547. $ref: '#/definitions/admin.LoginPayload'
  1548. type: object
  1549. "500":
  1550. description: Internal Server Error
  1551. schema:
  1552. $ref: '#/definitions/response.Response'
  1553. security:
  1554. - token: []
  1555. summary: 登录
  1556. tags:
  1557. - 登录
  1558. /admin/login-options:
  1559. post:
  1560. consumes:
  1561. - application/json
  1562. description: 登录选项
  1563. produces:
  1564. - application/json
  1565. responses:
  1566. "200":
  1567. description: OK
  1568. schema:
  1569. items:
  1570. type: string
  1571. type: array
  1572. "500":
  1573. description: Internal Server Error
  1574. schema:
  1575. $ref: '#/definitions/response.ErrorResponse'
  1576. summary: 登录选项
  1577. tags:
  1578. - 登录
  1579. /admin/login_log/delete:
  1580. post:
  1581. consumes:
  1582. - application/json
  1583. description: 登录日志删除
  1584. parameters:
  1585. - description: 登录日志信息
  1586. in: body
  1587. name: body
  1588. required: true
  1589. schema:
  1590. $ref: '#/definitions/model.LoginLog'
  1591. produces:
  1592. - application/json
  1593. responses:
  1594. "200":
  1595. description: OK
  1596. schema:
  1597. $ref: '#/definitions/response.Response'
  1598. "500":
  1599. description: Internal Server Error
  1600. schema:
  1601. $ref: '#/definitions/response.Response'
  1602. security:
  1603. - token: []
  1604. summary: 登录日志删除
  1605. tags:
  1606. - 登录日志
  1607. /admin/login_log/detail/{id}:
  1608. get:
  1609. consumes:
  1610. - application/json
  1611. description: 登录日志详情
  1612. parameters:
  1613. - description: ID
  1614. in: path
  1615. name: id
  1616. required: true
  1617. type: integer
  1618. produces:
  1619. - application/json
  1620. responses:
  1621. "200":
  1622. description: OK
  1623. schema:
  1624. allOf:
  1625. - $ref: '#/definitions/response.Response'
  1626. - properties:
  1627. data:
  1628. $ref: '#/definitions/model.LoginLog'
  1629. type: object
  1630. "500":
  1631. description: Internal Server Error
  1632. schema:
  1633. $ref: '#/definitions/response.Response'
  1634. security:
  1635. - token: []
  1636. summary: 登录日志详情
  1637. tags:
  1638. - 登录日志
  1639. /admin/login_log/list:
  1640. get:
  1641. consumes:
  1642. - application/json
  1643. description: 登录日志列表
  1644. parameters:
  1645. - description: 页码
  1646. in: query
  1647. name: page
  1648. type: integer
  1649. - description: 页大小
  1650. in: query
  1651. name: page_size
  1652. type: integer
  1653. - description: 用户ID
  1654. in: query
  1655. name: user_id
  1656. type: integer
  1657. produces:
  1658. - application/json
  1659. responses:
  1660. "200":
  1661. description: OK
  1662. schema:
  1663. allOf:
  1664. - $ref: '#/definitions/response.Response'
  1665. - properties:
  1666. data:
  1667. $ref: '#/definitions/model.LoginLogList'
  1668. type: object
  1669. "500":
  1670. description: Internal Server Error
  1671. schema:
  1672. $ref: '#/definitions/response.Response'
  1673. security:
  1674. - token: []
  1675. summary: 登录日志列表
  1676. tags:
  1677. - 登录日志
  1678. /admin/logout:
  1679. post:
  1680. consumes:
  1681. - application/json
  1682. description: 登出
  1683. produces:
  1684. - application/json
  1685. responses:
  1686. "200":
  1687. description: OK
  1688. schema:
  1689. $ref: '#/definitions/response.Response'
  1690. "500":
  1691. description: Internal Server Error
  1692. schema:
  1693. $ref: '#/definitions/response.Response'
  1694. summary: 登出
  1695. tags:
  1696. - 登录
  1697. /admin/oauth/create:
  1698. post:
  1699. consumes:
  1700. - application/json
  1701. description: 创建Oauth
  1702. parameters:
  1703. - description: Oauth信息
  1704. in: body
  1705. name: body
  1706. required: true
  1707. schema:
  1708. $ref: '#/definitions/admin.OauthForm'
  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.Oauth'
  1720. type: object
  1721. "500":
  1722. description: Internal Server Error
  1723. schema:
  1724. $ref: '#/definitions/response.Response'
  1725. security:
  1726. - token: []
  1727. summary: 创建Oauth
  1728. tags:
  1729. - Oauth
  1730. /admin/oauth/delete:
  1731. post:
  1732. consumes:
  1733. - application/json
  1734. description: Oauth删除
  1735. parameters:
  1736. - description: Oauth信息
  1737. in: body
  1738. name: body
  1739. required: true
  1740. schema:
  1741. $ref: '#/definitions/admin.OauthForm'
  1742. produces:
  1743. - application/json
  1744. responses:
  1745. "200":
  1746. description: OK
  1747. schema:
  1748. $ref: '#/definitions/response.Response'
  1749. "500":
  1750. description: Internal Server Error
  1751. schema:
  1752. $ref: '#/definitions/response.Response'
  1753. security:
  1754. - token: []
  1755. summary: Oauth删除
  1756. tags:
  1757. - Oauth
  1758. /admin/oauth/detail/{id}:
  1759. get:
  1760. consumes:
  1761. - application/json
  1762. description: Oauth详情
  1763. parameters:
  1764. - description: ID
  1765. in: path
  1766. name: id
  1767. required: true
  1768. type: integer
  1769. produces:
  1770. - application/json
  1771. responses:
  1772. "200":
  1773. description: OK
  1774. schema:
  1775. allOf:
  1776. - $ref: '#/definitions/response.Response'
  1777. - properties:
  1778. data:
  1779. $ref: '#/definitions/model.Oauth'
  1780. type: object
  1781. "500":
  1782. description: Internal Server Error
  1783. schema:
  1784. $ref: '#/definitions/response.Response'
  1785. security:
  1786. - token: []
  1787. summary: Oauth详情
  1788. tags:
  1789. - Oauth
  1790. /admin/oauth/list:
  1791. get:
  1792. consumes:
  1793. - application/json
  1794. description: Oauth列表
  1795. parameters:
  1796. - description: 页码
  1797. in: query
  1798. name: page
  1799. type: integer
  1800. - description: 页大小
  1801. in: query
  1802. name: page_size
  1803. type: integer
  1804. produces:
  1805. - application/json
  1806. responses:
  1807. "200":
  1808. description: OK
  1809. schema:
  1810. allOf:
  1811. - $ref: '#/definitions/response.Response'
  1812. - properties:
  1813. data:
  1814. $ref: '#/definitions/model.OauthList'
  1815. type: object
  1816. "500":
  1817. description: Internal Server Error
  1818. schema:
  1819. $ref: '#/definitions/response.Response'
  1820. security:
  1821. - token: []
  1822. summary: Oauth列表
  1823. tags:
  1824. - Oauth
  1825. /admin/oauth/update:
  1826. post:
  1827. consumes:
  1828. - application/json
  1829. description: Oauth编辑
  1830. parameters:
  1831. - description: Oauth信息
  1832. in: body
  1833. name: body
  1834. required: true
  1835. schema:
  1836. $ref: '#/definitions/admin.OauthForm'
  1837. produces:
  1838. - application/json
  1839. responses:
  1840. "200":
  1841. description: OK
  1842. schema:
  1843. allOf:
  1844. - $ref: '#/definitions/response.Response'
  1845. - properties:
  1846. data:
  1847. $ref: '#/definitions/model.OauthList'
  1848. type: object
  1849. "500":
  1850. description: Internal Server Error
  1851. schema:
  1852. $ref: '#/definitions/response.Response'
  1853. security:
  1854. - token: []
  1855. summary: Oauth编辑
  1856. tags:
  1857. - Oauth
  1858. /admin/oidc/auth:
  1859. post:
  1860. consumes:
  1861. - application/json
  1862. description: OidcAuth
  1863. produces:
  1864. - application/json
  1865. responses: {}
  1866. summary: OidcAuth
  1867. tags:
  1868. - Oauth
  1869. /admin/oidc/auth-query:
  1870. get:
  1871. consumes:
  1872. - application/json
  1873. description: OidcAuthQuery
  1874. produces:
  1875. - application/json
  1876. responses:
  1877. "200":
  1878. description: OK
  1879. schema:
  1880. allOf:
  1881. - $ref: '#/definitions/response.Response'
  1882. - properties:
  1883. data:
  1884. $ref: '#/definitions/admin.LoginPayload'
  1885. type: object
  1886. "500":
  1887. description: Internal Server Error
  1888. schema:
  1889. $ref: '#/definitions/response.Response'
  1890. summary: OidcAuthQuery
  1891. tags:
  1892. - Oauth
  1893. /admin/peer/create:
  1894. post:
  1895. consumes:
  1896. - application/json
  1897. description: 创建设备
  1898. parameters:
  1899. - description: 设备信息
  1900. in: body
  1901. name: body
  1902. required: true
  1903. schema:
  1904. $ref: '#/definitions/admin.PeerForm'
  1905. produces:
  1906. - application/json
  1907. responses:
  1908. "200":
  1909. description: OK
  1910. schema:
  1911. allOf:
  1912. - $ref: '#/definitions/response.Response'
  1913. - properties:
  1914. data:
  1915. $ref: '#/definitions/model.Peer'
  1916. type: object
  1917. "500":
  1918. description: Internal Server Error
  1919. schema:
  1920. $ref: '#/definitions/response.Response'
  1921. security:
  1922. - token: []
  1923. summary: 创建设备
  1924. tags:
  1925. - 设备
  1926. /admin/peer/delete:
  1927. post:
  1928. consumes:
  1929. - application/json
  1930. description: 批量设备删除
  1931. parameters:
  1932. - description: 设备id
  1933. in: body
  1934. name: body
  1935. required: true
  1936. schema:
  1937. $ref: '#/definitions/admin.PeerBatchDeleteForm'
  1938. produces:
  1939. - application/json
  1940. responses:
  1941. "200":
  1942. description: OK
  1943. schema:
  1944. $ref: '#/definitions/response.Response'
  1945. "500":
  1946. description: Internal Server Error
  1947. schema:
  1948. $ref: '#/definitions/response.Response'
  1949. security:
  1950. - token: []
  1951. summary: 批量设备删除
  1952. tags:
  1953. - 设备
  1954. /admin/peer/detail/{id}:
  1955. get:
  1956. consumes:
  1957. - application/json
  1958. description: 设备详情
  1959. parameters:
  1960. - description: ID
  1961. in: path
  1962. name: id
  1963. required: true
  1964. type: integer
  1965. produces:
  1966. - application/json
  1967. responses:
  1968. "200":
  1969. description: OK
  1970. schema:
  1971. allOf:
  1972. - $ref: '#/definitions/response.Response'
  1973. - properties:
  1974. data:
  1975. $ref: '#/definitions/model.Peer'
  1976. type: object
  1977. "500":
  1978. description: Internal Server Error
  1979. schema:
  1980. $ref: '#/definitions/response.Response'
  1981. security:
  1982. - token: []
  1983. summary: 设备详情
  1984. tags:
  1985. - 设备
  1986. /admin/peer/list:
  1987. get:
  1988. consumes:
  1989. - application/json
  1990. description: 设备列表
  1991. parameters:
  1992. - description: 页码
  1993. in: query
  1994. name: page
  1995. type: integer
  1996. - description: 页大小
  1997. in: query
  1998. name: page_size
  1999. type: integer
  2000. - description: 时间
  2001. in: query
  2002. name: time_ago
  2003. type: integer
  2004. - description: ID
  2005. in: query
  2006. name: id
  2007. type: string
  2008. - description: 主机名
  2009. in: query
  2010. name: hostname
  2011. type: string
  2012. - description: uuids 用逗号分隔
  2013. in: query
  2014. name: uuids
  2015. type: string
  2016. produces:
  2017. - application/json
  2018. responses:
  2019. "200":
  2020. description: OK
  2021. schema:
  2022. allOf:
  2023. - $ref: '#/definitions/response.Response'
  2024. - properties:
  2025. data:
  2026. $ref: '#/definitions/model.PeerList'
  2027. type: object
  2028. "500":
  2029. description: Internal Server Error
  2030. schema:
  2031. $ref: '#/definitions/response.Response'
  2032. security:
  2033. - token: []
  2034. summary: 设备列表
  2035. tags:
  2036. - 设备
  2037. /admin/peer/update:
  2038. post:
  2039. consumes:
  2040. - application/json
  2041. description: 设备编辑
  2042. parameters:
  2043. - description: 设备信息
  2044. in: body
  2045. name: body
  2046. required: true
  2047. schema:
  2048. $ref: '#/definitions/admin.PeerForm'
  2049. produces:
  2050. - application/json
  2051. responses:
  2052. "200":
  2053. description: OK
  2054. schema:
  2055. allOf:
  2056. - $ref: '#/definitions/response.Response'
  2057. - properties:
  2058. data:
  2059. $ref: '#/definitions/model.Peer'
  2060. type: object
  2061. "500":
  2062. description: Internal Server Error
  2063. schema:
  2064. $ref: '#/definitions/response.Response'
  2065. security:
  2066. - token: []
  2067. summary: 设备编辑
  2068. tags:
  2069. - 设备
  2070. /admin/server-config:
  2071. get:
  2072. consumes:
  2073. - application/json
  2074. description: 服务配置,给webclient提供api-server
  2075. produces:
  2076. - application/json
  2077. responses:
  2078. "200":
  2079. description: OK
  2080. schema:
  2081. $ref: '#/definitions/response.Response'
  2082. "500":
  2083. description: Internal Server Error
  2084. schema:
  2085. $ref: '#/definitions/response.Response'
  2086. security:
  2087. - token: []
  2088. summary: RUSTDESK服务配置
  2089. tags:
  2090. - ADMIN
  2091. /admin/tag/create:
  2092. post:
  2093. consumes:
  2094. - application/json
  2095. description: 创建标签
  2096. parameters:
  2097. - description: 标签信息
  2098. in: body
  2099. name: body
  2100. required: true
  2101. schema:
  2102. $ref: '#/definitions/admin.TagForm'
  2103. produces:
  2104. - application/json
  2105. responses:
  2106. "200":
  2107. description: OK
  2108. schema:
  2109. allOf:
  2110. - $ref: '#/definitions/response.Response'
  2111. - properties:
  2112. data:
  2113. $ref: '#/definitions/model.Tag'
  2114. type: object
  2115. "500":
  2116. description: Internal Server Error
  2117. schema:
  2118. $ref: '#/definitions/response.Response'
  2119. security:
  2120. - token: []
  2121. summary: 创建标签
  2122. tags:
  2123. - 标签
  2124. /admin/tag/delete:
  2125. post:
  2126. consumes:
  2127. - application/json
  2128. description: 标签删除
  2129. parameters:
  2130. - description: 标签信息
  2131. in: body
  2132. name: body
  2133. required: true
  2134. schema:
  2135. $ref: '#/definitions/admin.TagForm'
  2136. produces:
  2137. - application/json
  2138. responses:
  2139. "200":
  2140. description: OK
  2141. schema:
  2142. $ref: '#/definitions/response.Response'
  2143. "500":
  2144. description: Internal Server Error
  2145. schema:
  2146. $ref: '#/definitions/response.Response'
  2147. security:
  2148. - token: []
  2149. summary: 标签删除
  2150. tags:
  2151. - 标签
  2152. /admin/tag/detail/{id}:
  2153. get:
  2154. consumes:
  2155. - application/json
  2156. description: 标签详情
  2157. parameters:
  2158. - description: ID
  2159. in: path
  2160. name: id
  2161. required: true
  2162. type: integer
  2163. produces:
  2164. - application/json
  2165. responses:
  2166. "200":
  2167. description: OK
  2168. schema:
  2169. allOf:
  2170. - $ref: '#/definitions/response.Response'
  2171. - properties:
  2172. data:
  2173. $ref: '#/definitions/model.Tag'
  2174. type: object
  2175. "500":
  2176. description: Internal Server Error
  2177. schema:
  2178. $ref: '#/definitions/response.Response'
  2179. security:
  2180. - token: []
  2181. summary: 标签详情
  2182. tags:
  2183. - 标签
  2184. /admin/tag/list:
  2185. get:
  2186. consumes:
  2187. - application/json
  2188. description: 标签列表
  2189. parameters:
  2190. - description: 页码
  2191. in: query
  2192. name: page
  2193. type: integer
  2194. - description: 页大小
  2195. in: query
  2196. name: page_size
  2197. type: integer
  2198. - description: 是否是我的
  2199. in: query
  2200. name: is_my
  2201. type: integer
  2202. - description: 用户id
  2203. in: query
  2204. name: user_id
  2205. type: integer
  2206. produces:
  2207. - application/json
  2208. responses:
  2209. "200":
  2210. description: OK
  2211. schema:
  2212. allOf:
  2213. - $ref: '#/definitions/response.Response'
  2214. - properties:
  2215. data:
  2216. $ref: '#/definitions/model.TagList'
  2217. type: object
  2218. "500":
  2219. description: Internal Server Error
  2220. schema:
  2221. $ref: '#/definitions/response.Response'
  2222. security:
  2223. - token: []
  2224. summary: 标签列表
  2225. tags:
  2226. - 标签
  2227. /admin/tag/update:
  2228. post:
  2229. consumes:
  2230. - application/json
  2231. description: 标签编辑
  2232. parameters:
  2233. - description: 标签信息
  2234. in: body
  2235. name: body
  2236. required: true
  2237. schema:
  2238. $ref: '#/definitions/admin.TagForm'
  2239. produces:
  2240. - application/json
  2241. responses:
  2242. "200":
  2243. description: OK
  2244. schema:
  2245. allOf:
  2246. - $ref: '#/definitions/response.Response'
  2247. - properties:
  2248. data:
  2249. $ref: '#/definitions/model.Tag'
  2250. type: object
  2251. "500":
  2252. description: Internal Server Error
  2253. schema:
  2254. $ref: '#/definitions/response.Response'
  2255. security:
  2256. - token: []
  2257. summary: 标签编辑
  2258. tags:
  2259. - 标签
  2260. /admin/user/changeCurPwd:
  2261. post:
  2262. consumes:
  2263. - application/json
  2264. description: 修改当前用户密码
  2265. parameters:
  2266. - description: 用户信息
  2267. in: body
  2268. name: body
  2269. required: true
  2270. schema:
  2271. $ref: '#/definitions/admin.ChangeCurPasswordForm'
  2272. produces:
  2273. - application/json
  2274. responses:
  2275. "200":
  2276. description: OK
  2277. schema:
  2278. $ref: '#/definitions/response.Response'
  2279. "500":
  2280. description: Internal Server Error
  2281. schema:
  2282. $ref: '#/definitions/response.Response'
  2283. security:
  2284. - token: []
  2285. summary: 修改当前用户密码
  2286. tags:
  2287. - 用户
  2288. /admin/user/create:
  2289. post:
  2290. consumes:
  2291. - application/json
  2292. description: 创建管理员
  2293. parameters:
  2294. - description: 管理员信息
  2295. in: body
  2296. name: body
  2297. required: true
  2298. schema:
  2299. $ref: '#/definitions/admin.UserForm'
  2300. produces:
  2301. - application/json
  2302. responses:
  2303. "200":
  2304. description: OK
  2305. schema:
  2306. allOf:
  2307. - $ref: '#/definitions/response.Response'
  2308. - properties:
  2309. data:
  2310. $ref: '#/definitions/model.User'
  2311. type: object
  2312. "500":
  2313. description: Internal Server Error
  2314. schema:
  2315. $ref: '#/definitions/response.Response'
  2316. security:
  2317. - token: []
  2318. summary: 创建管理员
  2319. tags:
  2320. - 用户
  2321. /admin/user/current:
  2322. get:
  2323. consumes:
  2324. - application/json
  2325. description: 当前用户
  2326. produces:
  2327. - application/json
  2328. responses:
  2329. "200":
  2330. description: OK
  2331. schema:
  2332. allOf:
  2333. - $ref: '#/definitions/response.Response'
  2334. - properties:
  2335. data:
  2336. $ref: '#/definitions/admin.LoginPayload'
  2337. type: object
  2338. "500":
  2339. description: Internal Server Error
  2340. schema:
  2341. $ref: '#/definitions/response.Response'
  2342. security:
  2343. - token: []
  2344. summary: 当前用户
  2345. tags:
  2346. - 用户
  2347. /admin/user/delete:
  2348. post:
  2349. consumes:
  2350. - application/json
  2351. description: 管理员编删除
  2352. parameters:
  2353. - description: 用户信息
  2354. in: body
  2355. name: body
  2356. required: true
  2357. schema:
  2358. $ref: '#/definitions/admin.UserForm'
  2359. produces:
  2360. - application/json
  2361. responses:
  2362. "200":
  2363. description: OK
  2364. schema:
  2365. $ref: '#/definitions/response.Response'
  2366. "500":
  2367. description: Internal Server Error
  2368. schema:
  2369. $ref: '#/definitions/response.Response'
  2370. security:
  2371. - token: []
  2372. summary: 管理员删除
  2373. tags:
  2374. - 用户
  2375. /admin/user/detail/{id}:
  2376. get:
  2377. consumes:
  2378. - application/json
  2379. description: 管理员详情
  2380. parameters:
  2381. - description: ID
  2382. in: path
  2383. name: id
  2384. required: true
  2385. type: integer
  2386. produces:
  2387. - application/json
  2388. responses:
  2389. "200":
  2390. description: OK
  2391. schema:
  2392. allOf:
  2393. - $ref: '#/definitions/response.Response'
  2394. - properties:
  2395. data:
  2396. $ref: '#/definitions/model.User'
  2397. type: object
  2398. "500":
  2399. description: Internal Server Error
  2400. schema:
  2401. $ref: '#/definitions/response.Response'
  2402. security:
  2403. - token: []
  2404. summary: 管理员详情
  2405. tags:
  2406. - 用户
  2407. /admin/user/list:
  2408. get:
  2409. consumes:
  2410. - application/json
  2411. description: 管理员列表
  2412. parameters:
  2413. - description: 页码
  2414. in: query
  2415. name: page
  2416. type: integer
  2417. - description: 页大小
  2418. in: query
  2419. name: page_size
  2420. type: integer
  2421. - description: 账户
  2422. in: query
  2423. name: username
  2424. type: integer
  2425. produces:
  2426. - application/json
  2427. responses:
  2428. "200":
  2429. description: OK
  2430. schema:
  2431. allOf:
  2432. - $ref: '#/definitions/response.Response'
  2433. - properties:
  2434. data:
  2435. $ref: '#/definitions/model.UserList'
  2436. type: object
  2437. "500":
  2438. description: Internal Server Error
  2439. schema:
  2440. $ref: '#/definitions/response.Response'
  2441. security:
  2442. - token: []
  2443. summary: 管理员列表
  2444. tags:
  2445. - 用户
  2446. /admin/user/myOauth:
  2447. get:
  2448. consumes:
  2449. - application/json
  2450. description: 我的授权
  2451. produces:
  2452. - application/json
  2453. responses:
  2454. "200":
  2455. description: OK
  2456. schema:
  2457. allOf:
  2458. - $ref: '#/definitions/response.Response'
  2459. - properties:
  2460. data:
  2461. items:
  2462. $ref: '#/definitions/admin.UserOauthItem'
  2463. type: array
  2464. type: object
  2465. "500":
  2466. description: Internal Server Error
  2467. schema:
  2468. $ref: '#/definitions/response.Response'
  2469. security:
  2470. - token: []
  2471. summary: 我的授权
  2472. tags:
  2473. - 用户
  2474. /admin/user/update:
  2475. post:
  2476. consumes:
  2477. - application/json
  2478. description: 管理员编辑
  2479. parameters:
  2480. - description: 用户信息
  2481. in: body
  2482. name: body
  2483. required: true
  2484. schema:
  2485. $ref: '#/definitions/admin.UserForm'
  2486. produces:
  2487. - application/json
  2488. responses:
  2489. "200":
  2490. description: OK
  2491. schema:
  2492. allOf:
  2493. - $ref: '#/definitions/response.Response'
  2494. - properties:
  2495. data:
  2496. $ref: '#/definitions/model.User'
  2497. type: object
  2498. "500":
  2499. description: Internal Server Error
  2500. schema:
  2501. $ref: '#/definitions/response.Response'
  2502. security:
  2503. - token: []
  2504. summary: 管理员编辑
  2505. tags:
  2506. - 用户
  2507. /admin/user/updatePassword:
  2508. post:
  2509. consumes:
  2510. - application/json
  2511. description: 修改密码
  2512. parameters:
  2513. - description: 用户信息
  2514. in: body
  2515. name: body
  2516. required: true
  2517. schema:
  2518. $ref: '#/definitions/admin.UserPasswordForm'
  2519. produces:
  2520. - application/json
  2521. responses:
  2522. "200":
  2523. description: OK
  2524. schema:
  2525. $ref: '#/definitions/response.Response'
  2526. "500":
  2527. description: Internal Server Error
  2528. schema:
  2529. $ref: '#/definitions/response.Response'
  2530. security:
  2531. - token: []
  2532. summary: 修改密码
  2533. tags:
  2534. - 用户
  2535. /admin/user_token/delete:
  2536. post:
  2537. consumes:
  2538. - application/json
  2539. description: 登录凭证删除
  2540. parameters:
  2541. - description: 登录凭证信息
  2542. in: body
  2543. name: body
  2544. required: true
  2545. schema:
  2546. $ref: '#/definitions/model.UserToken'
  2547. produces:
  2548. - application/json
  2549. responses:
  2550. "200":
  2551. description: OK
  2552. schema:
  2553. $ref: '#/definitions/response.Response'
  2554. "500":
  2555. description: Internal Server Error
  2556. schema:
  2557. $ref: '#/definitions/response.Response'
  2558. security:
  2559. - token: []
  2560. summary: 登录凭证删除
  2561. tags:
  2562. - 登录凭证
  2563. /admin/user_token/list:
  2564. get:
  2565. consumes:
  2566. - application/json
  2567. description: 登录凭证列表
  2568. parameters:
  2569. - description: 页码
  2570. in: query
  2571. name: page
  2572. type: integer
  2573. - description: 页大小
  2574. in: query
  2575. name: page_size
  2576. type: integer
  2577. - description: 用户ID
  2578. in: query
  2579. name: user_id
  2580. type: integer
  2581. produces:
  2582. - application/json
  2583. responses:
  2584. "200":
  2585. description: OK
  2586. schema:
  2587. allOf:
  2588. - $ref: '#/definitions/response.Response'
  2589. - properties:
  2590. data:
  2591. $ref: '#/definitions/model.UserTokenList'
  2592. type: object
  2593. "500":
  2594. description: Internal Server Error
  2595. schema:
  2596. $ref: '#/definitions/response.Response'
  2597. security:
  2598. - token: []
  2599. summary: 登录凭证列表
  2600. tags:
  2601. - 登录凭证
  2602. securityDefinitions:
  2603. BearerAuth:
  2604. in: header
  2605. name: Authorization
  2606. type: apiKey
  2607. token:
  2608. in: header
  2609. name: api-token
  2610. type: apiKey
  2611. swagger: "2.0"