admin_swagger.yaml 57 KB

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