admin_swagger.yaml 89 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834
  1. basePath: /api
  2. definitions:
  3. admin.AddressBookForm:
  4. properties:
  5. alias:
  6. type: string
  7. collection_id:
  8. type: integer
  9. forceAlwaysRelay:
  10. type: boolean
  11. hash:
  12. type: string
  13. hostname:
  14. type: string
  15. id:
  16. type: string
  17. loginName:
  18. type: string
  19. online:
  20. type: boolean
  21. password:
  22. type: string
  23. platform:
  24. type: string
  25. rdpPort:
  26. type: string
  27. rdpUsername:
  28. type: string
  29. row_id:
  30. type: integer
  31. sameServer:
  32. type: boolean
  33. tags:
  34. items:
  35. type: string
  36. type: array
  37. user_id:
  38. type: integer
  39. user_ids:
  40. items:
  41. type: integer
  42. type: array
  43. username:
  44. type: string
  45. required:
  46. - id
  47. type: object
  48. admin.AuditConnLogIds:
  49. properties:
  50. ids:
  51. items:
  52. type: integer
  53. type: array
  54. required:
  55. - ids
  56. type: object
  57. admin.AuditFileLogIds:
  58. properties:
  59. ids:
  60. items:
  61. type: integer
  62. type: array
  63. required:
  64. - ids
  65. type: object
  66. admin.ChangeCurPasswordForm:
  67. properties:
  68. new_password:
  69. maxLength: 32
  70. minLength: 4
  71. type: string
  72. old_password:
  73. maxLength: 32
  74. minLength: 4
  75. type: string
  76. required:
  77. - new_password
  78. - old_password
  79. type: object
  80. admin.GroupForm:
  81. properties:
  82. id:
  83. type: integer
  84. name:
  85. type: string
  86. type:
  87. type: integer
  88. required:
  89. - name
  90. type: object
  91. admin.LoginLogIds:
  92. properties:
  93. ids:
  94. items:
  95. type: integer
  96. type: array
  97. required:
  98. - ids
  99. type: object
  100. admin.LoginPayload:
  101. properties:
  102. avatar:
  103. type: string
  104. email:
  105. type: string
  106. nickname:
  107. type: string
  108. route_names:
  109. items:
  110. type: string
  111. type: array
  112. token:
  113. type: string
  114. username:
  115. type: string
  116. type: object
  117. admin.OauthForm:
  118. properties:
  119. auto_register:
  120. type: boolean
  121. client_id:
  122. type: string
  123. client_secret:
  124. type: string
  125. id:
  126. type: integer
  127. issuer:
  128. type: string
  129. oauth_type:
  130. type: string
  131. op:
  132. type: string
  133. redirect_url:
  134. type: string
  135. scopes:
  136. type: string
  137. required:
  138. - client_id
  139. - client_secret
  140. - oauth_type
  141. - redirect_url
  142. type: object
  143. admin.PeerBatchDeleteForm:
  144. properties:
  145. row_ids:
  146. items:
  147. type: integer
  148. type: array
  149. required:
  150. - row_ids
  151. type: object
  152. admin.PeerForm:
  153. properties:
  154. cpu:
  155. type: string
  156. hostname:
  157. type: string
  158. id:
  159. type: string
  160. memory:
  161. type: string
  162. os:
  163. type: string
  164. row_id:
  165. type: integer
  166. username:
  167. type: string
  168. uuid:
  169. type: string
  170. version:
  171. type: string
  172. type: object
  173. admin.PeerShareRecordBatchDeleteForm:
  174. properties:
  175. ids:
  176. items:
  177. type: integer
  178. type: array
  179. required:
  180. - ids
  181. type: object
  182. admin.ShareByWebClientForm:
  183. properties:
  184. expire:
  185. type: integer
  186. id:
  187. type: string
  188. password:
  189. type: string
  190. password_type:
  191. description: 只能是once,fixed
  192. enum:
  193. - once
  194. - fixed
  195. type: string
  196. required:
  197. - id
  198. - password
  199. - password_type
  200. type: object
  201. admin.ShareRecordForm:
  202. properties:
  203. id:
  204. type: integer
  205. user_id:
  206. type: integer
  207. type: object
  208. admin.TagForm:
  209. properties:
  210. collection_id:
  211. type: integer
  212. color:
  213. type: integer
  214. id:
  215. type: integer
  216. name:
  217. type: string
  218. user_id:
  219. type: integer
  220. required:
  221. - color
  222. - name
  223. type: object
  224. admin.UserForm:
  225. properties:
  226. avatar:
  227. type: string
  228. email:
  229. description: validate:"required,email" email不强制
  230. type: string
  231. group_id:
  232. type: integer
  233. id:
  234. type: integer
  235. is_admin:
  236. type: boolean
  237. nickname:
  238. description: Password string `json:"password" validate:"required,gte=4,lte=20"`
  239. type: string
  240. status:
  241. allOf:
  242. - $ref: '#/definitions/model.StatusCode'
  243. minimum: 0
  244. username:
  245. maxLength: 32
  246. minLength: 2
  247. type: string
  248. required:
  249. - group_id
  250. - status
  251. - username
  252. type: object
  253. admin.UserOauthItem:
  254. properties:
  255. op:
  256. type: string
  257. status:
  258. type: integer
  259. type: object
  260. admin.UserPasswordForm:
  261. properties:
  262. id:
  263. type: integer
  264. password:
  265. maxLength: 32
  266. minLength: 4
  267. type: string
  268. required:
  269. - id
  270. - password
  271. type: object
  272. admin.UserTokenBatchDeleteForm:
  273. properties:
  274. ids:
  275. items:
  276. type: integer
  277. type: array
  278. required:
  279. - ids
  280. type: object
  281. github_com_lejianwen_rustdesk-api_http_request_admin.Login:
  282. properties:
  283. captcha:
  284. type: string
  285. password:
  286. type: string
  287. platform:
  288. type: string
  289. username:
  290. type: string
  291. required:
  292. - password
  293. - username
  294. type: object
  295. model.AddressBook:
  296. properties:
  297. alias:
  298. type: string
  299. collection:
  300. $ref: '#/definitions/model.AddressBookCollection'
  301. collection_id:
  302. type: integer
  303. created_at:
  304. type: string
  305. forceAlwaysRelay:
  306. type: boolean
  307. hash:
  308. type: string
  309. hostname:
  310. type: string
  311. id:
  312. type: string
  313. loginName:
  314. type: string
  315. online:
  316. type: boolean
  317. password:
  318. type: string
  319. platform:
  320. type: string
  321. rdpPort:
  322. type: string
  323. rdpUsername:
  324. type: string
  325. row_id:
  326. type: integer
  327. sameServer:
  328. type: boolean
  329. tags:
  330. items:
  331. type: string
  332. type: array
  333. updated_at:
  334. type: string
  335. user_id:
  336. type: integer
  337. username:
  338. type: string
  339. type: object
  340. model.AddressBookCollection:
  341. properties:
  342. created_at:
  343. type: string
  344. id:
  345. type: integer
  346. name:
  347. type: string
  348. updated_at:
  349. type: string
  350. user_id:
  351. type: integer
  352. required:
  353. - name
  354. type: object
  355. model.AddressBookCollectionList:
  356. properties:
  357. list:
  358. items:
  359. $ref: '#/definitions/model.AddressBookCollection'
  360. type: array
  361. page:
  362. type: integer
  363. page_size:
  364. type: integer
  365. total:
  366. type: integer
  367. type: object
  368. model.AddressBookCollectionRule:
  369. properties:
  370. collection_id:
  371. type: integer
  372. created_at:
  373. type: string
  374. id:
  375. type: integer
  376. rule:
  377. description: '0: 无 1: 读 2: 读写 3: 完全控制'
  378. maximum: 3
  379. minimum: 1
  380. type: integer
  381. to_id:
  382. type: integer
  383. type:
  384. description: '1: 个人 2: 群组'
  385. maximum: 2
  386. minimum: 1
  387. type: integer
  388. updated_at:
  389. type: string
  390. user_id:
  391. type: integer
  392. required:
  393. - collection_id
  394. - rule
  395. - to_id
  396. - type
  397. type: object
  398. model.AddressBookList:
  399. properties:
  400. list:
  401. items:
  402. $ref: '#/definitions/model.AddressBook'
  403. type: array
  404. page:
  405. type: integer
  406. page_size:
  407. type: integer
  408. total:
  409. type: integer
  410. type: object
  411. model.AuditConn:
  412. properties:
  413. action:
  414. type: string
  415. close_time:
  416. type: integer
  417. conn_id:
  418. type: integer
  419. created_at:
  420. type: string
  421. from_name:
  422. type: string
  423. from_peer:
  424. type: string
  425. id:
  426. type: integer
  427. ip:
  428. type: string
  429. peer_id:
  430. type: string
  431. session_id:
  432. type: string
  433. type:
  434. type: integer
  435. updated_at:
  436. type: string
  437. uuid:
  438. type: string
  439. type: object
  440. model.AuditConnList:
  441. properties:
  442. list:
  443. items:
  444. $ref: '#/definitions/model.AuditConn'
  445. type: array
  446. page:
  447. type: integer
  448. page_size:
  449. type: integer
  450. total:
  451. type: integer
  452. type: object
  453. model.AuditFile:
  454. properties:
  455. created_at:
  456. type: string
  457. from_name:
  458. type: string
  459. from_peer:
  460. type: string
  461. id:
  462. type: integer
  463. info:
  464. type: string
  465. ip:
  466. type: string
  467. is_file:
  468. type: boolean
  469. num:
  470. type: integer
  471. path:
  472. type: string
  473. peer_id:
  474. type: string
  475. type:
  476. type: integer
  477. updated_at:
  478. type: string
  479. uuid:
  480. type: string
  481. type: object
  482. model.AuditFileList:
  483. properties:
  484. list:
  485. items:
  486. $ref: '#/definitions/model.AuditFile'
  487. type: array
  488. page:
  489. type: integer
  490. page_size:
  491. type: integer
  492. total:
  493. type: integer
  494. type: object
  495. model.Group:
  496. properties:
  497. created_at:
  498. type: string
  499. id:
  500. type: integer
  501. name:
  502. type: string
  503. type:
  504. type: integer
  505. updated_at:
  506. type: string
  507. type: object
  508. model.GroupList:
  509. properties:
  510. list:
  511. items:
  512. $ref: '#/definitions/model.Group'
  513. type: array
  514. page:
  515. type: integer
  516. page_size:
  517. type: integer
  518. total:
  519. type: integer
  520. type: object
  521. model.LoginLog:
  522. properties:
  523. client:
  524. description: webadmin,webclient,app,
  525. type: string
  526. created_at:
  527. type: string
  528. device_id:
  529. type: string
  530. id:
  531. type: integer
  532. ip:
  533. type: string
  534. is_deleted:
  535. type: integer
  536. platform:
  537. description: windows,linux,mac,android,ios
  538. type: string
  539. type:
  540. description: account,oauth
  541. type: string
  542. updated_at:
  543. type: string
  544. user_id:
  545. type: integer
  546. user_token_id:
  547. type: integer
  548. uuid:
  549. type: string
  550. type: object
  551. model.LoginLogList:
  552. properties:
  553. list:
  554. items:
  555. $ref: '#/definitions/model.LoginLog'
  556. type: array
  557. page:
  558. type: integer
  559. page_size:
  560. type: integer
  561. total:
  562. type: integer
  563. type: object
  564. model.Oauth:
  565. properties:
  566. auto_register:
  567. type: boolean
  568. client_id:
  569. type: string
  570. client_secret:
  571. type: string
  572. created_at:
  573. type: string
  574. id:
  575. type: integer
  576. issuer:
  577. type: string
  578. oauth_type:
  579. type: string
  580. op:
  581. type: string
  582. redirect_url:
  583. type: string
  584. scopes:
  585. type: string
  586. updated_at:
  587. type: string
  588. type: object
  589. model.OauthList:
  590. properties:
  591. list:
  592. items:
  593. $ref: '#/definitions/model.Oauth'
  594. type: array
  595. page:
  596. type: integer
  597. page_size:
  598. type: integer
  599. total:
  600. type: integer
  601. type: object
  602. model.Peer:
  603. properties:
  604. cpu:
  605. type: string
  606. created_at:
  607. type: string
  608. hostname:
  609. type: string
  610. id:
  611. type: string
  612. last_online_ip:
  613. type: string
  614. last_online_time:
  615. type: integer
  616. memory:
  617. type: string
  618. os:
  619. type: string
  620. row_id:
  621. type: integer
  622. updated_at:
  623. type: string
  624. user:
  625. $ref: '#/definitions/model.User'
  626. user_id:
  627. type: integer
  628. username:
  629. type: string
  630. uuid:
  631. type: string
  632. version:
  633. type: string
  634. type: object
  635. model.PeerList:
  636. properties:
  637. list:
  638. items:
  639. $ref: '#/definitions/model.Peer'
  640. type: array
  641. page:
  642. type: integer
  643. page_size:
  644. type: integer
  645. total:
  646. type: integer
  647. type: object
  648. model.StatusCode:
  649. enum:
  650. - 1
  651. - 2
  652. type: integer
  653. x-enum-comments:
  654. COMMON_STATUS_DISABLED: 通用状态 禁用
  655. COMMON_STATUS_ENABLE: 通用状态 启用
  656. x-enum-varnames:
  657. - COMMON_STATUS_ENABLE
  658. - COMMON_STATUS_DISABLED
  659. model.Tag:
  660. properties:
  661. collection:
  662. $ref: '#/definitions/model.AddressBookCollection'
  663. collection_id:
  664. type: integer
  665. color:
  666. description: color 是flutter的颜色值,从0x00000000 到 0xFFFFFFFF; 前两位表示透明度,后面6位表示颜色,
  667. 可以转成rgba
  668. type: integer
  669. created_at:
  670. type: string
  671. id:
  672. type: integer
  673. name:
  674. type: string
  675. updated_at:
  676. type: string
  677. user_id:
  678. type: integer
  679. type: object
  680. model.TagList:
  681. properties:
  682. list:
  683. items:
  684. $ref: '#/definitions/model.Tag'
  685. type: array
  686. page:
  687. type: integer
  688. page_size:
  689. type: integer
  690. total:
  691. type: integer
  692. type: object
  693. model.User:
  694. properties:
  695. avatar:
  696. type: string
  697. created_at:
  698. type: string
  699. email:
  700. type: string
  701. group_id:
  702. type: integer
  703. id:
  704. type: integer
  705. is_admin:
  706. type: boolean
  707. nickname:
  708. type: string
  709. status:
  710. $ref: '#/definitions/model.StatusCode'
  711. updated_at:
  712. type: string
  713. username:
  714. type: string
  715. type: object
  716. model.UserList:
  717. properties:
  718. list:
  719. items:
  720. $ref: '#/definitions/model.User'
  721. type: array
  722. page:
  723. type: integer
  724. page_size:
  725. type: integer
  726. total:
  727. type: integer
  728. type: object
  729. model.UserToken:
  730. properties:
  731. created_at:
  732. type: string
  733. device_id:
  734. type: string
  735. device_uuid:
  736. type: string
  737. expired_at:
  738. type: integer
  739. id:
  740. type: integer
  741. token:
  742. type: string
  743. updated_at:
  744. type: string
  745. user_id:
  746. type: integer
  747. type: object
  748. model.UserTokenList:
  749. properties:
  750. list:
  751. items:
  752. $ref: '#/definitions/model.UserToken'
  753. type: array
  754. page:
  755. type: integer
  756. page_size:
  757. type: integer
  758. total:
  759. type: integer
  760. type: object
  761. response.ErrorResponse:
  762. properties:
  763. error:
  764. type: string
  765. type: object
  766. response.Response:
  767. properties:
  768. code:
  769. type: integer
  770. data: {}
  771. message:
  772. type: string
  773. type: object
  774. info:
  775. contact: {}
  776. description: 接口
  777. title: 管理系统API
  778. version: "1.0"
  779. paths:
  780. /admin/address_book/batchCreate:
  781. post:
  782. consumes:
  783. - application/json
  784. description: 批量创建地址簿
  785. parameters:
  786. - description: 地址簿信息
  787. in: body
  788. name: body
  789. required: true
  790. schema:
  791. $ref: '#/definitions/admin.AddressBookForm'
  792. produces:
  793. - application/json
  794. responses:
  795. "200":
  796. description: OK
  797. schema:
  798. allOf:
  799. - $ref: '#/definitions/response.Response'
  800. - properties:
  801. data:
  802. $ref: '#/definitions/model.AddressBook'
  803. type: object
  804. "500":
  805. description: Internal Server Error
  806. schema:
  807. $ref: '#/definitions/response.Response'
  808. security:
  809. - token: []
  810. summary: 批量创建地址簿
  811. tags:
  812. - 地址簿
  813. /admin/address_book/create:
  814. post:
  815. consumes:
  816. - application/json
  817. description: 创建地址簿
  818. parameters:
  819. - description: 地址簿信息
  820. in: body
  821. name: body
  822. required: true
  823. schema:
  824. $ref: '#/definitions/admin.AddressBookForm'
  825. produces:
  826. - application/json
  827. responses:
  828. "200":
  829. description: OK
  830. schema:
  831. allOf:
  832. - $ref: '#/definitions/response.Response'
  833. - properties:
  834. data:
  835. $ref: '#/definitions/model.AddressBook'
  836. type: object
  837. "500":
  838. description: Internal Server Error
  839. schema:
  840. $ref: '#/definitions/response.Response'
  841. security:
  842. - token: []
  843. summary: 创建地址簿
  844. tags:
  845. - 地址簿
  846. /admin/address_book/delete:
  847. post:
  848. consumes:
  849. - application/json
  850. description: 地址簿删除
  851. parameters:
  852. - description: 地址簿信息
  853. in: body
  854. name: body
  855. required: true
  856. schema:
  857. $ref: '#/definitions/admin.AddressBookForm'
  858. produces:
  859. - application/json
  860. responses:
  861. "200":
  862. description: OK
  863. schema:
  864. $ref: '#/definitions/response.Response'
  865. "500":
  866. description: Internal Server Error
  867. schema:
  868. $ref: '#/definitions/response.Response'
  869. security:
  870. - token: []
  871. summary: 地址簿删除
  872. tags:
  873. - 地址簿
  874. /admin/address_book/detail/{id}:
  875. get:
  876. consumes:
  877. - application/json
  878. description: 地址簿详情
  879. parameters:
  880. - description: ID
  881. in: path
  882. name: id
  883. required: true
  884. type: integer
  885. produces:
  886. - application/json
  887. responses:
  888. "200":
  889. description: OK
  890. schema:
  891. allOf:
  892. - $ref: '#/definitions/response.Response'
  893. - properties:
  894. data:
  895. $ref: '#/definitions/model.AddressBook'
  896. type: object
  897. "500":
  898. description: Internal Server Error
  899. schema:
  900. $ref: '#/definitions/response.Response'
  901. security:
  902. - token: []
  903. summary: 地址簿详情
  904. tags:
  905. - 地址簿
  906. /admin/address_book/list:
  907. get:
  908. consumes:
  909. - application/json
  910. description: 地址簿列表
  911. parameters:
  912. - description: 页码
  913. in: query
  914. name: page
  915. type: integer
  916. - description: 页大小
  917. in: query
  918. name: page_size
  919. type: integer
  920. - description: 用户id
  921. in: query
  922. name: user_id
  923. type: integer
  924. - description: 是否是我的
  925. in: query
  926. name: is_my
  927. type: integer
  928. produces:
  929. - application/json
  930. responses:
  931. "200":
  932. description: OK
  933. schema:
  934. allOf:
  935. - $ref: '#/definitions/response.Response'
  936. - properties:
  937. data:
  938. $ref: '#/definitions/model.AddressBookList'
  939. type: object
  940. "500":
  941. description: Internal Server Error
  942. schema:
  943. $ref: '#/definitions/response.Response'
  944. security:
  945. - token: []
  946. summary: 地址簿列表
  947. tags:
  948. - 地址簿
  949. /admin/address_book/share:
  950. post:
  951. consumes:
  952. - application/json
  953. description: 地址簿分享
  954. parameters:
  955. - description: 地址簿信息
  956. in: body
  957. name: body
  958. required: true
  959. schema:
  960. $ref: '#/definitions/admin.ShareByWebClientForm'
  961. produces:
  962. - application/json
  963. responses:
  964. "200":
  965. description: OK
  966. schema:
  967. $ref: '#/definitions/response.Response'
  968. "500":
  969. description: Internal Server Error
  970. schema:
  971. $ref: '#/definitions/response.Response'
  972. security:
  973. - token: []
  974. summary: 地址簿分享
  975. tags:
  976. - 地址簿
  977. /admin/address_book/update:
  978. post:
  979. consumes:
  980. - application/json
  981. description: 地址簿编辑
  982. parameters:
  983. - description: 地址簿信息
  984. in: body
  985. name: body
  986. required: true
  987. schema:
  988. $ref: '#/definitions/admin.AddressBookForm'
  989. produces:
  990. - application/json
  991. responses:
  992. "200":
  993. description: OK
  994. schema:
  995. allOf:
  996. - $ref: '#/definitions/response.Response'
  997. - properties:
  998. data:
  999. $ref: '#/definitions/model.AddressBook'
  1000. type: object
  1001. "500":
  1002. description: Internal Server Error
  1003. schema:
  1004. $ref: '#/definitions/response.Response'
  1005. security:
  1006. - token: []
  1007. summary: 地址簿编辑
  1008. tags:
  1009. - 地址簿
  1010. /admin/address_book_collection/create:
  1011. post:
  1012. consumes:
  1013. - application/json
  1014. description: 创建地址簿名称
  1015. parameters:
  1016. - description: 地址簿名称信息
  1017. in: body
  1018. name: body
  1019. required: true
  1020. schema:
  1021. $ref: '#/definitions/model.AddressBookCollection'
  1022. produces:
  1023. - application/json
  1024. responses:
  1025. "200":
  1026. description: OK
  1027. schema:
  1028. allOf:
  1029. - $ref: '#/definitions/response.Response'
  1030. - properties:
  1031. data:
  1032. $ref: '#/definitions/model.AddressBookCollection'
  1033. type: object
  1034. "500":
  1035. description: Internal Server Error
  1036. schema:
  1037. $ref: '#/definitions/response.Response'
  1038. security:
  1039. - token: []
  1040. summary: 创建地址簿名称
  1041. tags:
  1042. - 地址簿名称
  1043. /admin/address_book_collection/delete:
  1044. post:
  1045. consumes:
  1046. - application/json
  1047. description: 地址簿名称删除
  1048. parameters:
  1049. - description: 地址簿名称信息
  1050. in: body
  1051. name: body
  1052. required: true
  1053. schema:
  1054. $ref: '#/definitions/model.AddressBookCollection'
  1055. produces:
  1056. - application/json
  1057. responses:
  1058. "200":
  1059. description: OK
  1060. schema:
  1061. $ref: '#/definitions/response.Response'
  1062. "500":
  1063. description: Internal Server Error
  1064. schema:
  1065. $ref: '#/definitions/response.Response'
  1066. security:
  1067. - token: []
  1068. summary: 地址簿名称删除
  1069. tags:
  1070. - 地址簿名称
  1071. /admin/address_book_collection/detail/{id}:
  1072. get:
  1073. consumes:
  1074. - application/json
  1075. description: 地址簿名称详情
  1076. parameters:
  1077. - description: ID
  1078. in: path
  1079. name: id
  1080. required: true
  1081. type: integer
  1082. produces:
  1083. - application/json
  1084. responses:
  1085. "200":
  1086. description: OK
  1087. schema:
  1088. allOf:
  1089. - $ref: '#/definitions/response.Response'
  1090. - properties:
  1091. data:
  1092. $ref: '#/definitions/model.AddressBookCollection'
  1093. type: object
  1094. "500":
  1095. description: Internal Server Error
  1096. schema:
  1097. $ref: '#/definitions/response.Response'
  1098. security:
  1099. - token: []
  1100. summary: 地址簿名称详情
  1101. tags:
  1102. - 地址簿名称
  1103. /admin/address_book_collection/list:
  1104. get:
  1105. consumes:
  1106. - application/json
  1107. description: 地址簿名称列表
  1108. parameters:
  1109. - description: 页码
  1110. in: query
  1111. name: page
  1112. type: integer
  1113. - description: 页大小
  1114. in: query
  1115. name: page_size
  1116. type: integer
  1117. - description: 是否是我的
  1118. in: query
  1119. name: is_my
  1120. type: integer
  1121. - description: 用户id
  1122. in: query
  1123. name: user_id
  1124. type: integer
  1125. produces:
  1126. - application/json
  1127. responses:
  1128. "200":
  1129. description: OK
  1130. schema:
  1131. allOf:
  1132. - $ref: '#/definitions/response.Response'
  1133. - properties:
  1134. data:
  1135. $ref: '#/definitions/model.AddressBookCollectionList'
  1136. type: object
  1137. "500":
  1138. description: Internal Server Error
  1139. schema:
  1140. $ref: '#/definitions/response.Response'
  1141. security:
  1142. - token: []
  1143. summary: 地址簿名称列表
  1144. tags:
  1145. - 地址簿名称
  1146. /admin/address_book_collection/update:
  1147. post:
  1148. consumes:
  1149. - application/json
  1150. description: 地址簿名称编辑
  1151. parameters:
  1152. - description: 地址簿名称信息
  1153. in: body
  1154. name: body
  1155. required: true
  1156. schema:
  1157. $ref: '#/definitions/model.AddressBookCollection'
  1158. produces:
  1159. - application/json
  1160. responses:
  1161. "200":
  1162. description: OK
  1163. schema:
  1164. allOf:
  1165. - $ref: '#/definitions/response.Response'
  1166. - properties:
  1167. data:
  1168. $ref: '#/definitions/model.AddressBookCollection'
  1169. type: object
  1170. "500":
  1171. description: Internal Server Error
  1172. schema:
  1173. $ref: '#/definitions/response.Response'
  1174. security:
  1175. - token: []
  1176. summary: 地址簿名称编辑
  1177. tags:
  1178. - 地址簿名称
  1179. /admin/address_book_collection_rule/create:
  1180. post:
  1181. consumes:
  1182. - application/json
  1183. description: 创建地址簿规则
  1184. parameters:
  1185. - description: 地址簿规则信息
  1186. in: body
  1187. name: body
  1188. required: true
  1189. schema:
  1190. $ref: '#/definitions/model.AddressBookCollectionRule'
  1191. produces:
  1192. - application/json
  1193. responses:
  1194. "200":
  1195. description: OK
  1196. schema:
  1197. allOf:
  1198. - $ref: '#/definitions/response.Response'
  1199. - properties:
  1200. data:
  1201. $ref: '#/definitions/model.AddressBookCollection'
  1202. type: object
  1203. "500":
  1204. description: Internal Server Error
  1205. schema:
  1206. $ref: '#/definitions/response.Response'
  1207. security:
  1208. - token: []
  1209. summary: 创建地址簿规则
  1210. tags:
  1211. - 地址簿规则
  1212. /admin/address_book_collection_rule/delete:
  1213. post:
  1214. consumes:
  1215. - application/json
  1216. description: 地址簿规则删除
  1217. parameters:
  1218. - description: 地址簿规则信息
  1219. in: body
  1220. name: body
  1221. required: true
  1222. schema:
  1223. $ref: '#/definitions/model.AddressBookCollectionRule'
  1224. produces:
  1225. - application/json
  1226. responses:
  1227. "200":
  1228. description: OK
  1229. schema:
  1230. $ref: '#/definitions/response.Response'
  1231. "500":
  1232. description: Internal Server Error
  1233. schema:
  1234. $ref: '#/definitions/response.Response'
  1235. security:
  1236. - token: []
  1237. summary: 地址簿规则删除
  1238. tags:
  1239. - 地址簿规则
  1240. /admin/address_book_collection_rule/detail/{id}:
  1241. get:
  1242. consumes:
  1243. - application/json
  1244. description: 地址簿规则详情
  1245. parameters:
  1246. - description: ID
  1247. in: path
  1248. name: id
  1249. required: true
  1250. type: integer
  1251. produces:
  1252. - application/json
  1253. responses:
  1254. "200":
  1255. description: OK
  1256. schema:
  1257. allOf:
  1258. - $ref: '#/definitions/response.Response'
  1259. - properties:
  1260. data:
  1261. $ref: '#/definitions/model.AddressBookCollectionRule'
  1262. type: object
  1263. "500":
  1264. description: Internal Server Error
  1265. schema:
  1266. $ref: '#/definitions/response.Response'
  1267. security:
  1268. - token: []
  1269. summary: 地址簿规则详情
  1270. tags:
  1271. - 地址簿规则
  1272. /admin/address_book_collection_rule/list:
  1273. get:
  1274. consumes:
  1275. - application/json
  1276. description: 地址簿规则列表
  1277. parameters:
  1278. - description: 页码
  1279. in: query
  1280. name: page
  1281. type: integer
  1282. - description: 页大小
  1283. in: query
  1284. name: page_size
  1285. type: integer
  1286. - description: 是否是我的
  1287. in: query
  1288. name: is_my
  1289. type: integer
  1290. - description: 用户id
  1291. in: query
  1292. name: user_id
  1293. type: integer
  1294. - description: 地址簿集合id
  1295. in: query
  1296. name: collection_id
  1297. type: integer
  1298. produces:
  1299. - application/json
  1300. responses:
  1301. "200":
  1302. description: OK
  1303. schema:
  1304. allOf:
  1305. - $ref: '#/definitions/response.Response'
  1306. - properties:
  1307. data:
  1308. $ref: '#/definitions/model.AddressBookCollectionList'
  1309. type: object
  1310. "500":
  1311. description: Internal Server Error
  1312. schema:
  1313. $ref: '#/definitions/response.Response'
  1314. security:
  1315. - token: []
  1316. summary: 地址簿规则列表
  1317. tags:
  1318. - 地址簿规则
  1319. /admin/address_book_collection_rule/update:
  1320. post:
  1321. consumes:
  1322. - application/json
  1323. description: 地址簿规则编辑
  1324. parameters:
  1325. - description: 地址簿规则信息
  1326. in: body
  1327. name: body
  1328. required: true
  1329. schema:
  1330. $ref: '#/definitions/model.AddressBookCollectionRule'
  1331. produces:
  1332. - application/json
  1333. responses:
  1334. "200":
  1335. description: OK
  1336. schema:
  1337. allOf:
  1338. - $ref: '#/definitions/response.Response'
  1339. - properties:
  1340. data:
  1341. $ref: '#/definitions/model.AddressBookCollection'
  1342. type: object
  1343. "500":
  1344. description: Internal Server Error
  1345. schema:
  1346. $ref: '#/definitions/response.Response'
  1347. security:
  1348. - token: []
  1349. summary: 地址簿规则编辑
  1350. tags:
  1351. - 地址簿规则
  1352. /admin/audit_conn/batchDelete:
  1353. post:
  1354. consumes:
  1355. - application/json
  1356. description: 链接日志批量删除
  1357. parameters:
  1358. - description: 链接日志
  1359. in: body
  1360. name: body
  1361. required: true
  1362. schema:
  1363. $ref: '#/definitions/admin.AuditConnLogIds'
  1364. produces:
  1365. - application/json
  1366. responses:
  1367. "200":
  1368. description: OK
  1369. schema:
  1370. $ref: '#/definitions/response.Response'
  1371. "500":
  1372. description: Internal Server Error
  1373. schema:
  1374. $ref: '#/definitions/response.Response'
  1375. security:
  1376. - token: []
  1377. summary: 链接日志批量删除
  1378. tags:
  1379. - 链接日志
  1380. /admin/audit_conn/delete:
  1381. post:
  1382. consumes:
  1383. - application/json
  1384. description: 链接日志删除
  1385. parameters:
  1386. - description: 链接日志信息
  1387. in: body
  1388. name: body
  1389. required: true
  1390. schema:
  1391. $ref: '#/definitions/model.AuditConn'
  1392. produces:
  1393. - application/json
  1394. responses:
  1395. "200":
  1396. description: OK
  1397. schema:
  1398. $ref: '#/definitions/response.Response'
  1399. "500":
  1400. description: Internal Server Error
  1401. schema:
  1402. $ref: '#/definitions/response.Response'
  1403. security:
  1404. - token: []
  1405. summary: 链接日志删除
  1406. tags:
  1407. - 链接日志
  1408. /admin/audit_conn/list:
  1409. get:
  1410. consumes:
  1411. - application/json
  1412. description: 链接日志列表
  1413. parameters:
  1414. - description: 页码
  1415. in: query
  1416. name: page
  1417. type: integer
  1418. - description: 页大小
  1419. in: query
  1420. name: page_size
  1421. type: integer
  1422. - description: 目标设备
  1423. in: query
  1424. name: peer_id
  1425. type: integer
  1426. - description: 来源设备
  1427. in: query
  1428. name: from_peer
  1429. type: integer
  1430. produces:
  1431. - application/json
  1432. responses:
  1433. "200":
  1434. description: OK
  1435. schema:
  1436. allOf:
  1437. - $ref: '#/definitions/response.Response'
  1438. - properties:
  1439. data:
  1440. $ref: '#/definitions/model.AuditConnList'
  1441. type: object
  1442. "500":
  1443. description: Internal Server Error
  1444. schema:
  1445. $ref: '#/definitions/response.Response'
  1446. security:
  1447. - token: []
  1448. summary: 链接日志列表
  1449. tags:
  1450. - 链接日志
  1451. /admin/audit_file/batchDelete:
  1452. post:
  1453. consumes:
  1454. - application/json
  1455. description: 文件日志批量删除
  1456. parameters:
  1457. - description: 文件日志
  1458. in: body
  1459. name: body
  1460. required: true
  1461. schema:
  1462. $ref: '#/definitions/admin.AuditFileLogIds'
  1463. produces:
  1464. - application/json
  1465. responses:
  1466. "200":
  1467. description: OK
  1468. schema:
  1469. $ref: '#/definitions/response.Response'
  1470. "500":
  1471. description: Internal Server Error
  1472. schema:
  1473. $ref: '#/definitions/response.Response'
  1474. security:
  1475. - token: []
  1476. summary: 文件日志批量删除
  1477. tags:
  1478. - 文件日志
  1479. /admin/audit_file/delete:
  1480. post:
  1481. consumes:
  1482. - application/json
  1483. description: 文件日志删除
  1484. parameters:
  1485. - description: 文件日志信息
  1486. in: body
  1487. name: body
  1488. required: true
  1489. schema:
  1490. $ref: '#/definitions/model.AuditFile'
  1491. produces:
  1492. - application/json
  1493. responses:
  1494. "200":
  1495. description: OK
  1496. schema:
  1497. $ref: '#/definitions/response.Response'
  1498. "500":
  1499. description: Internal Server Error
  1500. schema:
  1501. $ref: '#/definitions/response.Response'
  1502. security:
  1503. - token: []
  1504. summary: 文件日志删除
  1505. tags:
  1506. - 文件日志
  1507. /admin/audit_file/list:
  1508. get:
  1509. consumes:
  1510. - application/json
  1511. description: 文件日志列表
  1512. parameters:
  1513. - description: 页码
  1514. in: query
  1515. name: page
  1516. type: integer
  1517. - description: 页大小
  1518. in: query
  1519. name: page_size
  1520. type: integer
  1521. - description: 目标设备
  1522. in: query
  1523. name: peer_id
  1524. type: integer
  1525. - description: 来源设备
  1526. in: query
  1527. name: from_peer
  1528. type: integer
  1529. produces:
  1530. - application/json
  1531. responses:
  1532. "200":
  1533. description: OK
  1534. schema:
  1535. allOf:
  1536. - $ref: '#/definitions/response.Response'
  1537. - properties:
  1538. data:
  1539. $ref: '#/definitions/model.AuditFileList'
  1540. type: object
  1541. "500":
  1542. description: Internal Server Error
  1543. schema:
  1544. $ref: '#/definitions/response.Response'
  1545. security:
  1546. - token: []
  1547. summary: 文件日志列表
  1548. tags:
  1549. - 文件日志
  1550. /admin/config/admin:
  1551. get:
  1552. consumes:
  1553. - application/json
  1554. description: ADMIN服务配置
  1555. produces:
  1556. - application/json
  1557. responses:
  1558. "200":
  1559. description: OK
  1560. schema:
  1561. $ref: '#/definitions/response.Response'
  1562. "500":
  1563. description: Internal Server Error
  1564. schema:
  1565. $ref: '#/definitions/response.Response'
  1566. security:
  1567. - token: []
  1568. summary: ADMIN服务配置
  1569. tags:
  1570. - ADMIN
  1571. /admin/config/app:
  1572. get:
  1573. consumes:
  1574. - application/json
  1575. description: APP服务配置
  1576. produces:
  1577. - application/json
  1578. responses:
  1579. "200":
  1580. description: OK
  1581. schema:
  1582. $ref: '#/definitions/response.Response'
  1583. "500":
  1584. description: Internal Server Error
  1585. schema:
  1586. $ref: '#/definitions/response.Response'
  1587. security:
  1588. - token: []
  1589. summary: APP服务配置
  1590. tags:
  1591. - ADMIN
  1592. /admin/config/server:
  1593. get:
  1594. consumes:
  1595. - application/json
  1596. description: 服务配置,给webclient提供api-server
  1597. produces:
  1598. - application/json
  1599. responses:
  1600. "200":
  1601. description: OK
  1602. schema:
  1603. $ref: '#/definitions/response.Response'
  1604. "500":
  1605. description: Internal Server Error
  1606. schema:
  1607. $ref: '#/definitions/response.Response'
  1608. security:
  1609. - token: []
  1610. summary: RUSTDESK服务配置
  1611. tags:
  1612. - ADMIN
  1613. /admin/file/oss_token:
  1614. get:
  1615. consumes:
  1616. - application/json
  1617. description: 获取ossToken
  1618. produces:
  1619. - application/json
  1620. responses:
  1621. "200":
  1622. description: OK
  1623. schema:
  1624. $ref: '#/definitions/response.Response'
  1625. "500":
  1626. description: Internal Server Error
  1627. schema:
  1628. $ref: '#/definitions/response.Response'
  1629. security:
  1630. - token: []
  1631. summary: 获取ossToken
  1632. tags:
  1633. - 文件
  1634. /admin/file/upload:
  1635. post:
  1636. consumes:
  1637. - multipart/form-data
  1638. description: 上传文件到本地
  1639. parameters:
  1640. - description: 上传文件示例
  1641. in: formData
  1642. name: file
  1643. required: true
  1644. type: file
  1645. produces:
  1646. - application/json
  1647. responses:
  1648. "200":
  1649. description: OK
  1650. schema:
  1651. $ref: '#/definitions/response.Response'
  1652. "500":
  1653. description: Internal Server Error
  1654. schema:
  1655. $ref: '#/definitions/response.Response'
  1656. security:
  1657. - token: []
  1658. summary: 上传文件到本地
  1659. tags:
  1660. - 文件
  1661. /admin/group/create:
  1662. post:
  1663. consumes:
  1664. - application/json
  1665. description: 创建群组
  1666. parameters:
  1667. - description: 群组信息
  1668. in: body
  1669. name: body
  1670. required: true
  1671. schema:
  1672. $ref: '#/definitions/admin.GroupForm'
  1673. produces:
  1674. - application/json
  1675. responses:
  1676. "200":
  1677. description: OK
  1678. schema:
  1679. allOf:
  1680. - $ref: '#/definitions/response.Response'
  1681. - properties:
  1682. data:
  1683. $ref: '#/definitions/model.Group'
  1684. type: object
  1685. "500":
  1686. description: Internal Server Error
  1687. schema:
  1688. $ref: '#/definitions/response.Response'
  1689. security:
  1690. - token: []
  1691. summary: 创建群组
  1692. tags:
  1693. - 群组
  1694. /admin/group/delete:
  1695. post:
  1696. consumes:
  1697. - application/json
  1698. description: 群组删除
  1699. parameters:
  1700. - description: 群组信息
  1701. in: body
  1702. name: body
  1703. required: true
  1704. schema:
  1705. $ref: '#/definitions/admin.GroupForm'
  1706. produces:
  1707. - application/json
  1708. responses:
  1709. "200":
  1710. description: OK
  1711. schema:
  1712. $ref: '#/definitions/response.Response'
  1713. "500":
  1714. description: Internal Server Error
  1715. schema:
  1716. $ref: '#/definitions/response.Response'
  1717. security:
  1718. - token: []
  1719. summary: 群组删除
  1720. tags:
  1721. - 群组
  1722. /admin/group/detail/{id}:
  1723. get:
  1724. consumes:
  1725. - application/json
  1726. description: 群组详情
  1727. parameters:
  1728. - description: ID
  1729. in: path
  1730. name: id
  1731. required: true
  1732. type: integer
  1733. produces:
  1734. - application/json
  1735. responses:
  1736. "200":
  1737. description: OK
  1738. schema:
  1739. allOf:
  1740. - $ref: '#/definitions/response.Response'
  1741. - properties:
  1742. data:
  1743. $ref: '#/definitions/model.Group'
  1744. type: object
  1745. "500":
  1746. description: Internal Server Error
  1747. schema:
  1748. $ref: '#/definitions/response.Response'
  1749. security:
  1750. - token: []
  1751. summary: 群组详情
  1752. tags:
  1753. - 群组
  1754. /admin/group/list:
  1755. get:
  1756. consumes:
  1757. - application/json
  1758. description: 群组列表
  1759. parameters:
  1760. - description: 页码
  1761. in: query
  1762. name: page
  1763. type: integer
  1764. - description: 页大小
  1765. in: query
  1766. name: page_size
  1767. type: integer
  1768. produces:
  1769. - application/json
  1770. responses:
  1771. "200":
  1772. description: OK
  1773. schema:
  1774. allOf:
  1775. - $ref: '#/definitions/response.Response'
  1776. - properties:
  1777. data:
  1778. $ref: '#/definitions/model.GroupList'
  1779. type: object
  1780. "500":
  1781. description: Internal Server Error
  1782. schema:
  1783. $ref: '#/definitions/response.Response'
  1784. security:
  1785. - token: []
  1786. summary: 群组列表
  1787. tags:
  1788. - 群组
  1789. /admin/group/update:
  1790. post:
  1791. consumes:
  1792. - application/json
  1793. description: 群组编辑
  1794. parameters:
  1795. - description: 群组信息
  1796. in: body
  1797. name: body
  1798. required: true
  1799. schema:
  1800. $ref: '#/definitions/admin.GroupForm'
  1801. produces:
  1802. - application/json
  1803. responses:
  1804. "200":
  1805. description: OK
  1806. schema:
  1807. allOf:
  1808. - $ref: '#/definitions/response.Response'
  1809. - properties:
  1810. data:
  1811. $ref: '#/definitions/model.Group'
  1812. type: object
  1813. "500":
  1814. description: Internal Server Error
  1815. schema:
  1816. $ref: '#/definitions/response.Response'
  1817. security:
  1818. - token: []
  1819. summary: 群组编辑
  1820. tags:
  1821. - 群组
  1822. /admin/login:
  1823. post:
  1824. consumes:
  1825. - application/json
  1826. description: 登录
  1827. parameters:
  1828. - description: 登录信息
  1829. in: body
  1830. name: body
  1831. required: true
  1832. schema:
  1833. $ref: '#/definitions/github_com_lejianwen_rustdesk-api_http_request_admin.Login'
  1834. produces:
  1835. - application/json
  1836. responses:
  1837. "200":
  1838. description: OK
  1839. schema:
  1840. allOf:
  1841. - $ref: '#/definitions/response.Response'
  1842. - properties:
  1843. data:
  1844. $ref: '#/definitions/admin.LoginPayload'
  1845. type: object
  1846. "500":
  1847. description: Internal Server Error
  1848. schema:
  1849. $ref: '#/definitions/response.Response'
  1850. security:
  1851. - token: []
  1852. summary: 登录
  1853. tags:
  1854. - 登录
  1855. /admin/login-options:
  1856. post:
  1857. consumes:
  1858. - application/json
  1859. description: 登录选项
  1860. produces:
  1861. - application/json
  1862. responses:
  1863. "200":
  1864. description: OK
  1865. schema:
  1866. items:
  1867. type: string
  1868. type: array
  1869. "500":
  1870. description: Internal Server Error
  1871. schema:
  1872. $ref: '#/definitions/response.ErrorResponse'
  1873. summary: 登录选项
  1874. tags:
  1875. - 登录
  1876. /admin/login_log/batchDelete:
  1877. post:
  1878. consumes:
  1879. - application/json
  1880. description: 登录日志批量删除
  1881. parameters:
  1882. - description: 登录日志
  1883. in: body
  1884. name: body
  1885. required: true
  1886. schema:
  1887. $ref: '#/definitions/admin.LoginLogIds'
  1888. produces:
  1889. - application/json
  1890. responses:
  1891. "200":
  1892. description: OK
  1893. schema:
  1894. $ref: '#/definitions/response.Response'
  1895. "500":
  1896. description: Internal Server Error
  1897. schema:
  1898. $ref: '#/definitions/response.Response'
  1899. security:
  1900. - token: []
  1901. summary: 登录日志批量删除
  1902. tags:
  1903. - 登录日志
  1904. /admin/login_log/delete:
  1905. post:
  1906. consumes:
  1907. - application/json
  1908. description: 登录日志删除
  1909. parameters:
  1910. - description: 登录日志信息
  1911. in: body
  1912. name: body
  1913. required: true
  1914. schema:
  1915. $ref: '#/definitions/model.LoginLog'
  1916. produces:
  1917. - application/json
  1918. responses:
  1919. "200":
  1920. description: OK
  1921. schema:
  1922. $ref: '#/definitions/response.Response'
  1923. "500":
  1924. description: Internal Server Error
  1925. schema:
  1926. $ref: '#/definitions/response.Response'
  1927. security:
  1928. - token: []
  1929. summary: 登录日志删除
  1930. tags:
  1931. - 登录日志
  1932. /admin/login_log/detail/{id}:
  1933. get:
  1934. consumes:
  1935. - application/json
  1936. description: 登录日志详情
  1937. parameters:
  1938. - description: ID
  1939. in: path
  1940. name: id
  1941. required: true
  1942. type: integer
  1943. produces:
  1944. - application/json
  1945. responses:
  1946. "200":
  1947. description: OK
  1948. schema:
  1949. allOf:
  1950. - $ref: '#/definitions/response.Response'
  1951. - properties:
  1952. data:
  1953. $ref: '#/definitions/model.LoginLog'
  1954. type: object
  1955. "500":
  1956. description: Internal Server Error
  1957. schema:
  1958. $ref: '#/definitions/response.Response'
  1959. security:
  1960. - token: []
  1961. summary: 登录日志详情
  1962. tags:
  1963. - 登录日志
  1964. /admin/login_log/list:
  1965. get:
  1966. consumes:
  1967. - application/json
  1968. description: 登录日志列表
  1969. parameters:
  1970. - description: 页码
  1971. in: query
  1972. name: page
  1973. type: integer
  1974. - description: 页大小
  1975. in: query
  1976. name: page_size
  1977. type: integer
  1978. - description: 用户ID
  1979. in: query
  1980. name: user_id
  1981. type: integer
  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.LoginLogList'
  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/logout:
  2004. post:
  2005. consumes:
  2006. - application/json
  2007. description: 登出
  2008. produces:
  2009. - application/json
  2010. responses:
  2011. "200":
  2012. description: OK
  2013. schema:
  2014. $ref: '#/definitions/response.Response'
  2015. "500":
  2016. description: Internal Server Error
  2017. schema:
  2018. $ref: '#/definitions/response.Response'
  2019. summary: 登出
  2020. tags:
  2021. - 登录
  2022. /admin/my/address_book/create:
  2023. post:
  2024. consumes:
  2025. - application/json
  2026. description: 创建地址簿
  2027. parameters:
  2028. - description: 地址簿信息
  2029. in: body
  2030. name: body
  2031. required: true
  2032. schema:
  2033. $ref: '#/definitions/admin.AddressBookForm'
  2034. produces:
  2035. - application/json
  2036. responses:
  2037. "200":
  2038. description: OK
  2039. schema:
  2040. allOf:
  2041. - $ref: '#/definitions/response.Response'
  2042. - properties:
  2043. data:
  2044. $ref: '#/definitions/model.AddressBook'
  2045. type: object
  2046. "500":
  2047. description: Internal Server Error
  2048. schema:
  2049. $ref: '#/definitions/response.Response'
  2050. security:
  2051. - token: []
  2052. summary: 创建地址簿
  2053. tags:
  2054. - 我的地址簿
  2055. /admin/my/address_book/delete:
  2056. post:
  2057. consumes:
  2058. - application/json
  2059. description: 地址簿删除
  2060. parameters:
  2061. - description: 地址簿信息
  2062. in: body
  2063. name: body
  2064. required: true
  2065. schema:
  2066. $ref: '#/definitions/admin.AddressBookForm'
  2067. produces:
  2068. - application/json
  2069. responses:
  2070. "200":
  2071. description: OK
  2072. schema:
  2073. $ref: '#/definitions/response.Response'
  2074. "500":
  2075. description: Internal Server Error
  2076. schema:
  2077. $ref: '#/definitions/response.Response'
  2078. security:
  2079. - token: []
  2080. summary: 地址簿删除
  2081. tags:
  2082. - 我的地址簿
  2083. /admin/my/address_book/list:
  2084. get:
  2085. consumes:
  2086. - application/json
  2087. description: 地址簿列表
  2088. parameters:
  2089. - description: 页码
  2090. in: query
  2091. name: page
  2092. type: integer
  2093. - description: 页大小
  2094. in: query
  2095. name: page_size
  2096. type: integer
  2097. - description: 用户id
  2098. in: query
  2099. name: user_id
  2100. type: integer
  2101. produces:
  2102. - application/json
  2103. responses:
  2104. "200":
  2105. description: OK
  2106. schema:
  2107. allOf:
  2108. - $ref: '#/definitions/response.Response'
  2109. - properties:
  2110. data:
  2111. $ref: '#/definitions/model.AddressBookList'
  2112. type: object
  2113. "500":
  2114. description: Internal Server Error
  2115. schema:
  2116. $ref: '#/definitions/response.Response'
  2117. security:
  2118. - token: []
  2119. summary: 地址簿列表
  2120. tags:
  2121. - 我的地址簿
  2122. /admin/my/address_book/update:
  2123. post:
  2124. consumes:
  2125. - application/json
  2126. description: 地址簿编辑
  2127. parameters:
  2128. - description: 地址簿信息
  2129. in: body
  2130. name: body
  2131. required: true
  2132. schema:
  2133. $ref: '#/definitions/admin.AddressBookForm'
  2134. produces:
  2135. - application/json
  2136. responses:
  2137. "200":
  2138. description: OK
  2139. schema:
  2140. allOf:
  2141. - $ref: '#/definitions/response.Response'
  2142. - properties:
  2143. data:
  2144. $ref: '#/definitions/model.AddressBook'
  2145. type: object
  2146. "500":
  2147. description: Internal Server Error
  2148. schema:
  2149. $ref: '#/definitions/response.Response'
  2150. security:
  2151. - token: []
  2152. summary: 地址簿编辑
  2153. tags:
  2154. - 我的地址簿
  2155. /admin/my/address_book_collection/create:
  2156. post:
  2157. consumes:
  2158. - application/json
  2159. description: 创建地址簿名称
  2160. parameters:
  2161. - description: 地址簿名称信息
  2162. in: body
  2163. name: body
  2164. required: true
  2165. schema:
  2166. $ref: '#/definitions/model.AddressBookCollection'
  2167. produces:
  2168. - application/json
  2169. responses:
  2170. "200":
  2171. description: OK
  2172. schema:
  2173. allOf:
  2174. - $ref: '#/definitions/response.Response'
  2175. - properties:
  2176. data:
  2177. $ref: '#/definitions/model.AddressBookCollection'
  2178. type: object
  2179. "500":
  2180. description: Internal Server Error
  2181. schema:
  2182. $ref: '#/definitions/response.Response'
  2183. security:
  2184. - token: []
  2185. summary: 创建地址簿名称
  2186. tags:
  2187. - 我的地址簿名称
  2188. /admin/my/address_book_collection/delete:
  2189. post:
  2190. consumes:
  2191. - application/json
  2192. description: 地址簿名称删除
  2193. parameters:
  2194. - description: 地址簿名称信息
  2195. in: body
  2196. name: body
  2197. required: true
  2198. schema:
  2199. $ref: '#/definitions/model.AddressBookCollection'
  2200. produces:
  2201. - application/json
  2202. responses:
  2203. "200":
  2204. description: OK
  2205. schema:
  2206. $ref: '#/definitions/response.Response'
  2207. "500":
  2208. description: Internal Server Error
  2209. schema:
  2210. $ref: '#/definitions/response.Response'
  2211. security:
  2212. - token: []
  2213. summary: 地址簿名称删除
  2214. tags:
  2215. - 我的地址簿名称
  2216. /admin/my/address_book_collection/list:
  2217. get:
  2218. consumes:
  2219. - application/json
  2220. description: 地址簿名称列表
  2221. parameters:
  2222. - description: 页码
  2223. in: query
  2224. name: page
  2225. type: integer
  2226. - description: 页大小
  2227. in: query
  2228. name: page_size
  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.AddressBookCollectionList'
  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/my/address_book_collection/update:
  2252. post:
  2253. consumes:
  2254. - application/json
  2255. description: 地址簿名称编辑
  2256. parameters:
  2257. - description: 地址簿名称信息
  2258. in: body
  2259. name: body
  2260. required: true
  2261. schema:
  2262. $ref: '#/definitions/model.AddressBookCollection'
  2263. produces:
  2264. - application/json
  2265. responses:
  2266. "200":
  2267. description: OK
  2268. schema:
  2269. allOf:
  2270. - $ref: '#/definitions/response.Response'
  2271. - properties:
  2272. data:
  2273. $ref: '#/definitions/model.AddressBookCollection'
  2274. type: object
  2275. "500":
  2276. description: Internal Server Error
  2277. schema:
  2278. $ref: '#/definitions/response.Response'
  2279. security:
  2280. - token: []
  2281. summary: 地址簿名称编辑
  2282. tags:
  2283. - 我的地址簿名称
  2284. /admin/my/address_book_collection_rule/create:
  2285. post:
  2286. consumes:
  2287. - application/json
  2288. description: 创建地址簿规则
  2289. parameters:
  2290. - description: 地址簿规则信息
  2291. in: body
  2292. name: body
  2293. required: true
  2294. schema:
  2295. $ref: '#/definitions/model.AddressBookCollectionRule'
  2296. produces:
  2297. - application/json
  2298. responses:
  2299. "200":
  2300. description: OK
  2301. schema:
  2302. allOf:
  2303. - $ref: '#/definitions/response.Response'
  2304. - properties:
  2305. data:
  2306. $ref: '#/definitions/model.AddressBookCollection'
  2307. type: object
  2308. "500":
  2309. description: Internal Server Error
  2310. schema:
  2311. $ref: '#/definitions/response.Response'
  2312. security:
  2313. - token: []
  2314. summary: 创建地址簿规则
  2315. tags:
  2316. - 我的地址簿规则
  2317. /admin/my/address_book_collection_rule/delete:
  2318. post:
  2319. consumes:
  2320. - application/json
  2321. description: 地址簿规则删除
  2322. parameters:
  2323. - description: 地址簿规则信息
  2324. in: body
  2325. name: body
  2326. required: true
  2327. schema:
  2328. $ref: '#/definitions/model.AddressBookCollectionRule'
  2329. produces:
  2330. - application/json
  2331. responses:
  2332. "200":
  2333. description: OK
  2334. schema:
  2335. $ref: '#/definitions/response.Response'
  2336. "500":
  2337. description: Internal Server Error
  2338. schema:
  2339. $ref: '#/definitions/response.Response'
  2340. security:
  2341. - token: []
  2342. summary: 地址簿规则删除
  2343. tags:
  2344. - 我的地址簿规则
  2345. /admin/my/address_book_collection_rule/list:
  2346. get:
  2347. consumes:
  2348. - application/json
  2349. description: 地址簿规则列表
  2350. parameters:
  2351. - description: 页码
  2352. in: query
  2353. name: page
  2354. type: integer
  2355. - description: 页大小
  2356. in: query
  2357. name: page_size
  2358. type: integer
  2359. - description: 是否是我的
  2360. in: query
  2361. name: is_my
  2362. type: integer
  2363. - description: 用户id
  2364. in: query
  2365. name: user_id
  2366. type: integer
  2367. - description: 地址簿集合id
  2368. in: query
  2369. name: collection_id
  2370. type: integer
  2371. produces:
  2372. - application/json
  2373. responses:
  2374. "200":
  2375. description: OK
  2376. schema:
  2377. allOf:
  2378. - $ref: '#/definitions/response.Response'
  2379. - properties:
  2380. data:
  2381. $ref: '#/definitions/model.AddressBookCollectionList'
  2382. type: object
  2383. "500":
  2384. description: Internal Server Error
  2385. schema:
  2386. $ref: '#/definitions/response.Response'
  2387. security:
  2388. - token: []
  2389. summary: 地址簿规则列表
  2390. tags:
  2391. - 我的地址簿规则
  2392. /admin/my/address_book_collection_rule/update:
  2393. post:
  2394. consumes:
  2395. - application/json
  2396. description: 地址簿规则编辑
  2397. parameters:
  2398. - description: 地址簿规则信息
  2399. in: body
  2400. name: body
  2401. required: true
  2402. schema:
  2403. $ref: '#/definitions/model.AddressBookCollectionRule'
  2404. produces:
  2405. - application/json
  2406. responses:
  2407. "200":
  2408. description: OK
  2409. schema:
  2410. allOf:
  2411. - $ref: '#/definitions/response.Response'
  2412. - properties:
  2413. data:
  2414. $ref: '#/definitions/model.AddressBookCollection'
  2415. type: object
  2416. "500":
  2417. description: Internal Server Error
  2418. schema:
  2419. $ref: '#/definitions/response.Response'
  2420. security:
  2421. - token: []
  2422. summary: 地址簿规则编辑
  2423. tags:
  2424. - 我的地址簿规则
  2425. /admin/my/login_log/batchDelete:
  2426. post:
  2427. consumes:
  2428. - application/json
  2429. description: 登录日志批量删除
  2430. parameters:
  2431. - description: 登录日志
  2432. in: body
  2433. name: body
  2434. required: true
  2435. schema:
  2436. $ref: '#/definitions/admin.LoginLogIds'
  2437. produces:
  2438. - application/json
  2439. responses:
  2440. "200":
  2441. description: OK
  2442. schema:
  2443. $ref: '#/definitions/response.Response'
  2444. "500":
  2445. description: Internal Server Error
  2446. schema:
  2447. $ref: '#/definitions/response.Response'
  2448. security:
  2449. - token: []
  2450. summary: 登录日志批量删除
  2451. tags:
  2452. - 我的登录日志
  2453. /admin/my/login_log/delete:
  2454. post:
  2455. consumes:
  2456. - application/json
  2457. description: 登录日志删除
  2458. parameters:
  2459. - description: 登录日志信息
  2460. in: body
  2461. name: body
  2462. required: true
  2463. schema:
  2464. $ref: '#/definitions/model.LoginLog'
  2465. produces:
  2466. - application/json
  2467. responses:
  2468. "200":
  2469. description: OK
  2470. schema:
  2471. $ref: '#/definitions/response.Response'
  2472. "500":
  2473. description: Internal Server Error
  2474. schema:
  2475. $ref: '#/definitions/response.Response'
  2476. security:
  2477. - token: []
  2478. summary: 登录日志删除
  2479. tags:
  2480. - 我的登录日志
  2481. /admin/my/login_log/list:
  2482. get:
  2483. consumes:
  2484. - application/json
  2485. description: 登录日志列表
  2486. parameters:
  2487. - description: 页码
  2488. in: query
  2489. name: page
  2490. type: integer
  2491. - description: 页大小
  2492. in: query
  2493. name: page_size
  2494. type: integer
  2495. - description: 用户ID
  2496. in: query
  2497. name: user_id
  2498. type: integer
  2499. produces:
  2500. - application/json
  2501. responses:
  2502. "200":
  2503. description: OK
  2504. schema:
  2505. allOf:
  2506. - $ref: '#/definitions/response.Response'
  2507. - properties:
  2508. data:
  2509. $ref: '#/definitions/model.LoginLogList'
  2510. type: object
  2511. "500":
  2512. description: Internal Server Error
  2513. schema:
  2514. $ref: '#/definitions/response.Response'
  2515. security:
  2516. - token: []
  2517. summary: 登录日志列表
  2518. tags:
  2519. - 我的登录日志
  2520. /admin/my/peer/list:
  2521. get:
  2522. consumes:
  2523. - application/json
  2524. description: 设备列表
  2525. parameters:
  2526. - description: 页码
  2527. in: query
  2528. name: page
  2529. type: integer
  2530. - description: 页大小
  2531. in: query
  2532. name: page_size
  2533. type: integer
  2534. - description: 时间
  2535. in: query
  2536. name: time_ago
  2537. type: integer
  2538. - description: ID
  2539. in: query
  2540. name: id
  2541. type: string
  2542. - description: 主机名
  2543. in: query
  2544. name: hostname
  2545. type: string
  2546. - description: uuids 用逗号分隔
  2547. in: query
  2548. name: uuids
  2549. type: string
  2550. produces:
  2551. - application/json
  2552. responses:
  2553. "200":
  2554. description: OK
  2555. schema:
  2556. allOf:
  2557. - $ref: '#/definitions/response.Response'
  2558. - properties:
  2559. data:
  2560. $ref: '#/definitions/model.PeerList'
  2561. type: object
  2562. "500":
  2563. description: Internal Server Error
  2564. schema:
  2565. $ref: '#/definitions/response.Response'
  2566. security:
  2567. - token: []
  2568. summary: 设备列表
  2569. tags:
  2570. - 我的设备
  2571. /admin/my/share_record/batchDelete:
  2572. post:
  2573. consumes:
  2574. - application/json
  2575. description: 批量删除我的分享记录
  2576. parameters:
  2577. - description: id
  2578. in: body
  2579. name: body
  2580. required: true
  2581. schema:
  2582. $ref: '#/definitions/admin.PeerShareRecordBatchDeleteForm'
  2583. produces:
  2584. - application/json
  2585. responses:
  2586. "200":
  2587. description: OK
  2588. schema:
  2589. $ref: '#/definitions/response.Response'
  2590. "500":
  2591. description: Internal Server Error
  2592. schema:
  2593. $ref: '#/definitions/response.Response'
  2594. security:
  2595. - token: []
  2596. summary: 批量删除我的分享记录
  2597. tags:
  2598. - 我的
  2599. /admin/my/share_record/delete:
  2600. post:
  2601. consumes:
  2602. - application/json
  2603. description: 分享记录删除
  2604. parameters:
  2605. - description: 分享记录信息
  2606. in: body
  2607. name: body
  2608. required: true
  2609. schema:
  2610. $ref: '#/definitions/admin.ShareRecordForm'
  2611. produces:
  2612. - application/json
  2613. responses:
  2614. "200":
  2615. description: OK
  2616. schema:
  2617. $ref: '#/definitions/response.Response'
  2618. "500":
  2619. description: Internal Server Error
  2620. schema:
  2621. $ref: '#/definitions/response.Response'
  2622. security:
  2623. - token: []
  2624. summary: 分享记录删除
  2625. tags:
  2626. - 我的分享记录
  2627. /admin/my/share_record/list:
  2628. get:
  2629. consumes:
  2630. - application/json
  2631. description: 分享记录列表
  2632. parameters:
  2633. - description: 页码
  2634. in: query
  2635. name: page
  2636. type: integer
  2637. - description: 页大小
  2638. in: query
  2639. name: page_size
  2640. type: integer
  2641. produces:
  2642. - application/json
  2643. responses:
  2644. "200":
  2645. description: OK
  2646. schema:
  2647. $ref: '#/definitions/response.Response'
  2648. "500":
  2649. description: Internal Server Error
  2650. schema:
  2651. $ref: '#/definitions/response.Response'
  2652. security:
  2653. - token: []
  2654. summary: 分享记录列表
  2655. tags:
  2656. - 我的分享记录
  2657. /admin/my/tag/create:
  2658. post:
  2659. consumes:
  2660. - application/json
  2661. description: 创建标签
  2662. parameters:
  2663. - description: 标签信息
  2664. in: body
  2665. name: body
  2666. required: true
  2667. schema:
  2668. $ref: '#/definitions/admin.TagForm'
  2669. produces:
  2670. - application/json
  2671. responses:
  2672. "200":
  2673. description: OK
  2674. schema:
  2675. allOf:
  2676. - $ref: '#/definitions/response.Response'
  2677. - properties:
  2678. data:
  2679. $ref: '#/definitions/model.Tag'
  2680. type: object
  2681. "500":
  2682. description: Internal Server Error
  2683. schema:
  2684. $ref: '#/definitions/response.Response'
  2685. security:
  2686. - token: []
  2687. summary: 创建标签
  2688. tags:
  2689. - 我的标签
  2690. /admin/my/tag/delete:
  2691. post:
  2692. consumes:
  2693. - application/json
  2694. description: 标签删除
  2695. parameters:
  2696. - description: 标签信息
  2697. in: body
  2698. name: body
  2699. required: true
  2700. schema:
  2701. $ref: '#/definitions/admin.TagForm'
  2702. produces:
  2703. - application/json
  2704. responses:
  2705. "200":
  2706. description: OK
  2707. schema:
  2708. $ref: '#/definitions/response.Response'
  2709. "500":
  2710. description: Internal Server Error
  2711. schema:
  2712. $ref: '#/definitions/response.Response'
  2713. security:
  2714. - token: []
  2715. summary: 标签删除
  2716. tags:
  2717. - 标签
  2718. /admin/my/tag/list:
  2719. get:
  2720. consumes:
  2721. - application/json
  2722. description: 标签列表
  2723. parameters:
  2724. - description: 页码
  2725. in: query
  2726. name: page
  2727. type: integer
  2728. - description: 页大小
  2729. in: query
  2730. name: page_size
  2731. type: integer
  2732. - description: 是否是我的
  2733. in: query
  2734. name: is_my
  2735. type: integer
  2736. - description: 用户id
  2737. in: query
  2738. name: user_id
  2739. type: integer
  2740. produces:
  2741. - application/json
  2742. responses:
  2743. "200":
  2744. description: OK
  2745. schema:
  2746. allOf:
  2747. - $ref: '#/definitions/response.Response'
  2748. - properties:
  2749. data:
  2750. $ref: '#/definitions/model.TagList'
  2751. type: object
  2752. "500":
  2753. description: Internal Server Error
  2754. schema:
  2755. $ref: '#/definitions/response.Response'
  2756. security:
  2757. - token: []
  2758. summary: 标签列表
  2759. tags:
  2760. - 我的标签
  2761. /admin/my/tag/update:
  2762. post:
  2763. consumes:
  2764. - application/json
  2765. description: 标签编辑
  2766. parameters:
  2767. - description: 标签信息
  2768. in: body
  2769. name: body
  2770. required: true
  2771. schema:
  2772. $ref: '#/definitions/admin.TagForm'
  2773. produces:
  2774. - application/json
  2775. responses:
  2776. "200":
  2777. description: OK
  2778. schema:
  2779. allOf:
  2780. - $ref: '#/definitions/response.Response'
  2781. - properties:
  2782. data:
  2783. $ref: '#/definitions/model.Tag'
  2784. type: object
  2785. "500":
  2786. description: Internal Server Error
  2787. schema:
  2788. $ref: '#/definitions/response.Response'
  2789. security:
  2790. - token: []
  2791. summary: 标签编辑
  2792. tags:
  2793. - 我的标签
  2794. /admin/oauth/create:
  2795. post:
  2796. consumes:
  2797. - application/json
  2798. description: 创建Oauth
  2799. parameters:
  2800. - description: Oauth信息
  2801. in: body
  2802. name: body
  2803. required: true
  2804. schema:
  2805. $ref: '#/definitions/admin.OauthForm'
  2806. produces:
  2807. - application/json
  2808. responses:
  2809. "200":
  2810. description: OK
  2811. schema:
  2812. allOf:
  2813. - $ref: '#/definitions/response.Response'
  2814. - properties:
  2815. data:
  2816. $ref: '#/definitions/model.Oauth'
  2817. type: object
  2818. "500":
  2819. description: Internal Server Error
  2820. schema:
  2821. $ref: '#/definitions/response.Response'
  2822. security:
  2823. - token: []
  2824. summary: 创建Oauth
  2825. tags:
  2826. - Oauth
  2827. /admin/oauth/delete:
  2828. post:
  2829. consumes:
  2830. - application/json
  2831. description: Oauth删除
  2832. parameters:
  2833. - description: Oauth信息
  2834. in: body
  2835. name: body
  2836. required: true
  2837. schema:
  2838. $ref: '#/definitions/admin.OauthForm'
  2839. produces:
  2840. - application/json
  2841. responses:
  2842. "200":
  2843. description: OK
  2844. schema:
  2845. $ref: '#/definitions/response.Response'
  2846. "500":
  2847. description: Internal Server Error
  2848. schema:
  2849. $ref: '#/definitions/response.Response'
  2850. security:
  2851. - token: []
  2852. summary: Oauth删除
  2853. tags:
  2854. - Oauth
  2855. /admin/oauth/detail/{id}:
  2856. get:
  2857. consumes:
  2858. - application/json
  2859. description: Oauth详情
  2860. parameters:
  2861. - description: ID
  2862. in: path
  2863. name: id
  2864. required: true
  2865. type: integer
  2866. produces:
  2867. - application/json
  2868. responses:
  2869. "200":
  2870. description: OK
  2871. schema:
  2872. allOf:
  2873. - $ref: '#/definitions/response.Response'
  2874. - properties:
  2875. data:
  2876. $ref: '#/definitions/model.Oauth'
  2877. type: object
  2878. "500":
  2879. description: Internal Server Error
  2880. schema:
  2881. $ref: '#/definitions/response.Response'
  2882. security:
  2883. - token: []
  2884. summary: Oauth详情
  2885. tags:
  2886. - Oauth
  2887. /admin/oauth/list:
  2888. get:
  2889. consumes:
  2890. - application/json
  2891. description: Oauth列表
  2892. parameters:
  2893. - description: 页码
  2894. in: query
  2895. name: page
  2896. type: integer
  2897. - description: 页大小
  2898. in: query
  2899. name: page_size
  2900. type: integer
  2901. produces:
  2902. - application/json
  2903. responses:
  2904. "200":
  2905. description: OK
  2906. schema:
  2907. allOf:
  2908. - $ref: '#/definitions/response.Response'
  2909. - properties:
  2910. data:
  2911. $ref: '#/definitions/model.OauthList'
  2912. type: object
  2913. "500":
  2914. description: Internal Server Error
  2915. schema:
  2916. $ref: '#/definitions/response.Response'
  2917. security:
  2918. - token: []
  2919. summary: Oauth列表
  2920. tags:
  2921. - Oauth
  2922. /admin/oauth/update:
  2923. post:
  2924. consumes:
  2925. - application/json
  2926. description: Oauth编辑
  2927. parameters:
  2928. - description: Oauth信息
  2929. in: body
  2930. name: body
  2931. required: true
  2932. schema:
  2933. $ref: '#/definitions/admin.OauthForm'
  2934. produces:
  2935. - application/json
  2936. responses:
  2937. "200":
  2938. description: OK
  2939. schema:
  2940. allOf:
  2941. - $ref: '#/definitions/response.Response'
  2942. - properties:
  2943. data:
  2944. $ref: '#/definitions/model.OauthList'
  2945. type: object
  2946. "500":
  2947. description: Internal Server Error
  2948. schema:
  2949. $ref: '#/definitions/response.Response'
  2950. security:
  2951. - token: []
  2952. summary: Oauth编辑
  2953. tags:
  2954. - Oauth
  2955. /admin/oidc/auth:
  2956. post:
  2957. consumes:
  2958. - application/json
  2959. description: OidcAuth
  2960. produces:
  2961. - application/json
  2962. responses: {}
  2963. summary: OidcAuth
  2964. tags:
  2965. - Oauth
  2966. /admin/oidc/auth-query:
  2967. get:
  2968. consumes:
  2969. - application/json
  2970. description: OidcAuthQuery
  2971. produces:
  2972. - application/json
  2973. responses:
  2974. "200":
  2975. description: OK
  2976. schema:
  2977. allOf:
  2978. - $ref: '#/definitions/response.Response'
  2979. - properties:
  2980. data:
  2981. $ref: '#/definitions/admin.LoginPayload'
  2982. type: object
  2983. "500":
  2984. description: Internal Server Error
  2985. schema:
  2986. $ref: '#/definitions/response.Response'
  2987. summary: OidcAuthQuery
  2988. tags:
  2989. - Oauth
  2990. /admin/peer/batchDelete:
  2991. post:
  2992. consumes:
  2993. - application/json
  2994. description: 批量设备删除
  2995. parameters:
  2996. - description: 设备id
  2997. in: body
  2998. name: body
  2999. required: true
  3000. schema:
  3001. $ref: '#/definitions/admin.PeerBatchDeleteForm'
  3002. produces:
  3003. - application/json
  3004. responses:
  3005. "200":
  3006. description: OK
  3007. schema:
  3008. $ref: '#/definitions/response.Response'
  3009. "500":
  3010. description: Internal Server Error
  3011. schema:
  3012. $ref: '#/definitions/response.Response'
  3013. security:
  3014. - token: []
  3015. summary: 批量设备删除
  3016. tags:
  3017. - 设备
  3018. /admin/peer/create:
  3019. post:
  3020. consumes:
  3021. - application/json
  3022. description: 创建设备
  3023. parameters:
  3024. - description: 设备信息
  3025. in: body
  3026. name: body
  3027. required: true
  3028. schema:
  3029. $ref: '#/definitions/admin.PeerForm'
  3030. produces:
  3031. - application/json
  3032. responses:
  3033. "200":
  3034. description: OK
  3035. schema:
  3036. allOf:
  3037. - $ref: '#/definitions/response.Response'
  3038. - properties:
  3039. data:
  3040. $ref: '#/definitions/model.Peer'
  3041. type: object
  3042. "500":
  3043. description: Internal Server Error
  3044. schema:
  3045. $ref: '#/definitions/response.Response'
  3046. security:
  3047. - token: []
  3048. summary: 创建设备
  3049. tags:
  3050. - 设备
  3051. /admin/peer/delete:
  3052. post:
  3053. consumes:
  3054. - application/json
  3055. description: 设备删除
  3056. parameters:
  3057. - description: 设备信息
  3058. in: body
  3059. name: body
  3060. required: true
  3061. schema:
  3062. $ref: '#/definitions/admin.PeerForm'
  3063. produces:
  3064. - application/json
  3065. responses:
  3066. "200":
  3067. description: OK
  3068. schema:
  3069. $ref: '#/definitions/response.Response'
  3070. "500":
  3071. description: Internal Server Error
  3072. schema:
  3073. $ref: '#/definitions/response.Response'
  3074. security:
  3075. - token: []
  3076. summary: 设备删除
  3077. tags:
  3078. - 设备
  3079. /admin/peer/detail/{id}:
  3080. get:
  3081. consumes:
  3082. - application/json
  3083. description: 设备详情
  3084. parameters:
  3085. - description: ID
  3086. in: path
  3087. name: id
  3088. required: true
  3089. type: integer
  3090. produces:
  3091. - application/json
  3092. responses:
  3093. "200":
  3094. description: OK
  3095. schema:
  3096. allOf:
  3097. - $ref: '#/definitions/response.Response'
  3098. - properties:
  3099. data:
  3100. $ref: '#/definitions/model.Peer'
  3101. type: object
  3102. "500":
  3103. description: Internal Server Error
  3104. schema:
  3105. $ref: '#/definitions/response.Response'
  3106. security:
  3107. - token: []
  3108. summary: 设备详情
  3109. tags:
  3110. - 设备
  3111. /admin/peer/list:
  3112. get:
  3113. consumes:
  3114. - application/json
  3115. description: 设备列表
  3116. parameters:
  3117. - description: 页码
  3118. in: query
  3119. name: page
  3120. type: integer
  3121. - description: 页大小
  3122. in: query
  3123. name: page_size
  3124. type: integer
  3125. - description: 时间
  3126. in: query
  3127. name: time_ago
  3128. type: integer
  3129. - description: ID
  3130. in: query
  3131. name: id
  3132. type: string
  3133. - description: 主机名
  3134. in: query
  3135. name: hostname
  3136. type: string
  3137. - description: uuids 用逗号分隔
  3138. in: query
  3139. name: uuids
  3140. type: string
  3141. produces:
  3142. - application/json
  3143. responses:
  3144. "200":
  3145. description: OK
  3146. schema:
  3147. allOf:
  3148. - $ref: '#/definitions/response.Response'
  3149. - properties:
  3150. data:
  3151. $ref: '#/definitions/model.PeerList'
  3152. type: object
  3153. "500":
  3154. description: Internal Server Error
  3155. schema:
  3156. $ref: '#/definitions/response.Response'
  3157. security:
  3158. - token: []
  3159. summary: 设备列表
  3160. tags:
  3161. - 设备
  3162. /admin/peer/update:
  3163. post:
  3164. consumes:
  3165. - application/json
  3166. description: 设备编辑
  3167. parameters:
  3168. - description: 设备信息
  3169. in: body
  3170. name: body
  3171. required: true
  3172. schema:
  3173. $ref: '#/definitions/admin.PeerForm'
  3174. produces:
  3175. - application/json
  3176. responses:
  3177. "200":
  3178. description: OK
  3179. schema:
  3180. allOf:
  3181. - $ref: '#/definitions/response.Response'
  3182. - properties:
  3183. data:
  3184. $ref: '#/definitions/model.Peer'
  3185. type: object
  3186. "500":
  3187. description: Internal Server Error
  3188. schema:
  3189. $ref: '#/definitions/response.Response'
  3190. security:
  3191. - token: []
  3192. summary: 设备编辑
  3193. tags:
  3194. - 设备
  3195. /admin/share_record/batchDelete:
  3196. post:
  3197. consumes:
  3198. - application/json
  3199. description: 批量分享记录
  3200. parameters:
  3201. - description: id
  3202. in: body
  3203. name: body
  3204. required: true
  3205. schema:
  3206. $ref: '#/definitions/admin.PeerShareRecordBatchDeleteForm'
  3207. produces:
  3208. - application/json
  3209. responses:
  3210. "200":
  3211. description: OK
  3212. schema:
  3213. $ref: '#/definitions/response.Response'
  3214. "500":
  3215. description: Internal Server Error
  3216. schema:
  3217. $ref: '#/definitions/response.Response'
  3218. security:
  3219. - token: []
  3220. summary: 批量分享记录
  3221. tags:
  3222. - 分享记录
  3223. /admin/share_record/delete:
  3224. post:
  3225. consumes:
  3226. - application/json
  3227. description: 分享记录删除
  3228. parameters:
  3229. - description: 分享记录信息
  3230. in: body
  3231. name: body
  3232. required: true
  3233. schema:
  3234. $ref: '#/definitions/admin.ShareRecordForm'
  3235. produces:
  3236. - application/json
  3237. responses:
  3238. "200":
  3239. description: OK
  3240. schema:
  3241. $ref: '#/definitions/response.Response'
  3242. "500":
  3243. description: Internal Server Error
  3244. schema:
  3245. $ref: '#/definitions/response.Response'
  3246. security:
  3247. - token: []
  3248. summary: 分享记录删除
  3249. tags:
  3250. - 分享记录
  3251. /admin/share_record/list:
  3252. get:
  3253. consumes:
  3254. - application/json
  3255. description: 分享记录列表
  3256. parameters:
  3257. - description: 用户ID
  3258. in: query
  3259. name: user_id
  3260. type: integer
  3261. - description: 页码
  3262. in: query
  3263. name: page
  3264. type: integer
  3265. - description: 页大小
  3266. in: query
  3267. name: page_size
  3268. type: integer
  3269. produces:
  3270. - application/json
  3271. responses:
  3272. "200":
  3273. description: OK
  3274. schema:
  3275. $ref: '#/definitions/response.Response'
  3276. "500":
  3277. description: Internal Server Error
  3278. schema:
  3279. $ref: '#/definitions/response.Response'
  3280. security:
  3281. - token: []
  3282. summary: 分享记录列表
  3283. tags:
  3284. - 分享记录
  3285. /admin/tag/create:
  3286. post:
  3287. consumes:
  3288. - application/json
  3289. description: 创建标签
  3290. parameters:
  3291. - description: 标签信息
  3292. in: body
  3293. name: body
  3294. required: true
  3295. schema:
  3296. $ref: '#/definitions/admin.TagForm'
  3297. produces:
  3298. - application/json
  3299. responses:
  3300. "200":
  3301. description: OK
  3302. schema:
  3303. allOf:
  3304. - $ref: '#/definitions/response.Response'
  3305. - properties:
  3306. data:
  3307. $ref: '#/definitions/model.Tag'
  3308. type: object
  3309. "500":
  3310. description: Internal Server Error
  3311. schema:
  3312. $ref: '#/definitions/response.Response'
  3313. security:
  3314. - token: []
  3315. summary: 创建标签
  3316. tags:
  3317. - 标签
  3318. /admin/tag/delete:
  3319. post:
  3320. consumes:
  3321. - application/json
  3322. description: 标签删除
  3323. parameters:
  3324. - description: 标签信息
  3325. in: body
  3326. name: body
  3327. required: true
  3328. schema:
  3329. $ref: '#/definitions/admin.TagForm'
  3330. produces:
  3331. - application/json
  3332. responses:
  3333. "200":
  3334. description: OK
  3335. schema:
  3336. $ref: '#/definitions/response.Response'
  3337. "500":
  3338. description: Internal Server Error
  3339. schema:
  3340. $ref: '#/definitions/response.Response'
  3341. security:
  3342. - token: []
  3343. summary: 标签删除
  3344. tags:
  3345. - 标签
  3346. /admin/tag/detail/{id}:
  3347. get:
  3348. consumes:
  3349. - application/json
  3350. description: 标签详情
  3351. parameters:
  3352. - description: ID
  3353. in: path
  3354. name: id
  3355. required: true
  3356. type: integer
  3357. produces:
  3358. - application/json
  3359. responses:
  3360. "200":
  3361. description: OK
  3362. schema:
  3363. allOf:
  3364. - $ref: '#/definitions/response.Response'
  3365. - properties:
  3366. data:
  3367. $ref: '#/definitions/model.Tag'
  3368. type: object
  3369. "500":
  3370. description: Internal Server Error
  3371. schema:
  3372. $ref: '#/definitions/response.Response'
  3373. security:
  3374. - token: []
  3375. summary: 标签详情
  3376. tags:
  3377. - 标签
  3378. /admin/tag/list:
  3379. get:
  3380. consumes:
  3381. - application/json
  3382. description: 标签列表
  3383. parameters:
  3384. - description: 页码
  3385. in: query
  3386. name: page
  3387. type: integer
  3388. - description: 页大小
  3389. in: query
  3390. name: page_size
  3391. type: integer
  3392. - description: 是否是我的
  3393. in: query
  3394. name: is_my
  3395. type: integer
  3396. - description: 用户id
  3397. in: query
  3398. name: user_id
  3399. type: integer
  3400. produces:
  3401. - application/json
  3402. responses:
  3403. "200":
  3404. description: OK
  3405. schema:
  3406. allOf:
  3407. - $ref: '#/definitions/response.Response'
  3408. - properties:
  3409. data:
  3410. $ref: '#/definitions/model.TagList'
  3411. type: object
  3412. "500":
  3413. description: Internal Server Error
  3414. schema:
  3415. $ref: '#/definitions/response.Response'
  3416. security:
  3417. - token: []
  3418. summary: 标签列表
  3419. tags:
  3420. - 标签
  3421. /admin/tag/update:
  3422. post:
  3423. consumes:
  3424. - application/json
  3425. description: 标签编辑
  3426. parameters:
  3427. - description: 标签信息
  3428. in: body
  3429. name: body
  3430. required: true
  3431. schema:
  3432. $ref: '#/definitions/admin.TagForm'
  3433. produces:
  3434. - application/json
  3435. responses:
  3436. "200":
  3437. description: OK
  3438. schema:
  3439. allOf:
  3440. - $ref: '#/definitions/response.Response'
  3441. - properties:
  3442. data:
  3443. $ref: '#/definitions/model.Tag'
  3444. type: object
  3445. "500":
  3446. description: Internal Server Error
  3447. schema:
  3448. $ref: '#/definitions/response.Response'
  3449. security:
  3450. - token: []
  3451. summary: 标签编辑
  3452. tags:
  3453. - 标签
  3454. /admin/user/changeCurPwd:
  3455. post:
  3456. consumes:
  3457. - application/json
  3458. description: 修改当前用户密码
  3459. parameters:
  3460. - description: 用户信息
  3461. in: body
  3462. name: body
  3463. required: true
  3464. schema:
  3465. $ref: '#/definitions/admin.ChangeCurPasswordForm'
  3466. produces:
  3467. - application/json
  3468. responses:
  3469. "200":
  3470. description: OK
  3471. schema:
  3472. $ref: '#/definitions/response.Response'
  3473. "500":
  3474. description: Internal Server Error
  3475. schema:
  3476. $ref: '#/definitions/response.Response'
  3477. security:
  3478. - token: []
  3479. summary: 修改当前用户密码
  3480. tags:
  3481. - 用户
  3482. /admin/user/create:
  3483. post:
  3484. consumes:
  3485. - application/json
  3486. description: 创建管理员
  3487. parameters:
  3488. - description: 管理员信息
  3489. in: body
  3490. name: body
  3491. required: true
  3492. schema:
  3493. $ref: '#/definitions/admin.UserForm'
  3494. produces:
  3495. - application/json
  3496. responses:
  3497. "200":
  3498. description: OK
  3499. schema:
  3500. allOf:
  3501. - $ref: '#/definitions/response.Response'
  3502. - properties:
  3503. data:
  3504. $ref: '#/definitions/model.User'
  3505. type: object
  3506. "500":
  3507. description: Internal Server Error
  3508. schema:
  3509. $ref: '#/definitions/response.Response'
  3510. security:
  3511. - token: []
  3512. summary: 创建管理员
  3513. tags:
  3514. - 用户
  3515. /admin/user/current:
  3516. get:
  3517. consumes:
  3518. - application/json
  3519. description: 当前用户
  3520. produces:
  3521. - application/json
  3522. responses:
  3523. "200":
  3524. description: OK
  3525. schema:
  3526. allOf:
  3527. - $ref: '#/definitions/response.Response'
  3528. - properties:
  3529. data:
  3530. $ref: '#/definitions/admin.LoginPayload'
  3531. type: object
  3532. "500":
  3533. description: Internal Server Error
  3534. schema:
  3535. $ref: '#/definitions/response.Response'
  3536. security:
  3537. - token: []
  3538. summary: 当前用户
  3539. tags:
  3540. - 用户
  3541. /admin/user/delete:
  3542. post:
  3543. consumes:
  3544. - application/json
  3545. description: 管理员编删除
  3546. parameters:
  3547. - description: 用户信息
  3548. in: body
  3549. name: body
  3550. required: true
  3551. schema:
  3552. $ref: '#/definitions/admin.UserForm'
  3553. produces:
  3554. - application/json
  3555. responses:
  3556. "200":
  3557. description: OK
  3558. schema:
  3559. $ref: '#/definitions/response.Response'
  3560. "500":
  3561. description: Internal Server Error
  3562. schema:
  3563. $ref: '#/definitions/response.Response'
  3564. security:
  3565. - token: []
  3566. summary: 管理员删除
  3567. tags:
  3568. - 用户
  3569. /admin/user/detail/{id}:
  3570. get:
  3571. consumes:
  3572. - application/json
  3573. description: 管理员详情
  3574. parameters:
  3575. - description: ID
  3576. in: path
  3577. name: id
  3578. required: true
  3579. type: integer
  3580. produces:
  3581. - application/json
  3582. responses:
  3583. "200":
  3584. description: OK
  3585. schema:
  3586. allOf:
  3587. - $ref: '#/definitions/response.Response'
  3588. - properties:
  3589. data:
  3590. $ref: '#/definitions/model.User'
  3591. type: object
  3592. "500":
  3593. description: Internal Server Error
  3594. schema:
  3595. $ref: '#/definitions/response.Response'
  3596. security:
  3597. - token: []
  3598. summary: 管理员详情
  3599. tags:
  3600. - 用户
  3601. /admin/user/list:
  3602. get:
  3603. consumes:
  3604. - application/json
  3605. description: 管理员列表
  3606. parameters:
  3607. - description: 页码
  3608. in: query
  3609. name: page
  3610. type: integer
  3611. - description: 页大小
  3612. in: query
  3613. name: page_size
  3614. type: integer
  3615. - description: 账户
  3616. in: query
  3617. name: username
  3618. type: integer
  3619. produces:
  3620. - application/json
  3621. responses:
  3622. "200":
  3623. description: OK
  3624. schema:
  3625. allOf:
  3626. - $ref: '#/definitions/response.Response'
  3627. - properties:
  3628. data:
  3629. $ref: '#/definitions/model.UserList'
  3630. type: object
  3631. "500":
  3632. description: Internal Server Error
  3633. schema:
  3634. $ref: '#/definitions/response.Response'
  3635. security:
  3636. - token: []
  3637. summary: 管理员列表
  3638. tags:
  3639. - 用户
  3640. /admin/user/myOauth:
  3641. get:
  3642. consumes:
  3643. - application/json
  3644. description: 我的授权
  3645. produces:
  3646. - application/json
  3647. responses:
  3648. "200":
  3649. description: OK
  3650. schema:
  3651. allOf:
  3652. - $ref: '#/definitions/response.Response'
  3653. - properties:
  3654. data:
  3655. items:
  3656. $ref: '#/definitions/admin.UserOauthItem'
  3657. type: array
  3658. type: object
  3659. "500":
  3660. description: Internal Server Error
  3661. schema:
  3662. $ref: '#/definitions/response.Response'
  3663. security:
  3664. - token: []
  3665. summary: 我的授权
  3666. tags:
  3667. - 用户
  3668. /admin/user/update:
  3669. post:
  3670. consumes:
  3671. - application/json
  3672. description: 管理员编辑
  3673. parameters:
  3674. - description: 用户信息
  3675. in: body
  3676. name: body
  3677. required: true
  3678. schema:
  3679. $ref: '#/definitions/admin.UserForm'
  3680. produces:
  3681. - application/json
  3682. responses:
  3683. "200":
  3684. description: OK
  3685. schema:
  3686. allOf:
  3687. - $ref: '#/definitions/response.Response'
  3688. - properties:
  3689. data:
  3690. $ref: '#/definitions/model.User'
  3691. type: object
  3692. "500":
  3693. description: Internal Server Error
  3694. schema:
  3695. $ref: '#/definitions/response.Response'
  3696. security:
  3697. - token: []
  3698. summary: 管理员编辑
  3699. tags:
  3700. - 用户
  3701. /admin/user/updatePassword:
  3702. post:
  3703. consumes:
  3704. - application/json
  3705. description: 修改密码
  3706. parameters:
  3707. - description: 用户信息
  3708. in: body
  3709. name: body
  3710. required: true
  3711. schema:
  3712. $ref: '#/definitions/admin.UserPasswordForm'
  3713. produces:
  3714. - application/json
  3715. responses:
  3716. "200":
  3717. description: OK
  3718. schema:
  3719. $ref: '#/definitions/response.Response'
  3720. "500":
  3721. description: Internal Server Error
  3722. schema:
  3723. $ref: '#/definitions/response.Response'
  3724. security:
  3725. - token: []
  3726. summary: 修改密码
  3727. tags:
  3728. - 用户
  3729. /admin/user_token/batchDelete:
  3730. post:
  3731. consumes:
  3732. - application/json
  3733. description: 登录凭证批量删除
  3734. parameters:
  3735. - description: 登录凭证信息
  3736. in: body
  3737. name: body
  3738. required: true
  3739. schema:
  3740. $ref: '#/definitions/admin.UserTokenBatchDeleteForm'
  3741. produces:
  3742. - application/json
  3743. responses:
  3744. "200":
  3745. description: OK
  3746. schema:
  3747. $ref: '#/definitions/response.Response'
  3748. "500":
  3749. description: Internal Server Error
  3750. schema:
  3751. $ref: '#/definitions/response.Response'
  3752. security:
  3753. - token: []
  3754. summary: 登录凭证批量删除
  3755. tags:
  3756. - 登录凭证
  3757. /admin/user_token/delete:
  3758. post:
  3759. consumes:
  3760. - application/json
  3761. description: 登录凭证删除
  3762. parameters:
  3763. - description: 登录凭证信息
  3764. in: body
  3765. name: body
  3766. required: true
  3767. schema:
  3768. $ref: '#/definitions/model.UserToken'
  3769. produces:
  3770. - application/json
  3771. responses:
  3772. "200":
  3773. description: OK
  3774. schema:
  3775. $ref: '#/definitions/response.Response'
  3776. "500":
  3777. description: Internal Server Error
  3778. schema:
  3779. $ref: '#/definitions/response.Response'
  3780. security:
  3781. - token: []
  3782. summary: 登录凭证删除
  3783. tags:
  3784. - 登录凭证
  3785. /admin/user_token/list:
  3786. get:
  3787. consumes:
  3788. - application/json
  3789. description: 登录凭证列表
  3790. parameters:
  3791. - description: 页码
  3792. in: query
  3793. name: page
  3794. type: integer
  3795. - description: 页大小
  3796. in: query
  3797. name: page_size
  3798. type: integer
  3799. - description: 用户ID
  3800. in: query
  3801. name: user_id
  3802. type: integer
  3803. produces:
  3804. - application/json
  3805. responses:
  3806. "200":
  3807. description: OK
  3808. schema:
  3809. allOf:
  3810. - $ref: '#/definitions/response.Response'
  3811. - properties:
  3812. data:
  3813. $ref: '#/definitions/model.UserTokenList'
  3814. type: object
  3815. "500":
  3816. description: Internal Server Error
  3817. schema:
  3818. $ref: '#/definitions/response.Response'
  3819. security:
  3820. - token: []
  3821. summary: 登录凭证列表
  3822. tags:
  3823. - 登录凭证
  3824. securityDefinitions:
  3825. BearerAuth:
  3826. in: header
  3827. name: Authorization
  3828. type: apiKey
  3829. token:
  3830. in: header
  3831. name: api-token
  3832. type: apiKey
  3833. swagger: "2.0"