admin_swagger.yaml 94 KB

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