admin_swagger.yaml 60 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660
  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. tags:
  934. - 地址簿名称
  935. /admin/address_book_collection/delete:
  936. post:
  937. consumes:
  938. - application/json
  939. description: 地址簿名称删除
  940. parameters:
  941. - description: 地址簿名称信息
  942. in: body
  943. name: body
  944. required: true
  945. schema:
  946. $ref: '#/definitions/model.AddressBookCollection'
  947. produces:
  948. - application/json
  949. responses:
  950. "200":
  951. description: OK
  952. schema:
  953. $ref: '#/definitions/response.Response'
  954. "500":
  955. description: Internal Server Error
  956. schema:
  957. $ref: '#/definitions/response.Response'
  958. security:
  959. - token: []
  960. summary: 地址簿名称删除
  961. tags:
  962. - 地址簿名称
  963. /admin/address_book_collection/detail/{id}:
  964. get:
  965. consumes:
  966. - application/json
  967. description: 地址簿名称详情
  968. parameters:
  969. - description: ID
  970. in: path
  971. name: id
  972. required: true
  973. type: integer
  974. produces:
  975. - application/json
  976. responses:
  977. "200":
  978. description: OK
  979. schema:
  980. allOf:
  981. - $ref: '#/definitions/response.Response'
  982. - properties:
  983. data:
  984. $ref: '#/definitions/model.AddressBookCollection'
  985. type: object
  986. "500":
  987. description: Internal Server Error
  988. schema:
  989. $ref: '#/definitions/response.Response'
  990. security:
  991. - token: []
  992. summary: 地址簿名称详情
  993. tags:
  994. - 地址簿名称
  995. /admin/address_book_collection/list:
  996. get:
  997. consumes:
  998. - application/json
  999. description: 地址簿名称列表
  1000. parameters:
  1001. - description: 页码
  1002. in: query
  1003. name: page
  1004. type: integer
  1005. - description: 页大小
  1006. in: query
  1007. name: page_size
  1008. type: integer
  1009. - description: 是否是我的
  1010. in: query
  1011. name: is_my
  1012. type: integer
  1013. - description: 用户id
  1014. in: query
  1015. name: user_id
  1016. type: integer
  1017. produces:
  1018. - application/json
  1019. responses:
  1020. "200":
  1021. description: OK
  1022. schema:
  1023. allOf:
  1024. - $ref: '#/definitions/response.Response'
  1025. - properties:
  1026. data:
  1027. $ref: '#/definitions/model.AddressBookCollectionList'
  1028. type: object
  1029. "500":
  1030. description: Internal Server Error
  1031. schema:
  1032. $ref: '#/definitions/response.Response'
  1033. security:
  1034. - token: []
  1035. summary: 地址簿名称列表
  1036. tags:
  1037. - 地址簿名称
  1038. /admin/address_book_collection/update:
  1039. post:
  1040. consumes:
  1041. - application/json
  1042. description: 地址簿名称编辑
  1043. parameters:
  1044. - description: 地址簿名称信息
  1045. in: body
  1046. name: body
  1047. required: true
  1048. schema:
  1049. $ref: '#/definitions/model.AddressBookCollection'
  1050. produces:
  1051. - application/json
  1052. responses:
  1053. "200":
  1054. description: OK
  1055. schema:
  1056. allOf:
  1057. - $ref: '#/definitions/response.Response'
  1058. - properties:
  1059. data:
  1060. $ref: '#/definitions/model.AddressBookCollection'
  1061. type: object
  1062. "500":
  1063. description: Internal Server Error
  1064. schema:
  1065. $ref: '#/definitions/response.Response'
  1066. security:
  1067. - token: []
  1068. summary: 地址簿名称编辑
  1069. tags:
  1070. - 地址簿名称
  1071. /admin/address_book_collection_rule/create:
  1072. post:
  1073. consumes:
  1074. - application/json
  1075. description: 创建地址簿规则
  1076. parameters:
  1077. - description: 地址簿规则信息
  1078. in: body
  1079. name: body
  1080. required: true
  1081. schema:
  1082. $ref: '#/definitions/model.AddressBookCollectionRule'
  1083. produces:
  1084. - application/json
  1085. responses:
  1086. "200":
  1087. description: OK
  1088. schema:
  1089. allOf:
  1090. - $ref: '#/definitions/response.Response'
  1091. - properties:
  1092. data:
  1093. $ref: '#/definitions/model.AddressBookCollection'
  1094. type: object
  1095. "500":
  1096. description: Internal Server Error
  1097. schema:
  1098. $ref: '#/definitions/response.Response'
  1099. security:
  1100. - token: []
  1101. summary: 创建地址簿规则
  1102. tags:
  1103. - 地址簿规则
  1104. /admin/address_book_collection_rule/delete:
  1105. post:
  1106. consumes:
  1107. - application/json
  1108. description: 地址簿规则删除
  1109. parameters:
  1110. - description: 地址簿规则信息
  1111. in: body
  1112. name: body
  1113. required: true
  1114. schema:
  1115. $ref: '#/definitions/model.AddressBookCollectionRule'
  1116. produces:
  1117. - application/json
  1118. responses:
  1119. "200":
  1120. description: OK
  1121. schema:
  1122. $ref: '#/definitions/response.Response'
  1123. "500":
  1124. description: Internal Server Error
  1125. schema:
  1126. $ref: '#/definitions/response.Response'
  1127. security:
  1128. - token: []
  1129. summary: 地址簿规则删除
  1130. tags:
  1131. - 地址簿规则
  1132. /admin/address_book_collection_rule/detail/{id}:
  1133. get:
  1134. consumes:
  1135. - application/json
  1136. description: 地址簿规则详情
  1137. parameters:
  1138. - description: ID
  1139. in: path
  1140. name: id
  1141. required: true
  1142. type: integer
  1143. produces:
  1144. - application/json
  1145. responses:
  1146. "200":
  1147. description: OK
  1148. schema:
  1149. allOf:
  1150. - $ref: '#/definitions/response.Response'
  1151. - properties:
  1152. data:
  1153. $ref: '#/definitions/model.AddressBookCollectionRule'
  1154. type: object
  1155. "500":
  1156. description: Internal Server Error
  1157. schema:
  1158. $ref: '#/definitions/response.Response'
  1159. security:
  1160. - token: []
  1161. summary: 地址簿规则详情
  1162. tags:
  1163. - 地址簿规则
  1164. /admin/address_book_collection_rule/list:
  1165. get:
  1166. consumes:
  1167. - application/json
  1168. description: 地址簿规则列表
  1169. parameters:
  1170. - description: 页码
  1171. in: query
  1172. name: page
  1173. type: integer
  1174. - description: 页大小
  1175. in: query
  1176. name: page_size
  1177. type: integer
  1178. - description: 是否是我的
  1179. in: query
  1180. name: is_my
  1181. type: integer
  1182. - description: 用户id
  1183. in: query
  1184. name: user_id
  1185. type: integer
  1186. - description: 地址簿集合id
  1187. in: query
  1188. name: collection_id
  1189. type: integer
  1190. produces:
  1191. - application/json
  1192. responses:
  1193. "200":
  1194. description: OK
  1195. schema:
  1196. allOf:
  1197. - $ref: '#/definitions/response.Response'
  1198. - properties:
  1199. data:
  1200. $ref: '#/definitions/model.AddressBookCollectionList'
  1201. type: object
  1202. "500":
  1203. description: Internal Server Error
  1204. schema:
  1205. $ref: '#/definitions/response.Response'
  1206. security:
  1207. - token: []
  1208. summary: 地址簿规则列表
  1209. tags:
  1210. - 地址簿规则
  1211. /admin/address_book_collection_rule/update:
  1212. post:
  1213. consumes:
  1214. - application/json
  1215. description: 地址簿规则编辑
  1216. parameters:
  1217. - description: 地址簿规则信息
  1218. in: body
  1219. name: body
  1220. required: true
  1221. schema:
  1222. $ref: '#/definitions/model.AddressBookCollectionRule'
  1223. produces:
  1224. - application/json
  1225. responses:
  1226. "200":
  1227. description: OK
  1228. schema:
  1229. allOf:
  1230. - $ref: '#/definitions/response.Response'
  1231. - properties:
  1232. data:
  1233. $ref: '#/definitions/model.AddressBookCollection'
  1234. type: object
  1235. "500":
  1236. description: Internal Server Error
  1237. schema:
  1238. $ref: '#/definitions/response.Response'
  1239. security:
  1240. - token: []
  1241. summary: 地址簿规则编辑
  1242. tags:
  1243. - 地址簿规则
  1244. /admin/app-config:
  1245. get:
  1246. consumes:
  1247. - application/json
  1248. description: APP服务配置
  1249. produces:
  1250. - application/json
  1251. responses:
  1252. "200":
  1253. description: OK
  1254. schema:
  1255. $ref: '#/definitions/response.Response'
  1256. "500":
  1257. description: Internal Server Error
  1258. schema:
  1259. $ref: '#/definitions/response.Response'
  1260. security:
  1261. - token: []
  1262. summary: APP服务配置
  1263. tags:
  1264. - ADMIN
  1265. /admin/audit_conn/delete:
  1266. post:
  1267. consumes:
  1268. - application/json
  1269. description: 文件日志删除
  1270. parameters:
  1271. - description: 文件日志信息
  1272. in: body
  1273. name: body
  1274. required: true
  1275. schema:
  1276. $ref: '#/definitions/model.AuditFile'
  1277. produces:
  1278. - application/json
  1279. responses:
  1280. "200":
  1281. description: OK
  1282. schema:
  1283. $ref: '#/definitions/response.Response'
  1284. "500":
  1285. description: Internal Server Error
  1286. schema:
  1287. $ref: '#/definitions/response.Response'
  1288. security:
  1289. - token: []
  1290. summary: 文件日志删除
  1291. tags:
  1292. - 文件日志
  1293. /admin/audit_conn/list:
  1294. get:
  1295. consumes:
  1296. - application/json
  1297. description: 文件日志列表
  1298. parameters:
  1299. - description: 页码
  1300. in: query
  1301. name: page
  1302. type: integer
  1303. - description: 页大小
  1304. in: query
  1305. name: page_size
  1306. type: integer
  1307. - description: 目标设备
  1308. in: query
  1309. name: peer_id
  1310. type: integer
  1311. - description: 来源设备
  1312. in: query
  1313. name: from_peer
  1314. type: integer
  1315. produces:
  1316. - application/json
  1317. responses:
  1318. "200":
  1319. description: OK
  1320. schema:
  1321. allOf:
  1322. - $ref: '#/definitions/response.Response'
  1323. - properties:
  1324. data:
  1325. $ref: '#/definitions/model.AuditFileList'
  1326. type: object
  1327. "500":
  1328. description: Internal Server Error
  1329. schema:
  1330. $ref: '#/definitions/response.Response'
  1331. security:
  1332. - token: []
  1333. summary: 文件日志列表
  1334. tags:
  1335. - 文件日志
  1336. /admin/file/oss_token:
  1337. get:
  1338. consumes:
  1339. - application/json
  1340. description: 获取ossToken
  1341. produces:
  1342. - application/json
  1343. responses:
  1344. "200":
  1345. description: OK
  1346. schema:
  1347. $ref: '#/definitions/response.Response'
  1348. "500":
  1349. description: Internal Server Error
  1350. schema:
  1351. $ref: '#/definitions/response.Response'
  1352. security:
  1353. - token: []
  1354. summary: 获取ossToken
  1355. tags:
  1356. - 文件
  1357. /admin/file/upload:
  1358. post:
  1359. consumes:
  1360. - multipart/form-data
  1361. description: 上传文件到本地
  1362. parameters:
  1363. - description: 上传文件示例
  1364. in: formData
  1365. name: file
  1366. required: true
  1367. type: file
  1368. produces:
  1369. - application/json
  1370. responses:
  1371. "200":
  1372. description: OK
  1373. schema:
  1374. $ref: '#/definitions/response.Response'
  1375. "500":
  1376. description: Internal Server Error
  1377. schema:
  1378. $ref: '#/definitions/response.Response'
  1379. security:
  1380. - token: []
  1381. summary: 上传文件到本地
  1382. tags:
  1383. - 文件
  1384. /admin/group/create:
  1385. post:
  1386. consumes:
  1387. - application/json
  1388. description: 创建群组
  1389. parameters:
  1390. - description: 群组信息
  1391. in: body
  1392. name: body
  1393. required: true
  1394. schema:
  1395. $ref: '#/definitions/admin.GroupForm'
  1396. produces:
  1397. - application/json
  1398. responses:
  1399. "200":
  1400. description: OK
  1401. schema:
  1402. allOf:
  1403. - $ref: '#/definitions/response.Response'
  1404. - properties:
  1405. data:
  1406. $ref: '#/definitions/model.Group'
  1407. type: object
  1408. "500":
  1409. description: Internal Server Error
  1410. schema:
  1411. $ref: '#/definitions/response.Response'
  1412. security:
  1413. - token: []
  1414. summary: 创建群组
  1415. tags:
  1416. - 群组
  1417. /admin/group/delete:
  1418. post:
  1419. consumes:
  1420. - application/json
  1421. description: 群组删除
  1422. parameters:
  1423. - description: 群组信息
  1424. in: body
  1425. name: body
  1426. required: true
  1427. schema:
  1428. $ref: '#/definitions/admin.GroupForm'
  1429. produces:
  1430. - application/json
  1431. responses:
  1432. "200":
  1433. description: OK
  1434. schema:
  1435. $ref: '#/definitions/response.Response'
  1436. "500":
  1437. description: Internal Server Error
  1438. schema:
  1439. $ref: '#/definitions/response.Response'
  1440. security:
  1441. - token: []
  1442. summary: 群组删除
  1443. tags:
  1444. - 群组
  1445. /admin/group/detail/{id}:
  1446. get:
  1447. consumes:
  1448. - application/json
  1449. description: 群组详情
  1450. parameters:
  1451. - description: ID
  1452. in: path
  1453. name: id
  1454. required: true
  1455. type: integer
  1456. produces:
  1457. - application/json
  1458. responses:
  1459. "200":
  1460. description: OK
  1461. schema:
  1462. allOf:
  1463. - $ref: '#/definitions/response.Response'
  1464. - properties:
  1465. data:
  1466. $ref: '#/definitions/model.Group'
  1467. type: object
  1468. "500":
  1469. description: Internal Server Error
  1470. schema:
  1471. $ref: '#/definitions/response.Response'
  1472. security:
  1473. - token: []
  1474. summary: 群组详情
  1475. tags:
  1476. - 群组
  1477. /admin/group/list:
  1478. get:
  1479. consumes:
  1480. - application/json
  1481. description: 群组列表
  1482. parameters:
  1483. - description: 页码
  1484. in: query
  1485. name: page
  1486. type: integer
  1487. - description: 页大小
  1488. in: query
  1489. name: page_size
  1490. type: integer
  1491. produces:
  1492. - application/json
  1493. responses:
  1494. "200":
  1495. description: OK
  1496. schema:
  1497. allOf:
  1498. - $ref: '#/definitions/response.Response'
  1499. - properties:
  1500. data:
  1501. $ref: '#/definitions/model.GroupList'
  1502. type: object
  1503. "500":
  1504. description: Internal Server Error
  1505. schema:
  1506. $ref: '#/definitions/response.Response'
  1507. security:
  1508. - token: []
  1509. summary: 群组列表
  1510. tags:
  1511. - 群组
  1512. /admin/group/update:
  1513. post:
  1514. consumes:
  1515. - application/json
  1516. description: 群组编辑
  1517. parameters:
  1518. - description: 群组信息
  1519. in: body
  1520. name: body
  1521. required: true
  1522. schema:
  1523. $ref: '#/definitions/admin.GroupForm'
  1524. produces:
  1525. - application/json
  1526. responses:
  1527. "200":
  1528. description: OK
  1529. schema:
  1530. allOf:
  1531. - $ref: '#/definitions/response.Response'
  1532. - properties:
  1533. data:
  1534. $ref: '#/definitions/model.Group'
  1535. type: object
  1536. "500":
  1537. description: Internal Server Error
  1538. schema:
  1539. $ref: '#/definitions/response.Response'
  1540. security:
  1541. - token: []
  1542. summary: 群组编辑
  1543. tags:
  1544. - 群组
  1545. /admin/login:
  1546. post:
  1547. consumes:
  1548. - application/json
  1549. description: 登录
  1550. parameters:
  1551. - description: 登录信息
  1552. in: body
  1553. name: body
  1554. required: true
  1555. schema:
  1556. $ref: '#/definitions/Gwen_http_request_admin.Login'
  1557. produces:
  1558. - application/json
  1559. responses:
  1560. "200":
  1561. description: OK
  1562. schema:
  1563. allOf:
  1564. - $ref: '#/definitions/response.Response'
  1565. - properties:
  1566. data:
  1567. $ref: '#/definitions/admin.LoginPayload'
  1568. type: object
  1569. "500":
  1570. description: Internal Server Error
  1571. schema:
  1572. $ref: '#/definitions/response.Response'
  1573. security:
  1574. - token: []
  1575. summary: 登录
  1576. tags:
  1577. - 登录
  1578. /admin/login-options:
  1579. post:
  1580. consumes:
  1581. - application/json
  1582. description: 登录选项
  1583. produces:
  1584. - application/json
  1585. responses:
  1586. "200":
  1587. description: OK
  1588. schema:
  1589. items:
  1590. type: string
  1591. type: array
  1592. "500":
  1593. description: Internal Server Error
  1594. schema:
  1595. $ref: '#/definitions/response.ErrorResponse'
  1596. summary: 登录选项
  1597. tags:
  1598. - 登录
  1599. /admin/login_log/delete:
  1600. post:
  1601. consumes:
  1602. - application/json
  1603. description: 登录日志删除
  1604. parameters:
  1605. - description: 登录日志信息
  1606. in: body
  1607. name: body
  1608. required: true
  1609. schema:
  1610. $ref: '#/definitions/model.LoginLog'
  1611. produces:
  1612. - application/json
  1613. responses:
  1614. "200":
  1615. description: OK
  1616. schema:
  1617. $ref: '#/definitions/response.Response'
  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/login_log/detail/{id}:
  1628. get:
  1629. consumes:
  1630. - application/json
  1631. description: 登录日志详情
  1632. parameters:
  1633. - description: ID
  1634. in: path
  1635. name: id
  1636. required: true
  1637. type: integer
  1638. produces:
  1639. - application/json
  1640. responses:
  1641. "200":
  1642. description: OK
  1643. schema:
  1644. allOf:
  1645. - $ref: '#/definitions/response.Response'
  1646. - properties:
  1647. data:
  1648. $ref: '#/definitions/model.LoginLog'
  1649. type: object
  1650. "500":
  1651. description: Internal Server Error
  1652. schema:
  1653. $ref: '#/definitions/response.Response'
  1654. security:
  1655. - token: []
  1656. summary: 登录日志详情
  1657. tags:
  1658. - 登录日志
  1659. /admin/login_log/list:
  1660. get:
  1661. consumes:
  1662. - application/json
  1663. description: 登录日志列表
  1664. parameters:
  1665. - description: 页码
  1666. in: query
  1667. name: page
  1668. type: integer
  1669. - description: 页大小
  1670. in: query
  1671. name: page_size
  1672. type: integer
  1673. - description: 用户ID
  1674. in: query
  1675. name: user_id
  1676. type: integer
  1677. produces:
  1678. - application/json
  1679. responses:
  1680. "200":
  1681. description: OK
  1682. schema:
  1683. allOf:
  1684. - $ref: '#/definitions/response.Response'
  1685. - properties:
  1686. data:
  1687. $ref: '#/definitions/model.LoginLogList'
  1688. type: object
  1689. "500":
  1690. description: Internal Server Error
  1691. schema:
  1692. $ref: '#/definitions/response.Response'
  1693. security:
  1694. - token: []
  1695. summary: 登录日志列表
  1696. tags:
  1697. - 登录日志
  1698. /admin/logout:
  1699. post:
  1700. consumes:
  1701. - application/json
  1702. description: 登出
  1703. produces:
  1704. - application/json
  1705. responses:
  1706. "200":
  1707. description: OK
  1708. schema:
  1709. $ref: '#/definitions/response.Response'
  1710. "500":
  1711. description: Internal Server Error
  1712. schema:
  1713. $ref: '#/definitions/response.Response'
  1714. summary: 登出
  1715. tags:
  1716. - 登录
  1717. /admin/oauth/create:
  1718. post:
  1719. consumes:
  1720. - application/json
  1721. description: 创建Oauth
  1722. parameters:
  1723. - description: Oauth信息
  1724. in: body
  1725. name: body
  1726. required: true
  1727. schema:
  1728. $ref: '#/definitions/admin.OauthForm'
  1729. produces:
  1730. - application/json
  1731. responses:
  1732. "200":
  1733. description: OK
  1734. schema:
  1735. allOf:
  1736. - $ref: '#/definitions/response.Response'
  1737. - properties:
  1738. data:
  1739. $ref: '#/definitions/model.Oauth'
  1740. type: object
  1741. "500":
  1742. description: Internal Server Error
  1743. schema:
  1744. $ref: '#/definitions/response.Response'
  1745. security:
  1746. - token: []
  1747. summary: 创建Oauth
  1748. tags:
  1749. - Oauth
  1750. /admin/oauth/delete:
  1751. post:
  1752. consumes:
  1753. - application/json
  1754. description: Oauth删除
  1755. parameters:
  1756. - description: Oauth信息
  1757. in: body
  1758. name: body
  1759. required: true
  1760. schema:
  1761. $ref: '#/definitions/admin.OauthForm'
  1762. produces:
  1763. - application/json
  1764. responses:
  1765. "200":
  1766. description: OK
  1767. schema:
  1768. $ref: '#/definitions/response.Response'
  1769. "500":
  1770. description: Internal Server Error
  1771. schema:
  1772. $ref: '#/definitions/response.Response'
  1773. security:
  1774. - token: []
  1775. summary: Oauth删除
  1776. tags:
  1777. - Oauth
  1778. /admin/oauth/detail/{id}:
  1779. get:
  1780. consumes:
  1781. - application/json
  1782. description: Oauth详情
  1783. parameters:
  1784. - description: ID
  1785. in: path
  1786. name: id
  1787. required: true
  1788. type: integer
  1789. produces:
  1790. - application/json
  1791. responses:
  1792. "200":
  1793. description: OK
  1794. schema:
  1795. allOf:
  1796. - $ref: '#/definitions/response.Response'
  1797. - properties:
  1798. data:
  1799. $ref: '#/definitions/model.Oauth'
  1800. type: object
  1801. "500":
  1802. description: Internal Server Error
  1803. schema:
  1804. $ref: '#/definitions/response.Response'
  1805. security:
  1806. - token: []
  1807. summary: Oauth详情
  1808. tags:
  1809. - Oauth
  1810. /admin/oauth/list:
  1811. get:
  1812. consumes:
  1813. - application/json
  1814. description: Oauth列表
  1815. parameters:
  1816. - description: 页码
  1817. in: query
  1818. name: page
  1819. type: integer
  1820. - description: 页大小
  1821. in: query
  1822. name: page_size
  1823. type: integer
  1824. produces:
  1825. - application/json
  1826. responses:
  1827. "200":
  1828. description: OK
  1829. schema:
  1830. allOf:
  1831. - $ref: '#/definitions/response.Response'
  1832. - properties:
  1833. data:
  1834. $ref: '#/definitions/model.OauthList'
  1835. type: object
  1836. "500":
  1837. description: Internal Server Error
  1838. schema:
  1839. $ref: '#/definitions/response.Response'
  1840. security:
  1841. - token: []
  1842. summary: Oauth列表
  1843. tags:
  1844. - Oauth
  1845. /admin/oauth/update:
  1846. post:
  1847. consumes:
  1848. - application/json
  1849. description: Oauth编辑
  1850. parameters:
  1851. - description: Oauth信息
  1852. in: body
  1853. name: body
  1854. required: true
  1855. schema:
  1856. $ref: '#/definitions/admin.OauthForm'
  1857. produces:
  1858. - application/json
  1859. responses:
  1860. "200":
  1861. description: OK
  1862. schema:
  1863. allOf:
  1864. - $ref: '#/definitions/response.Response'
  1865. - properties:
  1866. data:
  1867. $ref: '#/definitions/model.OauthList'
  1868. type: object
  1869. "500":
  1870. description: Internal Server Error
  1871. schema:
  1872. $ref: '#/definitions/response.Response'
  1873. security:
  1874. - token: []
  1875. summary: Oauth编辑
  1876. tags:
  1877. - Oauth
  1878. /admin/oidc/auth:
  1879. post:
  1880. consumes:
  1881. - application/json
  1882. description: OidcAuth
  1883. produces:
  1884. - application/json
  1885. responses: {}
  1886. summary: OidcAuth
  1887. tags:
  1888. - Oauth
  1889. /admin/oidc/auth-query:
  1890. get:
  1891. consumes:
  1892. - application/json
  1893. description: OidcAuthQuery
  1894. produces:
  1895. - application/json
  1896. responses:
  1897. "200":
  1898. description: OK
  1899. schema:
  1900. allOf:
  1901. - $ref: '#/definitions/response.Response'
  1902. - properties:
  1903. data:
  1904. $ref: '#/definitions/admin.LoginPayload'
  1905. type: object
  1906. "500":
  1907. description: Internal Server Error
  1908. schema:
  1909. $ref: '#/definitions/response.Response'
  1910. summary: OidcAuthQuery
  1911. tags:
  1912. - Oauth
  1913. /admin/peer/batchDelete:
  1914. post:
  1915. consumes:
  1916. - application/json
  1917. description: 批量设备删除
  1918. parameters:
  1919. - description: 设备id
  1920. in: body
  1921. name: body
  1922. required: true
  1923. schema:
  1924. $ref: '#/definitions/admin.PeerBatchDeleteForm'
  1925. produces:
  1926. - application/json
  1927. responses:
  1928. "200":
  1929. description: OK
  1930. schema:
  1931. $ref: '#/definitions/response.Response'
  1932. "500":
  1933. description: Internal Server Error
  1934. schema:
  1935. $ref: '#/definitions/response.Response'
  1936. security:
  1937. - token: []
  1938. summary: 批量设备删除
  1939. tags:
  1940. - 设备
  1941. /admin/peer/create:
  1942. post:
  1943. consumes:
  1944. - application/json
  1945. description: 创建设备
  1946. parameters:
  1947. - description: 设备信息
  1948. in: body
  1949. name: body
  1950. required: true
  1951. schema:
  1952. $ref: '#/definitions/admin.PeerForm'
  1953. produces:
  1954. - application/json
  1955. responses:
  1956. "200":
  1957. description: OK
  1958. schema:
  1959. allOf:
  1960. - $ref: '#/definitions/response.Response'
  1961. - properties:
  1962. data:
  1963. $ref: '#/definitions/model.Peer'
  1964. type: object
  1965. "500":
  1966. description: Internal Server Error
  1967. schema:
  1968. $ref: '#/definitions/response.Response'
  1969. security:
  1970. - token: []
  1971. summary: 创建设备
  1972. tags:
  1973. - 设备
  1974. /admin/peer/delete:
  1975. post:
  1976. consumes:
  1977. - application/json
  1978. description: 设备删除
  1979. parameters:
  1980. - description: 设备信息
  1981. in: body
  1982. name: body
  1983. required: true
  1984. schema:
  1985. $ref: '#/definitions/admin.PeerForm'
  1986. produces:
  1987. - application/json
  1988. responses:
  1989. "200":
  1990. description: OK
  1991. schema:
  1992. $ref: '#/definitions/response.Response'
  1993. "500":
  1994. description: Internal Server Error
  1995. schema:
  1996. $ref: '#/definitions/response.Response'
  1997. security:
  1998. - token: []
  1999. summary: 设备删除
  2000. tags:
  2001. - 设备
  2002. /admin/peer/detail/{id}:
  2003. get:
  2004. consumes:
  2005. - application/json
  2006. description: 设备详情
  2007. parameters:
  2008. - description: ID
  2009. in: path
  2010. name: id
  2011. required: true
  2012. type: integer
  2013. produces:
  2014. - application/json
  2015. responses:
  2016. "200":
  2017. description: OK
  2018. schema:
  2019. allOf:
  2020. - $ref: '#/definitions/response.Response'
  2021. - properties:
  2022. data:
  2023. $ref: '#/definitions/model.Peer'
  2024. type: object
  2025. "500":
  2026. description: Internal Server Error
  2027. schema:
  2028. $ref: '#/definitions/response.Response'
  2029. security:
  2030. - token: []
  2031. summary: 设备详情
  2032. tags:
  2033. - 设备
  2034. /admin/peer/list:
  2035. get:
  2036. consumes:
  2037. - application/json
  2038. description: 设备列表
  2039. parameters:
  2040. - description: 页码
  2041. in: query
  2042. name: page
  2043. type: integer
  2044. - description: 页大小
  2045. in: query
  2046. name: page_size
  2047. type: integer
  2048. - description: 时间
  2049. in: query
  2050. name: time_ago
  2051. type: integer
  2052. - description: ID
  2053. in: query
  2054. name: id
  2055. type: string
  2056. - description: 主机名
  2057. in: query
  2058. name: hostname
  2059. type: string
  2060. - description: uuids 用逗号分隔
  2061. in: query
  2062. name: uuids
  2063. type: string
  2064. produces:
  2065. - application/json
  2066. responses:
  2067. "200":
  2068. description: OK
  2069. schema:
  2070. allOf:
  2071. - $ref: '#/definitions/response.Response'
  2072. - properties:
  2073. data:
  2074. $ref: '#/definitions/model.PeerList'
  2075. type: object
  2076. "500":
  2077. description: Internal Server Error
  2078. schema:
  2079. $ref: '#/definitions/response.Response'
  2080. security:
  2081. - token: []
  2082. summary: 设备列表
  2083. tags:
  2084. - 设备
  2085. /admin/peer/update:
  2086. post:
  2087. consumes:
  2088. - application/json
  2089. description: 设备编辑
  2090. parameters:
  2091. - description: 设备信息
  2092. in: body
  2093. name: body
  2094. required: true
  2095. schema:
  2096. $ref: '#/definitions/admin.PeerForm'
  2097. produces:
  2098. - application/json
  2099. responses:
  2100. "200":
  2101. description: OK
  2102. schema:
  2103. allOf:
  2104. - $ref: '#/definitions/response.Response'
  2105. - properties:
  2106. data:
  2107. $ref: '#/definitions/model.Peer'
  2108. type: object
  2109. "500":
  2110. description: Internal Server Error
  2111. schema:
  2112. $ref: '#/definitions/response.Response'
  2113. security:
  2114. - token: []
  2115. summary: 设备编辑
  2116. tags:
  2117. - 设备
  2118. /admin/server-config:
  2119. get:
  2120. consumes:
  2121. - application/json
  2122. description: 服务配置,给webclient提供api-server
  2123. produces:
  2124. - application/json
  2125. responses:
  2126. "200":
  2127. description: OK
  2128. schema:
  2129. $ref: '#/definitions/response.Response'
  2130. "500":
  2131. description: Internal Server Error
  2132. schema:
  2133. $ref: '#/definitions/response.Response'
  2134. security:
  2135. - token: []
  2136. summary: RUSTDESK服务配置
  2137. tags:
  2138. - ADMIN
  2139. /admin/tag/create:
  2140. post:
  2141. consumes:
  2142. - application/json
  2143. description: 创建标签
  2144. parameters:
  2145. - description: 标签信息
  2146. in: body
  2147. name: body
  2148. required: true
  2149. schema:
  2150. $ref: '#/definitions/admin.TagForm'
  2151. produces:
  2152. - application/json
  2153. responses:
  2154. "200":
  2155. description: OK
  2156. schema:
  2157. allOf:
  2158. - $ref: '#/definitions/response.Response'
  2159. - properties:
  2160. data:
  2161. $ref: '#/definitions/model.Tag'
  2162. type: object
  2163. "500":
  2164. description: Internal Server Error
  2165. schema:
  2166. $ref: '#/definitions/response.Response'
  2167. security:
  2168. - token: []
  2169. summary: 创建标签
  2170. tags:
  2171. - 标签
  2172. /admin/tag/delete:
  2173. post:
  2174. consumes:
  2175. - application/json
  2176. description: 标签删除
  2177. parameters:
  2178. - description: 标签信息
  2179. in: body
  2180. name: body
  2181. required: true
  2182. schema:
  2183. $ref: '#/definitions/admin.TagForm'
  2184. produces:
  2185. - application/json
  2186. responses:
  2187. "200":
  2188. description: OK
  2189. schema:
  2190. $ref: '#/definitions/response.Response'
  2191. "500":
  2192. description: Internal Server Error
  2193. schema:
  2194. $ref: '#/definitions/response.Response'
  2195. security:
  2196. - token: []
  2197. summary: 标签删除
  2198. tags:
  2199. - 标签
  2200. /admin/tag/detail/{id}:
  2201. get:
  2202. consumes:
  2203. - application/json
  2204. description: 标签详情
  2205. parameters:
  2206. - description: ID
  2207. in: path
  2208. name: id
  2209. required: true
  2210. type: integer
  2211. produces:
  2212. - application/json
  2213. responses:
  2214. "200":
  2215. description: OK
  2216. schema:
  2217. allOf:
  2218. - $ref: '#/definitions/response.Response'
  2219. - properties:
  2220. data:
  2221. $ref: '#/definitions/model.Tag'
  2222. type: object
  2223. "500":
  2224. description: Internal Server Error
  2225. schema:
  2226. $ref: '#/definitions/response.Response'
  2227. security:
  2228. - token: []
  2229. summary: 标签详情
  2230. tags:
  2231. - 标签
  2232. /admin/tag/list:
  2233. get:
  2234. consumes:
  2235. - application/json
  2236. description: 标签列表
  2237. parameters:
  2238. - description: 页码
  2239. in: query
  2240. name: page
  2241. type: integer
  2242. - description: 页大小
  2243. in: query
  2244. name: page_size
  2245. type: integer
  2246. - description: 是否是我的
  2247. in: query
  2248. name: is_my
  2249. type: integer
  2250. - description: 用户id
  2251. in: query
  2252. name: user_id
  2253. type: integer
  2254. produces:
  2255. - application/json
  2256. responses:
  2257. "200":
  2258. description: OK
  2259. schema:
  2260. allOf:
  2261. - $ref: '#/definitions/response.Response'
  2262. - properties:
  2263. data:
  2264. $ref: '#/definitions/model.TagList'
  2265. type: object
  2266. "500":
  2267. description: Internal Server Error
  2268. schema:
  2269. $ref: '#/definitions/response.Response'
  2270. security:
  2271. - token: []
  2272. summary: 标签列表
  2273. tags:
  2274. - 标签
  2275. /admin/tag/update:
  2276. post:
  2277. consumes:
  2278. - application/json
  2279. description: 标签编辑
  2280. parameters:
  2281. - description: 标签信息
  2282. in: body
  2283. name: body
  2284. required: true
  2285. schema:
  2286. $ref: '#/definitions/admin.TagForm'
  2287. produces:
  2288. - application/json
  2289. responses:
  2290. "200":
  2291. description: OK
  2292. schema:
  2293. allOf:
  2294. - $ref: '#/definitions/response.Response'
  2295. - properties:
  2296. data:
  2297. $ref: '#/definitions/model.Tag'
  2298. type: object
  2299. "500":
  2300. description: Internal Server Error
  2301. schema:
  2302. $ref: '#/definitions/response.Response'
  2303. security:
  2304. - token: []
  2305. summary: 标签编辑
  2306. tags:
  2307. - 标签
  2308. /admin/user/changeCurPwd:
  2309. post:
  2310. consumes:
  2311. - application/json
  2312. description: 修改当前用户密码
  2313. parameters:
  2314. - description: 用户信息
  2315. in: body
  2316. name: body
  2317. required: true
  2318. schema:
  2319. $ref: '#/definitions/admin.ChangeCurPasswordForm'
  2320. produces:
  2321. - application/json
  2322. responses:
  2323. "200":
  2324. description: OK
  2325. schema:
  2326. $ref: '#/definitions/response.Response'
  2327. "500":
  2328. description: Internal Server Error
  2329. schema:
  2330. $ref: '#/definitions/response.Response'
  2331. security:
  2332. - token: []
  2333. summary: 修改当前用户密码
  2334. tags:
  2335. - 用户
  2336. /admin/user/create:
  2337. post:
  2338. consumes:
  2339. - application/json
  2340. description: 创建管理员
  2341. parameters:
  2342. - description: 管理员信息
  2343. in: body
  2344. name: body
  2345. required: true
  2346. schema:
  2347. $ref: '#/definitions/admin.UserForm'
  2348. produces:
  2349. - application/json
  2350. responses:
  2351. "200":
  2352. description: OK
  2353. schema:
  2354. allOf:
  2355. - $ref: '#/definitions/response.Response'
  2356. - properties:
  2357. data:
  2358. $ref: '#/definitions/model.User'
  2359. type: object
  2360. "500":
  2361. description: Internal Server Error
  2362. schema:
  2363. $ref: '#/definitions/response.Response'
  2364. security:
  2365. - token: []
  2366. summary: 创建管理员
  2367. tags:
  2368. - 用户
  2369. /admin/user/current:
  2370. get:
  2371. consumes:
  2372. - application/json
  2373. description: 当前用户
  2374. produces:
  2375. - application/json
  2376. responses:
  2377. "200":
  2378. description: OK
  2379. schema:
  2380. allOf:
  2381. - $ref: '#/definitions/response.Response'
  2382. - properties:
  2383. data:
  2384. $ref: '#/definitions/admin.LoginPayload'
  2385. type: object
  2386. "500":
  2387. description: Internal Server Error
  2388. schema:
  2389. $ref: '#/definitions/response.Response'
  2390. security:
  2391. - token: []
  2392. summary: 当前用户
  2393. tags:
  2394. - 用户
  2395. /admin/user/delete:
  2396. post:
  2397. consumes:
  2398. - application/json
  2399. description: 管理员编删除
  2400. parameters:
  2401. - description: 用户信息
  2402. in: body
  2403. name: body
  2404. required: true
  2405. schema:
  2406. $ref: '#/definitions/admin.UserForm'
  2407. produces:
  2408. - application/json
  2409. responses:
  2410. "200":
  2411. description: OK
  2412. schema:
  2413. $ref: '#/definitions/response.Response'
  2414. "500":
  2415. description: Internal Server Error
  2416. schema:
  2417. $ref: '#/definitions/response.Response'
  2418. security:
  2419. - token: []
  2420. summary: 管理员删除
  2421. tags:
  2422. - 用户
  2423. /admin/user/detail/{id}:
  2424. get:
  2425. consumes:
  2426. - application/json
  2427. description: 管理员详情
  2428. parameters:
  2429. - description: ID
  2430. in: path
  2431. name: id
  2432. required: true
  2433. type: integer
  2434. produces:
  2435. - application/json
  2436. responses:
  2437. "200":
  2438. description: OK
  2439. schema:
  2440. allOf:
  2441. - $ref: '#/definitions/response.Response'
  2442. - properties:
  2443. data:
  2444. $ref: '#/definitions/model.User'
  2445. type: object
  2446. "500":
  2447. description: Internal Server Error
  2448. schema:
  2449. $ref: '#/definitions/response.Response'
  2450. security:
  2451. - token: []
  2452. summary: 管理员详情
  2453. tags:
  2454. - 用户
  2455. /admin/user/list:
  2456. get:
  2457. consumes:
  2458. - application/json
  2459. description: 管理员列表
  2460. parameters:
  2461. - description: 页码
  2462. in: query
  2463. name: page
  2464. type: integer
  2465. - description: 页大小
  2466. in: query
  2467. name: page_size
  2468. type: integer
  2469. - description: 账户
  2470. in: query
  2471. name: username
  2472. type: integer
  2473. produces:
  2474. - application/json
  2475. responses:
  2476. "200":
  2477. description: OK
  2478. schema:
  2479. allOf:
  2480. - $ref: '#/definitions/response.Response'
  2481. - properties:
  2482. data:
  2483. $ref: '#/definitions/model.UserList'
  2484. type: object
  2485. "500":
  2486. description: Internal Server Error
  2487. schema:
  2488. $ref: '#/definitions/response.Response'
  2489. security:
  2490. - token: []
  2491. summary: 管理员列表
  2492. tags:
  2493. - 用户
  2494. /admin/user/myOauth:
  2495. get:
  2496. consumes:
  2497. - application/json
  2498. description: 我的授权
  2499. produces:
  2500. - application/json
  2501. responses:
  2502. "200":
  2503. description: OK
  2504. schema:
  2505. allOf:
  2506. - $ref: '#/definitions/response.Response'
  2507. - properties:
  2508. data:
  2509. items:
  2510. $ref: '#/definitions/admin.UserOauthItem'
  2511. type: array
  2512. type: object
  2513. "500":
  2514. description: Internal Server Error
  2515. schema:
  2516. $ref: '#/definitions/response.Response'
  2517. security:
  2518. - token: []
  2519. summary: 我的授权
  2520. tags:
  2521. - 用户
  2522. /admin/user/update:
  2523. post:
  2524. consumes:
  2525. - application/json
  2526. description: 管理员编辑
  2527. parameters:
  2528. - description: 用户信息
  2529. in: body
  2530. name: body
  2531. required: true
  2532. schema:
  2533. $ref: '#/definitions/admin.UserForm'
  2534. produces:
  2535. - application/json
  2536. responses:
  2537. "200":
  2538. description: OK
  2539. schema:
  2540. allOf:
  2541. - $ref: '#/definitions/response.Response'
  2542. - properties:
  2543. data:
  2544. $ref: '#/definitions/model.User'
  2545. type: object
  2546. "500":
  2547. description: Internal Server Error
  2548. schema:
  2549. $ref: '#/definitions/response.Response'
  2550. security:
  2551. - token: []
  2552. summary: 管理员编辑
  2553. tags:
  2554. - 用户
  2555. /admin/user/updatePassword:
  2556. post:
  2557. consumes:
  2558. - application/json
  2559. description: 修改密码
  2560. parameters:
  2561. - description: 用户信息
  2562. in: body
  2563. name: body
  2564. required: true
  2565. schema:
  2566. $ref: '#/definitions/admin.UserPasswordForm'
  2567. produces:
  2568. - application/json
  2569. responses:
  2570. "200":
  2571. description: OK
  2572. schema:
  2573. $ref: '#/definitions/response.Response'
  2574. "500":
  2575. description: Internal Server Error
  2576. schema:
  2577. $ref: '#/definitions/response.Response'
  2578. security:
  2579. - token: []
  2580. summary: 修改密码
  2581. tags:
  2582. - 用户
  2583. /admin/user_token/delete:
  2584. post:
  2585. consumes:
  2586. - application/json
  2587. description: 登录凭证删除
  2588. parameters:
  2589. - description: 登录凭证信息
  2590. in: body
  2591. name: body
  2592. required: true
  2593. schema:
  2594. $ref: '#/definitions/model.UserToken'
  2595. produces:
  2596. - application/json
  2597. responses:
  2598. "200":
  2599. description: OK
  2600. schema:
  2601. $ref: '#/definitions/response.Response'
  2602. "500":
  2603. description: Internal Server Error
  2604. schema:
  2605. $ref: '#/definitions/response.Response'
  2606. security:
  2607. - token: []
  2608. summary: 登录凭证删除
  2609. tags:
  2610. - 登录凭证
  2611. /admin/user_token/list:
  2612. get:
  2613. consumes:
  2614. - application/json
  2615. description: 登录凭证列表
  2616. parameters:
  2617. - description: 页码
  2618. in: query
  2619. name: page
  2620. type: integer
  2621. - description: 页大小
  2622. in: query
  2623. name: page_size
  2624. type: integer
  2625. - description: 用户ID
  2626. in: query
  2627. name: user_id
  2628. type: integer
  2629. produces:
  2630. - application/json
  2631. responses:
  2632. "200":
  2633. description: OK
  2634. schema:
  2635. allOf:
  2636. - $ref: '#/definitions/response.Response'
  2637. - properties:
  2638. data:
  2639. $ref: '#/definitions/model.UserTokenList'
  2640. type: object
  2641. "500":
  2642. description: Internal Server Error
  2643. schema:
  2644. $ref: '#/definitions/response.Response'
  2645. security:
  2646. - token: []
  2647. summary: 登录凭证列表
  2648. tags:
  2649. - 登录凭证
  2650. securityDefinitions:
  2651. BearerAuth:
  2652. in: header
  2653. name: Authorization
  2654. type: apiKey
  2655. token:
  2656. in: header
  2657. name: api-token
  2658. type: apiKey
  2659. swagger: "2.0"