admin_docs.go 156 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824
  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/oauth/create": {
  2021. "post": {
  2022. "security": [
  2023. {
  2024. "token": []
  2025. }
  2026. ],
  2027. "description": "创建Oauth",
  2028. "consumes": [
  2029. "application/json"
  2030. ],
  2031. "produces": [
  2032. "application/json"
  2033. ],
  2034. "tags": [
  2035. "Oauth"
  2036. ],
  2037. "summary": "创建Oauth",
  2038. "parameters": [
  2039. {
  2040. "description": "Oauth信息",
  2041. "name": "body",
  2042. "in": "body",
  2043. "required": true,
  2044. "schema": {
  2045. "$ref": "#/definitions/admin.OauthForm"
  2046. }
  2047. }
  2048. ],
  2049. "responses": {
  2050. "200": {
  2051. "description": "OK",
  2052. "schema": {
  2053. "allOf": [
  2054. {
  2055. "$ref": "#/definitions/response.Response"
  2056. },
  2057. {
  2058. "type": "object",
  2059. "properties": {
  2060. "data": {
  2061. "$ref": "#/definitions/model.Oauth"
  2062. }
  2063. }
  2064. }
  2065. ]
  2066. }
  2067. },
  2068. "500": {
  2069. "description": "Internal Server Error",
  2070. "schema": {
  2071. "$ref": "#/definitions/response.Response"
  2072. }
  2073. }
  2074. }
  2075. }
  2076. },
  2077. "/admin/oauth/delete": {
  2078. "post": {
  2079. "security": [
  2080. {
  2081. "token": []
  2082. }
  2083. ],
  2084. "description": "Oauth删除",
  2085. "consumes": [
  2086. "application/json"
  2087. ],
  2088. "produces": [
  2089. "application/json"
  2090. ],
  2091. "tags": [
  2092. "Oauth"
  2093. ],
  2094. "summary": "Oauth删除",
  2095. "parameters": [
  2096. {
  2097. "description": "Oauth信息",
  2098. "name": "body",
  2099. "in": "body",
  2100. "required": true,
  2101. "schema": {
  2102. "$ref": "#/definitions/admin.OauthForm"
  2103. }
  2104. }
  2105. ],
  2106. "responses": {
  2107. "200": {
  2108. "description": "OK",
  2109. "schema": {
  2110. "$ref": "#/definitions/response.Response"
  2111. }
  2112. },
  2113. "500": {
  2114. "description": "Internal Server Error",
  2115. "schema": {
  2116. "$ref": "#/definitions/response.Response"
  2117. }
  2118. }
  2119. }
  2120. }
  2121. },
  2122. "/admin/oauth/detail/{id}": {
  2123. "get": {
  2124. "security": [
  2125. {
  2126. "token": []
  2127. }
  2128. ],
  2129. "description": "Oauth详情",
  2130. "consumes": [
  2131. "application/json"
  2132. ],
  2133. "produces": [
  2134. "application/json"
  2135. ],
  2136. "tags": [
  2137. "Oauth"
  2138. ],
  2139. "summary": "Oauth详情",
  2140. "parameters": [
  2141. {
  2142. "type": "integer",
  2143. "description": "ID",
  2144. "name": "id",
  2145. "in": "path",
  2146. "required": true
  2147. }
  2148. ],
  2149. "responses": {
  2150. "200": {
  2151. "description": "OK",
  2152. "schema": {
  2153. "allOf": [
  2154. {
  2155. "$ref": "#/definitions/response.Response"
  2156. },
  2157. {
  2158. "type": "object",
  2159. "properties": {
  2160. "data": {
  2161. "$ref": "#/definitions/model.Oauth"
  2162. }
  2163. }
  2164. }
  2165. ]
  2166. }
  2167. },
  2168. "500": {
  2169. "description": "Internal Server Error",
  2170. "schema": {
  2171. "$ref": "#/definitions/response.Response"
  2172. }
  2173. }
  2174. }
  2175. }
  2176. },
  2177. "/admin/oauth/list": {
  2178. "get": {
  2179. "security": [
  2180. {
  2181. "token": []
  2182. }
  2183. ],
  2184. "description": "Oauth列表",
  2185. "consumes": [
  2186. "application/json"
  2187. ],
  2188. "produces": [
  2189. "application/json"
  2190. ],
  2191. "tags": [
  2192. "Oauth"
  2193. ],
  2194. "summary": "Oauth列表",
  2195. "parameters": [
  2196. {
  2197. "type": "integer",
  2198. "description": "页码",
  2199. "name": "page",
  2200. "in": "query"
  2201. },
  2202. {
  2203. "type": "integer",
  2204. "description": "页大小",
  2205. "name": "page_size",
  2206. "in": "query"
  2207. }
  2208. ],
  2209. "responses": {
  2210. "200": {
  2211. "description": "OK",
  2212. "schema": {
  2213. "allOf": [
  2214. {
  2215. "$ref": "#/definitions/response.Response"
  2216. },
  2217. {
  2218. "type": "object",
  2219. "properties": {
  2220. "data": {
  2221. "$ref": "#/definitions/model.OauthList"
  2222. }
  2223. }
  2224. }
  2225. ]
  2226. }
  2227. },
  2228. "500": {
  2229. "description": "Internal Server Error",
  2230. "schema": {
  2231. "$ref": "#/definitions/response.Response"
  2232. }
  2233. }
  2234. }
  2235. }
  2236. },
  2237. "/admin/oauth/update": {
  2238. "post": {
  2239. "security": [
  2240. {
  2241. "token": []
  2242. }
  2243. ],
  2244. "description": "Oauth编辑",
  2245. "consumes": [
  2246. "application/json"
  2247. ],
  2248. "produces": [
  2249. "application/json"
  2250. ],
  2251. "tags": [
  2252. "Oauth"
  2253. ],
  2254. "summary": "Oauth编辑",
  2255. "parameters": [
  2256. {
  2257. "description": "Oauth信息",
  2258. "name": "body",
  2259. "in": "body",
  2260. "required": true,
  2261. "schema": {
  2262. "$ref": "#/definitions/admin.OauthForm"
  2263. }
  2264. }
  2265. ],
  2266. "responses": {
  2267. "200": {
  2268. "description": "OK",
  2269. "schema": {
  2270. "allOf": [
  2271. {
  2272. "$ref": "#/definitions/response.Response"
  2273. },
  2274. {
  2275. "type": "object",
  2276. "properties": {
  2277. "data": {
  2278. "$ref": "#/definitions/model.OauthList"
  2279. }
  2280. }
  2281. }
  2282. ]
  2283. }
  2284. },
  2285. "500": {
  2286. "description": "Internal Server Error",
  2287. "schema": {
  2288. "$ref": "#/definitions/response.Response"
  2289. }
  2290. }
  2291. }
  2292. }
  2293. },
  2294. "/admin/oidc/auth": {
  2295. "post": {
  2296. "description": "OidcAuth",
  2297. "consumes": [
  2298. "application/json"
  2299. ],
  2300. "produces": [
  2301. "application/json"
  2302. ],
  2303. "tags": [
  2304. "Oauth"
  2305. ],
  2306. "summary": "OidcAuth",
  2307. "responses": {}
  2308. }
  2309. },
  2310. "/admin/oidc/auth-query": {
  2311. "get": {
  2312. "description": "OidcAuthQuery",
  2313. "consumes": [
  2314. "application/json"
  2315. ],
  2316. "produces": [
  2317. "application/json"
  2318. ],
  2319. "tags": [
  2320. "Oauth"
  2321. ],
  2322. "summary": "OidcAuthQuery",
  2323. "responses": {
  2324. "200": {
  2325. "description": "OK",
  2326. "schema": {
  2327. "allOf": [
  2328. {
  2329. "$ref": "#/definitions/response.Response"
  2330. },
  2331. {
  2332. "type": "object",
  2333. "properties": {
  2334. "data": {
  2335. "$ref": "#/definitions/admin.LoginPayload"
  2336. }
  2337. }
  2338. }
  2339. ]
  2340. }
  2341. },
  2342. "500": {
  2343. "description": "Internal Server Error",
  2344. "schema": {
  2345. "$ref": "#/definitions/response.Response"
  2346. }
  2347. }
  2348. }
  2349. }
  2350. },
  2351. "/admin/peer/batchDelete": {
  2352. "post": {
  2353. "security": [
  2354. {
  2355. "token": []
  2356. }
  2357. ],
  2358. "description": "批量设备删除",
  2359. "consumes": [
  2360. "application/json"
  2361. ],
  2362. "produces": [
  2363. "application/json"
  2364. ],
  2365. "tags": [
  2366. "设备"
  2367. ],
  2368. "summary": "批量设备删除",
  2369. "parameters": [
  2370. {
  2371. "description": "设备id",
  2372. "name": "body",
  2373. "in": "body",
  2374. "required": true,
  2375. "schema": {
  2376. "$ref": "#/definitions/admin.PeerBatchDeleteForm"
  2377. }
  2378. }
  2379. ],
  2380. "responses": {
  2381. "200": {
  2382. "description": "OK",
  2383. "schema": {
  2384. "$ref": "#/definitions/response.Response"
  2385. }
  2386. },
  2387. "500": {
  2388. "description": "Internal Server Error",
  2389. "schema": {
  2390. "$ref": "#/definitions/response.Response"
  2391. }
  2392. }
  2393. }
  2394. }
  2395. },
  2396. "/admin/peer/create": {
  2397. "post": {
  2398. "security": [
  2399. {
  2400. "token": []
  2401. }
  2402. ],
  2403. "description": "创建设备",
  2404. "consumes": [
  2405. "application/json"
  2406. ],
  2407. "produces": [
  2408. "application/json"
  2409. ],
  2410. "tags": [
  2411. "设备"
  2412. ],
  2413. "summary": "创建设备",
  2414. "parameters": [
  2415. {
  2416. "description": "设备信息",
  2417. "name": "body",
  2418. "in": "body",
  2419. "required": true,
  2420. "schema": {
  2421. "$ref": "#/definitions/admin.PeerForm"
  2422. }
  2423. }
  2424. ],
  2425. "responses": {
  2426. "200": {
  2427. "description": "OK",
  2428. "schema": {
  2429. "allOf": [
  2430. {
  2431. "$ref": "#/definitions/response.Response"
  2432. },
  2433. {
  2434. "type": "object",
  2435. "properties": {
  2436. "data": {
  2437. "$ref": "#/definitions/model.Peer"
  2438. }
  2439. }
  2440. }
  2441. ]
  2442. }
  2443. },
  2444. "500": {
  2445. "description": "Internal Server Error",
  2446. "schema": {
  2447. "$ref": "#/definitions/response.Response"
  2448. }
  2449. }
  2450. }
  2451. }
  2452. },
  2453. "/admin/peer/delete": {
  2454. "post": {
  2455. "security": [
  2456. {
  2457. "token": []
  2458. }
  2459. ],
  2460. "description": "设备删除",
  2461. "consumes": [
  2462. "application/json"
  2463. ],
  2464. "produces": [
  2465. "application/json"
  2466. ],
  2467. "tags": [
  2468. "设备"
  2469. ],
  2470. "summary": "设备删除",
  2471. "parameters": [
  2472. {
  2473. "description": "设备信息",
  2474. "name": "body",
  2475. "in": "body",
  2476. "required": true,
  2477. "schema": {
  2478. "$ref": "#/definitions/admin.PeerForm"
  2479. }
  2480. }
  2481. ],
  2482. "responses": {
  2483. "200": {
  2484. "description": "OK",
  2485. "schema": {
  2486. "$ref": "#/definitions/response.Response"
  2487. }
  2488. },
  2489. "500": {
  2490. "description": "Internal Server Error",
  2491. "schema": {
  2492. "$ref": "#/definitions/response.Response"
  2493. }
  2494. }
  2495. }
  2496. }
  2497. },
  2498. "/admin/peer/detail/{id}": {
  2499. "get": {
  2500. "security": [
  2501. {
  2502. "token": []
  2503. }
  2504. ],
  2505. "description": "设备详情",
  2506. "consumes": [
  2507. "application/json"
  2508. ],
  2509. "produces": [
  2510. "application/json"
  2511. ],
  2512. "tags": [
  2513. "设备"
  2514. ],
  2515. "summary": "设备详情",
  2516. "parameters": [
  2517. {
  2518. "type": "integer",
  2519. "description": "ID",
  2520. "name": "id",
  2521. "in": "path",
  2522. "required": true
  2523. }
  2524. ],
  2525. "responses": {
  2526. "200": {
  2527. "description": "OK",
  2528. "schema": {
  2529. "allOf": [
  2530. {
  2531. "$ref": "#/definitions/response.Response"
  2532. },
  2533. {
  2534. "type": "object",
  2535. "properties": {
  2536. "data": {
  2537. "$ref": "#/definitions/model.Peer"
  2538. }
  2539. }
  2540. }
  2541. ]
  2542. }
  2543. },
  2544. "500": {
  2545. "description": "Internal Server Error",
  2546. "schema": {
  2547. "$ref": "#/definitions/response.Response"
  2548. }
  2549. }
  2550. }
  2551. }
  2552. },
  2553. "/admin/peer/list": {
  2554. "get": {
  2555. "security": [
  2556. {
  2557. "token": []
  2558. }
  2559. ],
  2560. "description": "设备列表",
  2561. "consumes": [
  2562. "application/json"
  2563. ],
  2564. "produces": [
  2565. "application/json"
  2566. ],
  2567. "tags": [
  2568. "设备"
  2569. ],
  2570. "summary": "设备列表",
  2571. "parameters": [
  2572. {
  2573. "type": "integer",
  2574. "description": "页码",
  2575. "name": "page",
  2576. "in": "query"
  2577. },
  2578. {
  2579. "type": "integer",
  2580. "description": "页大小",
  2581. "name": "page_size",
  2582. "in": "query"
  2583. },
  2584. {
  2585. "type": "integer",
  2586. "description": "时间",
  2587. "name": "time_ago",
  2588. "in": "query"
  2589. },
  2590. {
  2591. "type": "string",
  2592. "description": "ID",
  2593. "name": "id",
  2594. "in": "query"
  2595. },
  2596. {
  2597. "type": "string",
  2598. "description": "主机名",
  2599. "name": "hostname",
  2600. "in": "query"
  2601. },
  2602. {
  2603. "type": "string",
  2604. "description": "uuids 用逗号分隔",
  2605. "name": "uuids",
  2606. "in": "query"
  2607. }
  2608. ],
  2609. "responses": {
  2610. "200": {
  2611. "description": "OK",
  2612. "schema": {
  2613. "allOf": [
  2614. {
  2615. "$ref": "#/definitions/response.Response"
  2616. },
  2617. {
  2618. "type": "object",
  2619. "properties": {
  2620. "data": {
  2621. "$ref": "#/definitions/model.PeerList"
  2622. }
  2623. }
  2624. }
  2625. ]
  2626. }
  2627. },
  2628. "500": {
  2629. "description": "Internal Server Error",
  2630. "schema": {
  2631. "$ref": "#/definitions/response.Response"
  2632. }
  2633. }
  2634. }
  2635. }
  2636. },
  2637. "/admin/peer/update": {
  2638. "post": {
  2639. "security": [
  2640. {
  2641. "token": []
  2642. }
  2643. ],
  2644. "description": "设备编辑",
  2645. "consumes": [
  2646. "application/json"
  2647. ],
  2648. "produces": [
  2649. "application/json"
  2650. ],
  2651. "tags": [
  2652. "设备"
  2653. ],
  2654. "summary": "设备编辑",
  2655. "parameters": [
  2656. {
  2657. "description": "设备信息",
  2658. "name": "body",
  2659. "in": "body",
  2660. "required": true,
  2661. "schema": {
  2662. "$ref": "#/definitions/admin.PeerForm"
  2663. }
  2664. }
  2665. ],
  2666. "responses": {
  2667. "200": {
  2668. "description": "OK",
  2669. "schema": {
  2670. "allOf": [
  2671. {
  2672. "$ref": "#/definitions/response.Response"
  2673. },
  2674. {
  2675. "type": "object",
  2676. "properties": {
  2677. "data": {
  2678. "$ref": "#/definitions/model.Peer"
  2679. }
  2680. }
  2681. }
  2682. ]
  2683. }
  2684. },
  2685. "500": {
  2686. "description": "Internal Server Error",
  2687. "schema": {
  2688. "$ref": "#/definitions/response.Response"
  2689. }
  2690. }
  2691. }
  2692. }
  2693. },
  2694. "/admin/server-config": {
  2695. "get": {
  2696. "security": [
  2697. {
  2698. "token": []
  2699. }
  2700. ],
  2701. "description": "服务配置,给webclient提供api-server",
  2702. "consumes": [
  2703. "application/json"
  2704. ],
  2705. "produces": [
  2706. "application/json"
  2707. ],
  2708. "tags": [
  2709. "ADMIN"
  2710. ],
  2711. "summary": "RUSTDESK服务配置",
  2712. "responses": {
  2713. "200": {
  2714. "description": "OK",
  2715. "schema": {
  2716. "$ref": "#/definitions/response.Response"
  2717. }
  2718. },
  2719. "500": {
  2720. "description": "Internal Server Error",
  2721. "schema": {
  2722. "$ref": "#/definitions/response.Response"
  2723. }
  2724. }
  2725. }
  2726. }
  2727. },
  2728. "/admin/tag/create": {
  2729. "post": {
  2730. "security": [
  2731. {
  2732. "token": []
  2733. }
  2734. ],
  2735. "description": "创建标签",
  2736. "consumes": [
  2737. "application/json"
  2738. ],
  2739. "produces": [
  2740. "application/json"
  2741. ],
  2742. "tags": [
  2743. "标签"
  2744. ],
  2745. "summary": "创建标签",
  2746. "parameters": [
  2747. {
  2748. "description": "标签信息",
  2749. "name": "body",
  2750. "in": "body",
  2751. "required": true,
  2752. "schema": {
  2753. "$ref": "#/definitions/admin.TagForm"
  2754. }
  2755. }
  2756. ],
  2757. "responses": {
  2758. "200": {
  2759. "description": "OK",
  2760. "schema": {
  2761. "allOf": [
  2762. {
  2763. "$ref": "#/definitions/response.Response"
  2764. },
  2765. {
  2766. "type": "object",
  2767. "properties": {
  2768. "data": {
  2769. "$ref": "#/definitions/model.Tag"
  2770. }
  2771. }
  2772. }
  2773. ]
  2774. }
  2775. },
  2776. "500": {
  2777. "description": "Internal Server Error",
  2778. "schema": {
  2779. "$ref": "#/definitions/response.Response"
  2780. }
  2781. }
  2782. }
  2783. }
  2784. },
  2785. "/admin/tag/delete": {
  2786. "post": {
  2787. "security": [
  2788. {
  2789. "token": []
  2790. }
  2791. ],
  2792. "description": "标签删除",
  2793. "consumes": [
  2794. "application/json"
  2795. ],
  2796. "produces": [
  2797. "application/json"
  2798. ],
  2799. "tags": [
  2800. "标签"
  2801. ],
  2802. "summary": "标签删除",
  2803. "parameters": [
  2804. {
  2805. "description": "标签信息",
  2806. "name": "body",
  2807. "in": "body",
  2808. "required": true,
  2809. "schema": {
  2810. "$ref": "#/definitions/admin.TagForm"
  2811. }
  2812. }
  2813. ],
  2814. "responses": {
  2815. "200": {
  2816. "description": "OK",
  2817. "schema": {
  2818. "$ref": "#/definitions/response.Response"
  2819. }
  2820. },
  2821. "500": {
  2822. "description": "Internal Server Error",
  2823. "schema": {
  2824. "$ref": "#/definitions/response.Response"
  2825. }
  2826. }
  2827. }
  2828. }
  2829. },
  2830. "/admin/tag/detail/{id}": {
  2831. "get": {
  2832. "security": [
  2833. {
  2834. "token": []
  2835. }
  2836. ],
  2837. "description": "标签详情",
  2838. "consumes": [
  2839. "application/json"
  2840. ],
  2841. "produces": [
  2842. "application/json"
  2843. ],
  2844. "tags": [
  2845. "标签"
  2846. ],
  2847. "summary": "标签详情",
  2848. "parameters": [
  2849. {
  2850. "type": "integer",
  2851. "description": "ID",
  2852. "name": "id",
  2853. "in": "path",
  2854. "required": true
  2855. }
  2856. ],
  2857. "responses": {
  2858. "200": {
  2859. "description": "OK",
  2860. "schema": {
  2861. "allOf": [
  2862. {
  2863. "$ref": "#/definitions/response.Response"
  2864. },
  2865. {
  2866. "type": "object",
  2867. "properties": {
  2868. "data": {
  2869. "$ref": "#/definitions/model.Tag"
  2870. }
  2871. }
  2872. }
  2873. ]
  2874. }
  2875. },
  2876. "500": {
  2877. "description": "Internal Server Error",
  2878. "schema": {
  2879. "$ref": "#/definitions/response.Response"
  2880. }
  2881. }
  2882. }
  2883. }
  2884. },
  2885. "/admin/tag/list": {
  2886. "get": {
  2887. "security": [
  2888. {
  2889. "token": []
  2890. }
  2891. ],
  2892. "description": "标签列表",
  2893. "consumes": [
  2894. "application/json"
  2895. ],
  2896. "produces": [
  2897. "application/json"
  2898. ],
  2899. "tags": [
  2900. "标签"
  2901. ],
  2902. "summary": "标签列表",
  2903. "parameters": [
  2904. {
  2905. "type": "integer",
  2906. "description": "页码",
  2907. "name": "page",
  2908. "in": "query"
  2909. },
  2910. {
  2911. "type": "integer",
  2912. "description": "页大小",
  2913. "name": "page_size",
  2914. "in": "query"
  2915. },
  2916. {
  2917. "type": "integer",
  2918. "description": "是否是我的",
  2919. "name": "is_my",
  2920. "in": "query"
  2921. },
  2922. {
  2923. "type": "integer",
  2924. "description": "用户id",
  2925. "name": "user_id",
  2926. "in": "query"
  2927. }
  2928. ],
  2929. "responses": {
  2930. "200": {
  2931. "description": "OK",
  2932. "schema": {
  2933. "allOf": [
  2934. {
  2935. "$ref": "#/definitions/response.Response"
  2936. },
  2937. {
  2938. "type": "object",
  2939. "properties": {
  2940. "data": {
  2941. "$ref": "#/definitions/model.TagList"
  2942. }
  2943. }
  2944. }
  2945. ]
  2946. }
  2947. },
  2948. "500": {
  2949. "description": "Internal Server Error",
  2950. "schema": {
  2951. "$ref": "#/definitions/response.Response"
  2952. }
  2953. }
  2954. }
  2955. }
  2956. },
  2957. "/admin/tag/update": {
  2958. "post": {
  2959. "security": [
  2960. {
  2961. "token": []
  2962. }
  2963. ],
  2964. "description": "标签编辑",
  2965. "consumes": [
  2966. "application/json"
  2967. ],
  2968. "produces": [
  2969. "application/json"
  2970. ],
  2971. "tags": [
  2972. "标签"
  2973. ],
  2974. "summary": "标签编辑",
  2975. "parameters": [
  2976. {
  2977. "description": "标签信息",
  2978. "name": "body",
  2979. "in": "body",
  2980. "required": true,
  2981. "schema": {
  2982. "$ref": "#/definitions/admin.TagForm"
  2983. }
  2984. }
  2985. ],
  2986. "responses": {
  2987. "200": {
  2988. "description": "OK",
  2989. "schema": {
  2990. "allOf": [
  2991. {
  2992. "$ref": "#/definitions/response.Response"
  2993. },
  2994. {
  2995. "type": "object",
  2996. "properties": {
  2997. "data": {
  2998. "$ref": "#/definitions/model.Tag"
  2999. }
  3000. }
  3001. }
  3002. ]
  3003. }
  3004. },
  3005. "500": {
  3006. "description": "Internal Server Error",
  3007. "schema": {
  3008. "$ref": "#/definitions/response.Response"
  3009. }
  3010. }
  3011. }
  3012. }
  3013. },
  3014. "/admin/user/changeCurPwd": {
  3015. "post": {
  3016. "security": [
  3017. {
  3018. "token": []
  3019. }
  3020. ],
  3021. "description": "修改当前用户密码",
  3022. "consumes": [
  3023. "application/json"
  3024. ],
  3025. "produces": [
  3026. "application/json"
  3027. ],
  3028. "tags": [
  3029. "用户"
  3030. ],
  3031. "summary": "修改当前用户密码",
  3032. "parameters": [
  3033. {
  3034. "description": "用户信息",
  3035. "name": "body",
  3036. "in": "body",
  3037. "required": true,
  3038. "schema": {
  3039. "$ref": "#/definitions/admin.ChangeCurPasswordForm"
  3040. }
  3041. }
  3042. ],
  3043. "responses": {
  3044. "200": {
  3045. "description": "OK",
  3046. "schema": {
  3047. "$ref": "#/definitions/response.Response"
  3048. }
  3049. },
  3050. "500": {
  3051. "description": "Internal Server Error",
  3052. "schema": {
  3053. "$ref": "#/definitions/response.Response"
  3054. }
  3055. }
  3056. }
  3057. }
  3058. },
  3059. "/admin/user/create": {
  3060. "post": {
  3061. "security": [
  3062. {
  3063. "token": []
  3064. }
  3065. ],
  3066. "description": "创建管理员",
  3067. "consumes": [
  3068. "application/json"
  3069. ],
  3070. "produces": [
  3071. "application/json"
  3072. ],
  3073. "tags": [
  3074. "用户"
  3075. ],
  3076. "summary": "创建管理员",
  3077. "parameters": [
  3078. {
  3079. "description": "管理员信息",
  3080. "name": "body",
  3081. "in": "body",
  3082. "required": true,
  3083. "schema": {
  3084. "$ref": "#/definitions/admin.UserForm"
  3085. }
  3086. }
  3087. ],
  3088. "responses": {
  3089. "200": {
  3090. "description": "OK",
  3091. "schema": {
  3092. "allOf": [
  3093. {
  3094. "$ref": "#/definitions/response.Response"
  3095. },
  3096. {
  3097. "type": "object",
  3098. "properties": {
  3099. "data": {
  3100. "$ref": "#/definitions/model.User"
  3101. }
  3102. }
  3103. }
  3104. ]
  3105. }
  3106. },
  3107. "500": {
  3108. "description": "Internal Server Error",
  3109. "schema": {
  3110. "$ref": "#/definitions/response.Response"
  3111. }
  3112. }
  3113. }
  3114. }
  3115. },
  3116. "/admin/user/current": {
  3117. "get": {
  3118. "security": [
  3119. {
  3120. "token": []
  3121. }
  3122. ],
  3123. "description": "当前用户",
  3124. "consumes": [
  3125. "application/json"
  3126. ],
  3127. "produces": [
  3128. "application/json"
  3129. ],
  3130. "tags": [
  3131. "用户"
  3132. ],
  3133. "summary": "当前用户",
  3134. "responses": {
  3135. "200": {
  3136. "description": "OK",
  3137. "schema": {
  3138. "allOf": [
  3139. {
  3140. "$ref": "#/definitions/response.Response"
  3141. },
  3142. {
  3143. "type": "object",
  3144. "properties": {
  3145. "data": {
  3146. "$ref": "#/definitions/admin.LoginPayload"
  3147. }
  3148. }
  3149. }
  3150. ]
  3151. }
  3152. },
  3153. "500": {
  3154. "description": "Internal Server Error",
  3155. "schema": {
  3156. "$ref": "#/definitions/response.Response"
  3157. }
  3158. }
  3159. }
  3160. }
  3161. },
  3162. "/admin/user/delete": {
  3163. "post": {
  3164. "security": [
  3165. {
  3166. "token": []
  3167. }
  3168. ],
  3169. "description": "管理员编删除",
  3170. "consumes": [
  3171. "application/json"
  3172. ],
  3173. "produces": [
  3174. "application/json"
  3175. ],
  3176. "tags": [
  3177. "用户"
  3178. ],
  3179. "summary": "管理员删除",
  3180. "parameters": [
  3181. {
  3182. "description": "用户信息",
  3183. "name": "body",
  3184. "in": "body",
  3185. "required": true,
  3186. "schema": {
  3187. "$ref": "#/definitions/admin.UserForm"
  3188. }
  3189. }
  3190. ],
  3191. "responses": {
  3192. "200": {
  3193. "description": "OK",
  3194. "schema": {
  3195. "$ref": "#/definitions/response.Response"
  3196. }
  3197. },
  3198. "500": {
  3199. "description": "Internal Server Error",
  3200. "schema": {
  3201. "$ref": "#/definitions/response.Response"
  3202. }
  3203. }
  3204. }
  3205. }
  3206. },
  3207. "/admin/user/detail/{id}": {
  3208. "get": {
  3209. "security": [
  3210. {
  3211. "token": []
  3212. }
  3213. ],
  3214. "description": "管理员详情",
  3215. "consumes": [
  3216. "application/json"
  3217. ],
  3218. "produces": [
  3219. "application/json"
  3220. ],
  3221. "tags": [
  3222. "用户"
  3223. ],
  3224. "summary": "管理员详情",
  3225. "parameters": [
  3226. {
  3227. "type": "integer",
  3228. "description": "ID",
  3229. "name": "id",
  3230. "in": "path",
  3231. "required": true
  3232. }
  3233. ],
  3234. "responses": {
  3235. "200": {
  3236. "description": "OK",
  3237. "schema": {
  3238. "allOf": [
  3239. {
  3240. "$ref": "#/definitions/response.Response"
  3241. },
  3242. {
  3243. "type": "object",
  3244. "properties": {
  3245. "data": {
  3246. "$ref": "#/definitions/model.User"
  3247. }
  3248. }
  3249. }
  3250. ]
  3251. }
  3252. },
  3253. "500": {
  3254. "description": "Internal Server Error",
  3255. "schema": {
  3256. "$ref": "#/definitions/response.Response"
  3257. }
  3258. }
  3259. }
  3260. }
  3261. },
  3262. "/admin/user/list": {
  3263. "get": {
  3264. "security": [
  3265. {
  3266. "token": []
  3267. }
  3268. ],
  3269. "description": "管理员列表",
  3270. "consumes": [
  3271. "application/json"
  3272. ],
  3273. "produces": [
  3274. "application/json"
  3275. ],
  3276. "tags": [
  3277. "用户"
  3278. ],
  3279. "summary": "管理员列表",
  3280. "parameters": [
  3281. {
  3282. "type": "integer",
  3283. "description": "页码",
  3284. "name": "page",
  3285. "in": "query"
  3286. },
  3287. {
  3288. "type": "integer",
  3289. "description": "页大小",
  3290. "name": "page_size",
  3291. "in": "query"
  3292. },
  3293. {
  3294. "type": "integer",
  3295. "description": "账户",
  3296. "name": "username",
  3297. "in": "query"
  3298. }
  3299. ],
  3300. "responses": {
  3301. "200": {
  3302. "description": "OK",
  3303. "schema": {
  3304. "allOf": [
  3305. {
  3306. "$ref": "#/definitions/response.Response"
  3307. },
  3308. {
  3309. "type": "object",
  3310. "properties": {
  3311. "data": {
  3312. "$ref": "#/definitions/model.UserList"
  3313. }
  3314. }
  3315. }
  3316. ]
  3317. }
  3318. },
  3319. "500": {
  3320. "description": "Internal Server Error",
  3321. "schema": {
  3322. "$ref": "#/definitions/response.Response"
  3323. }
  3324. }
  3325. }
  3326. }
  3327. },
  3328. "/admin/user/myOauth": {
  3329. "get": {
  3330. "security": [
  3331. {
  3332. "token": []
  3333. }
  3334. ],
  3335. "description": "我的授权",
  3336. "consumes": [
  3337. "application/json"
  3338. ],
  3339. "produces": [
  3340. "application/json"
  3341. ],
  3342. "tags": [
  3343. "用户"
  3344. ],
  3345. "summary": "我的授权",
  3346. "responses": {
  3347. "200": {
  3348. "description": "OK",
  3349. "schema": {
  3350. "allOf": [
  3351. {
  3352. "$ref": "#/definitions/response.Response"
  3353. },
  3354. {
  3355. "type": "object",
  3356. "properties": {
  3357. "data": {
  3358. "type": "array",
  3359. "items": {
  3360. "$ref": "#/definitions/admin.UserOauthItem"
  3361. }
  3362. }
  3363. }
  3364. }
  3365. ]
  3366. }
  3367. },
  3368. "500": {
  3369. "description": "Internal Server Error",
  3370. "schema": {
  3371. "$ref": "#/definitions/response.Response"
  3372. }
  3373. }
  3374. }
  3375. }
  3376. },
  3377. "/admin/user/myPeer": {
  3378. "get": {
  3379. "security": [
  3380. {
  3381. "token": []
  3382. }
  3383. ],
  3384. "description": "我的设备列表",
  3385. "consumes": [
  3386. "application/json"
  3387. ],
  3388. "produces": [
  3389. "application/json"
  3390. ],
  3391. "tags": [
  3392. "设备"
  3393. ],
  3394. "summary": "我的设备列表",
  3395. "parameters": [
  3396. {
  3397. "type": "integer",
  3398. "description": "页码",
  3399. "name": "page",
  3400. "in": "query"
  3401. },
  3402. {
  3403. "type": "integer",
  3404. "description": "页大小",
  3405. "name": "page_size",
  3406. "in": "query"
  3407. },
  3408. {
  3409. "type": "integer",
  3410. "description": "时间",
  3411. "name": "time_ago",
  3412. "in": "query"
  3413. },
  3414. {
  3415. "type": "string",
  3416. "description": "ID",
  3417. "name": "id",
  3418. "in": "query"
  3419. },
  3420. {
  3421. "type": "string",
  3422. "description": "主机名",
  3423. "name": "hostname",
  3424. "in": "query"
  3425. },
  3426. {
  3427. "type": "string",
  3428. "description": "uuids 用逗号分隔",
  3429. "name": "uuids",
  3430. "in": "query"
  3431. }
  3432. ],
  3433. "responses": {
  3434. "200": {
  3435. "description": "OK",
  3436. "schema": {
  3437. "allOf": [
  3438. {
  3439. "$ref": "#/definitions/response.Response"
  3440. },
  3441. {
  3442. "type": "object",
  3443. "properties": {
  3444. "data": {
  3445. "$ref": "#/definitions/model.PeerList"
  3446. }
  3447. }
  3448. }
  3449. ]
  3450. }
  3451. },
  3452. "500": {
  3453. "description": "Internal Server Error",
  3454. "schema": {
  3455. "$ref": "#/definitions/response.Response"
  3456. }
  3457. }
  3458. }
  3459. }
  3460. },
  3461. "/admin/user/update": {
  3462. "post": {
  3463. "security": [
  3464. {
  3465. "token": []
  3466. }
  3467. ],
  3468. "description": "管理员编辑",
  3469. "consumes": [
  3470. "application/json"
  3471. ],
  3472. "produces": [
  3473. "application/json"
  3474. ],
  3475. "tags": [
  3476. "用户"
  3477. ],
  3478. "summary": "管理员编辑",
  3479. "parameters": [
  3480. {
  3481. "description": "用户信息",
  3482. "name": "body",
  3483. "in": "body",
  3484. "required": true,
  3485. "schema": {
  3486. "$ref": "#/definitions/admin.UserForm"
  3487. }
  3488. }
  3489. ],
  3490. "responses": {
  3491. "200": {
  3492. "description": "OK",
  3493. "schema": {
  3494. "allOf": [
  3495. {
  3496. "$ref": "#/definitions/response.Response"
  3497. },
  3498. {
  3499. "type": "object",
  3500. "properties": {
  3501. "data": {
  3502. "$ref": "#/definitions/model.User"
  3503. }
  3504. }
  3505. }
  3506. ]
  3507. }
  3508. },
  3509. "500": {
  3510. "description": "Internal Server Error",
  3511. "schema": {
  3512. "$ref": "#/definitions/response.Response"
  3513. }
  3514. }
  3515. }
  3516. }
  3517. },
  3518. "/admin/user/updatePassword": {
  3519. "post": {
  3520. "security": [
  3521. {
  3522. "token": []
  3523. }
  3524. ],
  3525. "description": "修改密码",
  3526. "consumes": [
  3527. "application/json"
  3528. ],
  3529. "produces": [
  3530. "application/json"
  3531. ],
  3532. "tags": [
  3533. "用户"
  3534. ],
  3535. "summary": "修改密码",
  3536. "parameters": [
  3537. {
  3538. "description": "用户信息",
  3539. "name": "body",
  3540. "in": "body",
  3541. "required": true,
  3542. "schema": {
  3543. "$ref": "#/definitions/admin.UserPasswordForm"
  3544. }
  3545. }
  3546. ],
  3547. "responses": {
  3548. "200": {
  3549. "description": "OK",
  3550. "schema": {
  3551. "$ref": "#/definitions/response.Response"
  3552. }
  3553. },
  3554. "500": {
  3555. "description": "Internal Server Error",
  3556. "schema": {
  3557. "$ref": "#/definitions/response.Response"
  3558. }
  3559. }
  3560. }
  3561. }
  3562. },
  3563. "/admin/user_token/delete": {
  3564. "post": {
  3565. "security": [
  3566. {
  3567. "token": []
  3568. }
  3569. ],
  3570. "description": "登录凭证删除",
  3571. "consumes": [
  3572. "application/json"
  3573. ],
  3574. "produces": [
  3575. "application/json"
  3576. ],
  3577. "tags": [
  3578. "登录凭证"
  3579. ],
  3580. "summary": "登录凭证删除",
  3581. "parameters": [
  3582. {
  3583. "description": "登录凭证信息",
  3584. "name": "body",
  3585. "in": "body",
  3586. "required": true,
  3587. "schema": {
  3588. "$ref": "#/definitions/model.UserToken"
  3589. }
  3590. }
  3591. ],
  3592. "responses": {
  3593. "200": {
  3594. "description": "OK",
  3595. "schema": {
  3596. "$ref": "#/definitions/response.Response"
  3597. }
  3598. },
  3599. "500": {
  3600. "description": "Internal Server Error",
  3601. "schema": {
  3602. "$ref": "#/definitions/response.Response"
  3603. }
  3604. }
  3605. }
  3606. }
  3607. },
  3608. "/admin/user_token/list": {
  3609. "get": {
  3610. "security": [
  3611. {
  3612. "token": []
  3613. }
  3614. ],
  3615. "description": "登录凭证列表",
  3616. "consumes": [
  3617. "application/json"
  3618. ],
  3619. "produces": [
  3620. "application/json"
  3621. ],
  3622. "tags": [
  3623. "登录凭证"
  3624. ],
  3625. "summary": "登录凭证列表",
  3626. "parameters": [
  3627. {
  3628. "type": "integer",
  3629. "description": "页码",
  3630. "name": "page",
  3631. "in": "query"
  3632. },
  3633. {
  3634. "type": "integer",
  3635. "description": "页大小",
  3636. "name": "page_size",
  3637. "in": "query"
  3638. },
  3639. {
  3640. "type": "integer",
  3641. "description": "用户ID",
  3642. "name": "user_id",
  3643. "in": "query"
  3644. }
  3645. ],
  3646. "responses": {
  3647. "200": {
  3648. "description": "OK",
  3649. "schema": {
  3650. "allOf": [
  3651. {
  3652. "$ref": "#/definitions/response.Response"
  3653. },
  3654. {
  3655. "type": "object",
  3656. "properties": {
  3657. "data": {
  3658. "$ref": "#/definitions/model.UserTokenList"
  3659. }
  3660. }
  3661. }
  3662. ]
  3663. }
  3664. },
  3665. "500": {
  3666. "description": "Internal Server Error",
  3667. "schema": {
  3668. "$ref": "#/definitions/response.Response"
  3669. }
  3670. }
  3671. }
  3672. }
  3673. }
  3674. },
  3675. "definitions": {
  3676. "Gwen_http_request_admin.Login": {
  3677. "type": "object",
  3678. "required": [
  3679. "password",
  3680. "username"
  3681. ],
  3682. "properties": {
  3683. "password": {
  3684. "type": "string"
  3685. },
  3686. "platform": {
  3687. "type": "string"
  3688. },
  3689. "username": {
  3690. "type": "string"
  3691. }
  3692. }
  3693. },
  3694. "admin.AddressBookForm": {
  3695. "type": "object",
  3696. "required": [
  3697. "id"
  3698. ],
  3699. "properties": {
  3700. "alias": {
  3701. "type": "string"
  3702. },
  3703. "collection_id": {
  3704. "type": "integer"
  3705. },
  3706. "forceAlwaysRelay": {
  3707. "type": "boolean"
  3708. },
  3709. "hash": {
  3710. "type": "string"
  3711. },
  3712. "hostname": {
  3713. "type": "string"
  3714. },
  3715. "id": {
  3716. "type": "string"
  3717. },
  3718. "loginName": {
  3719. "type": "string"
  3720. },
  3721. "online": {
  3722. "type": "boolean"
  3723. },
  3724. "password": {
  3725. "type": "string"
  3726. },
  3727. "platform": {
  3728. "type": "string"
  3729. },
  3730. "rdpPort": {
  3731. "type": "string"
  3732. },
  3733. "rdpUsername": {
  3734. "type": "string"
  3735. },
  3736. "row_id": {
  3737. "type": "integer"
  3738. },
  3739. "sameServer": {
  3740. "type": "boolean"
  3741. },
  3742. "tags": {
  3743. "type": "array",
  3744. "items": {
  3745. "type": "string"
  3746. }
  3747. },
  3748. "user_id": {
  3749. "type": "integer"
  3750. },
  3751. "user_ids": {
  3752. "type": "array",
  3753. "items": {
  3754. "type": "integer"
  3755. }
  3756. },
  3757. "username": {
  3758. "type": "string"
  3759. }
  3760. }
  3761. },
  3762. "admin.AuditConnLogIds": {
  3763. "type": "object",
  3764. "required": [
  3765. "ids"
  3766. ],
  3767. "properties": {
  3768. "ids": {
  3769. "type": "array",
  3770. "items": {
  3771. "type": "integer"
  3772. }
  3773. }
  3774. }
  3775. },
  3776. "admin.AuditFileLogIds": {
  3777. "type": "object",
  3778. "required": [
  3779. "ids"
  3780. ],
  3781. "properties": {
  3782. "ids": {
  3783. "type": "array",
  3784. "items": {
  3785. "type": "integer"
  3786. }
  3787. }
  3788. }
  3789. },
  3790. "admin.ChangeCurPasswordForm": {
  3791. "type": "object",
  3792. "required": [
  3793. "new_password",
  3794. "old_password"
  3795. ],
  3796. "properties": {
  3797. "new_password": {
  3798. "type": "string",
  3799. "maxLength": 20,
  3800. "minLength": 4
  3801. },
  3802. "old_password": {
  3803. "type": "string",
  3804. "maxLength": 20,
  3805. "minLength": 4
  3806. }
  3807. }
  3808. },
  3809. "admin.GroupForm": {
  3810. "type": "object",
  3811. "required": [
  3812. "name"
  3813. ],
  3814. "properties": {
  3815. "id": {
  3816. "type": "integer"
  3817. },
  3818. "name": {
  3819. "type": "string"
  3820. },
  3821. "type": {
  3822. "type": "integer"
  3823. }
  3824. }
  3825. },
  3826. "admin.LoginLogIds": {
  3827. "type": "object",
  3828. "required": [
  3829. "ids"
  3830. ],
  3831. "properties": {
  3832. "ids": {
  3833. "type": "array",
  3834. "items": {
  3835. "type": "integer"
  3836. }
  3837. }
  3838. }
  3839. },
  3840. "admin.LoginPayload": {
  3841. "type": "object",
  3842. "properties": {
  3843. "avatar": {
  3844. "type": "string"
  3845. },
  3846. "email": {
  3847. "type": "string"
  3848. },
  3849. "nickname": {
  3850. "type": "string"
  3851. },
  3852. "route_names": {
  3853. "type": "array",
  3854. "items": {
  3855. "type": "string"
  3856. }
  3857. },
  3858. "token": {
  3859. "type": "string"
  3860. },
  3861. "username": {
  3862. "type": "string"
  3863. }
  3864. }
  3865. },
  3866. "admin.OauthForm": {
  3867. "type": "object",
  3868. "required": [
  3869. "client_id",
  3870. "client_secret",
  3871. "oauth_type",
  3872. "redirect_url"
  3873. ],
  3874. "properties": {
  3875. "auto_register": {
  3876. "type": "boolean"
  3877. },
  3878. "client_id": {
  3879. "type": "string"
  3880. },
  3881. "client_secret": {
  3882. "type": "string"
  3883. },
  3884. "id": {
  3885. "type": "integer"
  3886. },
  3887. "issuer": {
  3888. "type": "string"
  3889. },
  3890. "oauth_type": {
  3891. "type": "string"
  3892. },
  3893. "op": {
  3894. "type": "string"
  3895. },
  3896. "redirect_url": {
  3897. "type": "string"
  3898. },
  3899. "scopes": {
  3900. "type": "string"
  3901. }
  3902. }
  3903. },
  3904. "admin.PeerBatchDeleteForm": {
  3905. "type": "object",
  3906. "required": [
  3907. "row_ids"
  3908. ],
  3909. "properties": {
  3910. "row_ids": {
  3911. "type": "array",
  3912. "items": {
  3913. "type": "integer"
  3914. }
  3915. }
  3916. }
  3917. },
  3918. "admin.PeerForm": {
  3919. "type": "object",
  3920. "properties": {
  3921. "cpu": {
  3922. "type": "string"
  3923. },
  3924. "hostname": {
  3925. "type": "string"
  3926. },
  3927. "id": {
  3928. "type": "string"
  3929. },
  3930. "memory": {
  3931. "type": "string"
  3932. },
  3933. "os": {
  3934. "type": "string"
  3935. },
  3936. "row_id": {
  3937. "type": "integer"
  3938. },
  3939. "username": {
  3940. "type": "string"
  3941. },
  3942. "uuid": {
  3943. "type": "string"
  3944. },
  3945. "version": {
  3946. "type": "string"
  3947. }
  3948. }
  3949. },
  3950. "admin.ShareByWebClientForm": {
  3951. "type": "object",
  3952. "required": [
  3953. "id",
  3954. "password",
  3955. "password_type"
  3956. ],
  3957. "properties": {
  3958. "expire": {
  3959. "type": "integer"
  3960. },
  3961. "id": {
  3962. "type": "string"
  3963. },
  3964. "password": {
  3965. "type": "string"
  3966. },
  3967. "password_type": {
  3968. "description": "只能是once,fixed",
  3969. "type": "string",
  3970. "enum": [
  3971. "once",
  3972. "fixed"
  3973. ]
  3974. }
  3975. }
  3976. },
  3977. "admin.TagForm": {
  3978. "type": "object",
  3979. "required": [
  3980. "color",
  3981. "name"
  3982. ],
  3983. "properties": {
  3984. "collection_id": {
  3985. "type": "integer"
  3986. },
  3987. "color": {
  3988. "type": "integer"
  3989. },
  3990. "id": {
  3991. "type": "integer"
  3992. },
  3993. "name": {
  3994. "type": "string"
  3995. },
  3996. "user_id": {
  3997. "type": "integer"
  3998. }
  3999. }
  4000. },
  4001. "admin.UserForm": {
  4002. "type": "object",
  4003. "required": [
  4004. "group_id",
  4005. "status",
  4006. "username"
  4007. ],
  4008. "properties": {
  4009. "avatar": {
  4010. "type": "string"
  4011. },
  4012. "email": {
  4013. "description": "validate:\"required,email\" email不强制",
  4014. "type": "string"
  4015. },
  4016. "group_id": {
  4017. "type": "integer"
  4018. },
  4019. "id": {
  4020. "type": "integer"
  4021. },
  4022. "is_admin": {
  4023. "type": "boolean"
  4024. },
  4025. "nickname": {
  4026. "description": "Password string ` + "`" + `json:\"password\" validate:\"required,gte=4,lte=20\"` + "`" + `",
  4027. "type": "string"
  4028. },
  4029. "status": {
  4030. "minimum": 0,
  4031. "allOf": [
  4032. {
  4033. "$ref": "#/definitions/model.StatusCode"
  4034. }
  4035. ]
  4036. },
  4037. "username": {
  4038. "type": "string",
  4039. "maxLength": 10,
  4040. "minLength": 2
  4041. }
  4042. }
  4043. },
  4044. "admin.UserOauthItem": {
  4045. "type": "object",
  4046. "properties": {
  4047. "op": {
  4048. "type": "string"
  4049. },
  4050. "status": {
  4051. "type": "integer"
  4052. }
  4053. }
  4054. },
  4055. "admin.UserPasswordForm": {
  4056. "type": "object",
  4057. "required": [
  4058. "id",
  4059. "password"
  4060. ],
  4061. "properties": {
  4062. "id": {
  4063. "type": "integer"
  4064. },
  4065. "password": {
  4066. "type": "string",
  4067. "maxLength": 20,
  4068. "minLength": 4
  4069. }
  4070. }
  4071. },
  4072. "model.AddressBook": {
  4073. "type": "object",
  4074. "properties": {
  4075. "alias": {
  4076. "type": "string"
  4077. },
  4078. "collection": {
  4079. "$ref": "#/definitions/model.AddressBookCollection"
  4080. },
  4081. "collection_id": {
  4082. "type": "integer"
  4083. },
  4084. "created_at": {
  4085. "type": "string"
  4086. },
  4087. "forceAlwaysRelay": {
  4088. "type": "boolean"
  4089. },
  4090. "hash": {
  4091. "type": "string"
  4092. },
  4093. "hostname": {
  4094. "type": "string"
  4095. },
  4096. "id": {
  4097. "type": "string"
  4098. },
  4099. "loginName": {
  4100. "type": "string"
  4101. },
  4102. "online": {
  4103. "type": "boolean"
  4104. },
  4105. "password": {
  4106. "type": "string"
  4107. },
  4108. "platform": {
  4109. "type": "string"
  4110. },
  4111. "rdpPort": {
  4112. "type": "string"
  4113. },
  4114. "rdpUsername": {
  4115. "type": "string"
  4116. },
  4117. "row_id": {
  4118. "type": "integer"
  4119. },
  4120. "sameServer": {
  4121. "type": "boolean"
  4122. },
  4123. "tags": {
  4124. "type": "array",
  4125. "items": {
  4126. "type": "string"
  4127. }
  4128. },
  4129. "updated_at": {
  4130. "type": "string"
  4131. },
  4132. "user_id": {
  4133. "type": "integer"
  4134. },
  4135. "username": {
  4136. "type": "string"
  4137. }
  4138. }
  4139. },
  4140. "model.AddressBookCollection": {
  4141. "type": "object",
  4142. "required": [
  4143. "name"
  4144. ],
  4145. "properties": {
  4146. "created_at": {
  4147. "type": "string"
  4148. },
  4149. "id": {
  4150. "type": "integer"
  4151. },
  4152. "name": {
  4153. "type": "string"
  4154. },
  4155. "updated_at": {
  4156. "type": "string"
  4157. },
  4158. "user_id": {
  4159. "type": "integer"
  4160. }
  4161. }
  4162. },
  4163. "model.AddressBookCollectionList": {
  4164. "type": "object",
  4165. "properties": {
  4166. "list": {
  4167. "type": "array",
  4168. "items": {
  4169. "$ref": "#/definitions/model.AddressBookCollection"
  4170. }
  4171. },
  4172. "page": {
  4173. "type": "integer"
  4174. },
  4175. "page_size": {
  4176. "type": "integer"
  4177. },
  4178. "total": {
  4179. "type": "integer"
  4180. }
  4181. }
  4182. },
  4183. "model.AddressBookCollectionRule": {
  4184. "type": "object",
  4185. "required": [
  4186. "collection_id",
  4187. "rule",
  4188. "to_id",
  4189. "type"
  4190. ],
  4191. "properties": {
  4192. "collection_id": {
  4193. "type": "integer"
  4194. },
  4195. "created_at": {
  4196. "type": "string"
  4197. },
  4198. "id": {
  4199. "type": "integer"
  4200. },
  4201. "rule": {
  4202. "description": "0: 无 1: 读 2: 读写 3: 完全控制",
  4203. "type": "integer",
  4204. "maximum": 3,
  4205. "minimum": 1
  4206. },
  4207. "to_id": {
  4208. "type": "integer"
  4209. },
  4210. "type": {
  4211. "description": "1: 个人 2: 群组",
  4212. "type": "integer",
  4213. "maximum": 2,
  4214. "minimum": 1
  4215. },
  4216. "updated_at": {
  4217. "type": "string"
  4218. },
  4219. "user_id": {
  4220. "type": "integer"
  4221. }
  4222. }
  4223. },
  4224. "model.AddressBookList": {
  4225. "type": "object",
  4226. "properties": {
  4227. "list": {
  4228. "type": "array",
  4229. "items": {
  4230. "$ref": "#/definitions/model.AddressBook"
  4231. }
  4232. },
  4233. "page": {
  4234. "type": "integer"
  4235. },
  4236. "page_size": {
  4237. "type": "integer"
  4238. },
  4239. "total": {
  4240. "type": "integer"
  4241. }
  4242. }
  4243. },
  4244. "model.AuditConn": {
  4245. "type": "object",
  4246. "properties": {
  4247. "action": {
  4248. "type": "string"
  4249. },
  4250. "close_time": {
  4251. "type": "integer"
  4252. },
  4253. "conn_id": {
  4254. "type": "integer"
  4255. },
  4256. "created_at": {
  4257. "type": "string"
  4258. },
  4259. "from_name": {
  4260. "type": "string"
  4261. },
  4262. "from_peer": {
  4263. "type": "string"
  4264. },
  4265. "id": {
  4266. "type": "integer"
  4267. },
  4268. "ip": {
  4269. "type": "string"
  4270. },
  4271. "peer_id": {
  4272. "type": "string"
  4273. },
  4274. "session_id": {
  4275. "type": "string"
  4276. },
  4277. "type": {
  4278. "type": "integer"
  4279. },
  4280. "updated_at": {
  4281. "type": "string"
  4282. },
  4283. "uuid": {
  4284. "type": "string"
  4285. }
  4286. }
  4287. },
  4288. "model.AuditConnList": {
  4289. "type": "object",
  4290. "properties": {
  4291. "list": {
  4292. "type": "array",
  4293. "items": {
  4294. "$ref": "#/definitions/model.AuditConn"
  4295. }
  4296. },
  4297. "page": {
  4298. "type": "integer"
  4299. },
  4300. "page_size": {
  4301. "type": "integer"
  4302. },
  4303. "total": {
  4304. "type": "integer"
  4305. }
  4306. }
  4307. },
  4308. "model.AuditFile": {
  4309. "type": "object",
  4310. "properties": {
  4311. "created_at": {
  4312. "type": "string"
  4313. },
  4314. "from_name": {
  4315. "type": "string"
  4316. },
  4317. "from_peer": {
  4318. "type": "string"
  4319. },
  4320. "id": {
  4321. "type": "integer"
  4322. },
  4323. "info": {
  4324. "type": "string"
  4325. },
  4326. "ip": {
  4327. "type": "string"
  4328. },
  4329. "is_file": {
  4330. "type": "boolean"
  4331. },
  4332. "num": {
  4333. "type": "integer"
  4334. },
  4335. "path": {
  4336. "type": "string"
  4337. },
  4338. "peer_id": {
  4339. "type": "string"
  4340. },
  4341. "type": {
  4342. "type": "integer"
  4343. },
  4344. "updated_at": {
  4345. "type": "string"
  4346. },
  4347. "uuid": {
  4348. "type": "string"
  4349. }
  4350. }
  4351. },
  4352. "model.AuditFileList": {
  4353. "type": "object",
  4354. "properties": {
  4355. "list": {
  4356. "type": "array",
  4357. "items": {
  4358. "$ref": "#/definitions/model.AuditFile"
  4359. }
  4360. },
  4361. "page": {
  4362. "type": "integer"
  4363. },
  4364. "page_size": {
  4365. "type": "integer"
  4366. },
  4367. "total": {
  4368. "type": "integer"
  4369. }
  4370. }
  4371. },
  4372. "model.Group": {
  4373. "type": "object",
  4374. "properties": {
  4375. "created_at": {
  4376. "type": "string"
  4377. },
  4378. "id": {
  4379. "type": "integer"
  4380. },
  4381. "name": {
  4382. "type": "string"
  4383. },
  4384. "type": {
  4385. "type": "integer"
  4386. },
  4387. "updated_at": {
  4388. "type": "string"
  4389. }
  4390. }
  4391. },
  4392. "model.GroupList": {
  4393. "type": "object",
  4394. "properties": {
  4395. "list": {
  4396. "type": "array",
  4397. "items": {
  4398. "$ref": "#/definitions/model.Group"
  4399. }
  4400. },
  4401. "page": {
  4402. "type": "integer"
  4403. },
  4404. "page_size": {
  4405. "type": "integer"
  4406. },
  4407. "total": {
  4408. "type": "integer"
  4409. }
  4410. }
  4411. },
  4412. "model.LoginLog": {
  4413. "type": "object",
  4414. "properties": {
  4415. "client": {
  4416. "description": "webadmin,webclient,app,",
  4417. "type": "string"
  4418. },
  4419. "created_at": {
  4420. "type": "string"
  4421. },
  4422. "device_id": {
  4423. "type": "string"
  4424. },
  4425. "id": {
  4426. "type": "integer"
  4427. },
  4428. "ip": {
  4429. "type": "string"
  4430. },
  4431. "platform": {
  4432. "description": "windows,linux,mac,android,ios",
  4433. "type": "string"
  4434. },
  4435. "type": {
  4436. "description": "account,oauth",
  4437. "type": "string"
  4438. },
  4439. "updated_at": {
  4440. "type": "string"
  4441. },
  4442. "user_id": {
  4443. "type": "integer"
  4444. },
  4445. "user_token_id": {
  4446. "type": "integer"
  4447. },
  4448. "uuid": {
  4449. "type": "string"
  4450. }
  4451. }
  4452. },
  4453. "model.LoginLogList": {
  4454. "type": "object",
  4455. "properties": {
  4456. "list": {
  4457. "type": "array",
  4458. "items": {
  4459. "$ref": "#/definitions/model.LoginLog"
  4460. }
  4461. },
  4462. "page": {
  4463. "type": "integer"
  4464. },
  4465. "page_size": {
  4466. "type": "integer"
  4467. },
  4468. "total": {
  4469. "type": "integer"
  4470. }
  4471. }
  4472. },
  4473. "model.Oauth": {
  4474. "type": "object",
  4475. "properties": {
  4476. "auto_register": {
  4477. "type": "boolean"
  4478. },
  4479. "client_id": {
  4480. "type": "string"
  4481. },
  4482. "client_secret": {
  4483. "type": "string"
  4484. },
  4485. "created_at": {
  4486. "type": "string"
  4487. },
  4488. "id": {
  4489. "type": "integer"
  4490. },
  4491. "issuer": {
  4492. "type": "string"
  4493. },
  4494. "oauth_type": {
  4495. "type": "string"
  4496. },
  4497. "op": {
  4498. "type": "string"
  4499. },
  4500. "redirect_url": {
  4501. "type": "string"
  4502. },
  4503. "scopes": {
  4504. "type": "string"
  4505. },
  4506. "updated_at": {
  4507. "type": "string"
  4508. }
  4509. }
  4510. },
  4511. "model.OauthList": {
  4512. "type": "object",
  4513. "properties": {
  4514. "list": {
  4515. "type": "array",
  4516. "items": {
  4517. "$ref": "#/definitions/model.Oauth"
  4518. }
  4519. },
  4520. "page": {
  4521. "type": "integer"
  4522. },
  4523. "page_size": {
  4524. "type": "integer"
  4525. },
  4526. "total": {
  4527. "type": "integer"
  4528. }
  4529. }
  4530. },
  4531. "model.Peer": {
  4532. "type": "object",
  4533. "properties": {
  4534. "cpu": {
  4535. "type": "string"
  4536. },
  4537. "created_at": {
  4538. "type": "string"
  4539. },
  4540. "hostname": {
  4541. "type": "string"
  4542. },
  4543. "id": {
  4544. "type": "string"
  4545. },
  4546. "last_online_ip": {
  4547. "type": "string"
  4548. },
  4549. "last_online_time": {
  4550. "type": "integer"
  4551. },
  4552. "memory": {
  4553. "type": "string"
  4554. },
  4555. "os": {
  4556. "type": "string"
  4557. },
  4558. "row_id": {
  4559. "type": "integer"
  4560. },
  4561. "updated_at": {
  4562. "type": "string"
  4563. },
  4564. "user": {
  4565. "$ref": "#/definitions/model.User"
  4566. },
  4567. "user_id": {
  4568. "type": "integer"
  4569. },
  4570. "username": {
  4571. "type": "string"
  4572. },
  4573. "uuid": {
  4574. "type": "string"
  4575. },
  4576. "version": {
  4577. "type": "string"
  4578. }
  4579. }
  4580. },
  4581. "model.PeerList": {
  4582. "type": "object",
  4583. "properties": {
  4584. "list": {
  4585. "type": "array",
  4586. "items": {
  4587. "$ref": "#/definitions/model.Peer"
  4588. }
  4589. },
  4590. "page": {
  4591. "type": "integer"
  4592. },
  4593. "page_size": {
  4594. "type": "integer"
  4595. },
  4596. "total": {
  4597. "type": "integer"
  4598. }
  4599. }
  4600. },
  4601. "model.StatusCode": {
  4602. "type": "integer",
  4603. "enum": [
  4604. 1,
  4605. 2
  4606. ],
  4607. "x-enum-comments": {
  4608. "COMMON_STATUS_DISABLED": "通用状态 禁用",
  4609. "COMMON_STATUS_ENABLE": "通用状态 启用"
  4610. },
  4611. "x-enum-varnames": [
  4612. "COMMON_STATUS_ENABLE",
  4613. "COMMON_STATUS_DISABLED"
  4614. ]
  4615. },
  4616. "model.Tag": {
  4617. "type": "object",
  4618. "properties": {
  4619. "collection": {
  4620. "$ref": "#/definitions/model.AddressBookCollection"
  4621. },
  4622. "collection_id": {
  4623. "type": "integer"
  4624. },
  4625. "color": {
  4626. "description": "color 是flutter的颜色值,从0x00000000 到 0xFFFFFFFF; 前两位表示透明度,后面6位表示颜色, 可以转成rgba",
  4627. "type": "integer"
  4628. },
  4629. "created_at": {
  4630. "type": "string"
  4631. },
  4632. "id": {
  4633. "type": "integer"
  4634. },
  4635. "name": {
  4636. "type": "string"
  4637. },
  4638. "updated_at": {
  4639. "type": "string"
  4640. },
  4641. "user_id": {
  4642. "type": "integer"
  4643. }
  4644. }
  4645. },
  4646. "model.TagList": {
  4647. "type": "object",
  4648. "properties": {
  4649. "list": {
  4650. "type": "array",
  4651. "items": {
  4652. "$ref": "#/definitions/model.Tag"
  4653. }
  4654. },
  4655. "page": {
  4656. "type": "integer"
  4657. },
  4658. "page_size": {
  4659. "type": "integer"
  4660. },
  4661. "total": {
  4662. "type": "integer"
  4663. }
  4664. }
  4665. },
  4666. "model.User": {
  4667. "type": "object",
  4668. "properties": {
  4669. "avatar": {
  4670. "type": "string"
  4671. },
  4672. "created_at": {
  4673. "type": "string"
  4674. },
  4675. "email": {
  4676. "type": "string"
  4677. },
  4678. "group_id": {
  4679. "type": "integer"
  4680. },
  4681. "id": {
  4682. "type": "integer"
  4683. },
  4684. "is_admin": {
  4685. "type": "boolean"
  4686. },
  4687. "nickname": {
  4688. "type": "string"
  4689. },
  4690. "status": {
  4691. "$ref": "#/definitions/model.StatusCode"
  4692. },
  4693. "updated_at": {
  4694. "type": "string"
  4695. },
  4696. "username": {
  4697. "type": "string"
  4698. }
  4699. }
  4700. },
  4701. "model.UserList": {
  4702. "type": "object",
  4703. "properties": {
  4704. "list": {
  4705. "type": "array",
  4706. "items": {
  4707. "$ref": "#/definitions/model.User"
  4708. }
  4709. },
  4710. "page": {
  4711. "type": "integer"
  4712. },
  4713. "page_size": {
  4714. "type": "integer"
  4715. },
  4716. "total": {
  4717. "type": "integer"
  4718. }
  4719. }
  4720. },
  4721. "model.UserToken": {
  4722. "type": "object",
  4723. "properties": {
  4724. "created_at": {
  4725. "type": "string"
  4726. },
  4727. "device_id": {
  4728. "type": "string"
  4729. },
  4730. "device_uuid": {
  4731. "type": "string"
  4732. },
  4733. "expired_at": {
  4734. "type": "integer"
  4735. },
  4736. "id": {
  4737. "type": "integer"
  4738. },
  4739. "token": {
  4740. "type": "string"
  4741. },
  4742. "updated_at": {
  4743. "type": "string"
  4744. },
  4745. "user_id": {
  4746. "type": "integer"
  4747. }
  4748. }
  4749. },
  4750. "model.UserTokenList": {
  4751. "type": "object",
  4752. "properties": {
  4753. "list": {
  4754. "type": "array",
  4755. "items": {
  4756. "$ref": "#/definitions/model.UserToken"
  4757. }
  4758. },
  4759. "page": {
  4760. "type": "integer"
  4761. },
  4762. "page_size": {
  4763. "type": "integer"
  4764. },
  4765. "total": {
  4766. "type": "integer"
  4767. }
  4768. }
  4769. },
  4770. "response.ErrorResponse": {
  4771. "type": "object",
  4772. "properties": {
  4773. "error": {
  4774. "type": "string"
  4775. }
  4776. }
  4777. },
  4778. "response.Response": {
  4779. "type": "object",
  4780. "properties": {
  4781. "code": {
  4782. "type": "integer"
  4783. },
  4784. "data": {},
  4785. "message": {
  4786. "type": "string"
  4787. }
  4788. }
  4789. }
  4790. },
  4791. "securityDefinitions": {
  4792. "BearerAuth": {
  4793. "type": "apiKey",
  4794. "name": "Authorization",
  4795. "in": "header"
  4796. },
  4797. "token": {
  4798. "type": "apiKey",
  4799. "name": "api-token",
  4800. "in": "header"
  4801. }
  4802. }
  4803. }`
  4804. // SwaggerInfoadmin holds exported Swagger Info so clients can modify it
  4805. var SwaggerInfoadmin = &swag.Spec{
  4806. Version: "1.0",
  4807. Host: "",
  4808. BasePath: "/api",
  4809. Schemes: []string{},
  4810. Title: "管理系统API",
  4811. Description: "接口",
  4812. InfoInstanceName: "admin",
  4813. SwaggerTemplate: docTemplateadmin,
  4814. LeftDelim: "{{",
  4815. RightDelim: "}}",
  4816. }
  4817. func init() {
  4818. swag.Register(SwaggerInfoadmin.InstanceName(), SwaggerInfoadmin)
  4819. }