admin_swagger.yaml 56 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450
  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. uuid:
  480. type: string
  481. type: object
  482. model.LoginLogList:
  483. properties:
  484. list:
  485. items:
  486. $ref: '#/definitions/model.LoginLog'
  487. type: array
  488. page:
  489. type: integer
  490. page_size:
  491. type: integer
  492. total:
  493. type: integer
  494. type: object
  495. model.Oauth:
  496. properties:
  497. auto_register:
  498. type: boolean
  499. client_id:
  500. type: string
  501. client_secret:
  502. type: string
  503. created_at:
  504. type: string
  505. id:
  506. type: integer
  507. issuer:
  508. type: string
  509. op:
  510. type: string
  511. redirect_url:
  512. type: string
  513. scopes:
  514. type: string
  515. updated_at:
  516. type: string
  517. type: object
  518. model.OauthList:
  519. properties:
  520. list:
  521. items:
  522. $ref: '#/definitions/model.Oauth'
  523. type: array
  524. page:
  525. type: integer
  526. page_size:
  527. type: integer
  528. total:
  529. type: integer
  530. type: object
  531. model.Peer:
  532. properties:
  533. cpu:
  534. type: string
  535. created_at:
  536. type: string
  537. hostname:
  538. type: string
  539. id:
  540. type: string
  541. last_online_ip:
  542. type: string
  543. last_online_time:
  544. type: integer
  545. memory:
  546. type: string
  547. os:
  548. type: string
  549. row_id:
  550. type: integer
  551. updated_at:
  552. type: string
  553. user:
  554. $ref: '#/definitions/model.User'
  555. user_id:
  556. type: integer
  557. username:
  558. type: string
  559. uuid:
  560. type: string
  561. version:
  562. type: string
  563. type: object
  564. model.PeerList:
  565. properties:
  566. list:
  567. items:
  568. $ref: '#/definitions/model.Peer'
  569. type: array
  570. page:
  571. type: integer
  572. page_size:
  573. type: integer
  574. total:
  575. type: integer
  576. type: object
  577. model.StatusCode:
  578. enum:
  579. - 1
  580. - 2
  581. type: integer
  582. x-enum-comments:
  583. COMMON_STATUS_DISABLED: 通用状态 禁用
  584. COMMON_STATUS_ENABLE: 通用状态 启用
  585. x-enum-varnames:
  586. - COMMON_STATUS_ENABLE
  587. - COMMON_STATUS_DISABLED
  588. model.Tag:
  589. properties:
  590. collection:
  591. $ref: '#/definitions/model.AddressBookCollection'
  592. collection_id:
  593. type: integer
  594. color:
  595. description: color 是flutter的颜色值,从0x00000000 到 0xFFFFFFFF; 前两位表示透明度,后面6位表示颜色,
  596. 可以转成rgba
  597. type: integer
  598. created_at:
  599. type: string
  600. id:
  601. type: integer
  602. name:
  603. type: string
  604. updated_at:
  605. type: string
  606. user_id:
  607. type: integer
  608. type: object
  609. model.TagList:
  610. properties:
  611. list:
  612. items:
  613. $ref: '#/definitions/model.Tag'
  614. type: array
  615. page:
  616. type: integer
  617. page_size:
  618. type: integer
  619. total:
  620. type: integer
  621. type: object
  622. model.User:
  623. properties:
  624. avatar:
  625. type: string
  626. created_at:
  627. type: string
  628. group_id:
  629. type: integer
  630. id:
  631. type: integer
  632. is_admin:
  633. type: boolean
  634. nickname:
  635. type: string
  636. status:
  637. $ref: '#/definitions/model.StatusCode'
  638. updated_at:
  639. type: string
  640. username:
  641. type: string
  642. type: object
  643. model.UserList:
  644. properties:
  645. list:
  646. items:
  647. $ref: '#/definitions/model.User'
  648. type: array
  649. page:
  650. type: integer
  651. page_size:
  652. type: integer
  653. total:
  654. type: integer
  655. type: object
  656. response.Response:
  657. properties:
  658. code:
  659. type: integer
  660. data: {}
  661. message:
  662. type: string
  663. type: object
  664. info:
  665. contact: {}
  666. description: 接口
  667. title: 管理系统API
  668. version: "1.0"
  669. paths:
  670. /admin/address_book/create:
  671. post:
  672. consumes:
  673. - application/json
  674. description: 批量创建地址簿
  675. parameters:
  676. - description: 地址簿信息
  677. in: body
  678. name: body
  679. required: true
  680. schema:
  681. $ref: '#/definitions/admin.AddressBookForm'
  682. produces:
  683. - application/json
  684. responses:
  685. "200":
  686. description: OK
  687. schema:
  688. allOf:
  689. - $ref: '#/definitions/response.Response'
  690. - properties:
  691. data:
  692. $ref: '#/definitions/model.AddressBook'
  693. type: object
  694. "500":
  695. description: Internal Server Error
  696. schema:
  697. $ref: '#/definitions/response.Response'
  698. security:
  699. - token: []
  700. summary: 批量创建地址簿
  701. tags:
  702. - 地址簿
  703. /admin/address_book/delete:
  704. post:
  705. consumes:
  706. - application/json
  707. description: 地址簿删除
  708. parameters:
  709. - description: 地址簿信息
  710. in: body
  711. name: body
  712. required: true
  713. schema:
  714. $ref: '#/definitions/admin.AddressBookForm'
  715. produces:
  716. - application/json
  717. responses:
  718. "200":
  719. description: OK
  720. schema:
  721. $ref: '#/definitions/response.Response'
  722. "500":
  723. description: Internal Server Error
  724. schema:
  725. $ref: '#/definitions/response.Response'
  726. security:
  727. - token: []
  728. summary: 地址簿删除
  729. tags:
  730. - 地址簿
  731. /admin/address_book/detail/{id}:
  732. get:
  733. consumes:
  734. - application/json
  735. description: 地址簿详情
  736. parameters:
  737. - description: ID
  738. in: path
  739. name: id
  740. required: true
  741. type: integer
  742. produces:
  743. - application/json
  744. responses:
  745. "200":
  746. description: OK
  747. schema:
  748. allOf:
  749. - $ref: '#/definitions/response.Response'
  750. - properties:
  751. data:
  752. $ref: '#/definitions/model.AddressBook'
  753. type: object
  754. "500":
  755. description: Internal Server Error
  756. schema:
  757. $ref: '#/definitions/response.Response'
  758. security:
  759. - token: []
  760. summary: 地址簿详情
  761. tags:
  762. - 地址簿
  763. /admin/address_book/list:
  764. get:
  765. consumes:
  766. - application/json
  767. description: 地址簿列表
  768. parameters:
  769. - description: 页码
  770. in: query
  771. name: page
  772. type: integer
  773. - description: 页大小
  774. in: query
  775. name: page_size
  776. type: integer
  777. - description: 用户id
  778. in: query
  779. name: user_id
  780. type: integer
  781. - description: 是否是我的
  782. in: query
  783. name: is_my
  784. type: integer
  785. produces:
  786. - application/json
  787. responses:
  788. "200":
  789. description: OK
  790. schema:
  791. allOf:
  792. - $ref: '#/definitions/response.Response'
  793. - properties:
  794. data:
  795. $ref: '#/definitions/model.AddressBookList'
  796. type: object
  797. "500":
  798. description: Internal Server Error
  799. schema:
  800. $ref: '#/definitions/response.Response'
  801. security:
  802. - token: []
  803. summary: 地址簿列表
  804. tags:
  805. - 地址簿
  806. /admin/address_book/share:
  807. post:
  808. consumes:
  809. - application/json
  810. description: 地址簿分享
  811. parameters:
  812. - description: 地址簿信息
  813. in: body
  814. name: body
  815. required: true
  816. schema:
  817. $ref: '#/definitions/admin.ShareByWebClientForm'
  818. produces:
  819. - application/json
  820. responses:
  821. "200":
  822. description: OK
  823. schema:
  824. $ref: '#/definitions/response.Response'
  825. "500":
  826. description: Internal Server Error
  827. schema:
  828. $ref: '#/definitions/response.Response'
  829. security:
  830. - token: []
  831. summary: 地址簿分享
  832. tags:
  833. - 地址簿
  834. /admin/address_book/update:
  835. post:
  836. consumes:
  837. - application/json
  838. description: 地址簿编辑
  839. parameters:
  840. - description: 地址簿信息
  841. in: body
  842. name: body
  843. required: true
  844. schema:
  845. $ref: '#/definitions/admin.AddressBookForm'
  846. produces:
  847. - application/json
  848. responses:
  849. "200":
  850. description: OK
  851. schema:
  852. allOf:
  853. - $ref: '#/definitions/response.Response'
  854. - properties:
  855. data:
  856. $ref: '#/definitions/model.AddressBook'
  857. type: object
  858. "500":
  859. description: Internal Server Error
  860. schema:
  861. $ref: '#/definitions/response.Response'
  862. security:
  863. - token: []
  864. summary: 地址簿编辑
  865. tags:
  866. - 地址簿
  867. /admin/address_book_collection/create:
  868. post:
  869. consumes:
  870. - application/json
  871. description: 创建地址簿集合
  872. parameters:
  873. - description: 地址簿集合信息
  874. in: body
  875. name: body
  876. required: true
  877. schema:
  878. $ref: '#/definitions/model.AddressBookCollection'
  879. produces:
  880. - application/json
  881. responses:
  882. "200":
  883. description: OK
  884. schema:
  885. allOf:
  886. - $ref: '#/definitions/response.Response'
  887. - properties:
  888. data:
  889. $ref: '#/definitions/model.AddressBookCollection'
  890. type: object
  891. "500":
  892. description: Internal Server Error
  893. schema:
  894. $ref: '#/definitions/response.Response'
  895. security:
  896. - token: []
  897. summary: 创建地址簿集合
  898. /admin/address_book_collection/delete:
  899. post:
  900. consumes:
  901. - application/json
  902. description: 地址簿集合删除
  903. parameters:
  904. - description: 地址簿集合信息
  905. in: body
  906. name: body
  907. required: true
  908. schema:
  909. $ref: '#/definitions/model.AddressBookCollection'
  910. produces:
  911. - application/json
  912. responses:
  913. "200":
  914. description: OK
  915. schema:
  916. $ref: '#/definitions/response.Response'
  917. "500":
  918. description: Internal Server Error
  919. schema:
  920. $ref: '#/definitions/response.Response'
  921. security:
  922. - token: []
  923. summary: 地址簿集合删除
  924. /admin/address_book_collection/detail/{id}:
  925. get:
  926. consumes:
  927. - application/json
  928. description: 地址簿集合详情
  929. parameters:
  930. - description: ID
  931. in: path
  932. name: id
  933. required: true
  934. type: integer
  935. produces:
  936. - application/json
  937. responses:
  938. "200":
  939. description: OK
  940. schema:
  941. allOf:
  942. - $ref: '#/definitions/response.Response'
  943. - properties:
  944. data:
  945. $ref: '#/definitions/model.AddressBookCollection'
  946. type: object
  947. "500":
  948. description: Internal Server Error
  949. schema:
  950. $ref: '#/definitions/response.Response'
  951. security:
  952. - token: []
  953. summary: 地址簿集合详情
  954. /admin/address_book_collection/list:
  955. get:
  956. consumes:
  957. - application/json
  958. description: 地址簿集合列表
  959. parameters:
  960. - description: 页码
  961. in: query
  962. name: page
  963. type: integer
  964. - description: 页大小
  965. in: query
  966. name: page_size
  967. type: integer
  968. - description: 是否是我的
  969. in: query
  970. name: is_my
  971. type: integer
  972. - description: 用户id
  973. in: query
  974. name: user_id
  975. type: integer
  976. produces:
  977. - application/json
  978. responses:
  979. "200":
  980. description: OK
  981. schema:
  982. allOf:
  983. - $ref: '#/definitions/response.Response'
  984. - properties:
  985. data:
  986. $ref: '#/definitions/model.AddressBookCollectionList'
  987. type: object
  988. "500":
  989. description: Internal Server Error
  990. schema:
  991. $ref: '#/definitions/response.Response'
  992. security:
  993. - token: []
  994. summary: 地址簿集合列表
  995. /admin/address_book_collection/update:
  996. post:
  997. consumes:
  998. - application/json
  999. description: 地址簿集合编辑
  1000. parameters:
  1001. - description: 地址簿集合信息
  1002. in: body
  1003. name: body
  1004. required: true
  1005. schema:
  1006. $ref: '#/definitions/model.AddressBookCollection'
  1007. produces:
  1008. - application/json
  1009. responses:
  1010. "200":
  1011. description: OK
  1012. schema:
  1013. allOf:
  1014. - $ref: '#/definitions/response.Response'
  1015. - properties:
  1016. data:
  1017. $ref: '#/definitions/model.AddressBookCollection'
  1018. type: object
  1019. "500":
  1020. description: Internal Server Error
  1021. schema:
  1022. $ref: '#/definitions/response.Response'
  1023. security:
  1024. - token: []
  1025. summary: 地址簿集合编辑
  1026. /admin/address_book_collection_rule/create:
  1027. post:
  1028. consumes:
  1029. - application/json
  1030. description: 创建地址簿集合规则
  1031. parameters:
  1032. - description: 地址簿集合规则信息
  1033. in: body
  1034. name: body
  1035. required: true
  1036. schema:
  1037. $ref: '#/definitions/model.AddressBookCollectionRule'
  1038. produces:
  1039. - application/json
  1040. responses:
  1041. "200":
  1042. description: OK
  1043. schema:
  1044. allOf:
  1045. - $ref: '#/definitions/response.Response'
  1046. - properties:
  1047. data:
  1048. $ref: '#/definitions/model.AddressBookCollection'
  1049. type: object
  1050. "500":
  1051. description: Internal Server Error
  1052. schema:
  1053. $ref: '#/definitions/response.Response'
  1054. security:
  1055. - token: []
  1056. summary: 创建地址簿集合规则
  1057. /admin/address_book_collection_rule/delete:
  1058. post:
  1059. consumes:
  1060. - application/json
  1061. description: 地址簿集合规则删除
  1062. parameters:
  1063. - description: 地址簿集合规则信息
  1064. in: body
  1065. name: body
  1066. required: true
  1067. schema:
  1068. $ref: '#/definitions/model.AddressBookCollectionRule'
  1069. produces:
  1070. - application/json
  1071. responses:
  1072. "200":
  1073. description: OK
  1074. schema:
  1075. $ref: '#/definitions/response.Response'
  1076. "500":
  1077. description: Internal Server Error
  1078. schema:
  1079. $ref: '#/definitions/response.Response'
  1080. security:
  1081. - token: []
  1082. summary: 地址簿集合规则删除
  1083. /admin/address_book_collection_rule/detail/{id}:
  1084. get:
  1085. consumes:
  1086. - application/json
  1087. description: 地址簿集合规则详情
  1088. parameters:
  1089. - description: ID
  1090. in: path
  1091. name: id
  1092. required: true
  1093. type: integer
  1094. produces:
  1095. - application/json
  1096. responses:
  1097. "200":
  1098. description: OK
  1099. schema:
  1100. allOf:
  1101. - $ref: '#/definitions/response.Response'
  1102. - properties:
  1103. data:
  1104. $ref: '#/definitions/model.AddressBookCollectionRule'
  1105. type: object
  1106. "500":
  1107. description: Internal Server Error
  1108. schema:
  1109. $ref: '#/definitions/response.Response'
  1110. security:
  1111. - token: []
  1112. summary: 地址簿集合规则详情
  1113. /admin/address_book_collection_rule/list:
  1114. get:
  1115. consumes:
  1116. - application/json
  1117. description: 地址簿集合规则列表
  1118. parameters:
  1119. - description: 页码
  1120. in: query
  1121. name: page
  1122. type: integer
  1123. - description: 页大小
  1124. in: query
  1125. name: page_size
  1126. type: integer
  1127. - description: 是否是我的
  1128. in: query
  1129. name: is_my
  1130. type: integer
  1131. - description: 用户id
  1132. in: query
  1133. name: user_id
  1134. type: integer
  1135. - description: 地址簿集合id
  1136. in: query
  1137. name: collection_id
  1138. type: integer
  1139. produces:
  1140. - application/json
  1141. responses:
  1142. "200":
  1143. description: OK
  1144. schema:
  1145. allOf:
  1146. - $ref: '#/definitions/response.Response'
  1147. - properties:
  1148. data:
  1149. $ref: '#/definitions/model.AddressBookCollectionList'
  1150. type: object
  1151. "500":
  1152. description: Internal Server Error
  1153. schema:
  1154. $ref: '#/definitions/response.Response'
  1155. security:
  1156. - token: []
  1157. summary: 地址簿集合规则列表
  1158. /admin/address_book_collection_rule/update:
  1159. post:
  1160. consumes:
  1161. - application/json
  1162. description: 地址簿集合规则编辑
  1163. parameters:
  1164. - description: 地址簿集合规则信息
  1165. in: body
  1166. name: body
  1167. required: true
  1168. schema:
  1169. $ref: '#/definitions/model.AddressBookCollectionRule'
  1170. produces:
  1171. - application/json
  1172. responses:
  1173. "200":
  1174. description: OK
  1175. schema:
  1176. allOf:
  1177. - $ref: '#/definitions/response.Response'
  1178. - properties:
  1179. data:
  1180. $ref: '#/definitions/model.AddressBookCollection'
  1181. type: object
  1182. "500":
  1183. description: Internal Server Error
  1184. schema:
  1185. $ref: '#/definitions/response.Response'
  1186. security:
  1187. - token: []
  1188. summary: 地址簿集合规则编辑
  1189. /admin/app-config:
  1190. get:
  1191. consumes:
  1192. - application/json
  1193. description: APP服务配置
  1194. produces:
  1195. - application/json
  1196. responses:
  1197. "200":
  1198. description: OK
  1199. schema:
  1200. $ref: '#/definitions/response.Response'
  1201. "500":
  1202. description: Internal Server Error
  1203. schema:
  1204. $ref: '#/definitions/response.Response'
  1205. security:
  1206. - token: []
  1207. summary: APP服务配置
  1208. tags:
  1209. - ADMIN
  1210. /admin/audit_conn/delete:
  1211. post:
  1212. consumes:
  1213. - application/json
  1214. description: 文件日志删除
  1215. parameters:
  1216. - description: 文件日志信息
  1217. in: body
  1218. name: body
  1219. required: true
  1220. schema:
  1221. $ref: '#/definitions/model.AuditFile'
  1222. produces:
  1223. - application/json
  1224. responses:
  1225. "200":
  1226. description: OK
  1227. schema:
  1228. $ref: '#/definitions/response.Response'
  1229. "500":
  1230. description: Internal Server Error
  1231. schema:
  1232. $ref: '#/definitions/response.Response'
  1233. security:
  1234. - token: []
  1235. summary: 文件日志删除
  1236. tags:
  1237. - 文件日志
  1238. /admin/audit_conn/list:
  1239. get:
  1240. consumes:
  1241. - application/json
  1242. description: 文件日志列表
  1243. parameters:
  1244. - description: 页码
  1245. in: query
  1246. name: page
  1247. type: integer
  1248. - description: 页大小
  1249. in: query
  1250. name: page_size
  1251. type: integer
  1252. - description: 目标设备
  1253. in: query
  1254. name: peer_id
  1255. type: integer
  1256. - description: 来源设备
  1257. in: query
  1258. name: from_peer
  1259. type: integer
  1260. produces:
  1261. - application/json
  1262. responses:
  1263. "200":
  1264. description: OK
  1265. schema:
  1266. allOf:
  1267. - $ref: '#/definitions/response.Response'
  1268. - properties:
  1269. data:
  1270. $ref: '#/definitions/model.AuditFileList'
  1271. type: object
  1272. "500":
  1273. description: Internal Server Error
  1274. schema:
  1275. $ref: '#/definitions/response.Response'
  1276. security:
  1277. - token: []
  1278. summary: 文件日志列表
  1279. tags:
  1280. - 文件日志
  1281. /admin/file/oss_token:
  1282. get:
  1283. consumes:
  1284. - application/json
  1285. description: 获取ossToken
  1286. produces:
  1287. - application/json
  1288. responses:
  1289. "200":
  1290. description: OK
  1291. schema:
  1292. $ref: '#/definitions/response.Response'
  1293. "500":
  1294. description: Internal Server Error
  1295. schema:
  1296. $ref: '#/definitions/response.Response'
  1297. security:
  1298. - token: []
  1299. summary: 获取ossToken
  1300. tags:
  1301. - 文件
  1302. /admin/file/upload:
  1303. post:
  1304. consumes:
  1305. - multipart/form-data
  1306. description: 上传文件到本地
  1307. parameters:
  1308. - description: 上传文件示例
  1309. in: formData
  1310. name: file
  1311. required: true
  1312. type: file
  1313. produces:
  1314. - application/json
  1315. responses:
  1316. "200":
  1317. description: OK
  1318. schema:
  1319. $ref: '#/definitions/response.Response'
  1320. "500":
  1321. description: Internal Server Error
  1322. schema:
  1323. $ref: '#/definitions/response.Response'
  1324. security:
  1325. - token: []
  1326. summary: 上传文件到本地
  1327. tags:
  1328. - 文件
  1329. /admin/group/create:
  1330. post:
  1331. consumes:
  1332. - application/json
  1333. description: 创建群组
  1334. parameters:
  1335. - description: 群组信息
  1336. in: body
  1337. name: body
  1338. required: true
  1339. schema:
  1340. $ref: '#/definitions/admin.GroupForm'
  1341. produces:
  1342. - application/json
  1343. responses:
  1344. "200":
  1345. description: OK
  1346. schema:
  1347. allOf:
  1348. - $ref: '#/definitions/response.Response'
  1349. - properties:
  1350. data:
  1351. $ref: '#/definitions/model.Group'
  1352. type: object
  1353. "500":
  1354. description: Internal Server Error
  1355. schema:
  1356. $ref: '#/definitions/response.Response'
  1357. security:
  1358. - token: []
  1359. summary: 创建群组
  1360. tags:
  1361. - 群组
  1362. /admin/group/delete:
  1363. post:
  1364. consumes:
  1365. - application/json
  1366. description: 群组删除
  1367. parameters:
  1368. - description: 群组信息
  1369. in: body
  1370. name: body
  1371. required: true
  1372. schema:
  1373. $ref: '#/definitions/admin.GroupForm'
  1374. produces:
  1375. - application/json
  1376. responses:
  1377. "200":
  1378. description: OK
  1379. schema:
  1380. $ref: '#/definitions/response.Response'
  1381. "500":
  1382. description: Internal Server Error
  1383. schema:
  1384. $ref: '#/definitions/response.Response'
  1385. security:
  1386. - token: []
  1387. summary: 群组删除
  1388. tags:
  1389. - 群组
  1390. /admin/group/detail/{id}:
  1391. get:
  1392. consumes:
  1393. - application/json
  1394. description: 群组详情
  1395. parameters:
  1396. - description: ID
  1397. in: path
  1398. name: id
  1399. required: true
  1400. type: integer
  1401. produces:
  1402. - application/json
  1403. responses:
  1404. "200":
  1405. description: OK
  1406. schema:
  1407. allOf:
  1408. - $ref: '#/definitions/response.Response'
  1409. - properties:
  1410. data:
  1411. $ref: '#/definitions/model.Group'
  1412. type: object
  1413. "500":
  1414. description: Internal Server Error
  1415. schema:
  1416. $ref: '#/definitions/response.Response'
  1417. security:
  1418. - token: []
  1419. summary: 群组详情
  1420. tags:
  1421. - 群组
  1422. /admin/group/list:
  1423. get:
  1424. consumes:
  1425. - application/json
  1426. description: 群组列表
  1427. parameters:
  1428. - description: 页码
  1429. in: query
  1430. name: page
  1431. type: integer
  1432. - description: 页大小
  1433. in: query
  1434. name: page_size
  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.GroupList'
  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/update:
  1458. post:
  1459. consumes:
  1460. - application/json
  1461. description: 群组编辑
  1462. parameters:
  1463. - description: 群组信息
  1464. in: body
  1465. name: body
  1466. required: true
  1467. schema:
  1468. $ref: '#/definitions/admin.GroupForm'
  1469. produces:
  1470. - application/json
  1471. responses:
  1472. "200":
  1473. description: OK
  1474. schema:
  1475. allOf:
  1476. - $ref: '#/definitions/response.Response'
  1477. - properties:
  1478. data:
  1479. $ref: '#/definitions/model.Group'
  1480. type: object
  1481. "500":
  1482. description: Internal Server Error
  1483. schema:
  1484. $ref: '#/definitions/response.Response'
  1485. security:
  1486. - token: []
  1487. summary: 群组编辑
  1488. tags:
  1489. - 群组
  1490. /admin/login:
  1491. post:
  1492. consumes:
  1493. - application/json
  1494. description: 登录
  1495. parameters:
  1496. - description: 登录信息
  1497. in: body
  1498. name: body
  1499. required: true
  1500. schema:
  1501. $ref: '#/definitions/Gwen_http_request_admin.Login'
  1502. produces:
  1503. - application/json
  1504. responses:
  1505. "200":
  1506. description: OK
  1507. schema:
  1508. allOf:
  1509. - $ref: '#/definitions/response.Response'
  1510. - properties:
  1511. data:
  1512. $ref: '#/definitions/admin.LoginPayload'
  1513. type: object
  1514. "500":
  1515. description: Internal Server Error
  1516. schema:
  1517. $ref: '#/definitions/response.Response'
  1518. security:
  1519. - token: []
  1520. summary: 登录
  1521. tags:
  1522. - 登录
  1523. /admin/loginLog/delete:
  1524. post:
  1525. consumes:
  1526. - application/json
  1527. description: 登录日志删除
  1528. parameters:
  1529. - description: 登录日志信息
  1530. in: body
  1531. name: body
  1532. required: true
  1533. schema:
  1534. $ref: '#/definitions/model.LoginLog'
  1535. produces:
  1536. - application/json
  1537. responses:
  1538. "200":
  1539. description: OK
  1540. schema:
  1541. $ref: '#/definitions/response.Response'
  1542. "500":
  1543. description: Internal Server Error
  1544. schema:
  1545. $ref: '#/definitions/response.Response'
  1546. security:
  1547. - token: []
  1548. summary: 登录日志删除
  1549. tags:
  1550. - 登录日志
  1551. /admin/loginLog/detail/{id}:
  1552. get:
  1553. consumes:
  1554. - application/json
  1555. description: 登录日志详情
  1556. parameters:
  1557. - description: ID
  1558. in: path
  1559. name: id
  1560. required: true
  1561. type: integer
  1562. produces:
  1563. - application/json
  1564. responses:
  1565. "200":
  1566. description: OK
  1567. schema:
  1568. allOf:
  1569. - $ref: '#/definitions/response.Response'
  1570. - properties:
  1571. data:
  1572. $ref: '#/definitions/model.LoginLog'
  1573. type: object
  1574. "500":
  1575. description: Internal Server Error
  1576. schema:
  1577. $ref: '#/definitions/response.Response'
  1578. security:
  1579. - token: []
  1580. summary: 登录日志详情
  1581. tags:
  1582. - 登录日志
  1583. /admin/loginLog/list:
  1584. get:
  1585. consumes:
  1586. - application/json
  1587. description: 登录日志列表
  1588. parameters:
  1589. - description: 页码
  1590. in: query
  1591. name: page
  1592. type: integer
  1593. - description: 页大小
  1594. in: query
  1595. name: page_size
  1596. type: integer
  1597. - description: 用户ID
  1598. in: query
  1599. name: user_id
  1600. type: integer
  1601. produces:
  1602. - application/json
  1603. responses:
  1604. "200":
  1605. description: OK
  1606. schema:
  1607. allOf:
  1608. - $ref: '#/definitions/response.Response'
  1609. - properties:
  1610. data:
  1611. $ref: '#/definitions/model.LoginLogList'
  1612. type: object
  1613. "500":
  1614. description: Internal Server Error
  1615. schema:
  1616. $ref: '#/definitions/response.Response'
  1617. security:
  1618. - token: []
  1619. summary: 登录日志列表
  1620. tags:
  1621. - 登录日志
  1622. /admin/logout:
  1623. post:
  1624. consumes:
  1625. - application/json
  1626. description: 登出
  1627. produces:
  1628. - application/json
  1629. responses:
  1630. "200":
  1631. description: OK
  1632. schema:
  1633. $ref: '#/definitions/response.Response'
  1634. "500":
  1635. description: Internal Server Error
  1636. schema:
  1637. $ref: '#/definitions/response.Response'
  1638. summary: 登出
  1639. tags:
  1640. - 登录
  1641. /admin/oauth/create:
  1642. post:
  1643. consumes:
  1644. - application/json
  1645. description: 创建Oauth
  1646. parameters:
  1647. - description: Oauth信息
  1648. in: body
  1649. name: body
  1650. required: true
  1651. schema:
  1652. $ref: '#/definitions/admin.OauthForm'
  1653. produces:
  1654. - application/json
  1655. responses:
  1656. "200":
  1657. description: OK
  1658. schema:
  1659. allOf:
  1660. - $ref: '#/definitions/response.Response'
  1661. - properties:
  1662. data:
  1663. $ref: '#/definitions/model.Oauth'
  1664. type: object
  1665. "500":
  1666. description: Internal Server Error
  1667. schema:
  1668. $ref: '#/definitions/response.Response'
  1669. security:
  1670. - token: []
  1671. summary: 创建Oauth
  1672. tags:
  1673. - Oauth
  1674. /admin/oauth/delete:
  1675. post:
  1676. consumes:
  1677. - application/json
  1678. description: Oauth删除
  1679. parameters:
  1680. - description: Oauth信息
  1681. in: body
  1682. name: body
  1683. required: true
  1684. schema:
  1685. $ref: '#/definitions/admin.OauthForm'
  1686. produces:
  1687. - application/json
  1688. responses:
  1689. "200":
  1690. description: OK
  1691. schema:
  1692. $ref: '#/definitions/response.Response'
  1693. "500":
  1694. description: Internal Server Error
  1695. schema:
  1696. $ref: '#/definitions/response.Response'
  1697. security:
  1698. - token: []
  1699. summary: Oauth删除
  1700. tags:
  1701. - Oauth
  1702. /admin/oauth/detail/{id}:
  1703. get:
  1704. consumes:
  1705. - application/json
  1706. description: Oauth详情
  1707. parameters:
  1708. - description: ID
  1709. in: path
  1710. name: id
  1711. required: true
  1712. type: integer
  1713. produces:
  1714. - application/json
  1715. responses:
  1716. "200":
  1717. description: OK
  1718. schema:
  1719. allOf:
  1720. - $ref: '#/definitions/response.Response'
  1721. - properties:
  1722. data:
  1723. $ref: '#/definitions/model.Oauth'
  1724. type: object
  1725. "500":
  1726. description: Internal Server Error
  1727. schema:
  1728. $ref: '#/definitions/response.Response'
  1729. security:
  1730. - token: []
  1731. summary: Oauth详情
  1732. tags:
  1733. - Oauth
  1734. /admin/oauth/list:
  1735. get:
  1736. consumes:
  1737. - application/json
  1738. description: Oauth列表
  1739. parameters:
  1740. - description: 页码
  1741. in: query
  1742. name: page
  1743. type: integer
  1744. - description: 页大小
  1745. in: query
  1746. name: page_size
  1747. type: integer
  1748. produces:
  1749. - application/json
  1750. responses:
  1751. "200":
  1752. description: OK
  1753. schema:
  1754. allOf:
  1755. - $ref: '#/definitions/response.Response'
  1756. - properties:
  1757. data:
  1758. $ref: '#/definitions/model.OauthList'
  1759. type: object
  1760. "500":
  1761. description: Internal Server Error
  1762. schema:
  1763. $ref: '#/definitions/response.Response'
  1764. security:
  1765. - token: []
  1766. summary: Oauth列表
  1767. tags:
  1768. - Oauth
  1769. /admin/oauth/update:
  1770. post:
  1771. consumes:
  1772. - application/json
  1773. description: Oauth编辑
  1774. parameters:
  1775. - description: Oauth信息
  1776. in: body
  1777. name: body
  1778. required: true
  1779. schema:
  1780. $ref: '#/definitions/admin.OauthForm'
  1781. produces:
  1782. - application/json
  1783. responses:
  1784. "200":
  1785. description: OK
  1786. schema:
  1787. allOf:
  1788. - $ref: '#/definitions/response.Response'
  1789. - properties:
  1790. data:
  1791. $ref: '#/definitions/model.OauthList'
  1792. type: object
  1793. "500":
  1794. description: Internal Server Error
  1795. schema:
  1796. $ref: '#/definitions/response.Response'
  1797. security:
  1798. - token: []
  1799. summary: Oauth编辑
  1800. tags:
  1801. - Oauth
  1802. /admin/peer/create:
  1803. post:
  1804. consumes:
  1805. - application/json
  1806. description: 创建设备
  1807. parameters:
  1808. - description: 设备信息
  1809. in: body
  1810. name: body
  1811. required: true
  1812. schema:
  1813. $ref: '#/definitions/admin.PeerForm'
  1814. produces:
  1815. - application/json
  1816. responses:
  1817. "200":
  1818. description: OK
  1819. schema:
  1820. allOf:
  1821. - $ref: '#/definitions/response.Response'
  1822. - properties:
  1823. data:
  1824. $ref: '#/definitions/model.Peer'
  1825. type: object
  1826. "500":
  1827. description: Internal Server Error
  1828. schema:
  1829. $ref: '#/definitions/response.Response'
  1830. security:
  1831. - token: []
  1832. summary: 创建设备
  1833. tags:
  1834. - 设备
  1835. /admin/peer/delete:
  1836. post:
  1837. consumes:
  1838. - application/json
  1839. description: 批量设备删除
  1840. parameters:
  1841. - description: 设备id
  1842. in: body
  1843. name: body
  1844. required: true
  1845. schema:
  1846. $ref: '#/definitions/admin.PeerBatchDeleteForm'
  1847. produces:
  1848. - application/json
  1849. responses:
  1850. "200":
  1851. description: OK
  1852. schema:
  1853. $ref: '#/definitions/response.Response'
  1854. "500":
  1855. description: Internal Server Error
  1856. schema:
  1857. $ref: '#/definitions/response.Response'
  1858. security:
  1859. - token: []
  1860. summary: 批量设备删除
  1861. tags:
  1862. - 设备
  1863. /admin/peer/detail/{id}:
  1864. get:
  1865. consumes:
  1866. - application/json
  1867. description: 设备详情
  1868. parameters:
  1869. - description: ID
  1870. in: path
  1871. name: id
  1872. required: true
  1873. type: integer
  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/model.Peer'
  1885. type: object
  1886. "500":
  1887. description: Internal Server Error
  1888. schema:
  1889. $ref: '#/definitions/response.Response'
  1890. security:
  1891. - token: []
  1892. summary: 设备详情
  1893. tags:
  1894. - 设备
  1895. /admin/peer/list:
  1896. get:
  1897. consumes:
  1898. - application/json
  1899. description: 设备列表
  1900. parameters:
  1901. - description: 页码
  1902. in: query
  1903. name: page
  1904. type: integer
  1905. - description: 页大小
  1906. in: query
  1907. name: page_size
  1908. type: integer
  1909. - description: 时间
  1910. in: query
  1911. name: time_ago
  1912. type: integer
  1913. - description: ID
  1914. in: query
  1915. name: id
  1916. type: string
  1917. - description: 主机名
  1918. in: query
  1919. name: hostname
  1920. type: string
  1921. produces:
  1922. - application/json
  1923. responses:
  1924. "200":
  1925. description: OK
  1926. schema:
  1927. allOf:
  1928. - $ref: '#/definitions/response.Response'
  1929. - properties:
  1930. data:
  1931. $ref: '#/definitions/model.PeerList'
  1932. type: object
  1933. "500":
  1934. description: Internal Server Error
  1935. schema:
  1936. $ref: '#/definitions/response.Response'
  1937. security:
  1938. - token: []
  1939. summary: 设备列表
  1940. tags:
  1941. - 设备
  1942. /admin/peer/update:
  1943. post:
  1944. consumes:
  1945. - application/json
  1946. description: 设备编辑
  1947. parameters:
  1948. - description: 设备信息
  1949. in: body
  1950. name: body
  1951. required: true
  1952. schema:
  1953. $ref: '#/definitions/admin.PeerForm'
  1954. produces:
  1955. - application/json
  1956. responses:
  1957. "200":
  1958. description: OK
  1959. schema:
  1960. allOf:
  1961. - $ref: '#/definitions/response.Response'
  1962. - properties:
  1963. data:
  1964. $ref: '#/definitions/model.Peer'
  1965. type: object
  1966. "500":
  1967. description: Internal Server Error
  1968. schema:
  1969. $ref: '#/definitions/response.Response'
  1970. security:
  1971. - token: []
  1972. summary: 设备编辑
  1973. tags:
  1974. - 设备
  1975. /admin/server-config:
  1976. get:
  1977. consumes:
  1978. - application/json
  1979. description: 服务配置,给webclient提供api-server
  1980. produces:
  1981. - application/json
  1982. responses:
  1983. "200":
  1984. description: OK
  1985. schema:
  1986. $ref: '#/definitions/response.Response'
  1987. "500":
  1988. description: Internal Server Error
  1989. schema:
  1990. $ref: '#/definitions/response.Response'
  1991. security:
  1992. - token: []
  1993. summary: RUSTDESK服务配置
  1994. tags:
  1995. - ADMIN
  1996. /admin/tag/create:
  1997. post:
  1998. consumes:
  1999. - application/json
  2000. description: 创建标签
  2001. parameters:
  2002. - description: 标签信息
  2003. in: body
  2004. name: body
  2005. required: true
  2006. schema:
  2007. $ref: '#/definitions/admin.TagForm'
  2008. produces:
  2009. - application/json
  2010. responses:
  2011. "200":
  2012. description: OK
  2013. schema:
  2014. allOf:
  2015. - $ref: '#/definitions/response.Response'
  2016. - properties:
  2017. data:
  2018. $ref: '#/definitions/model.Tag'
  2019. type: object
  2020. "500":
  2021. description: Internal Server Error
  2022. schema:
  2023. $ref: '#/definitions/response.Response'
  2024. security:
  2025. - token: []
  2026. summary: 创建标签
  2027. tags:
  2028. - 标签
  2029. /admin/tag/delete:
  2030. post:
  2031. consumes:
  2032. - application/json
  2033. description: 标签删除
  2034. parameters:
  2035. - description: 标签信息
  2036. in: body
  2037. name: body
  2038. required: true
  2039. schema:
  2040. $ref: '#/definitions/admin.TagForm'
  2041. produces:
  2042. - application/json
  2043. responses:
  2044. "200":
  2045. description: OK
  2046. schema:
  2047. $ref: '#/definitions/response.Response'
  2048. "500":
  2049. description: Internal Server Error
  2050. schema:
  2051. $ref: '#/definitions/response.Response'
  2052. security:
  2053. - token: []
  2054. summary: 标签删除
  2055. tags:
  2056. - 标签
  2057. /admin/tag/detail/{id}:
  2058. get:
  2059. consumes:
  2060. - application/json
  2061. description: 标签详情
  2062. parameters:
  2063. - description: ID
  2064. in: path
  2065. name: id
  2066. required: true
  2067. type: integer
  2068. produces:
  2069. - application/json
  2070. responses:
  2071. "200":
  2072. description: OK
  2073. schema:
  2074. allOf:
  2075. - $ref: '#/definitions/response.Response'
  2076. - properties:
  2077. data:
  2078. $ref: '#/definitions/model.Tag'
  2079. type: object
  2080. "500":
  2081. description: Internal Server Error
  2082. schema:
  2083. $ref: '#/definitions/response.Response'
  2084. security:
  2085. - token: []
  2086. summary: 标签详情
  2087. tags:
  2088. - 标签
  2089. /admin/tag/list:
  2090. get:
  2091. consumes:
  2092. - application/json
  2093. description: 标签列表
  2094. parameters:
  2095. - description: 页码
  2096. in: query
  2097. name: page
  2098. type: integer
  2099. - description: 页大小
  2100. in: query
  2101. name: page_size
  2102. type: integer
  2103. - description: 是否是我的
  2104. in: query
  2105. name: is_my
  2106. type: integer
  2107. - description: 用户id
  2108. in: query
  2109. name: user_id
  2110. type: integer
  2111. produces:
  2112. - application/json
  2113. responses:
  2114. "200":
  2115. description: OK
  2116. schema:
  2117. allOf:
  2118. - $ref: '#/definitions/response.Response'
  2119. - properties:
  2120. data:
  2121. $ref: '#/definitions/model.TagList'
  2122. type: object
  2123. "500":
  2124. description: Internal Server Error
  2125. schema:
  2126. $ref: '#/definitions/response.Response'
  2127. security:
  2128. - token: []
  2129. summary: 标签列表
  2130. tags:
  2131. - 标签
  2132. /admin/tag/update:
  2133. post:
  2134. consumes:
  2135. - application/json
  2136. description: 标签编辑
  2137. parameters:
  2138. - description: 标签信息
  2139. in: body
  2140. name: body
  2141. required: true
  2142. schema:
  2143. $ref: '#/definitions/admin.TagForm'
  2144. produces:
  2145. - application/json
  2146. responses:
  2147. "200":
  2148. description: OK
  2149. schema:
  2150. allOf:
  2151. - $ref: '#/definitions/response.Response'
  2152. - properties:
  2153. data:
  2154. $ref: '#/definitions/model.Tag'
  2155. type: object
  2156. "500":
  2157. description: Internal Server Error
  2158. schema:
  2159. $ref: '#/definitions/response.Response'
  2160. security:
  2161. - token: []
  2162. summary: 标签编辑
  2163. tags:
  2164. - 标签
  2165. /admin/user/changeCurPwd:
  2166. post:
  2167. consumes:
  2168. - application/json
  2169. description: 修改当前用户密码
  2170. parameters:
  2171. - description: 用户信息
  2172. in: body
  2173. name: body
  2174. required: true
  2175. schema:
  2176. $ref: '#/definitions/admin.ChangeCurPasswordForm'
  2177. produces:
  2178. - application/json
  2179. responses:
  2180. "200":
  2181. description: OK
  2182. schema:
  2183. $ref: '#/definitions/response.Response'
  2184. "500":
  2185. description: Internal Server Error
  2186. schema:
  2187. $ref: '#/definitions/response.Response'
  2188. security:
  2189. - token: []
  2190. summary: 修改当前用户密码
  2191. tags:
  2192. - 用户
  2193. /admin/user/create:
  2194. post:
  2195. consumes:
  2196. - application/json
  2197. description: 创建管理员
  2198. parameters:
  2199. - description: 管理员信息
  2200. in: body
  2201. name: body
  2202. required: true
  2203. schema:
  2204. $ref: '#/definitions/admin.UserForm'
  2205. produces:
  2206. - application/json
  2207. responses:
  2208. "200":
  2209. description: OK
  2210. schema:
  2211. allOf:
  2212. - $ref: '#/definitions/response.Response'
  2213. - properties:
  2214. data:
  2215. $ref: '#/definitions/model.User'
  2216. type: object
  2217. "500":
  2218. description: Internal Server Error
  2219. schema:
  2220. $ref: '#/definitions/response.Response'
  2221. security:
  2222. - token: []
  2223. summary: 创建管理员
  2224. tags:
  2225. - 用户
  2226. /admin/user/current:
  2227. get:
  2228. consumes:
  2229. - application/json
  2230. description: 当前用户
  2231. produces:
  2232. - application/json
  2233. responses:
  2234. "200":
  2235. description: OK
  2236. schema:
  2237. allOf:
  2238. - $ref: '#/definitions/response.Response'
  2239. - properties:
  2240. data:
  2241. $ref: '#/definitions/admin.LoginPayload'
  2242. type: object
  2243. "500":
  2244. description: Internal Server Error
  2245. schema:
  2246. $ref: '#/definitions/response.Response'
  2247. security:
  2248. - token: []
  2249. summary: 当前用户
  2250. tags:
  2251. - 用户
  2252. /admin/user/delete:
  2253. post:
  2254. consumes:
  2255. - application/json
  2256. description: 管理员编删除
  2257. parameters:
  2258. - description: 用户信息
  2259. in: body
  2260. name: body
  2261. required: true
  2262. schema:
  2263. $ref: '#/definitions/admin.UserForm'
  2264. produces:
  2265. - application/json
  2266. responses:
  2267. "200":
  2268. description: OK
  2269. schema:
  2270. $ref: '#/definitions/response.Response'
  2271. "500":
  2272. description: Internal Server Error
  2273. schema:
  2274. $ref: '#/definitions/response.Response'
  2275. security:
  2276. - token: []
  2277. summary: 管理员删除
  2278. tags:
  2279. - 用户
  2280. /admin/user/detail/{id}:
  2281. get:
  2282. consumes:
  2283. - application/json
  2284. description: 管理员详情
  2285. parameters:
  2286. - description: ID
  2287. in: path
  2288. name: id
  2289. required: true
  2290. type: integer
  2291. produces:
  2292. - application/json
  2293. responses:
  2294. "200":
  2295. description: OK
  2296. schema:
  2297. allOf:
  2298. - $ref: '#/definitions/response.Response'
  2299. - properties:
  2300. data:
  2301. $ref: '#/definitions/model.User'
  2302. type: object
  2303. "500":
  2304. description: Internal Server Error
  2305. schema:
  2306. $ref: '#/definitions/response.Response'
  2307. security:
  2308. - token: []
  2309. summary: 管理员详情
  2310. tags:
  2311. - 用户
  2312. /admin/user/list:
  2313. get:
  2314. consumes:
  2315. - application/json
  2316. description: 管理员列表
  2317. parameters:
  2318. - description: 页码
  2319. in: query
  2320. name: page
  2321. type: integer
  2322. - description: 页大小
  2323. in: query
  2324. name: page_size
  2325. type: integer
  2326. - description: 账户
  2327. in: query
  2328. name: username
  2329. type: integer
  2330. produces:
  2331. - application/json
  2332. responses:
  2333. "200":
  2334. description: OK
  2335. schema:
  2336. allOf:
  2337. - $ref: '#/definitions/response.Response'
  2338. - properties:
  2339. data:
  2340. $ref: '#/definitions/model.UserList'
  2341. type: object
  2342. "500":
  2343. description: Internal Server Error
  2344. schema:
  2345. $ref: '#/definitions/response.Response'
  2346. security:
  2347. - token: []
  2348. summary: 管理员列表
  2349. tags:
  2350. - 用户
  2351. /admin/user/myOauth:
  2352. get:
  2353. consumes:
  2354. - application/json
  2355. description: 我的授权
  2356. produces:
  2357. - application/json
  2358. responses:
  2359. "200":
  2360. description: OK
  2361. schema:
  2362. allOf:
  2363. - $ref: '#/definitions/response.Response'
  2364. - properties:
  2365. data:
  2366. items:
  2367. $ref: '#/definitions/admin.UserOauthItem'
  2368. type: array
  2369. type: object
  2370. "500":
  2371. description: Internal Server Error
  2372. schema:
  2373. $ref: '#/definitions/response.Response'
  2374. security:
  2375. - token: []
  2376. summary: 我的授权
  2377. tags:
  2378. - 用户
  2379. /admin/user/update:
  2380. post:
  2381. consumes:
  2382. - application/json
  2383. description: 管理员编辑
  2384. parameters:
  2385. - description: 用户信息
  2386. in: body
  2387. name: body
  2388. required: true
  2389. schema:
  2390. $ref: '#/definitions/admin.UserForm'
  2391. produces:
  2392. - application/json
  2393. responses:
  2394. "200":
  2395. description: OK
  2396. schema:
  2397. allOf:
  2398. - $ref: '#/definitions/response.Response'
  2399. - properties:
  2400. data:
  2401. $ref: '#/definitions/model.User'
  2402. type: object
  2403. "500":
  2404. description: Internal Server Error
  2405. schema:
  2406. $ref: '#/definitions/response.Response'
  2407. security:
  2408. - token: []
  2409. summary: 管理员编辑
  2410. tags:
  2411. - 用户
  2412. /admin/user/updatePassword:
  2413. post:
  2414. consumes:
  2415. - application/json
  2416. description: 修改密码
  2417. parameters:
  2418. - description: 用户信息
  2419. in: body
  2420. name: body
  2421. required: true
  2422. schema:
  2423. $ref: '#/definitions/admin.UserPasswordForm'
  2424. produces:
  2425. - application/json
  2426. responses:
  2427. "200":
  2428. description: OK
  2429. schema:
  2430. $ref: '#/definitions/response.Response'
  2431. "500":
  2432. description: Internal Server Error
  2433. schema:
  2434. $ref: '#/definitions/response.Response'
  2435. security:
  2436. - token: []
  2437. summary: 修改密码
  2438. tags:
  2439. - 用户
  2440. securityDefinitions:
  2441. BearerAuth:
  2442. in: header
  2443. name: Authorization
  2444. type: apiKey
  2445. token:
  2446. in: header
  2447. name: api-token
  2448. type: apiKey
  2449. swagger: "2.0"