admin_docs.go 167 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190
  1. // Package admin Code generated by swaggo/swag. DO NOT EDIT
  2. package admin
  3. import "github.com/swaggo/swag"
  4. const docTemplateadmin = `{
  5. "schemes": {{ marshal .Schemes }},
  6. "swagger": "2.0",
  7. "info": {
  8. "description": "{{escape .Description}}",
  9. "title": "{{.Title}}",
  10. "contact": {},
  11. "version": "{{.Version}}"
  12. },
  13. "host": "{{.Host}}",
  14. "basePath": "{{.BasePath}}",
  15. "paths": {
  16. "/admin/address_book/create": {
  17. "post": {
  18. "security": [
  19. {
  20. "token": []
  21. }
  22. ],
  23. "description": "批量创建地址簿",
  24. "consumes": [
  25. "application/json"
  26. ],
  27. "produces": [
  28. "application/json"
  29. ],
  30. "tags": [
  31. "地址簿"
  32. ],
  33. "summary": "批量创建地址簿",
  34. "parameters": [
  35. {
  36. "description": "地址簿信息",
  37. "name": "body",
  38. "in": "body",
  39. "required": true,
  40. "schema": {
  41. "$ref": "#/definitions/admin.AddressBookForm"
  42. }
  43. }
  44. ],
  45. "responses": {
  46. "200": {
  47. "description": "OK",
  48. "schema": {
  49. "allOf": [
  50. {
  51. "$ref": "#/definitions/response.Response"
  52. },
  53. {
  54. "type": "object",
  55. "properties": {
  56. "data": {
  57. "$ref": "#/definitions/model.AddressBook"
  58. }
  59. }
  60. }
  61. ]
  62. }
  63. },
  64. "500": {
  65. "description": "Internal Server Error",
  66. "schema": {
  67. "$ref": "#/definitions/response.Response"
  68. }
  69. }
  70. }
  71. }
  72. },
  73. "/admin/address_book/delete": {
  74. "post": {
  75. "security": [
  76. {
  77. "token": []
  78. }
  79. ],
  80. "description": "地址簿删除",
  81. "consumes": [
  82. "application/json"
  83. ],
  84. "produces": [
  85. "application/json"
  86. ],
  87. "tags": [
  88. "地址簿"
  89. ],
  90. "summary": "地址簿删除",
  91. "parameters": [
  92. {
  93. "description": "地址簿信息",
  94. "name": "body",
  95. "in": "body",
  96. "required": true,
  97. "schema": {
  98. "$ref": "#/definitions/admin.AddressBookForm"
  99. }
  100. }
  101. ],
  102. "responses": {
  103. "200": {
  104. "description": "OK",
  105. "schema": {
  106. "$ref": "#/definitions/response.Response"
  107. }
  108. },
  109. "500": {
  110. "description": "Internal Server Error",
  111. "schema": {
  112. "$ref": "#/definitions/response.Response"
  113. }
  114. }
  115. }
  116. }
  117. },
  118. "/admin/address_book/detail/{id}": {
  119. "get": {
  120. "security": [
  121. {
  122. "token": []
  123. }
  124. ],
  125. "description": "地址簿详情",
  126. "consumes": [
  127. "application/json"
  128. ],
  129. "produces": [
  130. "application/json"
  131. ],
  132. "tags": [
  133. "地址簿"
  134. ],
  135. "summary": "地址簿详情",
  136. "parameters": [
  137. {
  138. "type": "integer",
  139. "description": "ID",
  140. "name": "id",
  141. "in": "path",
  142. "required": true
  143. }
  144. ],
  145. "responses": {
  146. "200": {
  147. "description": "OK",
  148. "schema": {
  149. "allOf": [
  150. {
  151. "$ref": "#/definitions/response.Response"
  152. },
  153. {
  154. "type": "object",
  155. "properties": {
  156. "data": {
  157. "$ref": "#/definitions/model.AddressBook"
  158. }
  159. }
  160. }
  161. ]
  162. }
  163. },
  164. "500": {
  165. "description": "Internal Server Error",
  166. "schema": {
  167. "$ref": "#/definitions/response.Response"
  168. }
  169. }
  170. }
  171. }
  172. },
  173. "/admin/address_book/list": {
  174. "get": {
  175. "security": [
  176. {
  177. "token": []
  178. }
  179. ],
  180. "description": "地址簿列表",
  181. "consumes": [
  182. "application/json"
  183. ],
  184. "produces": [
  185. "application/json"
  186. ],
  187. "tags": [
  188. "地址簿"
  189. ],
  190. "summary": "地址簿列表",
  191. "parameters": [
  192. {
  193. "type": "integer",
  194. "description": "页码",
  195. "name": "page",
  196. "in": "query"
  197. },
  198. {
  199. "type": "integer",
  200. "description": "页大小",
  201. "name": "page_size",
  202. "in": "query"
  203. },
  204. {
  205. "type": "integer",
  206. "description": "用户id",
  207. "name": "user_id",
  208. "in": "query"
  209. },
  210. {
  211. "type": "integer",
  212. "description": "是否是我的",
  213. "name": "is_my",
  214. "in": "query"
  215. }
  216. ],
  217. "responses": {
  218. "200": {
  219. "description": "OK",
  220. "schema": {
  221. "allOf": [
  222. {
  223. "$ref": "#/definitions/response.Response"
  224. },
  225. {
  226. "type": "object",
  227. "properties": {
  228. "data": {
  229. "$ref": "#/definitions/model.AddressBookList"
  230. }
  231. }
  232. }
  233. ]
  234. }
  235. },
  236. "500": {
  237. "description": "Internal Server Error",
  238. "schema": {
  239. "$ref": "#/definitions/response.Response"
  240. }
  241. }
  242. }
  243. }
  244. },
  245. "/admin/address_book/share": {
  246. "post": {
  247. "security": [
  248. {
  249. "token": []
  250. }
  251. ],
  252. "description": "地址簿分享",
  253. "consumes": [
  254. "application/json"
  255. ],
  256. "produces": [
  257. "application/json"
  258. ],
  259. "tags": [
  260. "地址簿"
  261. ],
  262. "summary": "地址簿分享",
  263. "parameters": [
  264. {
  265. "description": "地址簿信息",
  266. "name": "body",
  267. "in": "body",
  268. "required": true,
  269. "schema": {
  270. "$ref": "#/definitions/admin.ShareByWebClientForm"
  271. }
  272. }
  273. ],
  274. "responses": {
  275. "200": {
  276. "description": "OK",
  277. "schema": {
  278. "$ref": "#/definitions/response.Response"
  279. }
  280. },
  281. "500": {
  282. "description": "Internal Server Error",
  283. "schema": {
  284. "$ref": "#/definitions/response.Response"
  285. }
  286. }
  287. }
  288. }
  289. },
  290. "/admin/address_book/update": {
  291. "post": {
  292. "security": [
  293. {
  294. "token": []
  295. }
  296. ],
  297. "description": "地址簿编辑",
  298. "consumes": [
  299. "application/json"
  300. ],
  301. "produces": [
  302. "application/json"
  303. ],
  304. "tags": [
  305. "地址簿"
  306. ],
  307. "summary": "地址簿编辑",
  308. "parameters": [
  309. {
  310. "description": "地址簿信息",
  311. "name": "body",
  312. "in": "body",
  313. "required": true,
  314. "schema": {
  315. "$ref": "#/definitions/admin.AddressBookForm"
  316. }
  317. }
  318. ],
  319. "responses": {
  320. "200": {
  321. "description": "OK",
  322. "schema": {
  323. "allOf": [
  324. {
  325. "$ref": "#/definitions/response.Response"
  326. },
  327. {
  328. "type": "object",
  329. "properties": {
  330. "data": {
  331. "$ref": "#/definitions/model.AddressBook"
  332. }
  333. }
  334. }
  335. ]
  336. }
  337. },
  338. "500": {
  339. "description": "Internal Server Error",
  340. "schema": {
  341. "$ref": "#/definitions/response.Response"
  342. }
  343. }
  344. }
  345. }
  346. },
  347. "/admin/address_book_collection/create": {
  348. "post": {
  349. "security": [
  350. {
  351. "token": []
  352. }
  353. ],
  354. "description": "创建地址簿名称",
  355. "consumes": [
  356. "application/json"
  357. ],
  358. "produces": [
  359. "application/json"
  360. ],
  361. "tags": [
  362. "地址簿名称"
  363. ],
  364. "summary": "创建地址簿名称",
  365. "parameters": [
  366. {
  367. "description": "地址簿名称信息",
  368. "name": "body",
  369. "in": "body",
  370. "required": true,
  371. "schema": {
  372. "$ref": "#/definitions/model.AddressBookCollection"
  373. }
  374. }
  375. ],
  376. "responses": {
  377. "200": {
  378. "description": "OK",
  379. "schema": {
  380. "allOf": [
  381. {
  382. "$ref": "#/definitions/response.Response"
  383. },
  384. {
  385. "type": "object",
  386. "properties": {
  387. "data": {
  388. "$ref": "#/definitions/model.AddressBookCollection"
  389. }
  390. }
  391. }
  392. ]
  393. }
  394. },
  395. "500": {
  396. "description": "Internal Server Error",
  397. "schema": {
  398. "$ref": "#/definitions/response.Response"
  399. }
  400. }
  401. }
  402. }
  403. },
  404. "/admin/address_book_collection/delete": {
  405. "post": {
  406. "security": [
  407. {
  408. "token": []
  409. }
  410. ],
  411. "description": "地址簿名称删除",
  412. "consumes": [
  413. "application/json"
  414. ],
  415. "produces": [
  416. "application/json"
  417. ],
  418. "tags": [
  419. "地址簿名称"
  420. ],
  421. "summary": "地址簿名称删除",
  422. "parameters": [
  423. {
  424. "description": "地址簿名称信息",
  425. "name": "body",
  426. "in": "body",
  427. "required": true,
  428. "schema": {
  429. "$ref": "#/definitions/model.AddressBookCollection"
  430. }
  431. }
  432. ],
  433. "responses": {
  434. "200": {
  435. "description": "OK",
  436. "schema": {
  437. "$ref": "#/definitions/response.Response"
  438. }
  439. },
  440. "500": {
  441. "description": "Internal Server Error",
  442. "schema": {
  443. "$ref": "#/definitions/response.Response"
  444. }
  445. }
  446. }
  447. }
  448. },
  449. "/admin/address_book_collection/detail/{id}": {
  450. "get": {
  451. "security": [
  452. {
  453. "token": []
  454. }
  455. ],
  456. "description": "地址簿名称详情",
  457. "consumes": [
  458. "application/json"
  459. ],
  460. "produces": [
  461. "application/json"
  462. ],
  463. "tags": [
  464. "地址簿名称"
  465. ],
  466. "summary": "地址簿名称详情",
  467. "parameters": [
  468. {
  469. "type": "integer",
  470. "description": "ID",
  471. "name": "id",
  472. "in": "path",
  473. "required": true
  474. }
  475. ],
  476. "responses": {
  477. "200": {
  478. "description": "OK",
  479. "schema": {
  480. "allOf": [
  481. {
  482. "$ref": "#/definitions/response.Response"
  483. },
  484. {
  485. "type": "object",
  486. "properties": {
  487. "data": {
  488. "$ref": "#/definitions/model.AddressBookCollection"
  489. }
  490. }
  491. }
  492. ]
  493. }
  494. },
  495. "500": {
  496. "description": "Internal Server Error",
  497. "schema": {
  498. "$ref": "#/definitions/response.Response"
  499. }
  500. }
  501. }
  502. }
  503. },
  504. "/admin/address_book_collection/list": {
  505. "get": {
  506. "security": [
  507. {
  508. "token": []
  509. }
  510. ],
  511. "description": "地址簿名称列表",
  512. "consumes": [
  513. "application/json"
  514. ],
  515. "produces": [
  516. "application/json"
  517. ],
  518. "tags": [
  519. "地址簿名称"
  520. ],
  521. "summary": "地址簿名称列表",
  522. "parameters": [
  523. {
  524. "type": "integer",
  525. "description": "页码",
  526. "name": "page",
  527. "in": "query"
  528. },
  529. {
  530. "type": "integer",
  531. "description": "页大小",
  532. "name": "page_size",
  533. "in": "query"
  534. },
  535. {
  536. "type": "integer",
  537. "description": "是否是我的",
  538. "name": "is_my",
  539. "in": "query"
  540. },
  541. {
  542. "type": "integer",
  543. "description": "用户id",
  544. "name": "user_id",
  545. "in": "query"
  546. }
  547. ],
  548. "responses": {
  549. "200": {
  550. "description": "OK",
  551. "schema": {
  552. "allOf": [
  553. {
  554. "$ref": "#/definitions/response.Response"
  555. },
  556. {
  557. "type": "object",
  558. "properties": {
  559. "data": {
  560. "$ref": "#/definitions/model.AddressBookCollectionList"
  561. }
  562. }
  563. }
  564. ]
  565. }
  566. },
  567. "500": {
  568. "description": "Internal Server Error",
  569. "schema": {
  570. "$ref": "#/definitions/response.Response"
  571. }
  572. }
  573. }
  574. }
  575. },
  576. "/admin/address_book_collection/update": {
  577. "post": {
  578. "security": [
  579. {
  580. "token": []
  581. }
  582. ],
  583. "description": "地址簿名称编辑",
  584. "consumes": [
  585. "application/json"
  586. ],
  587. "produces": [
  588. "application/json"
  589. ],
  590. "tags": [
  591. "地址簿名称"
  592. ],
  593. "summary": "地址簿名称编辑",
  594. "parameters": [
  595. {
  596. "description": "地址簿名称信息",
  597. "name": "body",
  598. "in": "body",
  599. "required": true,
  600. "schema": {
  601. "$ref": "#/definitions/model.AddressBookCollection"
  602. }
  603. }
  604. ],
  605. "responses": {
  606. "200": {
  607. "description": "OK",
  608. "schema": {
  609. "allOf": [
  610. {
  611. "$ref": "#/definitions/response.Response"
  612. },
  613. {
  614. "type": "object",
  615. "properties": {
  616. "data": {
  617. "$ref": "#/definitions/model.AddressBookCollection"
  618. }
  619. }
  620. }
  621. ]
  622. }
  623. },
  624. "500": {
  625. "description": "Internal Server Error",
  626. "schema": {
  627. "$ref": "#/definitions/response.Response"
  628. }
  629. }
  630. }
  631. }
  632. },
  633. "/admin/address_book_collection_rule/create": {
  634. "post": {
  635. "security": [
  636. {
  637. "token": []
  638. }
  639. ],
  640. "description": "创建地址簿规则",
  641. "consumes": [
  642. "application/json"
  643. ],
  644. "produces": [
  645. "application/json"
  646. ],
  647. "tags": [
  648. "地址簿规则"
  649. ],
  650. "summary": "创建地址簿规则",
  651. "parameters": [
  652. {
  653. "description": "地址簿规则信息",
  654. "name": "body",
  655. "in": "body",
  656. "required": true,
  657. "schema": {
  658. "$ref": "#/definitions/model.AddressBookCollectionRule"
  659. }
  660. }
  661. ],
  662. "responses": {
  663. "200": {
  664. "description": "OK",
  665. "schema": {
  666. "allOf": [
  667. {
  668. "$ref": "#/definitions/response.Response"
  669. },
  670. {
  671. "type": "object",
  672. "properties": {
  673. "data": {
  674. "$ref": "#/definitions/model.AddressBookCollection"
  675. }
  676. }
  677. }
  678. ]
  679. }
  680. },
  681. "500": {
  682. "description": "Internal Server Error",
  683. "schema": {
  684. "$ref": "#/definitions/response.Response"
  685. }
  686. }
  687. }
  688. }
  689. },
  690. "/admin/address_book_collection_rule/delete": {
  691. "post": {
  692. "security": [
  693. {
  694. "token": []
  695. }
  696. ],
  697. "description": "地址簿规则删除",
  698. "consumes": [
  699. "application/json"
  700. ],
  701. "produces": [
  702. "application/json"
  703. ],
  704. "tags": [
  705. "地址簿规则"
  706. ],
  707. "summary": "地址簿规则删除",
  708. "parameters": [
  709. {
  710. "description": "地址簿规则信息",
  711. "name": "body",
  712. "in": "body",
  713. "required": true,
  714. "schema": {
  715. "$ref": "#/definitions/model.AddressBookCollectionRule"
  716. }
  717. }
  718. ],
  719. "responses": {
  720. "200": {
  721. "description": "OK",
  722. "schema": {
  723. "$ref": "#/definitions/response.Response"
  724. }
  725. },
  726. "500": {
  727. "description": "Internal Server Error",
  728. "schema": {
  729. "$ref": "#/definitions/response.Response"
  730. }
  731. }
  732. }
  733. }
  734. },
  735. "/admin/address_book_collection_rule/detail/{id}": {
  736. "get": {
  737. "security": [
  738. {
  739. "token": []
  740. }
  741. ],
  742. "description": "地址簿规则详情",
  743. "consumes": [
  744. "application/json"
  745. ],
  746. "produces": [
  747. "application/json"
  748. ],
  749. "tags": [
  750. "地址簿规则"
  751. ],
  752. "summary": "地址簿规则详情",
  753. "parameters": [
  754. {
  755. "type": "integer",
  756. "description": "ID",
  757. "name": "id",
  758. "in": "path",
  759. "required": true
  760. }
  761. ],
  762. "responses": {
  763. "200": {
  764. "description": "OK",
  765. "schema": {
  766. "allOf": [
  767. {
  768. "$ref": "#/definitions/response.Response"
  769. },
  770. {
  771. "type": "object",
  772. "properties": {
  773. "data": {
  774. "$ref": "#/definitions/model.AddressBookCollectionRule"
  775. }
  776. }
  777. }
  778. ]
  779. }
  780. },
  781. "500": {
  782. "description": "Internal Server Error",
  783. "schema": {
  784. "$ref": "#/definitions/response.Response"
  785. }
  786. }
  787. }
  788. }
  789. },
  790. "/admin/address_book_collection_rule/list": {
  791. "get": {
  792. "security": [
  793. {
  794. "token": []
  795. }
  796. ],
  797. "description": "地址簿规则列表",
  798. "consumes": [
  799. "application/json"
  800. ],
  801. "produces": [
  802. "application/json"
  803. ],
  804. "tags": [
  805. "地址簿规则"
  806. ],
  807. "summary": "地址簿规则列表",
  808. "parameters": [
  809. {
  810. "type": "integer",
  811. "description": "页码",
  812. "name": "page",
  813. "in": "query"
  814. },
  815. {
  816. "type": "integer",
  817. "description": "页大小",
  818. "name": "page_size",
  819. "in": "query"
  820. },
  821. {
  822. "type": "integer",
  823. "description": "是否是我的",
  824. "name": "is_my",
  825. "in": "query"
  826. },
  827. {
  828. "type": "integer",
  829. "description": "用户id",
  830. "name": "user_id",
  831. "in": "query"
  832. },
  833. {
  834. "type": "integer",
  835. "description": "地址簿集合id",
  836. "name": "collection_id",
  837. "in": "query"
  838. }
  839. ],
  840. "responses": {
  841. "200": {
  842. "description": "OK",
  843. "schema": {
  844. "allOf": [
  845. {
  846. "$ref": "#/definitions/response.Response"
  847. },
  848. {
  849. "type": "object",
  850. "properties": {
  851. "data": {
  852. "$ref": "#/definitions/model.AddressBookCollectionList"
  853. }
  854. }
  855. }
  856. ]
  857. }
  858. },
  859. "500": {
  860. "description": "Internal Server Error",
  861. "schema": {
  862. "$ref": "#/definitions/response.Response"
  863. }
  864. }
  865. }
  866. }
  867. },
  868. "/admin/address_book_collection_rule/update": {
  869. "post": {
  870. "security": [
  871. {
  872. "token": []
  873. }
  874. ],
  875. "description": "地址簿规则编辑",
  876. "consumes": [
  877. "application/json"
  878. ],
  879. "produces": [
  880. "application/json"
  881. ],
  882. "tags": [
  883. "地址簿规则"
  884. ],
  885. "summary": "地址簿规则编辑",
  886. "parameters": [
  887. {
  888. "description": "地址簿规则信息",
  889. "name": "body",
  890. "in": "body",
  891. "required": true,
  892. "schema": {
  893. "$ref": "#/definitions/model.AddressBookCollectionRule"
  894. }
  895. }
  896. ],
  897. "responses": {
  898. "200": {
  899. "description": "OK",
  900. "schema": {
  901. "allOf": [
  902. {
  903. "$ref": "#/definitions/response.Response"
  904. },
  905. {
  906. "type": "object",
  907. "properties": {
  908. "data": {
  909. "$ref": "#/definitions/model.AddressBookCollection"
  910. }
  911. }
  912. }
  913. ]
  914. }
  915. },
  916. "500": {
  917. "description": "Internal Server Error",
  918. "schema": {
  919. "$ref": "#/definitions/response.Response"
  920. }
  921. }
  922. }
  923. }
  924. },
  925. "/admin/app-config": {
  926. "get": {
  927. "security": [
  928. {
  929. "token": []
  930. }
  931. ],
  932. "description": "APP服务配置",
  933. "consumes": [
  934. "application/json"
  935. ],
  936. "produces": [
  937. "application/json"
  938. ],
  939. "tags": [
  940. "ADMIN"
  941. ],
  942. "summary": "APP服务配置",
  943. "responses": {
  944. "200": {
  945. "description": "OK",
  946. "schema": {
  947. "$ref": "#/definitions/response.Response"
  948. }
  949. },
  950. "500": {
  951. "description": "Internal Server Error",
  952. "schema": {
  953. "$ref": "#/definitions/response.Response"
  954. }
  955. }
  956. }
  957. }
  958. },
  959. "/admin/audit_conn/batchDelete": {
  960. "post": {
  961. "security": [
  962. {
  963. "token": []
  964. }
  965. ],
  966. "description": "链接日志批量删除",
  967. "consumes": [
  968. "application/json"
  969. ],
  970. "produces": [
  971. "application/json"
  972. ],
  973. "tags": [
  974. "链接日志"
  975. ],
  976. "summary": "链接日志批量删除",
  977. "parameters": [
  978. {
  979. "description": "链接日志",
  980. "name": "body",
  981. "in": "body",
  982. "required": true,
  983. "schema": {
  984. "$ref": "#/definitions/admin.AuditConnLogIds"
  985. }
  986. }
  987. ],
  988. "responses": {
  989. "200": {
  990. "description": "OK",
  991. "schema": {
  992. "$ref": "#/definitions/response.Response"
  993. }
  994. },
  995. "500": {
  996. "description": "Internal Server Error",
  997. "schema": {
  998. "$ref": "#/definitions/response.Response"
  999. }
  1000. }
  1001. }
  1002. }
  1003. },
  1004. "/admin/audit_conn/delete": {
  1005. "post": {
  1006. "security": [
  1007. {
  1008. "token": []
  1009. }
  1010. ],
  1011. "description": "链接日志删除",
  1012. "consumes": [
  1013. "application/json"
  1014. ],
  1015. "produces": [
  1016. "application/json"
  1017. ],
  1018. "tags": [
  1019. "链接日志"
  1020. ],
  1021. "summary": "链接日志删除",
  1022. "parameters": [
  1023. {
  1024. "description": "链接日志信息",
  1025. "name": "body",
  1026. "in": "body",
  1027. "required": true,
  1028. "schema": {
  1029. "$ref": "#/definitions/model.AuditConn"
  1030. }
  1031. }
  1032. ],
  1033. "responses": {
  1034. "200": {
  1035. "description": "OK",
  1036. "schema": {
  1037. "$ref": "#/definitions/response.Response"
  1038. }
  1039. },
  1040. "500": {
  1041. "description": "Internal Server Error",
  1042. "schema": {
  1043. "$ref": "#/definitions/response.Response"
  1044. }
  1045. }
  1046. }
  1047. }
  1048. },
  1049. "/admin/audit_conn/list": {
  1050. "get": {
  1051. "security": [
  1052. {
  1053. "token": []
  1054. }
  1055. ],
  1056. "description": "链接日志列表",
  1057. "consumes": [
  1058. "application/json"
  1059. ],
  1060. "produces": [
  1061. "application/json"
  1062. ],
  1063. "tags": [
  1064. "链接日志"
  1065. ],
  1066. "summary": "链接日志列表",
  1067. "parameters": [
  1068. {
  1069. "type": "integer",
  1070. "description": "页码",
  1071. "name": "page",
  1072. "in": "query"
  1073. },
  1074. {
  1075. "type": "integer",
  1076. "description": "页大小",
  1077. "name": "page_size",
  1078. "in": "query"
  1079. },
  1080. {
  1081. "type": "integer",
  1082. "description": "目标设备",
  1083. "name": "peer_id",
  1084. "in": "query"
  1085. },
  1086. {
  1087. "type": "integer",
  1088. "description": "来源设备",
  1089. "name": "from_peer",
  1090. "in": "query"
  1091. }
  1092. ],
  1093. "responses": {
  1094. "200": {
  1095. "description": "OK",
  1096. "schema": {
  1097. "allOf": [
  1098. {
  1099. "$ref": "#/definitions/response.Response"
  1100. },
  1101. {
  1102. "type": "object",
  1103. "properties": {
  1104. "data": {
  1105. "$ref": "#/definitions/model.AuditConnList"
  1106. }
  1107. }
  1108. }
  1109. ]
  1110. }
  1111. },
  1112. "500": {
  1113. "description": "Internal Server Error",
  1114. "schema": {
  1115. "$ref": "#/definitions/response.Response"
  1116. }
  1117. }
  1118. }
  1119. }
  1120. },
  1121. "/admin/audit_file/batchDelete": {
  1122. "post": {
  1123. "security": [
  1124. {
  1125. "token": []
  1126. }
  1127. ],
  1128. "description": "文件日志批量删除",
  1129. "consumes": [
  1130. "application/json"
  1131. ],
  1132. "produces": [
  1133. "application/json"
  1134. ],
  1135. "tags": [
  1136. "文件日志"
  1137. ],
  1138. "summary": "文件日志批量删除",
  1139. "parameters": [
  1140. {
  1141. "description": "文件日志",
  1142. "name": "body",
  1143. "in": "body",
  1144. "required": true,
  1145. "schema": {
  1146. "$ref": "#/definitions/admin.AuditFileLogIds"
  1147. }
  1148. }
  1149. ],
  1150. "responses": {
  1151. "200": {
  1152. "description": "OK",
  1153. "schema": {
  1154. "$ref": "#/definitions/response.Response"
  1155. }
  1156. },
  1157. "500": {
  1158. "description": "Internal Server Error",
  1159. "schema": {
  1160. "$ref": "#/definitions/response.Response"
  1161. }
  1162. }
  1163. }
  1164. }
  1165. },
  1166. "/admin/audit_file/delete": {
  1167. "post": {
  1168. "security": [
  1169. {
  1170. "token": []
  1171. }
  1172. ],
  1173. "description": "文件日志删除",
  1174. "consumes": [
  1175. "application/json"
  1176. ],
  1177. "produces": [
  1178. "application/json"
  1179. ],
  1180. "tags": [
  1181. "文件日志"
  1182. ],
  1183. "summary": "文件日志删除",
  1184. "parameters": [
  1185. {
  1186. "description": "文件日志信息",
  1187. "name": "body",
  1188. "in": "body",
  1189. "required": true,
  1190. "schema": {
  1191. "$ref": "#/definitions/model.AuditFile"
  1192. }
  1193. }
  1194. ],
  1195. "responses": {
  1196. "200": {
  1197. "description": "OK",
  1198. "schema": {
  1199. "$ref": "#/definitions/response.Response"
  1200. }
  1201. },
  1202. "500": {
  1203. "description": "Internal Server Error",
  1204. "schema": {
  1205. "$ref": "#/definitions/response.Response"
  1206. }
  1207. }
  1208. }
  1209. }
  1210. },
  1211. "/admin/audit_file/list": {
  1212. "get": {
  1213. "security": [
  1214. {
  1215. "token": []
  1216. }
  1217. ],
  1218. "description": "文件日志列表",
  1219. "consumes": [
  1220. "application/json"
  1221. ],
  1222. "produces": [
  1223. "application/json"
  1224. ],
  1225. "tags": [
  1226. "文件日志"
  1227. ],
  1228. "summary": "文件日志列表",
  1229. "parameters": [
  1230. {
  1231. "type": "integer",
  1232. "description": "页码",
  1233. "name": "page",
  1234. "in": "query"
  1235. },
  1236. {
  1237. "type": "integer",
  1238. "description": "页大小",
  1239. "name": "page_size",
  1240. "in": "query"
  1241. },
  1242. {
  1243. "type": "integer",
  1244. "description": "目标设备",
  1245. "name": "peer_id",
  1246. "in": "query"
  1247. },
  1248. {
  1249. "type": "integer",
  1250. "description": "来源设备",
  1251. "name": "from_peer",
  1252. "in": "query"
  1253. }
  1254. ],
  1255. "responses": {
  1256. "200": {
  1257. "description": "OK",
  1258. "schema": {
  1259. "allOf": [
  1260. {
  1261. "$ref": "#/definitions/response.Response"
  1262. },
  1263. {
  1264. "type": "object",
  1265. "properties": {
  1266. "data": {
  1267. "$ref": "#/definitions/model.AuditFileList"
  1268. }
  1269. }
  1270. }
  1271. ]
  1272. }
  1273. },
  1274. "500": {
  1275. "description": "Internal Server Error",
  1276. "schema": {
  1277. "$ref": "#/definitions/response.Response"
  1278. }
  1279. }
  1280. }
  1281. }
  1282. },
  1283. "/admin/config/admin": {
  1284. "get": {
  1285. "security": [
  1286. {
  1287. "token": []
  1288. }
  1289. ],
  1290. "description": "ADMIN服务配置",
  1291. "consumes": [
  1292. "application/json"
  1293. ],
  1294. "produces": [
  1295. "application/json"
  1296. ],
  1297. "tags": [
  1298. "ADMIN"
  1299. ],
  1300. "summary": "ADMIN服务配置",
  1301. "responses": {
  1302. "200": {
  1303. "description": "OK",
  1304. "schema": {
  1305. "$ref": "#/definitions/response.Response"
  1306. }
  1307. },
  1308. "500": {
  1309. "description": "Internal Server Error",
  1310. "schema": {
  1311. "$ref": "#/definitions/response.Response"
  1312. }
  1313. }
  1314. }
  1315. }
  1316. },
  1317. "/admin/config/app": {
  1318. "get": {
  1319. "security": [
  1320. {
  1321. "token": []
  1322. }
  1323. ],
  1324. "description": "APP服务配置",
  1325. "consumes": [
  1326. "application/json"
  1327. ],
  1328. "produces": [
  1329. "application/json"
  1330. ],
  1331. "tags": [
  1332. "ADMIN"
  1333. ],
  1334. "summary": "APP服务配置",
  1335. "responses": {
  1336. "200": {
  1337. "description": "OK",
  1338. "schema": {
  1339. "$ref": "#/definitions/response.Response"
  1340. }
  1341. },
  1342. "500": {
  1343. "description": "Internal Server Error",
  1344. "schema": {
  1345. "$ref": "#/definitions/response.Response"
  1346. }
  1347. }
  1348. }
  1349. }
  1350. },
  1351. "/admin/config/server": {
  1352. "get": {
  1353. "security": [
  1354. {
  1355. "token": []
  1356. }
  1357. ],
  1358. "description": "服务配置,给webclient提供api-server",
  1359. "consumes": [
  1360. "application/json"
  1361. ],
  1362. "produces": [
  1363. "application/json"
  1364. ],
  1365. "tags": [
  1366. "ADMIN"
  1367. ],
  1368. "summary": "RUSTDESK服务配置",
  1369. "responses": {
  1370. "200": {
  1371. "description": "OK",
  1372. "schema": {
  1373. "$ref": "#/definitions/response.Response"
  1374. }
  1375. },
  1376. "500": {
  1377. "description": "Internal Server Error",
  1378. "schema": {
  1379. "$ref": "#/definitions/response.Response"
  1380. }
  1381. }
  1382. }
  1383. }
  1384. },
  1385. "/admin/file/oss_token": {
  1386. "get": {
  1387. "security": [
  1388. {
  1389. "token": []
  1390. }
  1391. ],
  1392. "description": "获取ossToken",
  1393. "consumes": [
  1394. "application/json"
  1395. ],
  1396. "produces": [
  1397. "application/json"
  1398. ],
  1399. "tags": [
  1400. "文件"
  1401. ],
  1402. "summary": "获取ossToken",
  1403. "responses": {
  1404. "200": {
  1405. "description": "OK",
  1406. "schema": {
  1407. "$ref": "#/definitions/response.Response"
  1408. }
  1409. },
  1410. "500": {
  1411. "description": "Internal Server Error",
  1412. "schema": {
  1413. "$ref": "#/definitions/response.Response"
  1414. }
  1415. }
  1416. }
  1417. }
  1418. },
  1419. "/admin/file/upload": {
  1420. "post": {
  1421. "security": [
  1422. {
  1423. "token": []
  1424. }
  1425. ],
  1426. "description": "上传文件到本地",
  1427. "consumes": [
  1428. "multipart/form-data"
  1429. ],
  1430. "produces": [
  1431. "application/json"
  1432. ],
  1433. "tags": [
  1434. "文件"
  1435. ],
  1436. "summary": "上传文件到本地",
  1437. "parameters": [
  1438. {
  1439. "type": "file",
  1440. "description": "上传文件示例",
  1441. "name": "file",
  1442. "in": "formData",
  1443. "required": true
  1444. }
  1445. ],
  1446. "responses": {
  1447. "200": {
  1448. "description": "OK",
  1449. "schema": {
  1450. "$ref": "#/definitions/response.Response"
  1451. }
  1452. },
  1453. "500": {
  1454. "description": "Internal Server Error",
  1455. "schema": {
  1456. "$ref": "#/definitions/response.Response"
  1457. }
  1458. }
  1459. }
  1460. }
  1461. },
  1462. "/admin/group/create": {
  1463. "post": {
  1464. "security": [
  1465. {
  1466. "token": []
  1467. }
  1468. ],
  1469. "description": "创建群组",
  1470. "consumes": [
  1471. "application/json"
  1472. ],
  1473. "produces": [
  1474. "application/json"
  1475. ],
  1476. "tags": [
  1477. "群组"
  1478. ],
  1479. "summary": "创建群组",
  1480. "parameters": [
  1481. {
  1482. "description": "群组信息",
  1483. "name": "body",
  1484. "in": "body",
  1485. "required": true,
  1486. "schema": {
  1487. "$ref": "#/definitions/admin.GroupForm"
  1488. }
  1489. }
  1490. ],
  1491. "responses": {
  1492. "200": {
  1493. "description": "OK",
  1494. "schema": {
  1495. "allOf": [
  1496. {
  1497. "$ref": "#/definitions/response.Response"
  1498. },
  1499. {
  1500. "type": "object",
  1501. "properties": {
  1502. "data": {
  1503. "$ref": "#/definitions/model.Group"
  1504. }
  1505. }
  1506. }
  1507. ]
  1508. }
  1509. },
  1510. "500": {
  1511. "description": "Internal Server Error",
  1512. "schema": {
  1513. "$ref": "#/definitions/response.Response"
  1514. }
  1515. }
  1516. }
  1517. }
  1518. },
  1519. "/admin/group/delete": {
  1520. "post": {
  1521. "security": [
  1522. {
  1523. "token": []
  1524. }
  1525. ],
  1526. "description": "群组删除",
  1527. "consumes": [
  1528. "application/json"
  1529. ],
  1530. "produces": [
  1531. "application/json"
  1532. ],
  1533. "tags": [
  1534. "群组"
  1535. ],
  1536. "summary": "群组删除",
  1537. "parameters": [
  1538. {
  1539. "description": "群组信息",
  1540. "name": "body",
  1541. "in": "body",
  1542. "required": true,
  1543. "schema": {
  1544. "$ref": "#/definitions/admin.GroupForm"
  1545. }
  1546. }
  1547. ],
  1548. "responses": {
  1549. "200": {
  1550. "description": "OK",
  1551. "schema": {
  1552. "$ref": "#/definitions/response.Response"
  1553. }
  1554. },
  1555. "500": {
  1556. "description": "Internal Server Error",
  1557. "schema": {
  1558. "$ref": "#/definitions/response.Response"
  1559. }
  1560. }
  1561. }
  1562. }
  1563. },
  1564. "/admin/group/detail/{id}": {
  1565. "get": {
  1566. "security": [
  1567. {
  1568. "token": []
  1569. }
  1570. ],
  1571. "description": "群组详情",
  1572. "consumes": [
  1573. "application/json"
  1574. ],
  1575. "produces": [
  1576. "application/json"
  1577. ],
  1578. "tags": [
  1579. "群组"
  1580. ],
  1581. "summary": "群组详情",
  1582. "parameters": [
  1583. {
  1584. "type": "integer",
  1585. "description": "ID",
  1586. "name": "id",
  1587. "in": "path",
  1588. "required": true
  1589. }
  1590. ],
  1591. "responses": {
  1592. "200": {
  1593. "description": "OK",
  1594. "schema": {
  1595. "allOf": [
  1596. {
  1597. "$ref": "#/definitions/response.Response"
  1598. },
  1599. {
  1600. "type": "object",
  1601. "properties": {
  1602. "data": {
  1603. "$ref": "#/definitions/model.Group"
  1604. }
  1605. }
  1606. }
  1607. ]
  1608. }
  1609. },
  1610. "500": {
  1611. "description": "Internal Server Error",
  1612. "schema": {
  1613. "$ref": "#/definitions/response.Response"
  1614. }
  1615. }
  1616. }
  1617. }
  1618. },
  1619. "/admin/group/list": {
  1620. "get": {
  1621. "security": [
  1622. {
  1623. "token": []
  1624. }
  1625. ],
  1626. "description": "群组列表",
  1627. "consumes": [
  1628. "application/json"
  1629. ],
  1630. "produces": [
  1631. "application/json"
  1632. ],
  1633. "tags": [
  1634. "群组"
  1635. ],
  1636. "summary": "群组列表",
  1637. "parameters": [
  1638. {
  1639. "type": "integer",
  1640. "description": "页码",
  1641. "name": "page",
  1642. "in": "query"
  1643. },
  1644. {
  1645. "type": "integer",
  1646. "description": "页大小",
  1647. "name": "page_size",
  1648. "in": "query"
  1649. }
  1650. ],
  1651. "responses": {
  1652. "200": {
  1653. "description": "OK",
  1654. "schema": {
  1655. "allOf": [
  1656. {
  1657. "$ref": "#/definitions/response.Response"
  1658. },
  1659. {
  1660. "type": "object",
  1661. "properties": {
  1662. "data": {
  1663. "$ref": "#/definitions/model.GroupList"
  1664. }
  1665. }
  1666. }
  1667. ]
  1668. }
  1669. },
  1670. "500": {
  1671. "description": "Internal Server Error",
  1672. "schema": {
  1673. "$ref": "#/definitions/response.Response"
  1674. }
  1675. }
  1676. }
  1677. }
  1678. },
  1679. "/admin/group/update": {
  1680. "post": {
  1681. "security": [
  1682. {
  1683. "token": []
  1684. }
  1685. ],
  1686. "description": "群组编辑",
  1687. "consumes": [
  1688. "application/json"
  1689. ],
  1690. "produces": [
  1691. "application/json"
  1692. ],
  1693. "tags": [
  1694. "群组"
  1695. ],
  1696. "summary": "群组编辑",
  1697. "parameters": [
  1698. {
  1699. "description": "群组信息",
  1700. "name": "body",
  1701. "in": "body",
  1702. "required": true,
  1703. "schema": {
  1704. "$ref": "#/definitions/admin.GroupForm"
  1705. }
  1706. }
  1707. ],
  1708. "responses": {
  1709. "200": {
  1710. "description": "OK",
  1711. "schema": {
  1712. "allOf": [
  1713. {
  1714. "$ref": "#/definitions/response.Response"
  1715. },
  1716. {
  1717. "type": "object",
  1718. "properties": {
  1719. "data": {
  1720. "$ref": "#/definitions/model.Group"
  1721. }
  1722. }
  1723. }
  1724. ]
  1725. }
  1726. },
  1727. "500": {
  1728. "description": "Internal Server Error",
  1729. "schema": {
  1730. "$ref": "#/definitions/response.Response"
  1731. }
  1732. }
  1733. }
  1734. }
  1735. },
  1736. "/admin/login": {
  1737. "post": {
  1738. "security": [
  1739. {
  1740. "token": []
  1741. }
  1742. ],
  1743. "description": "登录",
  1744. "consumes": [
  1745. "application/json"
  1746. ],
  1747. "produces": [
  1748. "application/json"
  1749. ],
  1750. "tags": [
  1751. "登录"
  1752. ],
  1753. "summary": "登录",
  1754. "parameters": [
  1755. {
  1756. "description": "登录信息",
  1757. "name": "body",
  1758. "in": "body",
  1759. "required": true,
  1760. "schema": {
  1761. "$ref": "#/definitions/Gwen_http_request_admin.Login"
  1762. }
  1763. }
  1764. ],
  1765. "responses": {
  1766. "200": {
  1767. "description": "OK",
  1768. "schema": {
  1769. "allOf": [
  1770. {
  1771. "$ref": "#/definitions/response.Response"
  1772. },
  1773. {
  1774. "type": "object",
  1775. "properties": {
  1776. "data": {
  1777. "$ref": "#/definitions/admin.LoginPayload"
  1778. }
  1779. }
  1780. }
  1781. ]
  1782. }
  1783. },
  1784. "500": {
  1785. "description": "Internal Server Error",
  1786. "schema": {
  1787. "$ref": "#/definitions/response.Response"
  1788. }
  1789. }
  1790. }
  1791. }
  1792. },
  1793. "/admin/login-options": {
  1794. "post": {
  1795. "description": "登录选项",
  1796. "consumes": [
  1797. "application/json"
  1798. ],
  1799. "produces": [
  1800. "application/json"
  1801. ],
  1802. "tags": [
  1803. "登录"
  1804. ],
  1805. "summary": "登录选项",
  1806. "responses": {
  1807. "200": {
  1808. "description": "OK",
  1809. "schema": {
  1810. "type": "array",
  1811. "items": {
  1812. "type": "string"
  1813. }
  1814. }
  1815. },
  1816. "500": {
  1817. "description": "Internal Server Error",
  1818. "schema": {
  1819. "$ref": "#/definitions/response.ErrorResponse"
  1820. }
  1821. }
  1822. }
  1823. }
  1824. },
  1825. "/admin/login_log/delete": {
  1826. "post": {
  1827. "security": [
  1828. {
  1829. "token": []
  1830. }
  1831. ],
  1832. "description": "登录日志批量删除",
  1833. "consumes": [
  1834. "application/json"
  1835. ],
  1836. "produces": [
  1837. "application/json"
  1838. ],
  1839. "tags": [
  1840. "登录日志"
  1841. ],
  1842. "summary": "登录日志批量删除",
  1843. "parameters": [
  1844. {
  1845. "description": "登录日志",
  1846. "name": "body",
  1847. "in": "body",
  1848. "required": true,
  1849. "schema": {
  1850. "$ref": "#/definitions/admin.LoginLogIds"
  1851. }
  1852. }
  1853. ],
  1854. "responses": {
  1855. "200": {
  1856. "description": "OK",
  1857. "schema": {
  1858. "$ref": "#/definitions/response.Response"
  1859. }
  1860. },
  1861. "500": {
  1862. "description": "Internal Server Error",
  1863. "schema": {
  1864. "$ref": "#/definitions/response.Response"
  1865. }
  1866. }
  1867. }
  1868. }
  1869. },
  1870. "/admin/login_log/detail/{id}": {
  1871. "get": {
  1872. "security": [
  1873. {
  1874. "token": []
  1875. }
  1876. ],
  1877. "description": "登录日志详情",
  1878. "consumes": [
  1879. "application/json"
  1880. ],
  1881. "produces": [
  1882. "application/json"
  1883. ],
  1884. "tags": [
  1885. "登录日志"
  1886. ],
  1887. "summary": "登录日志详情",
  1888. "parameters": [
  1889. {
  1890. "type": "integer",
  1891. "description": "ID",
  1892. "name": "id",
  1893. "in": "path",
  1894. "required": true
  1895. }
  1896. ],
  1897. "responses": {
  1898. "200": {
  1899. "description": "OK",
  1900. "schema": {
  1901. "allOf": [
  1902. {
  1903. "$ref": "#/definitions/response.Response"
  1904. },
  1905. {
  1906. "type": "object",
  1907. "properties": {
  1908. "data": {
  1909. "$ref": "#/definitions/model.LoginLog"
  1910. }
  1911. }
  1912. }
  1913. ]
  1914. }
  1915. },
  1916. "500": {
  1917. "description": "Internal Server Error",
  1918. "schema": {
  1919. "$ref": "#/definitions/response.Response"
  1920. }
  1921. }
  1922. }
  1923. }
  1924. },
  1925. "/admin/login_log/list": {
  1926. "get": {
  1927. "security": [
  1928. {
  1929. "token": []
  1930. }
  1931. ],
  1932. "description": "登录日志列表",
  1933. "consumes": [
  1934. "application/json"
  1935. ],
  1936. "produces": [
  1937. "application/json"
  1938. ],
  1939. "tags": [
  1940. "登录日志"
  1941. ],
  1942. "summary": "登录日志列表",
  1943. "parameters": [
  1944. {
  1945. "type": "integer",
  1946. "description": "页码",
  1947. "name": "page",
  1948. "in": "query"
  1949. },
  1950. {
  1951. "type": "integer",
  1952. "description": "页大小",
  1953. "name": "page_size",
  1954. "in": "query"
  1955. },
  1956. {
  1957. "type": "integer",
  1958. "description": "用户ID",
  1959. "name": "user_id",
  1960. "in": "query"
  1961. }
  1962. ],
  1963. "responses": {
  1964. "200": {
  1965. "description": "OK",
  1966. "schema": {
  1967. "allOf": [
  1968. {
  1969. "$ref": "#/definitions/response.Response"
  1970. },
  1971. {
  1972. "type": "object",
  1973. "properties": {
  1974. "data": {
  1975. "$ref": "#/definitions/model.LoginLogList"
  1976. }
  1977. }
  1978. }
  1979. ]
  1980. }
  1981. },
  1982. "500": {
  1983. "description": "Internal Server Error",
  1984. "schema": {
  1985. "$ref": "#/definitions/response.Response"
  1986. }
  1987. }
  1988. }
  1989. }
  1990. },
  1991. "/admin/logout": {
  1992. "post": {
  1993. "description": "登出",
  1994. "consumes": [
  1995. "application/json"
  1996. ],
  1997. "produces": [
  1998. "application/json"
  1999. ],
  2000. "tags": [
  2001. "登录"
  2002. ],
  2003. "summary": "登出",
  2004. "responses": {
  2005. "200": {
  2006. "description": "OK",
  2007. "schema": {
  2008. "$ref": "#/definitions/response.Response"
  2009. }
  2010. },
  2011. "500": {
  2012. "description": "Internal Server Error",
  2013. "schema": {
  2014. "$ref": "#/definitions/response.Response"
  2015. }
  2016. }
  2017. }
  2018. }
  2019. },
  2020. "/admin/my/share_record/batchDelete": {
  2021. "post": {
  2022. "security": [
  2023. {
  2024. "token": []
  2025. }
  2026. ],
  2027. "description": "批量删除我的分享记录",
  2028. "consumes": [
  2029. "application/json"
  2030. ],
  2031. "produces": [
  2032. "application/json"
  2033. ],
  2034. "tags": [
  2035. "我的"
  2036. ],
  2037. "summary": "批量删除我的分享记录",
  2038. "parameters": [
  2039. {
  2040. "description": "id",
  2041. "name": "body",
  2042. "in": "body",
  2043. "required": true,
  2044. "schema": {
  2045. "$ref": "#/definitions/admin.PeerShareRecordBatchDeleteForm"
  2046. }
  2047. }
  2048. ],
  2049. "responses": {
  2050. "200": {
  2051. "description": "OK",
  2052. "schema": {
  2053. "$ref": "#/definitions/response.Response"
  2054. }
  2055. },
  2056. "500": {
  2057. "description": "Internal Server Error",
  2058. "schema": {
  2059. "$ref": "#/definitions/response.Response"
  2060. }
  2061. }
  2062. }
  2063. }
  2064. },
  2065. "/admin/my/share_record/delete": {
  2066. "post": {
  2067. "security": [
  2068. {
  2069. "token": []
  2070. }
  2071. ],
  2072. "description": "分享记录删除",
  2073. "consumes": [
  2074. "application/json"
  2075. ],
  2076. "produces": [
  2077. "application/json"
  2078. ],
  2079. "tags": [
  2080. "我的"
  2081. ],
  2082. "summary": "分享记录删除",
  2083. "parameters": [
  2084. {
  2085. "description": "分享记录信息",
  2086. "name": "body",
  2087. "in": "body",
  2088. "required": true,
  2089. "schema": {
  2090. "$ref": "#/definitions/admin.ShareRecordForm"
  2091. }
  2092. }
  2093. ],
  2094. "responses": {
  2095. "200": {
  2096. "description": "OK",
  2097. "schema": {
  2098. "$ref": "#/definitions/response.Response"
  2099. }
  2100. },
  2101. "500": {
  2102. "description": "Internal Server Error",
  2103. "schema": {
  2104. "$ref": "#/definitions/response.Response"
  2105. }
  2106. }
  2107. }
  2108. }
  2109. },
  2110. "/admin/my/share_record/list": {
  2111. "get": {
  2112. "security": [
  2113. {
  2114. "token": []
  2115. }
  2116. ],
  2117. "description": "分享记录列表",
  2118. "consumes": [
  2119. "application/json"
  2120. ],
  2121. "produces": [
  2122. "application/json"
  2123. ],
  2124. "tags": [
  2125. "我的"
  2126. ],
  2127. "summary": "分享记录列表",
  2128. "parameters": [
  2129. {
  2130. "type": "integer",
  2131. "description": "页码",
  2132. "name": "page",
  2133. "in": "query"
  2134. },
  2135. {
  2136. "type": "integer",
  2137. "description": "页大小",
  2138. "name": "page_size",
  2139. "in": "query"
  2140. }
  2141. ],
  2142. "responses": {
  2143. "200": {
  2144. "description": "OK",
  2145. "schema": {
  2146. "$ref": "#/definitions/response.Response"
  2147. }
  2148. },
  2149. "500": {
  2150. "description": "Internal Server Error",
  2151. "schema": {
  2152. "$ref": "#/definitions/response.Response"
  2153. }
  2154. }
  2155. }
  2156. }
  2157. },
  2158. "/admin/oauth/create": {
  2159. "post": {
  2160. "security": [
  2161. {
  2162. "token": []
  2163. }
  2164. ],
  2165. "description": "创建Oauth",
  2166. "consumes": [
  2167. "application/json"
  2168. ],
  2169. "produces": [
  2170. "application/json"
  2171. ],
  2172. "tags": [
  2173. "Oauth"
  2174. ],
  2175. "summary": "创建Oauth",
  2176. "parameters": [
  2177. {
  2178. "description": "Oauth信息",
  2179. "name": "body",
  2180. "in": "body",
  2181. "required": true,
  2182. "schema": {
  2183. "$ref": "#/definitions/admin.OauthForm"
  2184. }
  2185. }
  2186. ],
  2187. "responses": {
  2188. "200": {
  2189. "description": "OK",
  2190. "schema": {
  2191. "allOf": [
  2192. {
  2193. "$ref": "#/definitions/response.Response"
  2194. },
  2195. {
  2196. "type": "object",
  2197. "properties": {
  2198. "data": {
  2199. "$ref": "#/definitions/model.Oauth"
  2200. }
  2201. }
  2202. }
  2203. ]
  2204. }
  2205. },
  2206. "500": {
  2207. "description": "Internal Server Error",
  2208. "schema": {
  2209. "$ref": "#/definitions/response.Response"
  2210. }
  2211. }
  2212. }
  2213. }
  2214. },
  2215. "/admin/oauth/delete": {
  2216. "post": {
  2217. "security": [
  2218. {
  2219. "token": []
  2220. }
  2221. ],
  2222. "description": "Oauth删除",
  2223. "consumes": [
  2224. "application/json"
  2225. ],
  2226. "produces": [
  2227. "application/json"
  2228. ],
  2229. "tags": [
  2230. "Oauth"
  2231. ],
  2232. "summary": "Oauth删除",
  2233. "parameters": [
  2234. {
  2235. "description": "Oauth信息",
  2236. "name": "body",
  2237. "in": "body",
  2238. "required": true,
  2239. "schema": {
  2240. "$ref": "#/definitions/admin.OauthForm"
  2241. }
  2242. }
  2243. ],
  2244. "responses": {
  2245. "200": {
  2246. "description": "OK",
  2247. "schema": {
  2248. "$ref": "#/definitions/response.Response"
  2249. }
  2250. },
  2251. "500": {
  2252. "description": "Internal Server Error",
  2253. "schema": {
  2254. "$ref": "#/definitions/response.Response"
  2255. }
  2256. }
  2257. }
  2258. }
  2259. },
  2260. "/admin/oauth/detail/{id}": {
  2261. "get": {
  2262. "security": [
  2263. {
  2264. "token": []
  2265. }
  2266. ],
  2267. "description": "Oauth详情",
  2268. "consumes": [
  2269. "application/json"
  2270. ],
  2271. "produces": [
  2272. "application/json"
  2273. ],
  2274. "tags": [
  2275. "Oauth"
  2276. ],
  2277. "summary": "Oauth详情",
  2278. "parameters": [
  2279. {
  2280. "type": "integer",
  2281. "description": "ID",
  2282. "name": "id",
  2283. "in": "path",
  2284. "required": true
  2285. }
  2286. ],
  2287. "responses": {
  2288. "200": {
  2289. "description": "OK",
  2290. "schema": {
  2291. "allOf": [
  2292. {
  2293. "$ref": "#/definitions/response.Response"
  2294. },
  2295. {
  2296. "type": "object",
  2297. "properties": {
  2298. "data": {
  2299. "$ref": "#/definitions/model.Oauth"
  2300. }
  2301. }
  2302. }
  2303. ]
  2304. }
  2305. },
  2306. "500": {
  2307. "description": "Internal Server Error",
  2308. "schema": {
  2309. "$ref": "#/definitions/response.Response"
  2310. }
  2311. }
  2312. }
  2313. }
  2314. },
  2315. "/admin/oauth/list": {
  2316. "get": {
  2317. "security": [
  2318. {
  2319. "token": []
  2320. }
  2321. ],
  2322. "description": "Oauth列表",
  2323. "consumes": [
  2324. "application/json"
  2325. ],
  2326. "produces": [
  2327. "application/json"
  2328. ],
  2329. "tags": [
  2330. "Oauth"
  2331. ],
  2332. "summary": "Oauth列表",
  2333. "parameters": [
  2334. {
  2335. "type": "integer",
  2336. "description": "页码",
  2337. "name": "page",
  2338. "in": "query"
  2339. },
  2340. {
  2341. "type": "integer",
  2342. "description": "页大小",
  2343. "name": "page_size",
  2344. "in": "query"
  2345. }
  2346. ],
  2347. "responses": {
  2348. "200": {
  2349. "description": "OK",
  2350. "schema": {
  2351. "allOf": [
  2352. {
  2353. "$ref": "#/definitions/response.Response"
  2354. },
  2355. {
  2356. "type": "object",
  2357. "properties": {
  2358. "data": {
  2359. "$ref": "#/definitions/model.OauthList"
  2360. }
  2361. }
  2362. }
  2363. ]
  2364. }
  2365. },
  2366. "500": {
  2367. "description": "Internal Server Error",
  2368. "schema": {
  2369. "$ref": "#/definitions/response.Response"
  2370. }
  2371. }
  2372. }
  2373. }
  2374. },
  2375. "/admin/oauth/update": {
  2376. "post": {
  2377. "security": [
  2378. {
  2379. "token": []
  2380. }
  2381. ],
  2382. "description": "Oauth编辑",
  2383. "consumes": [
  2384. "application/json"
  2385. ],
  2386. "produces": [
  2387. "application/json"
  2388. ],
  2389. "tags": [
  2390. "Oauth"
  2391. ],
  2392. "summary": "Oauth编辑",
  2393. "parameters": [
  2394. {
  2395. "description": "Oauth信息",
  2396. "name": "body",
  2397. "in": "body",
  2398. "required": true,
  2399. "schema": {
  2400. "$ref": "#/definitions/admin.OauthForm"
  2401. }
  2402. }
  2403. ],
  2404. "responses": {
  2405. "200": {
  2406. "description": "OK",
  2407. "schema": {
  2408. "allOf": [
  2409. {
  2410. "$ref": "#/definitions/response.Response"
  2411. },
  2412. {
  2413. "type": "object",
  2414. "properties": {
  2415. "data": {
  2416. "$ref": "#/definitions/model.OauthList"
  2417. }
  2418. }
  2419. }
  2420. ]
  2421. }
  2422. },
  2423. "500": {
  2424. "description": "Internal Server Error",
  2425. "schema": {
  2426. "$ref": "#/definitions/response.Response"
  2427. }
  2428. }
  2429. }
  2430. }
  2431. },
  2432. "/admin/oidc/auth": {
  2433. "post": {
  2434. "description": "OidcAuth",
  2435. "consumes": [
  2436. "application/json"
  2437. ],
  2438. "produces": [
  2439. "application/json"
  2440. ],
  2441. "tags": [
  2442. "Oauth"
  2443. ],
  2444. "summary": "OidcAuth",
  2445. "responses": {}
  2446. }
  2447. },
  2448. "/admin/oidc/auth-query": {
  2449. "get": {
  2450. "description": "OidcAuthQuery",
  2451. "consumes": [
  2452. "application/json"
  2453. ],
  2454. "produces": [
  2455. "application/json"
  2456. ],
  2457. "tags": [
  2458. "Oauth"
  2459. ],
  2460. "summary": "OidcAuthQuery",
  2461. "responses": {
  2462. "200": {
  2463. "description": "OK",
  2464. "schema": {
  2465. "allOf": [
  2466. {
  2467. "$ref": "#/definitions/response.Response"
  2468. },
  2469. {
  2470. "type": "object",
  2471. "properties": {
  2472. "data": {
  2473. "$ref": "#/definitions/admin.LoginPayload"
  2474. }
  2475. }
  2476. }
  2477. ]
  2478. }
  2479. },
  2480. "500": {
  2481. "description": "Internal Server Error",
  2482. "schema": {
  2483. "$ref": "#/definitions/response.Response"
  2484. }
  2485. }
  2486. }
  2487. }
  2488. },
  2489. "/admin/peer/batchDelete": {
  2490. "post": {
  2491. "security": [
  2492. {
  2493. "token": []
  2494. }
  2495. ],
  2496. "description": "批量设备删除",
  2497. "consumes": [
  2498. "application/json"
  2499. ],
  2500. "produces": [
  2501. "application/json"
  2502. ],
  2503. "tags": [
  2504. "设备"
  2505. ],
  2506. "summary": "批量设备删除",
  2507. "parameters": [
  2508. {
  2509. "description": "设备id",
  2510. "name": "body",
  2511. "in": "body",
  2512. "required": true,
  2513. "schema": {
  2514. "$ref": "#/definitions/admin.PeerBatchDeleteForm"
  2515. }
  2516. }
  2517. ],
  2518. "responses": {
  2519. "200": {
  2520. "description": "OK",
  2521. "schema": {
  2522. "$ref": "#/definitions/response.Response"
  2523. }
  2524. },
  2525. "500": {
  2526. "description": "Internal Server Error",
  2527. "schema": {
  2528. "$ref": "#/definitions/response.Response"
  2529. }
  2530. }
  2531. }
  2532. }
  2533. },
  2534. "/admin/peer/create": {
  2535. "post": {
  2536. "security": [
  2537. {
  2538. "token": []
  2539. }
  2540. ],
  2541. "description": "创建设备",
  2542. "consumes": [
  2543. "application/json"
  2544. ],
  2545. "produces": [
  2546. "application/json"
  2547. ],
  2548. "tags": [
  2549. "设备"
  2550. ],
  2551. "summary": "创建设备",
  2552. "parameters": [
  2553. {
  2554. "description": "设备信息",
  2555. "name": "body",
  2556. "in": "body",
  2557. "required": true,
  2558. "schema": {
  2559. "$ref": "#/definitions/admin.PeerForm"
  2560. }
  2561. }
  2562. ],
  2563. "responses": {
  2564. "200": {
  2565. "description": "OK",
  2566. "schema": {
  2567. "allOf": [
  2568. {
  2569. "$ref": "#/definitions/response.Response"
  2570. },
  2571. {
  2572. "type": "object",
  2573. "properties": {
  2574. "data": {
  2575. "$ref": "#/definitions/model.Peer"
  2576. }
  2577. }
  2578. }
  2579. ]
  2580. }
  2581. },
  2582. "500": {
  2583. "description": "Internal Server Error",
  2584. "schema": {
  2585. "$ref": "#/definitions/response.Response"
  2586. }
  2587. }
  2588. }
  2589. }
  2590. },
  2591. "/admin/peer/delete": {
  2592. "post": {
  2593. "security": [
  2594. {
  2595. "token": []
  2596. }
  2597. ],
  2598. "description": "设备删除",
  2599. "consumes": [
  2600. "application/json"
  2601. ],
  2602. "produces": [
  2603. "application/json"
  2604. ],
  2605. "tags": [
  2606. "设备"
  2607. ],
  2608. "summary": "设备删除",
  2609. "parameters": [
  2610. {
  2611. "description": "设备信息",
  2612. "name": "body",
  2613. "in": "body",
  2614. "required": true,
  2615. "schema": {
  2616. "$ref": "#/definitions/admin.PeerForm"
  2617. }
  2618. }
  2619. ],
  2620. "responses": {
  2621. "200": {
  2622. "description": "OK",
  2623. "schema": {
  2624. "$ref": "#/definitions/response.Response"
  2625. }
  2626. },
  2627. "500": {
  2628. "description": "Internal Server Error",
  2629. "schema": {
  2630. "$ref": "#/definitions/response.Response"
  2631. }
  2632. }
  2633. }
  2634. }
  2635. },
  2636. "/admin/peer/detail/{id}": {
  2637. "get": {
  2638. "security": [
  2639. {
  2640. "token": []
  2641. }
  2642. ],
  2643. "description": "设备详情",
  2644. "consumes": [
  2645. "application/json"
  2646. ],
  2647. "produces": [
  2648. "application/json"
  2649. ],
  2650. "tags": [
  2651. "设备"
  2652. ],
  2653. "summary": "设备详情",
  2654. "parameters": [
  2655. {
  2656. "type": "integer",
  2657. "description": "ID",
  2658. "name": "id",
  2659. "in": "path",
  2660. "required": true
  2661. }
  2662. ],
  2663. "responses": {
  2664. "200": {
  2665. "description": "OK",
  2666. "schema": {
  2667. "allOf": [
  2668. {
  2669. "$ref": "#/definitions/response.Response"
  2670. },
  2671. {
  2672. "type": "object",
  2673. "properties": {
  2674. "data": {
  2675. "$ref": "#/definitions/model.Peer"
  2676. }
  2677. }
  2678. }
  2679. ]
  2680. }
  2681. },
  2682. "500": {
  2683. "description": "Internal Server Error",
  2684. "schema": {
  2685. "$ref": "#/definitions/response.Response"
  2686. }
  2687. }
  2688. }
  2689. }
  2690. },
  2691. "/admin/peer/list": {
  2692. "get": {
  2693. "security": [
  2694. {
  2695. "token": []
  2696. }
  2697. ],
  2698. "description": "设备列表",
  2699. "consumes": [
  2700. "application/json"
  2701. ],
  2702. "produces": [
  2703. "application/json"
  2704. ],
  2705. "tags": [
  2706. "设备"
  2707. ],
  2708. "summary": "设备列表",
  2709. "parameters": [
  2710. {
  2711. "type": "integer",
  2712. "description": "页码",
  2713. "name": "page",
  2714. "in": "query"
  2715. },
  2716. {
  2717. "type": "integer",
  2718. "description": "页大小",
  2719. "name": "page_size",
  2720. "in": "query"
  2721. },
  2722. {
  2723. "type": "integer",
  2724. "description": "时间",
  2725. "name": "time_ago",
  2726. "in": "query"
  2727. },
  2728. {
  2729. "type": "string",
  2730. "description": "ID",
  2731. "name": "id",
  2732. "in": "query"
  2733. },
  2734. {
  2735. "type": "string",
  2736. "description": "主机名",
  2737. "name": "hostname",
  2738. "in": "query"
  2739. },
  2740. {
  2741. "type": "string",
  2742. "description": "uuids 用逗号分隔",
  2743. "name": "uuids",
  2744. "in": "query"
  2745. }
  2746. ],
  2747. "responses": {
  2748. "200": {
  2749. "description": "OK",
  2750. "schema": {
  2751. "allOf": [
  2752. {
  2753. "$ref": "#/definitions/response.Response"
  2754. },
  2755. {
  2756. "type": "object",
  2757. "properties": {
  2758. "data": {
  2759. "$ref": "#/definitions/model.PeerList"
  2760. }
  2761. }
  2762. }
  2763. ]
  2764. }
  2765. },
  2766. "500": {
  2767. "description": "Internal Server Error",
  2768. "schema": {
  2769. "$ref": "#/definitions/response.Response"
  2770. }
  2771. }
  2772. }
  2773. }
  2774. },
  2775. "/admin/peer/update": {
  2776. "post": {
  2777. "security": [
  2778. {
  2779. "token": []
  2780. }
  2781. ],
  2782. "description": "设备编辑",
  2783. "consumes": [
  2784. "application/json"
  2785. ],
  2786. "produces": [
  2787. "application/json"
  2788. ],
  2789. "tags": [
  2790. "设备"
  2791. ],
  2792. "summary": "设备编辑",
  2793. "parameters": [
  2794. {
  2795. "description": "设备信息",
  2796. "name": "body",
  2797. "in": "body",
  2798. "required": true,
  2799. "schema": {
  2800. "$ref": "#/definitions/admin.PeerForm"
  2801. }
  2802. }
  2803. ],
  2804. "responses": {
  2805. "200": {
  2806. "description": "OK",
  2807. "schema": {
  2808. "allOf": [
  2809. {
  2810. "$ref": "#/definitions/response.Response"
  2811. },
  2812. {
  2813. "type": "object",
  2814. "properties": {
  2815. "data": {
  2816. "$ref": "#/definitions/model.Peer"
  2817. }
  2818. }
  2819. }
  2820. ]
  2821. }
  2822. },
  2823. "500": {
  2824. "description": "Internal Server Error",
  2825. "schema": {
  2826. "$ref": "#/definitions/response.Response"
  2827. }
  2828. }
  2829. }
  2830. }
  2831. },
  2832. "/admin/server-config": {
  2833. "get": {
  2834. "security": [
  2835. {
  2836. "token": []
  2837. }
  2838. ],
  2839. "description": "服务配置,给webclient提供api-server",
  2840. "consumes": [
  2841. "application/json"
  2842. ],
  2843. "produces": [
  2844. "application/json"
  2845. ],
  2846. "tags": [
  2847. "ADMIN"
  2848. ],
  2849. "summary": "RUSTDESK服务配置",
  2850. "responses": {
  2851. "200": {
  2852. "description": "OK",
  2853. "schema": {
  2854. "$ref": "#/definitions/response.Response"
  2855. }
  2856. },
  2857. "500": {
  2858. "description": "Internal Server Error",
  2859. "schema": {
  2860. "$ref": "#/definitions/response.Response"
  2861. }
  2862. }
  2863. }
  2864. }
  2865. },
  2866. "/admin/share_record/batchDelete": {
  2867. "post": {
  2868. "security": [
  2869. {
  2870. "token": []
  2871. }
  2872. ],
  2873. "description": "批量分享记录",
  2874. "consumes": [
  2875. "application/json"
  2876. ],
  2877. "produces": [
  2878. "application/json"
  2879. ],
  2880. "tags": [
  2881. "分享记录"
  2882. ],
  2883. "summary": "批量分享记录",
  2884. "parameters": [
  2885. {
  2886. "description": "id",
  2887. "name": "body",
  2888. "in": "body",
  2889. "required": true,
  2890. "schema": {
  2891. "$ref": "#/definitions/admin.PeerShareRecordBatchDeleteForm"
  2892. }
  2893. }
  2894. ],
  2895. "responses": {
  2896. "200": {
  2897. "description": "OK",
  2898. "schema": {
  2899. "$ref": "#/definitions/response.Response"
  2900. }
  2901. },
  2902. "500": {
  2903. "description": "Internal Server Error",
  2904. "schema": {
  2905. "$ref": "#/definitions/response.Response"
  2906. }
  2907. }
  2908. }
  2909. }
  2910. },
  2911. "/admin/share_record/delete": {
  2912. "post": {
  2913. "security": [
  2914. {
  2915. "token": []
  2916. }
  2917. ],
  2918. "description": "分享记录删除",
  2919. "consumes": [
  2920. "application/json"
  2921. ],
  2922. "produces": [
  2923. "application/json"
  2924. ],
  2925. "tags": [
  2926. "分享记录"
  2927. ],
  2928. "summary": "分享记录删除",
  2929. "parameters": [
  2930. {
  2931. "description": "分享记录信息",
  2932. "name": "body",
  2933. "in": "body",
  2934. "required": true,
  2935. "schema": {
  2936. "$ref": "#/definitions/admin.ShareRecordForm"
  2937. }
  2938. }
  2939. ],
  2940. "responses": {
  2941. "200": {
  2942. "description": "OK",
  2943. "schema": {
  2944. "$ref": "#/definitions/response.Response"
  2945. }
  2946. },
  2947. "500": {
  2948. "description": "Internal Server Error",
  2949. "schema": {
  2950. "$ref": "#/definitions/response.Response"
  2951. }
  2952. }
  2953. }
  2954. }
  2955. },
  2956. "/admin/share_record/list": {
  2957. "get": {
  2958. "security": [
  2959. {
  2960. "token": []
  2961. }
  2962. ],
  2963. "description": "分享记录列表",
  2964. "consumes": [
  2965. "application/json"
  2966. ],
  2967. "produces": [
  2968. "application/json"
  2969. ],
  2970. "tags": [
  2971. "分享记录"
  2972. ],
  2973. "summary": "分享记录列表",
  2974. "parameters": [
  2975. {
  2976. "type": "integer",
  2977. "description": "用户ID",
  2978. "name": "user_id",
  2979. "in": "query"
  2980. },
  2981. {
  2982. "type": "integer",
  2983. "description": "页码",
  2984. "name": "page",
  2985. "in": "query"
  2986. },
  2987. {
  2988. "type": "integer",
  2989. "description": "页大小",
  2990. "name": "page_size",
  2991. "in": "query"
  2992. }
  2993. ],
  2994. "responses": {
  2995. "200": {
  2996. "description": "OK",
  2997. "schema": {
  2998. "$ref": "#/definitions/response.Response"
  2999. }
  3000. },
  3001. "500": {
  3002. "description": "Internal Server Error",
  3003. "schema": {
  3004. "$ref": "#/definitions/response.Response"
  3005. }
  3006. }
  3007. }
  3008. }
  3009. },
  3010. "/admin/tag/create": {
  3011. "post": {
  3012. "security": [
  3013. {
  3014. "token": []
  3015. }
  3016. ],
  3017. "description": "创建标签",
  3018. "consumes": [
  3019. "application/json"
  3020. ],
  3021. "produces": [
  3022. "application/json"
  3023. ],
  3024. "tags": [
  3025. "标签"
  3026. ],
  3027. "summary": "创建标签",
  3028. "parameters": [
  3029. {
  3030. "description": "标签信息",
  3031. "name": "body",
  3032. "in": "body",
  3033. "required": true,
  3034. "schema": {
  3035. "$ref": "#/definitions/admin.TagForm"
  3036. }
  3037. }
  3038. ],
  3039. "responses": {
  3040. "200": {
  3041. "description": "OK",
  3042. "schema": {
  3043. "allOf": [
  3044. {
  3045. "$ref": "#/definitions/response.Response"
  3046. },
  3047. {
  3048. "type": "object",
  3049. "properties": {
  3050. "data": {
  3051. "$ref": "#/definitions/model.Tag"
  3052. }
  3053. }
  3054. }
  3055. ]
  3056. }
  3057. },
  3058. "500": {
  3059. "description": "Internal Server Error",
  3060. "schema": {
  3061. "$ref": "#/definitions/response.Response"
  3062. }
  3063. }
  3064. }
  3065. }
  3066. },
  3067. "/admin/tag/delete": {
  3068. "post": {
  3069. "security": [
  3070. {
  3071. "token": []
  3072. }
  3073. ],
  3074. "description": "标签删除",
  3075. "consumes": [
  3076. "application/json"
  3077. ],
  3078. "produces": [
  3079. "application/json"
  3080. ],
  3081. "tags": [
  3082. "标签"
  3083. ],
  3084. "summary": "标签删除",
  3085. "parameters": [
  3086. {
  3087. "description": "标签信息",
  3088. "name": "body",
  3089. "in": "body",
  3090. "required": true,
  3091. "schema": {
  3092. "$ref": "#/definitions/admin.TagForm"
  3093. }
  3094. }
  3095. ],
  3096. "responses": {
  3097. "200": {
  3098. "description": "OK",
  3099. "schema": {
  3100. "$ref": "#/definitions/response.Response"
  3101. }
  3102. },
  3103. "500": {
  3104. "description": "Internal Server Error",
  3105. "schema": {
  3106. "$ref": "#/definitions/response.Response"
  3107. }
  3108. }
  3109. }
  3110. }
  3111. },
  3112. "/admin/tag/detail/{id}": {
  3113. "get": {
  3114. "security": [
  3115. {
  3116. "token": []
  3117. }
  3118. ],
  3119. "description": "标签详情",
  3120. "consumes": [
  3121. "application/json"
  3122. ],
  3123. "produces": [
  3124. "application/json"
  3125. ],
  3126. "tags": [
  3127. "标签"
  3128. ],
  3129. "summary": "标签详情",
  3130. "parameters": [
  3131. {
  3132. "type": "integer",
  3133. "description": "ID",
  3134. "name": "id",
  3135. "in": "path",
  3136. "required": true
  3137. }
  3138. ],
  3139. "responses": {
  3140. "200": {
  3141. "description": "OK",
  3142. "schema": {
  3143. "allOf": [
  3144. {
  3145. "$ref": "#/definitions/response.Response"
  3146. },
  3147. {
  3148. "type": "object",
  3149. "properties": {
  3150. "data": {
  3151. "$ref": "#/definitions/model.Tag"
  3152. }
  3153. }
  3154. }
  3155. ]
  3156. }
  3157. },
  3158. "500": {
  3159. "description": "Internal Server Error",
  3160. "schema": {
  3161. "$ref": "#/definitions/response.Response"
  3162. }
  3163. }
  3164. }
  3165. }
  3166. },
  3167. "/admin/tag/list": {
  3168. "get": {
  3169. "security": [
  3170. {
  3171. "token": []
  3172. }
  3173. ],
  3174. "description": "标签列表",
  3175. "consumes": [
  3176. "application/json"
  3177. ],
  3178. "produces": [
  3179. "application/json"
  3180. ],
  3181. "tags": [
  3182. "标签"
  3183. ],
  3184. "summary": "标签列表",
  3185. "parameters": [
  3186. {
  3187. "type": "integer",
  3188. "description": "页码",
  3189. "name": "page",
  3190. "in": "query"
  3191. },
  3192. {
  3193. "type": "integer",
  3194. "description": "页大小",
  3195. "name": "page_size",
  3196. "in": "query"
  3197. },
  3198. {
  3199. "type": "integer",
  3200. "description": "是否是我的",
  3201. "name": "is_my",
  3202. "in": "query"
  3203. },
  3204. {
  3205. "type": "integer",
  3206. "description": "用户id",
  3207. "name": "user_id",
  3208. "in": "query"
  3209. }
  3210. ],
  3211. "responses": {
  3212. "200": {
  3213. "description": "OK",
  3214. "schema": {
  3215. "allOf": [
  3216. {
  3217. "$ref": "#/definitions/response.Response"
  3218. },
  3219. {
  3220. "type": "object",
  3221. "properties": {
  3222. "data": {
  3223. "$ref": "#/definitions/model.TagList"
  3224. }
  3225. }
  3226. }
  3227. ]
  3228. }
  3229. },
  3230. "500": {
  3231. "description": "Internal Server Error",
  3232. "schema": {
  3233. "$ref": "#/definitions/response.Response"
  3234. }
  3235. }
  3236. }
  3237. }
  3238. },
  3239. "/admin/tag/update": {
  3240. "post": {
  3241. "security": [
  3242. {
  3243. "token": []
  3244. }
  3245. ],
  3246. "description": "标签编辑",
  3247. "consumes": [
  3248. "application/json"
  3249. ],
  3250. "produces": [
  3251. "application/json"
  3252. ],
  3253. "tags": [
  3254. "标签"
  3255. ],
  3256. "summary": "标签编辑",
  3257. "parameters": [
  3258. {
  3259. "description": "标签信息",
  3260. "name": "body",
  3261. "in": "body",
  3262. "required": true,
  3263. "schema": {
  3264. "$ref": "#/definitions/admin.TagForm"
  3265. }
  3266. }
  3267. ],
  3268. "responses": {
  3269. "200": {
  3270. "description": "OK",
  3271. "schema": {
  3272. "allOf": [
  3273. {
  3274. "$ref": "#/definitions/response.Response"
  3275. },
  3276. {
  3277. "type": "object",
  3278. "properties": {
  3279. "data": {
  3280. "$ref": "#/definitions/model.Tag"
  3281. }
  3282. }
  3283. }
  3284. ]
  3285. }
  3286. },
  3287. "500": {
  3288. "description": "Internal Server Error",
  3289. "schema": {
  3290. "$ref": "#/definitions/response.Response"
  3291. }
  3292. }
  3293. }
  3294. }
  3295. },
  3296. "/admin/user/changeCurPwd": {
  3297. "post": {
  3298. "security": [
  3299. {
  3300. "token": []
  3301. }
  3302. ],
  3303. "description": "修改当前用户密码",
  3304. "consumes": [
  3305. "application/json"
  3306. ],
  3307. "produces": [
  3308. "application/json"
  3309. ],
  3310. "tags": [
  3311. "用户"
  3312. ],
  3313. "summary": "修改当前用户密码",
  3314. "parameters": [
  3315. {
  3316. "description": "用户信息",
  3317. "name": "body",
  3318. "in": "body",
  3319. "required": true,
  3320. "schema": {
  3321. "$ref": "#/definitions/admin.ChangeCurPasswordForm"
  3322. }
  3323. }
  3324. ],
  3325. "responses": {
  3326. "200": {
  3327. "description": "OK",
  3328. "schema": {
  3329. "$ref": "#/definitions/response.Response"
  3330. }
  3331. },
  3332. "500": {
  3333. "description": "Internal Server Error",
  3334. "schema": {
  3335. "$ref": "#/definitions/response.Response"
  3336. }
  3337. }
  3338. }
  3339. }
  3340. },
  3341. "/admin/user/create": {
  3342. "post": {
  3343. "security": [
  3344. {
  3345. "token": []
  3346. }
  3347. ],
  3348. "description": "创建管理员",
  3349. "consumes": [
  3350. "application/json"
  3351. ],
  3352. "produces": [
  3353. "application/json"
  3354. ],
  3355. "tags": [
  3356. "用户"
  3357. ],
  3358. "summary": "创建管理员",
  3359. "parameters": [
  3360. {
  3361. "description": "管理员信息",
  3362. "name": "body",
  3363. "in": "body",
  3364. "required": true,
  3365. "schema": {
  3366. "$ref": "#/definitions/admin.UserForm"
  3367. }
  3368. }
  3369. ],
  3370. "responses": {
  3371. "200": {
  3372. "description": "OK",
  3373. "schema": {
  3374. "allOf": [
  3375. {
  3376. "$ref": "#/definitions/response.Response"
  3377. },
  3378. {
  3379. "type": "object",
  3380. "properties": {
  3381. "data": {
  3382. "$ref": "#/definitions/model.User"
  3383. }
  3384. }
  3385. }
  3386. ]
  3387. }
  3388. },
  3389. "500": {
  3390. "description": "Internal Server Error",
  3391. "schema": {
  3392. "$ref": "#/definitions/response.Response"
  3393. }
  3394. }
  3395. }
  3396. }
  3397. },
  3398. "/admin/user/current": {
  3399. "get": {
  3400. "security": [
  3401. {
  3402. "token": []
  3403. }
  3404. ],
  3405. "description": "当前用户",
  3406. "consumes": [
  3407. "application/json"
  3408. ],
  3409. "produces": [
  3410. "application/json"
  3411. ],
  3412. "tags": [
  3413. "用户"
  3414. ],
  3415. "summary": "当前用户",
  3416. "responses": {
  3417. "200": {
  3418. "description": "OK",
  3419. "schema": {
  3420. "allOf": [
  3421. {
  3422. "$ref": "#/definitions/response.Response"
  3423. },
  3424. {
  3425. "type": "object",
  3426. "properties": {
  3427. "data": {
  3428. "$ref": "#/definitions/admin.LoginPayload"
  3429. }
  3430. }
  3431. }
  3432. ]
  3433. }
  3434. },
  3435. "500": {
  3436. "description": "Internal Server Error",
  3437. "schema": {
  3438. "$ref": "#/definitions/response.Response"
  3439. }
  3440. }
  3441. }
  3442. }
  3443. },
  3444. "/admin/user/delete": {
  3445. "post": {
  3446. "security": [
  3447. {
  3448. "token": []
  3449. }
  3450. ],
  3451. "description": "管理员编删除",
  3452. "consumes": [
  3453. "application/json"
  3454. ],
  3455. "produces": [
  3456. "application/json"
  3457. ],
  3458. "tags": [
  3459. "用户"
  3460. ],
  3461. "summary": "管理员删除",
  3462. "parameters": [
  3463. {
  3464. "description": "用户信息",
  3465. "name": "body",
  3466. "in": "body",
  3467. "required": true,
  3468. "schema": {
  3469. "$ref": "#/definitions/admin.UserForm"
  3470. }
  3471. }
  3472. ],
  3473. "responses": {
  3474. "200": {
  3475. "description": "OK",
  3476. "schema": {
  3477. "$ref": "#/definitions/response.Response"
  3478. }
  3479. },
  3480. "500": {
  3481. "description": "Internal Server Error",
  3482. "schema": {
  3483. "$ref": "#/definitions/response.Response"
  3484. }
  3485. }
  3486. }
  3487. }
  3488. },
  3489. "/admin/user/detail/{id}": {
  3490. "get": {
  3491. "security": [
  3492. {
  3493. "token": []
  3494. }
  3495. ],
  3496. "description": "管理员详情",
  3497. "consumes": [
  3498. "application/json"
  3499. ],
  3500. "produces": [
  3501. "application/json"
  3502. ],
  3503. "tags": [
  3504. "用户"
  3505. ],
  3506. "summary": "管理员详情",
  3507. "parameters": [
  3508. {
  3509. "type": "integer",
  3510. "description": "ID",
  3511. "name": "id",
  3512. "in": "path",
  3513. "required": true
  3514. }
  3515. ],
  3516. "responses": {
  3517. "200": {
  3518. "description": "OK",
  3519. "schema": {
  3520. "allOf": [
  3521. {
  3522. "$ref": "#/definitions/response.Response"
  3523. },
  3524. {
  3525. "type": "object",
  3526. "properties": {
  3527. "data": {
  3528. "$ref": "#/definitions/model.User"
  3529. }
  3530. }
  3531. }
  3532. ]
  3533. }
  3534. },
  3535. "500": {
  3536. "description": "Internal Server Error",
  3537. "schema": {
  3538. "$ref": "#/definitions/response.Response"
  3539. }
  3540. }
  3541. }
  3542. }
  3543. },
  3544. "/admin/user/list": {
  3545. "get": {
  3546. "security": [
  3547. {
  3548. "token": []
  3549. }
  3550. ],
  3551. "description": "管理员列表",
  3552. "consumes": [
  3553. "application/json"
  3554. ],
  3555. "produces": [
  3556. "application/json"
  3557. ],
  3558. "tags": [
  3559. "用户"
  3560. ],
  3561. "summary": "管理员列表",
  3562. "parameters": [
  3563. {
  3564. "type": "integer",
  3565. "description": "页码",
  3566. "name": "page",
  3567. "in": "query"
  3568. },
  3569. {
  3570. "type": "integer",
  3571. "description": "页大小",
  3572. "name": "page_size",
  3573. "in": "query"
  3574. },
  3575. {
  3576. "type": "integer",
  3577. "description": "账户",
  3578. "name": "username",
  3579. "in": "query"
  3580. }
  3581. ],
  3582. "responses": {
  3583. "200": {
  3584. "description": "OK",
  3585. "schema": {
  3586. "allOf": [
  3587. {
  3588. "$ref": "#/definitions/response.Response"
  3589. },
  3590. {
  3591. "type": "object",
  3592. "properties": {
  3593. "data": {
  3594. "$ref": "#/definitions/model.UserList"
  3595. }
  3596. }
  3597. }
  3598. ]
  3599. }
  3600. },
  3601. "500": {
  3602. "description": "Internal Server Error",
  3603. "schema": {
  3604. "$ref": "#/definitions/response.Response"
  3605. }
  3606. }
  3607. }
  3608. }
  3609. },
  3610. "/admin/user/myOauth": {
  3611. "get": {
  3612. "security": [
  3613. {
  3614. "token": []
  3615. }
  3616. ],
  3617. "description": "我的授权",
  3618. "consumes": [
  3619. "application/json"
  3620. ],
  3621. "produces": [
  3622. "application/json"
  3623. ],
  3624. "tags": [
  3625. "用户"
  3626. ],
  3627. "summary": "我的授权",
  3628. "responses": {
  3629. "200": {
  3630. "description": "OK",
  3631. "schema": {
  3632. "allOf": [
  3633. {
  3634. "$ref": "#/definitions/response.Response"
  3635. },
  3636. {
  3637. "type": "object",
  3638. "properties": {
  3639. "data": {
  3640. "type": "array",
  3641. "items": {
  3642. "$ref": "#/definitions/admin.UserOauthItem"
  3643. }
  3644. }
  3645. }
  3646. }
  3647. ]
  3648. }
  3649. },
  3650. "500": {
  3651. "description": "Internal Server Error",
  3652. "schema": {
  3653. "$ref": "#/definitions/response.Response"
  3654. }
  3655. }
  3656. }
  3657. }
  3658. },
  3659. "/admin/user/myPeer": {
  3660. "get": {
  3661. "security": [
  3662. {
  3663. "token": []
  3664. }
  3665. ],
  3666. "description": "我的设备列表",
  3667. "consumes": [
  3668. "application/json"
  3669. ],
  3670. "produces": [
  3671. "application/json"
  3672. ],
  3673. "tags": [
  3674. "设备"
  3675. ],
  3676. "summary": "我的设备列表",
  3677. "parameters": [
  3678. {
  3679. "type": "integer",
  3680. "description": "页码",
  3681. "name": "page",
  3682. "in": "query"
  3683. },
  3684. {
  3685. "type": "integer",
  3686. "description": "页大小",
  3687. "name": "page_size",
  3688. "in": "query"
  3689. },
  3690. {
  3691. "type": "integer",
  3692. "description": "时间",
  3693. "name": "time_ago",
  3694. "in": "query"
  3695. },
  3696. {
  3697. "type": "string",
  3698. "description": "ID",
  3699. "name": "id",
  3700. "in": "query"
  3701. },
  3702. {
  3703. "type": "string",
  3704. "description": "主机名",
  3705. "name": "hostname",
  3706. "in": "query"
  3707. },
  3708. {
  3709. "type": "string",
  3710. "description": "uuids 用逗号分隔",
  3711. "name": "uuids",
  3712. "in": "query"
  3713. }
  3714. ],
  3715. "responses": {
  3716. "200": {
  3717. "description": "OK",
  3718. "schema": {
  3719. "allOf": [
  3720. {
  3721. "$ref": "#/definitions/response.Response"
  3722. },
  3723. {
  3724. "type": "object",
  3725. "properties": {
  3726. "data": {
  3727. "$ref": "#/definitions/model.PeerList"
  3728. }
  3729. }
  3730. }
  3731. ]
  3732. }
  3733. },
  3734. "500": {
  3735. "description": "Internal Server Error",
  3736. "schema": {
  3737. "$ref": "#/definitions/response.Response"
  3738. }
  3739. }
  3740. }
  3741. }
  3742. },
  3743. "/admin/user/update": {
  3744. "post": {
  3745. "security": [
  3746. {
  3747. "token": []
  3748. }
  3749. ],
  3750. "description": "管理员编辑",
  3751. "consumes": [
  3752. "application/json"
  3753. ],
  3754. "produces": [
  3755. "application/json"
  3756. ],
  3757. "tags": [
  3758. "用户"
  3759. ],
  3760. "summary": "管理员编辑",
  3761. "parameters": [
  3762. {
  3763. "description": "用户信息",
  3764. "name": "body",
  3765. "in": "body",
  3766. "required": true,
  3767. "schema": {
  3768. "$ref": "#/definitions/admin.UserForm"
  3769. }
  3770. }
  3771. ],
  3772. "responses": {
  3773. "200": {
  3774. "description": "OK",
  3775. "schema": {
  3776. "allOf": [
  3777. {
  3778. "$ref": "#/definitions/response.Response"
  3779. },
  3780. {
  3781. "type": "object",
  3782. "properties": {
  3783. "data": {
  3784. "$ref": "#/definitions/model.User"
  3785. }
  3786. }
  3787. }
  3788. ]
  3789. }
  3790. },
  3791. "500": {
  3792. "description": "Internal Server Error",
  3793. "schema": {
  3794. "$ref": "#/definitions/response.Response"
  3795. }
  3796. }
  3797. }
  3798. }
  3799. },
  3800. "/admin/user/updatePassword": {
  3801. "post": {
  3802. "security": [
  3803. {
  3804. "token": []
  3805. }
  3806. ],
  3807. "description": "修改密码",
  3808. "consumes": [
  3809. "application/json"
  3810. ],
  3811. "produces": [
  3812. "application/json"
  3813. ],
  3814. "tags": [
  3815. "用户"
  3816. ],
  3817. "summary": "修改密码",
  3818. "parameters": [
  3819. {
  3820. "description": "用户信息",
  3821. "name": "body",
  3822. "in": "body",
  3823. "required": true,
  3824. "schema": {
  3825. "$ref": "#/definitions/admin.UserPasswordForm"
  3826. }
  3827. }
  3828. ],
  3829. "responses": {
  3830. "200": {
  3831. "description": "OK",
  3832. "schema": {
  3833. "$ref": "#/definitions/response.Response"
  3834. }
  3835. },
  3836. "500": {
  3837. "description": "Internal Server Error",
  3838. "schema": {
  3839. "$ref": "#/definitions/response.Response"
  3840. }
  3841. }
  3842. }
  3843. }
  3844. },
  3845. "/admin/user_token/batchDelete": {
  3846. "post": {
  3847. "security": [
  3848. {
  3849. "token": []
  3850. }
  3851. ],
  3852. "description": "登录凭证批量删除",
  3853. "consumes": [
  3854. "application/json"
  3855. ],
  3856. "produces": [
  3857. "application/json"
  3858. ],
  3859. "tags": [
  3860. "登录凭证"
  3861. ],
  3862. "summary": "登录凭证批量删除",
  3863. "parameters": [
  3864. {
  3865. "description": "登录凭证信息",
  3866. "name": "body",
  3867. "in": "body",
  3868. "required": true,
  3869. "schema": {
  3870. "$ref": "#/definitions/admin.UserTokenBatchDeleteForm"
  3871. }
  3872. }
  3873. ],
  3874. "responses": {
  3875. "200": {
  3876. "description": "OK",
  3877. "schema": {
  3878. "$ref": "#/definitions/response.Response"
  3879. }
  3880. },
  3881. "500": {
  3882. "description": "Internal Server Error",
  3883. "schema": {
  3884. "$ref": "#/definitions/response.Response"
  3885. }
  3886. }
  3887. }
  3888. }
  3889. },
  3890. "/admin/user_token/delete": {
  3891. "post": {
  3892. "security": [
  3893. {
  3894. "token": []
  3895. }
  3896. ],
  3897. "description": "登录凭证删除",
  3898. "consumes": [
  3899. "application/json"
  3900. ],
  3901. "produces": [
  3902. "application/json"
  3903. ],
  3904. "tags": [
  3905. "登录凭证"
  3906. ],
  3907. "summary": "登录凭证删除",
  3908. "parameters": [
  3909. {
  3910. "description": "登录凭证信息",
  3911. "name": "body",
  3912. "in": "body",
  3913. "required": true,
  3914. "schema": {
  3915. "$ref": "#/definitions/model.UserToken"
  3916. }
  3917. }
  3918. ],
  3919. "responses": {
  3920. "200": {
  3921. "description": "OK",
  3922. "schema": {
  3923. "$ref": "#/definitions/response.Response"
  3924. }
  3925. },
  3926. "500": {
  3927. "description": "Internal Server Error",
  3928. "schema": {
  3929. "$ref": "#/definitions/response.Response"
  3930. }
  3931. }
  3932. }
  3933. }
  3934. },
  3935. "/admin/user_token/list": {
  3936. "get": {
  3937. "security": [
  3938. {
  3939. "token": []
  3940. }
  3941. ],
  3942. "description": "登录凭证列表",
  3943. "consumes": [
  3944. "application/json"
  3945. ],
  3946. "produces": [
  3947. "application/json"
  3948. ],
  3949. "tags": [
  3950. "登录凭证"
  3951. ],
  3952. "summary": "登录凭证列表",
  3953. "parameters": [
  3954. {
  3955. "type": "integer",
  3956. "description": "页码",
  3957. "name": "page",
  3958. "in": "query"
  3959. },
  3960. {
  3961. "type": "integer",
  3962. "description": "页大小",
  3963. "name": "page_size",
  3964. "in": "query"
  3965. },
  3966. {
  3967. "type": "integer",
  3968. "description": "用户ID",
  3969. "name": "user_id",
  3970. "in": "query"
  3971. }
  3972. ],
  3973. "responses": {
  3974. "200": {
  3975. "description": "OK",
  3976. "schema": {
  3977. "allOf": [
  3978. {
  3979. "$ref": "#/definitions/response.Response"
  3980. },
  3981. {
  3982. "type": "object",
  3983. "properties": {
  3984. "data": {
  3985. "$ref": "#/definitions/model.UserTokenList"
  3986. }
  3987. }
  3988. }
  3989. ]
  3990. }
  3991. },
  3992. "500": {
  3993. "description": "Internal Server Error",
  3994. "schema": {
  3995. "$ref": "#/definitions/response.Response"
  3996. }
  3997. }
  3998. }
  3999. }
  4000. }
  4001. },
  4002. "definitions": {
  4003. "Gwen_http_request_admin.Login": {
  4004. "type": "object",
  4005. "required": [
  4006. "password",
  4007. "username"
  4008. ],
  4009. "properties": {
  4010. "password": {
  4011. "type": "string"
  4012. },
  4013. "platform": {
  4014. "type": "string"
  4015. },
  4016. "username": {
  4017. "type": "string"
  4018. }
  4019. }
  4020. },
  4021. "admin.AddressBookForm": {
  4022. "type": "object",
  4023. "required": [
  4024. "id"
  4025. ],
  4026. "properties": {
  4027. "alias": {
  4028. "type": "string"
  4029. },
  4030. "collection_id": {
  4031. "type": "integer"
  4032. },
  4033. "forceAlwaysRelay": {
  4034. "type": "boolean"
  4035. },
  4036. "hash": {
  4037. "type": "string"
  4038. },
  4039. "hostname": {
  4040. "type": "string"
  4041. },
  4042. "id": {
  4043. "type": "string"
  4044. },
  4045. "loginName": {
  4046. "type": "string"
  4047. },
  4048. "online": {
  4049. "type": "boolean"
  4050. },
  4051. "password": {
  4052. "type": "string"
  4053. },
  4054. "platform": {
  4055. "type": "string"
  4056. },
  4057. "rdpPort": {
  4058. "type": "string"
  4059. },
  4060. "rdpUsername": {
  4061. "type": "string"
  4062. },
  4063. "row_id": {
  4064. "type": "integer"
  4065. },
  4066. "sameServer": {
  4067. "type": "boolean"
  4068. },
  4069. "tags": {
  4070. "type": "array",
  4071. "items": {
  4072. "type": "string"
  4073. }
  4074. },
  4075. "user_id": {
  4076. "type": "integer"
  4077. },
  4078. "user_ids": {
  4079. "type": "array",
  4080. "items": {
  4081. "type": "integer"
  4082. }
  4083. },
  4084. "username": {
  4085. "type": "string"
  4086. }
  4087. }
  4088. },
  4089. "admin.AuditConnLogIds": {
  4090. "type": "object",
  4091. "required": [
  4092. "ids"
  4093. ],
  4094. "properties": {
  4095. "ids": {
  4096. "type": "array",
  4097. "items": {
  4098. "type": "integer"
  4099. }
  4100. }
  4101. }
  4102. },
  4103. "admin.AuditFileLogIds": {
  4104. "type": "object",
  4105. "required": [
  4106. "ids"
  4107. ],
  4108. "properties": {
  4109. "ids": {
  4110. "type": "array",
  4111. "items": {
  4112. "type": "integer"
  4113. }
  4114. }
  4115. }
  4116. },
  4117. "admin.ChangeCurPasswordForm": {
  4118. "type": "object",
  4119. "required": [
  4120. "new_password",
  4121. "old_password"
  4122. ],
  4123. "properties": {
  4124. "new_password": {
  4125. "type": "string",
  4126. "maxLength": 32,
  4127. "minLength": 4
  4128. },
  4129. "old_password": {
  4130. "type": "string",
  4131. "maxLength": 32,
  4132. "minLength": 4
  4133. }
  4134. }
  4135. },
  4136. "admin.GroupForm": {
  4137. "type": "object",
  4138. "required": [
  4139. "name"
  4140. ],
  4141. "properties": {
  4142. "id": {
  4143. "type": "integer"
  4144. },
  4145. "name": {
  4146. "type": "string"
  4147. },
  4148. "type": {
  4149. "type": "integer"
  4150. }
  4151. }
  4152. },
  4153. "admin.LoginLogIds": {
  4154. "type": "object",
  4155. "required": [
  4156. "ids"
  4157. ],
  4158. "properties": {
  4159. "ids": {
  4160. "type": "array",
  4161. "items": {
  4162. "type": "integer"
  4163. }
  4164. }
  4165. }
  4166. },
  4167. "admin.LoginPayload": {
  4168. "type": "object",
  4169. "properties": {
  4170. "avatar": {
  4171. "type": "string"
  4172. },
  4173. "email": {
  4174. "type": "string"
  4175. },
  4176. "nickname": {
  4177. "type": "string"
  4178. },
  4179. "route_names": {
  4180. "type": "array",
  4181. "items": {
  4182. "type": "string"
  4183. }
  4184. },
  4185. "token": {
  4186. "type": "string"
  4187. },
  4188. "username": {
  4189. "type": "string"
  4190. }
  4191. }
  4192. },
  4193. "admin.OauthForm": {
  4194. "type": "object",
  4195. "required": [
  4196. "client_id",
  4197. "client_secret",
  4198. "oauth_type",
  4199. "redirect_url"
  4200. ],
  4201. "properties": {
  4202. "auto_register": {
  4203. "type": "boolean"
  4204. },
  4205. "client_id": {
  4206. "type": "string"
  4207. },
  4208. "client_secret": {
  4209. "type": "string"
  4210. },
  4211. "id": {
  4212. "type": "integer"
  4213. },
  4214. "issuer": {
  4215. "type": "string"
  4216. },
  4217. "oauth_type": {
  4218. "type": "string"
  4219. },
  4220. "op": {
  4221. "type": "string"
  4222. },
  4223. "redirect_url": {
  4224. "type": "string"
  4225. },
  4226. "scopes": {
  4227. "type": "string"
  4228. }
  4229. }
  4230. },
  4231. "admin.PeerBatchDeleteForm": {
  4232. "type": "object",
  4233. "required": [
  4234. "row_ids"
  4235. ],
  4236. "properties": {
  4237. "row_ids": {
  4238. "type": "array",
  4239. "items": {
  4240. "type": "integer"
  4241. }
  4242. }
  4243. }
  4244. },
  4245. "admin.PeerForm": {
  4246. "type": "object",
  4247. "properties": {
  4248. "cpu": {
  4249. "type": "string"
  4250. },
  4251. "hostname": {
  4252. "type": "string"
  4253. },
  4254. "id": {
  4255. "type": "string"
  4256. },
  4257. "memory": {
  4258. "type": "string"
  4259. },
  4260. "os": {
  4261. "type": "string"
  4262. },
  4263. "row_id": {
  4264. "type": "integer"
  4265. },
  4266. "username": {
  4267. "type": "string"
  4268. },
  4269. "uuid": {
  4270. "type": "string"
  4271. },
  4272. "version": {
  4273. "type": "string"
  4274. }
  4275. }
  4276. },
  4277. "admin.PeerShareRecordBatchDeleteForm": {
  4278. "type": "object",
  4279. "required": [
  4280. "ids"
  4281. ],
  4282. "properties": {
  4283. "ids": {
  4284. "type": "array",
  4285. "items": {
  4286. "type": "integer"
  4287. }
  4288. }
  4289. }
  4290. },
  4291. "admin.ShareByWebClientForm": {
  4292. "type": "object",
  4293. "required": [
  4294. "id",
  4295. "password",
  4296. "password_type"
  4297. ],
  4298. "properties": {
  4299. "expire": {
  4300. "type": "integer"
  4301. },
  4302. "id": {
  4303. "type": "string"
  4304. },
  4305. "password": {
  4306. "type": "string"
  4307. },
  4308. "password_type": {
  4309. "description": "只能是once,fixed",
  4310. "type": "string",
  4311. "enum": [
  4312. "once",
  4313. "fixed"
  4314. ]
  4315. }
  4316. }
  4317. },
  4318. "admin.ShareRecordForm": {
  4319. "type": "object",
  4320. "properties": {
  4321. "id": {
  4322. "type": "integer"
  4323. },
  4324. "user_id": {
  4325. "type": "integer"
  4326. }
  4327. }
  4328. },
  4329. "admin.TagForm": {
  4330. "type": "object",
  4331. "required": [
  4332. "color",
  4333. "name"
  4334. ],
  4335. "properties": {
  4336. "collection_id": {
  4337. "type": "integer"
  4338. },
  4339. "color": {
  4340. "type": "integer"
  4341. },
  4342. "id": {
  4343. "type": "integer"
  4344. },
  4345. "name": {
  4346. "type": "string"
  4347. },
  4348. "user_id": {
  4349. "type": "integer"
  4350. }
  4351. }
  4352. },
  4353. "admin.UserForm": {
  4354. "type": "object",
  4355. "required": [
  4356. "group_id",
  4357. "status",
  4358. "username"
  4359. ],
  4360. "properties": {
  4361. "avatar": {
  4362. "type": "string"
  4363. },
  4364. "email": {
  4365. "description": "validate:\"required,email\" email不强制",
  4366. "type": "string"
  4367. },
  4368. "group_id": {
  4369. "type": "integer"
  4370. },
  4371. "id": {
  4372. "type": "integer"
  4373. },
  4374. "is_admin": {
  4375. "type": "boolean"
  4376. },
  4377. "nickname": {
  4378. "description": "Password string ` + "`" + `json:\"password\" validate:\"required,gte=4,lte=20\"` + "`" + `",
  4379. "type": "string"
  4380. },
  4381. "status": {
  4382. "minimum": 0,
  4383. "allOf": [
  4384. {
  4385. "$ref": "#/definitions/model.StatusCode"
  4386. }
  4387. ]
  4388. },
  4389. "username": {
  4390. "type": "string",
  4391. "maxLength": 32,
  4392. "minLength": 2
  4393. }
  4394. }
  4395. },
  4396. "admin.UserOauthItem": {
  4397. "type": "object",
  4398. "properties": {
  4399. "op": {
  4400. "type": "string"
  4401. },
  4402. "status": {
  4403. "type": "integer"
  4404. }
  4405. }
  4406. },
  4407. "admin.UserPasswordForm": {
  4408. "type": "object",
  4409. "required": [
  4410. "id",
  4411. "password"
  4412. ],
  4413. "properties": {
  4414. "id": {
  4415. "type": "integer"
  4416. },
  4417. "password": {
  4418. "type": "string",
  4419. "maxLength": 32,
  4420. "minLength": 4
  4421. }
  4422. }
  4423. },
  4424. "admin.UserTokenBatchDeleteForm": {
  4425. "type": "object",
  4426. "required": [
  4427. "ids"
  4428. ],
  4429. "properties": {
  4430. "ids": {
  4431. "type": "array",
  4432. "items": {
  4433. "type": "integer"
  4434. }
  4435. }
  4436. }
  4437. },
  4438. "model.AddressBook": {
  4439. "type": "object",
  4440. "properties": {
  4441. "alias": {
  4442. "type": "string"
  4443. },
  4444. "collection": {
  4445. "$ref": "#/definitions/model.AddressBookCollection"
  4446. },
  4447. "collection_id": {
  4448. "type": "integer"
  4449. },
  4450. "created_at": {
  4451. "type": "string"
  4452. },
  4453. "forceAlwaysRelay": {
  4454. "type": "boolean"
  4455. },
  4456. "hash": {
  4457. "type": "string"
  4458. },
  4459. "hostname": {
  4460. "type": "string"
  4461. },
  4462. "id": {
  4463. "type": "string"
  4464. },
  4465. "loginName": {
  4466. "type": "string"
  4467. },
  4468. "online": {
  4469. "type": "boolean"
  4470. },
  4471. "password": {
  4472. "type": "string"
  4473. },
  4474. "platform": {
  4475. "type": "string"
  4476. },
  4477. "rdpPort": {
  4478. "type": "string"
  4479. },
  4480. "rdpUsername": {
  4481. "type": "string"
  4482. },
  4483. "row_id": {
  4484. "type": "integer"
  4485. },
  4486. "sameServer": {
  4487. "type": "boolean"
  4488. },
  4489. "tags": {
  4490. "type": "array",
  4491. "items": {
  4492. "type": "string"
  4493. }
  4494. },
  4495. "updated_at": {
  4496. "type": "string"
  4497. },
  4498. "user_id": {
  4499. "type": "integer"
  4500. },
  4501. "username": {
  4502. "type": "string"
  4503. }
  4504. }
  4505. },
  4506. "model.AddressBookCollection": {
  4507. "type": "object",
  4508. "required": [
  4509. "name"
  4510. ],
  4511. "properties": {
  4512. "created_at": {
  4513. "type": "string"
  4514. },
  4515. "id": {
  4516. "type": "integer"
  4517. },
  4518. "name": {
  4519. "type": "string"
  4520. },
  4521. "updated_at": {
  4522. "type": "string"
  4523. },
  4524. "user_id": {
  4525. "type": "integer"
  4526. }
  4527. }
  4528. },
  4529. "model.AddressBookCollectionList": {
  4530. "type": "object",
  4531. "properties": {
  4532. "list": {
  4533. "type": "array",
  4534. "items": {
  4535. "$ref": "#/definitions/model.AddressBookCollection"
  4536. }
  4537. },
  4538. "page": {
  4539. "type": "integer"
  4540. },
  4541. "page_size": {
  4542. "type": "integer"
  4543. },
  4544. "total": {
  4545. "type": "integer"
  4546. }
  4547. }
  4548. },
  4549. "model.AddressBookCollectionRule": {
  4550. "type": "object",
  4551. "required": [
  4552. "collection_id",
  4553. "rule",
  4554. "to_id",
  4555. "type"
  4556. ],
  4557. "properties": {
  4558. "collection_id": {
  4559. "type": "integer"
  4560. },
  4561. "created_at": {
  4562. "type": "string"
  4563. },
  4564. "id": {
  4565. "type": "integer"
  4566. },
  4567. "rule": {
  4568. "description": "0: 无 1: 读 2: 读写 3: 完全控制",
  4569. "type": "integer",
  4570. "maximum": 3,
  4571. "minimum": 1
  4572. },
  4573. "to_id": {
  4574. "type": "integer"
  4575. },
  4576. "type": {
  4577. "description": "1: 个人 2: 群组",
  4578. "type": "integer",
  4579. "maximum": 2,
  4580. "minimum": 1
  4581. },
  4582. "updated_at": {
  4583. "type": "string"
  4584. },
  4585. "user_id": {
  4586. "type": "integer"
  4587. }
  4588. }
  4589. },
  4590. "model.AddressBookList": {
  4591. "type": "object",
  4592. "properties": {
  4593. "list": {
  4594. "type": "array",
  4595. "items": {
  4596. "$ref": "#/definitions/model.AddressBook"
  4597. }
  4598. },
  4599. "page": {
  4600. "type": "integer"
  4601. },
  4602. "page_size": {
  4603. "type": "integer"
  4604. },
  4605. "total": {
  4606. "type": "integer"
  4607. }
  4608. }
  4609. },
  4610. "model.AuditConn": {
  4611. "type": "object",
  4612. "properties": {
  4613. "action": {
  4614. "type": "string"
  4615. },
  4616. "close_time": {
  4617. "type": "integer"
  4618. },
  4619. "conn_id": {
  4620. "type": "integer"
  4621. },
  4622. "created_at": {
  4623. "type": "string"
  4624. },
  4625. "from_name": {
  4626. "type": "string"
  4627. },
  4628. "from_peer": {
  4629. "type": "string"
  4630. },
  4631. "id": {
  4632. "type": "integer"
  4633. },
  4634. "ip": {
  4635. "type": "string"
  4636. },
  4637. "peer_id": {
  4638. "type": "string"
  4639. },
  4640. "session_id": {
  4641. "type": "string"
  4642. },
  4643. "type": {
  4644. "type": "integer"
  4645. },
  4646. "updated_at": {
  4647. "type": "string"
  4648. },
  4649. "uuid": {
  4650. "type": "string"
  4651. }
  4652. }
  4653. },
  4654. "model.AuditConnList": {
  4655. "type": "object",
  4656. "properties": {
  4657. "list": {
  4658. "type": "array",
  4659. "items": {
  4660. "$ref": "#/definitions/model.AuditConn"
  4661. }
  4662. },
  4663. "page": {
  4664. "type": "integer"
  4665. },
  4666. "page_size": {
  4667. "type": "integer"
  4668. },
  4669. "total": {
  4670. "type": "integer"
  4671. }
  4672. }
  4673. },
  4674. "model.AuditFile": {
  4675. "type": "object",
  4676. "properties": {
  4677. "created_at": {
  4678. "type": "string"
  4679. },
  4680. "from_name": {
  4681. "type": "string"
  4682. },
  4683. "from_peer": {
  4684. "type": "string"
  4685. },
  4686. "id": {
  4687. "type": "integer"
  4688. },
  4689. "info": {
  4690. "type": "string"
  4691. },
  4692. "ip": {
  4693. "type": "string"
  4694. },
  4695. "is_file": {
  4696. "type": "boolean"
  4697. },
  4698. "num": {
  4699. "type": "integer"
  4700. },
  4701. "path": {
  4702. "type": "string"
  4703. },
  4704. "peer_id": {
  4705. "type": "string"
  4706. },
  4707. "type": {
  4708. "type": "integer"
  4709. },
  4710. "updated_at": {
  4711. "type": "string"
  4712. },
  4713. "uuid": {
  4714. "type": "string"
  4715. }
  4716. }
  4717. },
  4718. "model.AuditFileList": {
  4719. "type": "object",
  4720. "properties": {
  4721. "list": {
  4722. "type": "array",
  4723. "items": {
  4724. "$ref": "#/definitions/model.AuditFile"
  4725. }
  4726. },
  4727. "page": {
  4728. "type": "integer"
  4729. },
  4730. "page_size": {
  4731. "type": "integer"
  4732. },
  4733. "total": {
  4734. "type": "integer"
  4735. }
  4736. }
  4737. },
  4738. "model.Group": {
  4739. "type": "object",
  4740. "properties": {
  4741. "created_at": {
  4742. "type": "string"
  4743. },
  4744. "id": {
  4745. "type": "integer"
  4746. },
  4747. "name": {
  4748. "type": "string"
  4749. },
  4750. "type": {
  4751. "type": "integer"
  4752. },
  4753. "updated_at": {
  4754. "type": "string"
  4755. }
  4756. }
  4757. },
  4758. "model.GroupList": {
  4759. "type": "object",
  4760. "properties": {
  4761. "list": {
  4762. "type": "array",
  4763. "items": {
  4764. "$ref": "#/definitions/model.Group"
  4765. }
  4766. },
  4767. "page": {
  4768. "type": "integer"
  4769. },
  4770. "page_size": {
  4771. "type": "integer"
  4772. },
  4773. "total": {
  4774. "type": "integer"
  4775. }
  4776. }
  4777. },
  4778. "model.LoginLog": {
  4779. "type": "object",
  4780. "properties": {
  4781. "client": {
  4782. "description": "webadmin,webclient,app,",
  4783. "type": "string"
  4784. },
  4785. "created_at": {
  4786. "type": "string"
  4787. },
  4788. "device_id": {
  4789. "type": "string"
  4790. },
  4791. "id": {
  4792. "type": "integer"
  4793. },
  4794. "ip": {
  4795. "type": "string"
  4796. },
  4797. "platform": {
  4798. "description": "windows,linux,mac,android,ios",
  4799. "type": "string"
  4800. },
  4801. "type": {
  4802. "description": "account,oauth",
  4803. "type": "string"
  4804. },
  4805. "updated_at": {
  4806. "type": "string"
  4807. },
  4808. "user_id": {
  4809. "type": "integer"
  4810. },
  4811. "user_token_id": {
  4812. "type": "integer"
  4813. },
  4814. "uuid": {
  4815. "type": "string"
  4816. }
  4817. }
  4818. },
  4819. "model.LoginLogList": {
  4820. "type": "object",
  4821. "properties": {
  4822. "list": {
  4823. "type": "array",
  4824. "items": {
  4825. "$ref": "#/definitions/model.LoginLog"
  4826. }
  4827. },
  4828. "page": {
  4829. "type": "integer"
  4830. },
  4831. "page_size": {
  4832. "type": "integer"
  4833. },
  4834. "total": {
  4835. "type": "integer"
  4836. }
  4837. }
  4838. },
  4839. "model.Oauth": {
  4840. "type": "object",
  4841. "properties": {
  4842. "auto_register": {
  4843. "type": "boolean"
  4844. },
  4845. "client_id": {
  4846. "type": "string"
  4847. },
  4848. "client_secret": {
  4849. "type": "string"
  4850. },
  4851. "created_at": {
  4852. "type": "string"
  4853. },
  4854. "id": {
  4855. "type": "integer"
  4856. },
  4857. "issuer": {
  4858. "type": "string"
  4859. },
  4860. "oauth_type": {
  4861. "type": "string"
  4862. },
  4863. "op": {
  4864. "type": "string"
  4865. },
  4866. "redirect_url": {
  4867. "type": "string"
  4868. },
  4869. "scopes": {
  4870. "type": "string"
  4871. },
  4872. "updated_at": {
  4873. "type": "string"
  4874. }
  4875. }
  4876. },
  4877. "model.OauthList": {
  4878. "type": "object",
  4879. "properties": {
  4880. "list": {
  4881. "type": "array",
  4882. "items": {
  4883. "$ref": "#/definitions/model.Oauth"
  4884. }
  4885. },
  4886. "page": {
  4887. "type": "integer"
  4888. },
  4889. "page_size": {
  4890. "type": "integer"
  4891. },
  4892. "total": {
  4893. "type": "integer"
  4894. }
  4895. }
  4896. },
  4897. "model.Peer": {
  4898. "type": "object",
  4899. "properties": {
  4900. "cpu": {
  4901. "type": "string"
  4902. },
  4903. "created_at": {
  4904. "type": "string"
  4905. },
  4906. "hostname": {
  4907. "type": "string"
  4908. },
  4909. "id": {
  4910. "type": "string"
  4911. },
  4912. "last_online_ip": {
  4913. "type": "string"
  4914. },
  4915. "last_online_time": {
  4916. "type": "integer"
  4917. },
  4918. "memory": {
  4919. "type": "string"
  4920. },
  4921. "os": {
  4922. "type": "string"
  4923. },
  4924. "row_id": {
  4925. "type": "integer"
  4926. },
  4927. "updated_at": {
  4928. "type": "string"
  4929. },
  4930. "user": {
  4931. "$ref": "#/definitions/model.User"
  4932. },
  4933. "user_id": {
  4934. "type": "integer"
  4935. },
  4936. "username": {
  4937. "type": "string"
  4938. },
  4939. "uuid": {
  4940. "type": "string"
  4941. },
  4942. "version": {
  4943. "type": "string"
  4944. }
  4945. }
  4946. },
  4947. "model.PeerList": {
  4948. "type": "object",
  4949. "properties": {
  4950. "list": {
  4951. "type": "array",
  4952. "items": {
  4953. "$ref": "#/definitions/model.Peer"
  4954. }
  4955. },
  4956. "page": {
  4957. "type": "integer"
  4958. },
  4959. "page_size": {
  4960. "type": "integer"
  4961. },
  4962. "total": {
  4963. "type": "integer"
  4964. }
  4965. }
  4966. },
  4967. "model.StatusCode": {
  4968. "type": "integer",
  4969. "enum": [
  4970. 1,
  4971. 2
  4972. ],
  4973. "x-enum-comments": {
  4974. "COMMON_STATUS_DISABLED": "通用状态 禁用",
  4975. "COMMON_STATUS_ENABLE": "通用状态 启用"
  4976. },
  4977. "x-enum-varnames": [
  4978. "COMMON_STATUS_ENABLE",
  4979. "COMMON_STATUS_DISABLED"
  4980. ]
  4981. },
  4982. "model.Tag": {
  4983. "type": "object",
  4984. "properties": {
  4985. "collection": {
  4986. "$ref": "#/definitions/model.AddressBookCollection"
  4987. },
  4988. "collection_id": {
  4989. "type": "integer"
  4990. },
  4991. "color": {
  4992. "description": "color 是flutter的颜色值,从0x00000000 到 0xFFFFFFFF; 前两位表示透明度,后面6位表示颜色, 可以转成rgba",
  4993. "type": "integer"
  4994. },
  4995. "created_at": {
  4996. "type": "string"
  4997. },
  4998. "id": {
  4999. "type": "integer"
  5000. },
  5001. "name": {
  5002. "type": "string"
  5003. },
  5004. "updated_at": {
  5005. "type": "string"
  5006. },
  5007. "user_id": {
  5008. "type": "integer"
  5009. }
  5010. }
  5011. },
  5012. "model.TagList": {
  5013. "type": "object",
  5014. "properties": {
  5015. "list": {
  5016. "type": "array",
  5017. "items": {
  5018. "$ref": "#/definitions/model.Tag"
  5019. }
  5020. },
  5021. "page": {
  5022. "type": "integer"
  5023. },
  5024. "page_size": {
  5025. "type": "integer"
  5026. },
  5027. "total": {
  5028. "type": "integer"
  5029. }
  5030. }
  5031. },
  5032. "model.User": {
  5033. "type": "object",
  5034. "properties": {
  5035. "avatar": {
  5036. "type": "string"
  5037. },
  5038. "created_at": {
  5039. "type": "string"
  5040. },
  5041. "email": {
  5042. "type": "string"
  5043. },
  5044. "group_id": {
  5045. "type": "integer"
  5046. },
  5047. "id": {
  5048. "type": "integer"
  5049. },
  5050. "is_admin": {
  5051. "type": "boolean"
  5052. },
  5053. "nickname": {
  5054. "type": "string"
  5055. },
  5056. "status": {
  5057. "$ref": "#/definitions/model.StatusCode"
  5058. },
  5059. "updated_at": {
  5060. "type": "string"
  5061. },
  5062. "username": {
  5063. "type": "string"
  5064. }
  5065. }
  5066. },
  5067. "model.UserList": {
  5068. "type": "object",
  5069. "properties": {
  5070. "list": {
  5071. "type": "array",
  5072. "items": {
  5073. "$ref": "#/definitions/model.User"
  5074. }
  5075. },
  5076. "page": {
  5077. "type": "integer"
  5078. },
  5079. "page_size": {
  5080. "type": "integer"
  5081. },
  5082. "total": {
  5083. "type": "integer"
  5084. }
  5085. }
  5086. },
  5087. "model.UserToken": {
  5088. "type": "object",
  5089. "properties": {
  5090. "created_at": {
  5091. "type": "string"
  5092. },
  5093. "device_id": {
  5094. "type": "string"
  5095. },
  5096. "device_uuid": {
  5097. "type": "string"
  5098. },
  5099. "expired_at": {
  5100. "type": "integer"
  5101. },
  5102. "id": {
  5103. "type": "integer"
  5104. },
  5105. "token": {
  5106. "type": "string"
  5107. },
  5108. "updated_at": {
  5109. "type": "string"
  5110. },
  5111. "user_id": {
  5112. "type": "integer"
  5113. }
  5114. }
  5115. },
  5116. "model.UserTokenList": {
  5117. "type": "object",
  5118. "properties": {
  5119. "list": {
  5120. "type": "array",
  5121. "items": {
  5122. "$ref": "#/definitions/model.UserToken"
  5123. }
  5124. },
  5125. "page": {
  5126. "type": "integer"
  5127. },
  5128. "page_size": {
  5129. "type": "integer"
  5130. },
  5131. "total": {
  5132. "type": "integer"
  5133. }
  5134. }
  5135. },
  5136. "response.ErrorResponse": {
  5137. "type": "object",
  5138. "properties": {
  5139. "error": {
  5140. "type": "string"
  5141. }
  5142. }
  5143. },
  5144. "response.Response": {
  5145. "type": "object",
  5146. "properties": {
  5147. "code": {
  5148. "type": "integer"
  5149. },
  5150. "data": {},
  5151. "message": {
  5152. "type": "string"
  5153. }
  5154. }
  5155. }
  5156. },
  5157. "securityDefinitions": {
  5158. "BearerAuth": {
  5159. "type": "apiKey",
  5160. "name": "Authorization",
  5161. "in": "header"
  5162. },
  5163. "token": {
  5164. "type": "apiKey",
  5165. "name": "api-token",
  5166. "in": "header"
  5167. }
  5168. }
  5169. }`
  5170. // SwaggerInfoadmin holds exported Swagger Info so clients can modify it
  5171. var SwaggerInfoadmin = &swag.Spec{
  5172. Version: "1.0",
  5173. Host: "",
  5174. BasePath: "/api",
  5175. Schemes: []string{},
  5176. Title: "管理系统API",
  5177. Description: "接口",
  5178. InfoInstanceName: "admin",
  5179. SwaggerTemplate: docTemplateadmin,
  5180. LeftDelim: "{{",
  5181. RightDelim: "}}",
  5182. }
  5183. func init() {
  5184. swag.Register(SwaggerInfoadmin.InstanceName(), SwaggerInfoadmin)
  5185. }