admin_swagger.yaml 62 KB

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