admin_swagger.json 155 KB

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