admin_swagger.json 140 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335
  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/delete": {
  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/model.AuditFile"
  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/list": {
  1000. "get": {
  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. "type": "integer",
  1020. "description": "页码",
  1021. "name": "page",
  1022. "in": "query"
  1023. },
  1024. {
  1025. "type": "integer",
  1026. "description": "页大小",
  1027. "name": "page_size",
  1028. "in": "query"
  1029. },
  1030. {
  1031. "type": "integer",
  1032. "description": "目标设备",
  1033. "name": "peer_id",
  1034. "in": "query"
  1035. },
  1036. {
  1037. "type": "integer",
  1038. "description": "来源设备",
  1039. "name": "from_peer",
  1040. "in": "query"
  1041. }
  1042. ],
  1043. "responses": {
  1044. "200": {
  1045. "description": "OK",
  1046. "schema": {
  1047. "allOf": [
  1048. {
  1049. "$ref": "#/definitions/response.Response"
  1050. },
  1051. {
  1052. "type": "object",
  1053. "properties": {
  1054. "data": {
  1055. "$ref": "#/definitions/model.AuditFileList"
  1056. }
  1057. }
  1058. }
  1059. ]
  1060. }
  1061. },
  1062. "500": {
  1063. "description": "Internal Server Error",
  1064. "schema": {
  1065. "$ref": "#/definitions/response.Response"
  1066. }
  1067. }
  1068. }
  1069. }
  1070. },
  1071. "/admin/file/oss_token": {
  1072. "get": {
  1073. "security": [
  1074. {
  1075. "token": []
  1076. }
  1077. ],
  1078. "description": "获取ossToken",
  1079. "consumes": [
  1080. "application/json"
  1081. ],
  1082. "produces": [
  1083. "application/json"
  1084. ],
  1085. "tags": [
  1086. "文件"
  1087. ],
  1088. "summary": "获取ossToken",
  1089. "responses": {
  1090. "200": {
  1091. "description": "OK",
  1092. "schema": {
  1093. "$ref": "#/definitions/response.Response"
  1094. }
  1095. },
  1096. "500": {
  1097. "description": "Internal Server Error",
  1098. "schema": {
  1099. "$ref": "#/definitions/response.Response"
  1100. }
  1101. }
  1102. }
  1103. }
  1104. },
  1105. "/admin/file/upload": {
  1106. "post": {
  1107. "security": [
  1108. {
  1109. "token": []
  1110. }
  1111. ],
  1112. "description": "上传文件到本地",
  1113. "consumes": [
  1114. "multipart/form-data"
  1115. ],
  1116. "produces": [
  1117. "application/json"
  1118. ],
  1119. "tags": [
  1120. "文件"
  1121. ],
  1122. "summary": "上传文件到本地",
  1123. "parameters": [
  1124. {
  1125. "type": "file",
  1126. "description": "上传文件示例",
  1127. "name": "file",
  1128. "in": "formData",
  1129. "required": true
  1130. }
  1131. ],
  1132. "responses": {
  1133. "200": {
  1134. "description": "OK",
  1135. "schema": {
  1136. "$ref": "#/definitions/response.Response"
  1137. }
  1138. },
  1139. "500": {
  1140. "description": "Internal Server Error",
  1141. "schema": {
  1142. "$ref": "#/definitions/response.Response"
  1143. }
  1144. }
  1145. }
  1146. }
  1147. },
  1148. "/admin/group/create": {
  1149. "post": {
  1150. "security": [
  1151. {
  1152. "token": []
  1153. }
  1154. ],
  1155. "description": "创建群组",
  1156. "consumes": [
  1157. "application/json"
  1158. ],
  1159. "produces": [
  1160. "application/json"
  1161. ],
  1162. "tags": [
  1163. "群组"
  1164. ],
  1165. "summary": "创建群组",
  1166. "parameters": [
  1167. {
  1168. "description": "群组信息",
  1169. "name": "body",
  1170. "in": "body",
  1171. "required": true,
  1172. "schema": {
  1173. "$ref": "#/definitions/admin.GroupForm"
  1174. }
  1175. }
  1176. ],
  1177. "responses": {
  1178. "200": {
  1179. "description": "OK",
  1180. "schema": {
  1181. "allOf": [
  1182. {
  1183. "$ref": "#/definitions/response.Response"
  1184. },
  1185. {
  1186. "type": "object",
  1187. "properties": {
  1188. "data": {
  1189. "$ref": "#/definitions/model.Group"
  1190. }
  1191. }
  1192. }
  1193. ]
  1194. }
  1195. },
  1196. "500": {
  1197. "description": "Internal Server Error",
  1198. "schema": {
  1199. "$ref": "#/definitions/response.Response"
  1200. }
  1201. }
  1202. }
  1203. }
  1204. },
  1205. "/admin/group/delete": {
  1206. "post": {
  1207. "security": [
  1208. {
  1209. "token": []
  1210. }
  1211. ],
  1212. "description": "群组删除",
  1213. "consumes": [
  1214. "application/json"
  1215. ],
  1216. "produces": [
  1217. "application/json"
  1218. ],
  1219. "tags": [
  1220. "群组"
  1221. ],
  1222. "summary": "群组删除",
  1223. "parameters": [
  1224. {
  1225. "description": "群组信息",
  1226. "name": "body",
  1227. "in": "body",
  1228. "required": true,
  1229. "schema": {
  1230. "$ref": "#/definitions/admin.GroupForm"
  1231. }
  1232. }
  1233. ],
  1234. "responses": {
  1235. "200": {
  1236. "description": "OK",
  1237. "schema": {
  1238. "$ref": "#/definitions/response.Response"
  1239. }
  1240. },
  1241. "500": {
  1242. "description": "Internal Server Error",
  1243. "schema": {
  1244. "$ref": "#/definitions/response.Response"
  1245. }
  1246. }
  1247. }
  1248. }
  1249. },
  1250. "/admin/group/detail/{id}": {
  1251. "get": {
  1252. "security": [
  1253. {
  1254. "token": []
  1255. }
  1256. ],
  1257. "description": "群组详情",
  1258. "consumes": [
  1259. "application/json"
  1260. ],
  1261. "produces": [
  1262. "application/json"
  1263. ],
  1264. "tags": [
  1265. "群组"
  1266. ],
  1267. "summary": "群组详情",
  1268. "parameters": [
  1269. {
  1270. "type": "integer",
  1271. "description": "ID",
  1272. "name": "id",
  1273. "in": "path",
  1274. "required": true
  1275. }
  1276. ],
  1277. "responses": {
  1278. "200": {
  1279. "description": "OK",
  1280. "schema": {
  1281. "allOf": [
  1282. {
  1283. "$ref": "#/definitions/response.Response"
  1284. },
  1285. {
  1286. "type": "object",
  1287. "properties": {
  1288. "data": {
  1289. "$ref": "#/definitions/model.Group"
  1290. }
  1291. }
  1292. }
  1293. ]
  1294. }
  1295. },
  1296. "500": {
  1297. "description": "Internal Server Error",
  1298. "schema": {
  1299. "$ref": "#/definitions/response.Response"
  1300. }
  1301. }
  1302. }
  1303. }
  1304. },
  1305. "/admin/group/list": {
  1306. "get": {
  1307. "security": [
  1308. {
  1309. "token": []
  1310. }
  1311. ],
  1312. "description": "群组列表",
  1313. "consumes": [
  1314. "application/json"
  1315. ],
  1316. "produces": [
  1317. "application/json"
  1318. ],
  1319. "tags": [
  1320. "群组"
  1321. ],
  1322. "summary": "群组列表",
  1323. "parameters": [
  1324. {
  1325. "type": "integer",
  1326. "description": "页码",
  1327. "name": "page",
  1328. "in": "query"
  1329. },
  1330. {
  1331. "type": "integer",
  1332. "description": "页大小",
  1333. "name": "page_size",
  1334. "in": "query"
  1335. }
  1336. ],
  1337. "responses": {
  1338. "200": {
  1339. "description": "OK",
  1340. "schema": {
  1341. "allOf": [
  1342. {
  1343. "$ref": "#/definitions/response.Response"
  1344. },
  1345. {
  1346. "type": "object",
  1347. "properties": {
  1348. "data": {
  1349. "$ref": "#/definitions/model.GroupList"
  1350. }
  1351. }
  1352. }
  1353. ]
  1354. }
  1355. },
  1356. "500": {
  1357. "description": "Internal Server Error",
  1358. "schema": {
  1359. "$ref": "#/definitions/response.Response"
  1360. }
  1361. }
  1362. }
  1363. }
  1364. },
  1365. "/admin/group/update": {
  1366. "post": {
  1367. "security": [
  1368. {
  1369. "token": []
  1370. }
  1371. ],
  1372. "description": "群组编辑",
  1373. "consumes": [
  1374. "application/json"
  1375. ],
  1376. "produces": [
  1377. "application/json"
  1378. ],
  1379. "tags": [
  1380. "群组"
  1381. ],
  1382. "summary": "群组编辑",
  1383. "parameters": [
  1384. {
  1385. "description": "群组信息",
  1386. "name": "body",
  1387. "in": "body",
  1388. "required": true,
  1389. "schema": {
  1390. "$ref": "#/definitions/admin.GroupForm"
  1391. }
  1392. }
  1393. ],
  1394. "responses": {
  1395. "200": {
  1396. "description": "OK",
  1397. "schema": {
  1398. "allOf": [
  1399. {
  1400. "$ref": "#/definitions/response.Response"
  1401. },
  1402. {
  1403. "type": "object",
  1404. "properties": {
  1405. "data": {
  1406. "$ref": "#/definitions/model.Group"
  1407. }
  1408. }
  1409. }
  1410. ]
  1411. }
  1412. },
  1413. "500": {
  1414. "description": "Internal Server Error",
  1415. "schema": {
  1416. "$ref": "#/definitions/response.Response"
  1417. }
  1418. }
  1419. }
  1420. }
  1421. },
  1422. "/admin/login": {
  1423. "post": {
  1424. "security": [
  1425. {
  1426. "token": []
  1427. }
  1428. ],
  1429. "description": "登录",
  1430. "consumes": [
  1431. "application/json"
  1432. ],
  1433. "produces": [
  1434. "application/json"
  1435. ],
  1436. "tags": [
  1437. "登录"
  1438. ],
  1439. "summary": "登录",
  1440. "parameters": [
  1441. {
  1442. "description": "登录信息",
  1443. "name": "body",
  1444. "in": "body",
  1445. "required": true,
  1446. "schema": {
  1447. "$ref": "#/definitions/Gwen_http_request_admin.Login"
  1448. }
  1449. }
  1450. ],
  1451. "responses": {
  1452. "200": {
  1453. "description": "OK",
  1454. "schema": {
  1455. "allOf": [
  1456. {
  1457. "$ref": "#/definitions/response.Response"
  1458. },
  1459. {
  1460. "type": "object",
  1461. "properties": {
  1462. "data": {
  1463. "$ref": "#/definitions/admin.LoginPayload"
  1464. }
  1465. }
  1466. }
  1467. ]
  1468. }
  1469. },
  1470. "500": {
  1471. "description": "Internal Server Error",
  1472. "schema": {
  1473. "$ref": "#/definitions/response.Response"
  1474. }
  1475. }
  1476. }
  1477. }
  1478. },
  1479. "/admin/login-options": {
  1480. "post": {
  1481. "description": "登录选项",
  1482. "consumes": [
  1483. "application/json"
  1484. ],
  1485. "produces": [
  1486. "application/json"
  1487. ],
  1488. "tags": [
  1489. "登录"
  1490. ],
  1491. "summary": "登录选项",
  1492. "responses": {
  1493. "200": {
  1494. "description": "OK",
  1495. "schema": {
  1496. "type": "array",
  1497. "items": {
  1498. "type": "string"
  1499. }
  1500. }
  1501. },
  1502. "500": {
  1503. "description": "Internal Server Error",
  1504. "schema": {
  1505. "$ref": "#/definitions/response.ErrorResponse"
  1506. }
  1507. }
  1508. }
  1509. }
  1510. },
  1511. "/admin/login_log/delete": {
  1512. "post": {
  1513. "security": [
  1514. {
  1515. "token": []
  1516. }
  1517. ],
  1518. "description": "登录日志删除",
  1519. "consumes": [
  1520. "application/json"
  1521. ],
  1522. "produces": [
  1523. "application/json"
  1524. ],
  1525. "tags": [
  1526. "登录日志"
  1527. ],
  1528. "summary": "登录日志删除",
  1529. "parameters": [
  1530. {
  1531. "description": "登录日志信息",
  1532. "name": "body",
  1533. "in": "body",
  1534. "required": true,
  1535. "schema": {
  1536. "$ref": "#/definitions/model.LoginLog"
  1537. }
  1538. }
  1539. ],
  1540. "responses": {
  1541. "200": {
  1542. "description": "OK",
  1543. "schema": {
  1544. "$ref": "#/definitions/response.Response"
  1545. }
  1546. },
  1547. "500": {
  1548. "description": "Internal Server Error",
  1549. "schema": {
  1550. "$ref": "#/definitions/response.Response"
  1551. }
  1552. }
  1553. }
  1554. }
  1555. },
  1556. "/admin/login_log/detail/{id}": {
  1557. "get": {
  1558. "security": [
  1559. {
  1560. "token": []
  1561. }
  1562. ],
  1563. "description": "登录日志详情",
  1564. "consumes": [
  1565. "application/json"
  1566. ],
  1567. "produces": [
  1568. "application/json"
  1569. ],
  1570. "tags": [
  1571. "登录日志"
  1572. ],
  1573. "summary": "登录日志详情",
  1574. "parameters": [
  1575. {
  1576. "type": "integer",
  1577. "description": "ID",
  1578. "name": "id",
  1579. "in": "path",
  1580. "required": true
  1581. }
  1582. ],
  1583. "responses": {
  1584. "200": {
  1585. "description": "OK",
  1586. "schema": {
  1587. "allOf": [
  1588. {
  1589. "$ref": "#/definitions/response.Response"
  1590. },
  1591. {
  1592. "type": "object",
  1593. "properties": {
  1594. "data": {
  1595. "$ref": "#/definitions/model.LoginLog"
  1596. }
  1597. }
  1598. }
  1599. ]
  1600. }
  1601. },
  1602. "500": {
  1603. "description": "Internal Server Error",
  1604. "schema": {
  1605. "$ref": "#/definitions/response.Response"
  1606. }
  1607. }
  1608. }
  1609. }
  1610. },
  1611. "/admin/login_log/list": {
  1612. "get": {
  1613. "security": [
  1614. {
  1615. "token": []
  1616. }
  1617. ],
  1618. "description": "登录日志列表",
  1619. "consumes": [
  1620. "application/json"
  1621. ],
  1622. "produces": [
  1623. "application/json"
  1624. ],
  1625. "tags": [
  1626. "登录日志"
  1627. ],
  1628. "summary": "登录日志列表",
  1629. "parameters": [
  1630. {
  1631. "type": "integer",
  1632. "description": "页码",
  1633. "name": "page",
  1634. "in": "query"
  1635. },
  1636. {
  1637. "type": "integer",
  1638. "description": "页大小",
  1639. "name": "page_size",
  1640. "in": "query"
  1641. },
  1642. {
  1643. "type": "integer",
  1644. "description": "用户ID",
  1645. "name": "user_id",
  1646. "in": "query"
  1647. }
  1648. ],
  1649. "responses": {
  1650. "200": {
  1651. "description": "OK",
  1652. "schema": {
  1653. "allOf": [
  1654. {
  1655. "$ref": "#/definitions/response.Response"
  1656. },
  1657. {
  1658. "type": "object",
  1659. "properties": {
  1660. "data": {
  1661. "$ref": "#/definitions/model.LoginLogList"
  1662. }
  1663. }
  1664. }
  1665. ]
  1666. }
  1667. },
  1668. "500": {
  1669. "description": "Internal Server Error",
  1670. "schema": {
  1671. "$ref": "#/definitions/response.Response"
  1672. }
  1673. }
  1674. }
  1675. }
  1676. },
  1677. "/admin/logout": {
  1678. "post": {
  1679. "description": "登出",
  1680. "consumes": [
  1681. "application/json"
  1682. ],
  1683. "produces": [
  1684. "application/json"
  1685. ],
  1686. "tags": [
  1687. "登录"
  1688. ],
  1689. "summary": "登出",
  1690. "responses": {
  1691. "200": {
  1692. "description": "OK",
  1693. "schema": {
  1694. "$ref": "#/definitions/response.Response"
  1695. }
  1696. },
  1697. "500": {
  1698. "description": "Internal Server Error",
  1699. "schema": {
  1700. "$ref": "#/definitions/response.Response"
  1701. }
  1702. }
  1703. }
  1704. }
  1705. },
  1706. "/admin/oauth/create": {
  1707. "post": {
  1708. "security": [
  1709. {
  1710. "token": []
  1711. }
  1712. ],
  1713. "description": "创建Oauth",
  1714. "consumes": [
  1715. "application/json"
  1716. ],
  1717. "produces": [
  1718. "application/json"
  1719. ],
  1720. "tags": [
  1721. "Oauth"
  1722. ],
  1723. "summary": "创建Oauth",
  1724. "parameters": [
  1725. {
  1726. "description": "Oauth信息",
  1727. "name": "body",
  1728. "in": "body",
  1729. "required": true,
  1730. "schema": {
  1731. "$ref": "#/definitions/admin.OauthForm"
  1732. }
  1733. }
  1734. ],
  1735. "responses": {
  1736. "200": {
  1737. "description": "OK",
  1738. "schema": {
  1739. "allOf": [
  1740. {
  1741. "$ref": "#/definitions/response.Response"
  1742. },
  1743. {
  1744. "type": "object",
  1745. "properties": {
  1746. "data": {
  1747. "$ref": "#/definitions/model.Oauth"
  1748. }
  1749. }
  1750. }
  1751. ]
  1752. }
  1753. },
  1754. "500": {
  1755. "description": "Internal Server Error",
  1756. "schema": {
  1757. "$ref": "#/definitions/response.Response"
  1758. }
  1759. }
  1760. }
  1761. }
  1762. },
  1763. "/admin/oauth/delete": {
  1764. "post": {
  1765. "security": [
  1766. {
  1767. "token": []
  1768. }
  1769. ],
  1770. "description": "Oauth删除",
  1771. "consumes": [
  1772. "application/json"
  1773. ],
  1774. "produces": [
  1775. "application/json"
  1776. ],
  1777. "tags": [
  1778. "Oauth"
  1779. ],
  1780. "summary": "Oauth删除",
  1781. "parameters": [
  1782. {
  1783. "description": "Oauth信息",
  1784. "name": "body",
  1785. "in": "body",
  1786. "required": true,
  1787. "schema": {
  1788. "$ref": "#/definitions/admin.OauthForm"
  1789. }
  1790. }
  1791. ],
  1792. "responses": {
  1793. "200": {
  1794. "description": "OK",
  1795. "schema": {
  1796. "$ref": "#/definitions/response.Response"
  1797. }
  1798. },
  1799. "500": {
  1800. "description": "Internal Server Error",
  1801. "schema": {
  1802. "$ref": "#/definitions/response.Response"
  1803. }
  1804. }
  1805. }
  1806. }
  1807. },
  1808. "/admin/oauth/detail/{id}": {
  1809. "get": {
  1810. "security": [
  1811. {
  1812. "token": []
  1813. }
  1814. ],
  1815. "description": "Oauth详情",
  1816. "consumes": [
  1817. "application/json"
  1818. ],
  1819. "produces": [
  1820. "application/json"
  1821. ],
  1822. "tags": [
  1823. "Oauth"
  1824. ],
  1825. "summary": "Oauth详情",
  1826. "parameters": [
  1827. {
  1828. "type": "integer",
  1829. "description": "ID",
  1830. "name": "id",
  1831. "in": "path",
  1832. "required": true
  1833. }
  1834. ],
  1835. "responses": {
  1836. "200": {
  1837. "description": "OK",
  1838. "schema": {
  1839. "allOf": [
  1840. {
  1841. "$ref": "#/definitions/response.Response"
  1842. },
  1843. {
  1844. "type": "object",
  1845. "properties": {
  1846. "data": {
  1847. "$ref": "#/definitions/model.Oauth"
  1848. }
  1849. }
  1850. }
  1851. ]
  1852. }
  1853. },
  1854. "500": {
  1855. "description": "Internal Server Error",
  1856. "schema": {
  1857. "$ref": "#/definitions/response.Response"
  1858. }
  1859. }
  1860. }
  1861. }
  1862. },
  1863. "/admin/oauth/list": {
  1864. "get": {
  1865. "security": [
  1866. {
  1867. "token": []
  1868. }
  1869. ],
  1870. "description": "Oauth列表",
  1871. "consumes": [
  1872. "application/json"
  1873. ],
  1874. "produces": [
  1875. "application/json"
  1876. ],
  1877. "tags": [
  1878. "Oauth"
  1879. ],
  1880. "summary": "Oauth列表",
  1881. "parameters": [
  1882. {
  1883. "type": "integer",
  1884. "description": "页码",
  1885. "name": "page",
  1886. "in": "query"
  1887. },
  1888. {
  1889. "type": "integer",
  1890. "description": "页大小",
  1891. "name": "page_size",
  1892. "in": "query"
  1893. }
  1894. ],
  1895. "responses": {
  1896. "200": {
  1897. "description": "OK",
  1898. "schema": {
  1899. "allOf": [
  1900. {
  1901. "$ref": "#/definitions/response.Response"
  1902. },
  1903. {
  1904. "type": "object",
  1905. "properties": {
  1906. "data": {
  1907. "$ref": "#/definitions/model.OauthList"
  1908. }
  1909. }
  1910. }
  1911. ]
  1912. }
  1913. },
  1914. "500": {
  1915. "description": "Internal Server Error",
  1916. "schema": {
  1917. "$ref": "#/definitions/response.Response"
  1918. }
  1919. }
  1920. }
  1921. }
  1922. },
  1923. "/admin/oauth/update": {
  1924. "post": {
  1925. "security": [
  1926. {
  1927. "token": []
  1928. }
  1929. ],
  1930. "description": "Oauth编辑",
  1931. "consumes": [
  1932. "application/json"
  1933. ],
  1934. "produces": [
  1935. "application/json"
  1936. ],
  1937. "tags": [
  1938. "Oauth"
  1939. ],
  1940. "summary": "Oauth编辑",
  1941. "parameters": [
  1942. {
  1943. "description": "Oauth信息",
  1944. "name": "body",
  1945. "in": "body",
  1946. "required": true,
  1947. "schema": {
  1948. "$ref": "#/definitions/admin.OauthForm"
  1949. }
  1950. }
  1951. ],
  1952. "responses": {
  1953. "200": {
  1954. "description": "OK",
  1955. "schema": {
  1956. "allOf": [
  1957. {
  1958. "$ref": "#/definitions/response.Response"
  1959. },
  1960. {
  1961. "type": "object",
  1962. "properties": {
  1963. "data": {
  1964. "$ref": "#/definitions/model.OauthList"
  1965. }
  1966. }
  1967. }
  1968. ]
  1969. }
  1970. },
  1971. "500": {
  1972. "description": "Internal Server Error",
  1973. "schema": {
  1974. "$ref": "#/definitions/response.Response"
  1975. }
  1976. }
  1977. }
  1978. }
  1979. },
  1980. "/admin/oidc/auth": {
  1981. "post": {
  1982. "description": "OidcAuth",
  1983. "consumes": [
  1984. "application/json"
  1985. ],
  1986. "produces": [
  1987. "application/json"
  1988. ],
  1989. "tags": [
  1990. "Oauth"
  1991. ],
  1992. "summary": "OidcAuth",
  1993. "responses": {}
  1994. }
  1995. },
  1996. "/admin/oidc/auth-query": {
  1997. "get": {
  1998. "description": "OidcAuthQuery",
  1999. "consumes": [
  2000. "application/json"
  2001. ],
  2002. "produces": [
  2003. "application/json"
  2004. ],
  2005. "tags": [
  2006. "Oauth"
  2007. ],
  2008. "summary": "OidcAuthQuery",
  2009. "responses": {
  2010. "200": {
  2011. "description": "OK",
  2012. "schema": {
  2013. "allOf": [
  2014. {
  2015. "$ref": "#/definitions/response.Response"
  2016. },
  2017. {
  2018. "type": "object",
  2019. "properties": {
  2020. "data": {
  2021. "$ref": "#/definitions/admin.LoginPayload"
  2022. }
  2023. }
  2024. }
  2025. ]
  2026. }
  2027. },
  2028. "500": {
  2029. "description": "Internal Server Error",
  2030. "schema": {
  2031. "$ref": "#/definitions/response.Response"
  2032. }
  2033. }
  2034. }
  2035. }
  2036. },
  2037. "/admin/peer/batchDelete": {
  2038. "post": {
  2039. "security": [
  2040. {
  2041. "token": []
  2042. }
  2043. ],
  2044. "description": "批量设备删除",
  2045. "consumes": [
  2046. "application/json"
  2047. ],
  2048. "produces": [
  2049. "application/json"
  2050. ],
  2051. "tags": [
  2052. "设备"
  2053. ],
  2054. "summary": "批量设备删除",
  2055. "parameters": [
  2056. {
  2057. "description": "设备id",
  2058. "name": "body",
  2059. "in": "body",
  2060. "required": true,
  2061. "schema": {
  2062. "$ref": "#/definitions/admin.PeerBatchDeleteForm"
  2063. }
  2064. }
  2065. ],
  2066. "responses": {
  2067. "200": {
  2068. "description": "OK",
  2069. "schema": {
  2070. "$ref": "#/definitions/response.Response"
  2071. }
  2072. },
  2073. "500": {
  2074. "description": "Internal Server Error",
  2075. "schema": {
  2076. "$ref": "#/definitions/response.Response"
  2077. }
  2078. }
  2079. }
  2080. }
  2081. },
  2082. "/admin/peer/create": {
  2083. "post": {
  2084. "security": [
  2085. {
  2086. "token": []
  2087. }
  2088. ],
  2089. "description": "创建设备",
  2090. "consumes": [
  2091. "application/json"
  2092. ],
  2093. "produces": [
  2094. "application/json"
  2095. ],
  2096. "tags": [
  2097. "设备"
  2098. ],
  2099. "summary": "创建设备",
  2100. "parameters": [
  2101. {
  2102. "description": "设备信息",
  2103. "name": "body",
  2104. "in": "body",
  2105. "required": true,
  2106. "schema": {
  2107. "$ref": "#/definitions/admin.PeerForm"
  2108. }
  2109. }
  2110. ],
  2111. "responses": {
  2112. "200": {
  2113. "description": "OK",
  2114. "schema": {
  2115. "allOf": [
  2116. {
  2117. "$ref": "#/definitions/response.Response"
  2118. },
  2119. {
  2120. "type": "object",
  2121. "properties": {
  2122. "data": {
  2123. "$ref": "#/definitions/model.Peer"
  2124. }
  2125. }
  2126. }
  2127. ]
  2128. }
  2129. },
  2130. "500": {
  2131. "description": "Internal Server Error",
  2132. "schema": {
  2133. "$ref": "#/definitions/response.Response"
  2134. }
  2135. }
  2136. }
  2137. }
  2138. },
  2139. "/admin/peer/delete": {
  2140. "post": {
  2141. "security": [
  2142. {
  2143. "token": []
  2144. }
  2145. ],
  2146. "description": "设备删除",
  2147. "consumes": [
  2148. "application/json"
  2149. ],
  2150. "produces": [
  2151. "application/json"
  2152. ],
  2153. "tags": [
  2154. "设备"
  2155. ],
  2156. "summary": "设备删除",
  2157. "parameters": [
  2158. {
  2159. "description": "设备信息",
  2160. "name": "body",
  2161. "in": "body",
  2162. "required": true,
  2163. "schema": {
  2164. "$ref": "#/definitions/admin.PeerForm"
  2165. }
  2166. }
  2167. ],
  2168. "responses": {
  2169. "200": {
  2170. "description": "OK",
  2171. "schema": {
  2172. "$ref": "#/definitions/response.Response"
  2173. }
  2174. },
  2175. "500": {
  2176. "description": "Internal Server Error",
  2177. "schema": {
  2178. "$ref": "#/definitions/response.Response"
  2179. }
  2180. }
  2181. }
  2182. }
  2183. },
  2184. "/admin/peer/detail/{id}": {
  2185. "get": {
  2186. "security": [
  2187. {
  2188. "token": []
  2189. }
  2190. ],
  2191. "description": "设备详情",
  2192. "consumes": [
  2193. "application/json"
  2194. ],
  2195. "produces": [
  2196. "application/json"
  2197. ],
  2198. "tags": [
  2199. "设备"
  2200. ],
  2201. "summary": "设备详情",
  2202. "parameters": [
  2203. {
  2204. "type": "integer",
  2205. "description": "ID",
  2206. "name": "id",
  2207. "in": "path",
  2208. "required": true
  2209. }
  2210. ],
  2211. "responses": {
  2212. "200": {
  2213. "description": "OK",
  2214. "schema": {
  2215. "allOf": [
  2216. {
  2217. "$ref": "#/definitions/response.Response"
  2218. },
  2219. {
  2220. "type": "object",
  2221. "properties": {
  2222. "data": {
  2223. "$ref": "#/definitions/model.Peer"
  2224. }
  2225. }
  2226. }
  2227. ]
  2228. }
  2229. },
  2230. "500": {
  2231. "description": "Internal Server Error",
  2232. "schema": {
  2233. "$ref": "#/definitions/response.Response"
  2234. }
  2235. }
  2236. }
  2237. }
  2238. },
  2239. "/admin/peer/list": {
  2240. "get": {
  2241. "security": [
  2242. {
  2243. "token": []
  2244. }
  2245. ],
  2246. "description": "设备列表",
  2247. "consumes": [
  2248. "application/json"
  2249. ],
  2250. "produces": [
  2251. "application/json"
  2252. ],
  2253. "tags": [
  2254. "设备"
  2255. ],
  2256. "summary": "设备列表",
  2257. "parameters": [
  2258. {
  2259. "type": "integer",
  2260. "description": "页码",
  2261. "name": "page",
  2262. "in": "query"
  2263. },
  2264. {
  2265. "type": "integer",
  2266. "description": "页大小",
  2267. "name": "page_size",
  2268. "in": "query"
  2269. },
  2270. {
  2271. "type": "integer",
  2272. "description": "时间",
  2273. "name": "time_ago",
  2274. "in": "query"
  2275. },
  2276. {
  2277. "type": "string",
  2278. "description": "ID",
  2279. "name": "id",
  2280. "in": "query"
  2281. },
  2282. {
  2283. "type": "string",
  2284. "description": "主机名",
  2285. "name": "hostname",
  2286. "in": "query"
  2287. },
  2288. {
  2289. "type": "string",
  2290. "description": "uuids 用逗号分隔",
  2291. "name": "uuids",
  2292. "in": "query"
  2293. }
  2294. ],
  2295. "responses": {
  2296. "200": {
  2297. "description": "OK",
  2298. "schema": {
  2299. "allOf": [
  2300. {
  2301. "$ref": "#/definitions/response.Response"
  2302. },
  2303. {
  2304. "type": "object",
  2305. "properties": {
  2306. "data": {
  2307. "$ref": "#/definitions/model.PeerList"
  2308. }
  2309. }
  2310. }
  2311. ]
  2312. }
  2313. },
  2314. "500": {
  2315. "description": "Internal Server Error",
  2316. "schema": {
  2317. "$ref": "#/definitions/response.Response"
  2318. }
  2319. }
  2320. }
  2321. }
  2322. },
  2323. "/admin/peer/update": {
  2324. "post": {
  2325. "security": [
  2326. {
  2327. "token": []
  2328. }
  2329. ],
  2330. "description": "设备编辑",
  2331. "consumes": [
  2332. "application/json"
  2333. ],
  2334. "produces": [
  2335. "application/json"
  2336. ],
  2337. "tags": [
  2338. "设备"
  2339. ],
  2340. "summary": "设备编辑",
  2341. "parameters": [
  2342. {
  2343. "description": "设备信息",
  2344. "name": "body",
  2345. "in": "body",
  2346. "required": true,
  2347. "schema": {
  2348. "$ref": "#/definitions/admin.PeerForm"
  2349. }
  2350. }
  2351. ],
  2352. "responses": {
  2353. "200": {
  2354. "description": "OK",
  2355. "schema": {
  2356. "allOf": [
  2357. {
  2358. "$ref": "#/definitions/response.Response"
  2359. },
  2360. {
  2361. "type": "object",
  2362. "properties": {
  2363. "data": {
  2364. "$ref": "#/definitions/model.Peer"
  2365. }
  2366. }
  2367. }
  2368. ]
  2369. }
  2370. },
  2371. "500": {
  2372. "description": "Internal Server Error",
  2373. "schema": {
  2374. "$ref": "#/definitions/response.Response"
  2375. }
  2376. }
  2377. }
  2378. }
  2379. },
  2380. "/admin/server-config": {
  2381. "get": {
  2382. "security": [
  2383. {
  2384. "token": []
  2385. }
  2386. ],
  2387. "description": "服务配置,给webclient提供api-server",
  2388. "consumes": [
  2389. "application/json"
  2390. ],
  2391. "produces": [
  2392. "application/json"
  2393. ],
  2394. "tags": [
  2395. "ADMIN"
  2396. ],
  2397. "summary": "RUSTDESK服务配置",
  2398. "responses": {
  2399. "200": {
  2400. "description": "OK",
  2401. "schema": {
  2402. "$ref": "#/definitions/response.Response"
  2403. }
  2404. },
  2405. "500": {
  2406. "description": "Internal Server Error",
  2407. "schema": {
  2408. "$ref": "#/definitions/response.Response"
  2409. }
  2410. }
  2411. }
  2412. }
  2413. },
  2414. "/admin/tag/create": {
  2415. "post": {
  2416. "security": [
  2417. {
  2418. "token": []
  2419. }
  2420. ],
  2421. "description": "创建标签",
  2422. "consumes": [
  2423. "application/json"
  2424. ],
  2425. "produces": [
  2426. "application/json"
  2427. ],
  2428. "tags": [
  2429. "标签"
  2430. ],
  2431. "summary": "创建标签",
  2432. "parameters": [
  2433. {
  2434. "description": "标签信息",
  2435. "name": "body",
  2436. "in": "body",
  2437. "required": true,
  2438. "schema": {
  2439. "$ref": "#/definitions/admin.TagForm"
  2440. }
  2441. }
  2442. ],
  2443. "responses": {
  2444. "200": {
  2445. "description": "OK",
  2446. "schema": {
  2447. "allOf": [
  2448. {
  2449. "$ref": "#/definitions/response.Response"
  2450. },
  2451. {
  2452. "type": "object",
  2453. "properties": {
  2454. "data": {
  2455. "$ref": "#/definitions/model.Tag"
  2456. }
  2457. }
  2458. }
  2459. ]
  2460. }
  2461. },
  2462. "500": {
  2463. "description": "Internal Server Error",
  2464. "schema": {
  2465. "$ref": "#/definitions/response.Response"
  2466. }
  2467. }
  2468. }
  2469. }
  2470. },
  2471. "/admin/tag/delete": {
  2472. "post": {
  2473. "security": [
  2474. {
  2475. "token": []
  2476. }
  2477. ],
  2478. "description": "标签删除",
  2479. "consumes": [
  2480. "application/json"
  2481. ],
  2482. "produces": [
  2483. "application/json"
  2484. ],
  2485. "tags": [
  2486. "标签"
  2487. ],
  2488. "summary": "标签删除",
  2489. "parameters": [
  2490. {
  2491. "description": "标签信息",
  2492. "name": "body",
  2493. "in": "body",
  2494. "required": true,
  2495. "schema": {
  2496. "$ref": "#/definitions/admin.TagForm"
  2497. }
  2498. }
  2499. ],
  2500. "responses": {
  2501. "200": {
  2502. "description": "OK",
  2503. "schema": {
  2504. "$ref": "#/definitions/response.Response"
  2505. }
  2506. },
  2507. "500": {
  2508. "description": "Internal Server Error",
  2509. "schema": {
  2510. "$ref": "#/definitions/response.Response"
  2511. }
  2512. }
  2513. }
  2514. }
  2515. },
  2516. "/admin/tag/detail/{id}": {
  2517. "get": {
  2518. "security": [
  2519. {
  2520. "token": []
  2521. }
  2522. ],
  2523. "description": "标签详情",
  2524. "consumes": [
  2525. "application/json"
  2526. ],
  2527. "produces": [
  2528. "application/json"
  2529. ],
  2530. "tags": [
  2531. "标签"
  2532. ],
  2533. "summary": "标签详情",
  2534. "parameters": [
  2535. {
  2536. "type": "integer",
  2537. "description": "ID",
  2538. "name": "id",
  2539. "in": "path",
  2540. "required": true
  2541. }
  2542. ],
  2543. "responses": {
  2544. "200": {
  2545. "description": "OK",
  2546. "schema": {
  2547. "allOf": [
  2548. {
  2549. "$ref": "#/definitions/response.Response"
  2550. },
  2551. {
  2552. "type": "object",
  2553. "properties": {
  2554. "data": {
  2555. "$ref": "#/definitions/model.Tag"
  2556. }
  2557. }
  2558. }
  2559. ]
  2560. }
  2561. },
  2562. "500": {
  2563. "description": "Internal Server Error",
  2564. "schema": {
  2565. "$ref": "#/definitions/response.Response"
  2566. }
  2567. }
  2568. }
  2569. }
  2570. },
  2571. "/admin/tag/list": {
  2572. "get": {
  2573. "security": [
  2574. {
  2575. "token": []
  2576. }
  2577. ],
  2578. "description": "标签列表",
  2579. "consumes": [
  2580. "application/json"
  2581. ],
  2582. "produces": [
  2583. "application/json"
  2584. ],
  2585. "tags": [
  2586. "标签"
  2587. ],
  2588. "summary": "标签列表",
  2589. "parameters": [
  2590. {
  2591. "type": "integer",
  2592. "description": "页码",
  2593. "name": "page",
  2594. "in": "query"
  2595. },
  2596. {
  2597. "type": "integer",
  2598. "description": "页大小",
  2599. "name": "page_size",
  2600. "in": "query"
  2601. },
  2602. {
  2603. "type": "integer",
  2604. "description": "是否是我的",
  2605. "name": "is_my",
  2606. "in": "query"
  2607. },
  2608. {
  2609. "type": "integer",
  2610. "description": "用户id",
  2611. "name": "user_id",
  2612. "in": "query"
  2613. }
  2614. ],
  2615. "responses": {
  2616. "200": {
  2617. "description": "OK",
  2618. "schema": {
  2619. "allOf": [
  2620. {
  2621. "$ref": "#/definitions/response.Response"
  2622. },
  2623. {
  2624. "type": "object",
  2625. "properties": {
  2626. "data": {
  2627. "$ref": "#/definitions/model.TagList"
  2628. }
  2629. }
  2630. }
  2631. ]
  2632. }
  2633. },
  2634. "500": {
  2635. "description": "Internal Server Error",
  2636. "schema": {
  2637. "$ref": "#/definitions/response.Response"
  2638. }
  2639. }
  2640. }
  2641. }
  2642. },
  2643. "/admin/tag/update": {
  2644. "post": {
  2645. "security": [
  2646. {
  2647. "token": []
  2648. }
  2649. ],
  2650. "description": "标签编辑",
  2651. "consumes": [
  2652. "application/json"
  2653. ],
  2654. "produces": [
  2655. "application/json"
  2656. ],
  2657. "tags": [
  2658. "标签"
  2659. ],
  2660. "summary": "标签编辑",
  2661. "parameters": [
  2662. {
  2663. "description": "标签信息",
  2664. "name": "body",
  2665. "in": "body",
  2666. "required": true,
  2667. "schema": {
  2668. "$ref": "#/definitions/admin.TagForm"
  2669. }
  2670. }
  2671. ],
  2672. "responses": {
  2673. "200": {
  2674. "description": "OK",
  2675. "schema": {
  2676. "allOf": [
  2677. {
  2678. "$ref": "#/definitions/response.Response"
  2679. },
  2680. {
  2681. "type": "object",
  2682. "properties": {
  2683. "data": {
  2684. "$ref": "#/definitions/model.Tag"
  2685. }
  2686. }
  2687. }
  2688. ]
  2689. }
  2690. },
  2691. "500": {
  2692. "description": "Internal Server Error",
  2693. "schema": {
  2694. "$ref": "#/definitions/response.Response"
  2695. }
  2696. }
  2697. }
  2698. }
  2699. },
  2700. "/admin/user/changeCurPwd": {
  2701. "post": {
  2702. "security": [
  2703. {
  2704. "token": []
  2705. }
  2706. ],
  2707. "description": "修改当前用户密码",
  2708. "consumes": [
  2709. "application/json"
  2710. ],
  2711. "produces": [
  2712. "application/json"
  2713. ],
  2714. "tags": [
  2715. "用户"
  2716. ],
  2717. "summary": "修改当前用户密码",
  2718. "parameters": [
  2719. {
  2720. "description": "用户信息",
  2721. "name": "body",
  2722. "in": "body",
  2723. "required": true,
  2724. "schema": {
  2725. "$ref": "#/definitions/admin.ChangeCurPasswordForm"
  2726. }
  2727. }
  2728. ],
  2729. "responses": {
  2730. "200": {
  2731. "description": "OK",
  2732. "schema": {
  2733. "$ref": "#/definitions/response.Response"
  2734. }
  2735. },
  2736. "500": {
  2737. "description": "Internal Server Error",
  2738. "schema": {
  2739. "$ref": "#/definitions/response.Response"
  2740. }
  2741. }
  2742. }
  2743. }
  2744. },
  2745. "/admin/user/create": {
  2746. "post": {
  2747. "security": [
  2748. {
  2749. "token": []
  2750. }
  2751. ],
  2752. "description": "创建管理员",
  2753. "consumes": [
  2754. "application/json"
  2755. ],
  2756. "produces": [
  2757. "application/json"
  2758. ],
  2759. "tags": [
  2760. "用户"
  2761. ],
  2762. "summary": "创建管理员",
  2763. "parameters": [
  2764. {
  2765. "description": "管理员信息",
  2766. "name": "body",
  2767. "in": "body",
  2768. "required": true,
  2769. "schema": {
  2770. "$ref": "#/definitions/admin.UserForm"
  2771. }
  2772. }
  2773. ],
  2774. "responses": {
  2775. "200": {
  2776. "description": "OK",
  2777. "schema": {
  2778. "allOf": [
  2779. {
  2780. "$ref": "#/definitions/response.Response"
  2781. },
  2782. {
  2783. "type": "object",
  2784. "properties": {
  2785. "data": {
  2786. "$ref": "#/definitions/model.User"
  2787. }
  2788. }
  2789. }
  2790. ]
  2791. }
  2792. },
  2793. "500": {
  2794. "description": "Internal Server Error",
  2795. "schema": {
  2796. "$ref": "#/definitions/response.Response"
  2797. }
  2798. }
  2799. }
  2800. }
  2801. },
  2802. "/admin/user/current": {
  2803. "get": {
  2804. "security": [
  2805. {
  2806. "token": []
  2807. }
  2808. ],
  2809. "description": "当前用户",
  2810. "consumes": [
  2811. "application/json"
  2812. ],
  2813. "produces": [
  2814. "application/json"
  2815. ],
  2816. "tags": [
  2817. "用户"
  2818. ],
  2819. "summary": "当前用户",
  2820. "responses": {
  2821. "200": {
  2822. "description": "OK",
  2823. "schema": {
  2824. "allOf": [
  2825. {
  2826. "$ref": "#/definitions/response.Response"
  2827. },
  2828. {
  2829. "type": "object",
  2830. "properties": {
  2831. "data": {
  2832. "$ref": "#/definitions/admin.LoginPayload"
  2833. }
  2834. }
  2835. }
  2836. ]
  2837. }
  2838. },
  2839. "500": {
  2840. "description": "Internal Server Error",
  2841. "schema": {
  2842. "$ref": "#/definitions/response.Response"
  2843. }
  2844. }
  2845. }
  2846. }
  2847. },
  2848. "/admin/user/delete": {
  2849. "post": {
  2850. "security": [
  2851. {
  2852. "token": []
  2853. }
  2854. ],
  2855. "description": "管理员编删除",
  2856. "consumes": [
  2857. "application/json"
  2858. ],
  2859. "produces": [
  2860. "application/json"
  2861. ],
  2862. "tags": [
  2863. "用户"
  2864. ],
  2865. "summary": "管理员删除",
  2866. "parameters": [
  2867. {
  2868. "description": "用户信息",
  2869. "name": "body",
  2870. "in": "body",
  2871. "required": true,
  2872. "schema": {
  2873. "$ref": "#/definitions/admin.UserForm"
  2874. }
  2875. }
  2876. ],
  2877. "responses": {
  2878. "200": {
  2879. "description": "OK",
  2880. "schema": {
  2881. "$ref": "#/definitions/response.Response"
  2882. }
  2883. },
  2884. "500": {
  2885. "description": "Internal Server Error",
  2886. "schema": {
  2887. "$ref": "#/definitions/response.Response"
  2888. }
  2889. }
  2890. }
  2891. }
  2892. },
  2893. "/admin/user/detail/{id}": {
  2894. "get": {
  2895. "security": [
  2896. {
  2897. "token": []
  2898. }
  2899. ],
  2900. "description": "管理员详情",
  2901. "consumes": [
  2902. "application/json"
  2903. ],
  2904. "produces": [
  2905. "application/json"
  2906. ],
  2907. "tags": [
  2908. "用户"
  2909. ],
  2910. "summary": "管理员详情",
  2911. "parameters": [
  2912. {
  2913. "type": "integer",
  2914. "description": "ID",
  2915. "name": "id",
  2916. "in": "path",
  2917. "required": true
  2918. }
  2919. ],
  2920. "responses": {
  2921. "200": {
  2922. "description": "OK",
  2923. "schema": {
  2924. "allOf": [
  2925. {
  2926. "$ref": "#/definitions/response.Response"
  2927. },
  2928. {
  2929. "type": "object",
  2930. "properties": {
  2931. "data": {
  2932. "$ref": "#/definitions/model.User"
  2933. }
  2934. }
  2935. }
  2936. ]
  2937. }
  2938. },
  2939. "500": {
  2940. "description": "Internal Server Error",
  2941. "schema": {
  2942. "$ref": "#/definitions/response.Response"
  2943. }
  2944. }
  2945. }
  2946. }
  2947. },
  2948. "/admin/user/list": {
  2949. "get": {
  2950. "security": [
  2951. {
  2952. "token": []
  2953. }
  2954. ],
  2955. "description": "管理员列表",
  2956. "consumes": [
  2957. "application/json"
  2958. ],
  2959. "produces": [
  2960. "application/json"
  2961. ],
  2962. "tags": [
  2963. "用户"
  2964. ],
  2965. "summary": "管理员列表",
  2966. "parameters": [
  2967. {
  2968. "type": "integer",
  2969. "description": "页码",
  2970. "name": "page",
  2971. "in": "query"
  2972. },
  2973. {
  2974. "type": "integer",
  2975. "description": "页大小",
  2976. "name": "page_size",
  2977. "in": "query"
  2978. },
  2979. {
  2980. "type": "integer",
  2981. "description": "账户",
  2982. "name": "username",
  2983. "in": "query"
  2984. }
  2985. ],
  2986. "responses": {
  2987. "200": {
  2988. "description": "OK",
  2989. "schema": {
  2990. "allOf": [
  2991. {
  2992. "$ref": "#/definitions/response.Response"
  2993. },
  2994. {
  2995. "type": "object",
  2996. "properties": {
  2997. "data": {
  2998. "$ref": "#/definitions/model.UserList"
  2999. }
  3000. }
  3001. }
  3002. ]
  3003. }
  3004. },
  3005. "500": {
  3006. "description": "Internal Server Error",
  3007. "schema": {
  3008. "$ref": "#/definitions/response.Response"
  3009. }
  3010. }
  3011. }
  3012. }
  3013. },
  3014. "/admin/user/myOauth": {
  3015. "get": {
  3016. "security": [
  3017. {
  3018. "token": []
  3019. }
  3020. ],
  3021. "description": "我的授权",
  3022. "consumes": [
  3023. "application/json"
  3024. ],
  3025. "produces": [
  3026. "application/json"
  3027. ],
  3028. "tags": [
  3029. "用户"
  3030. ],
  3031. "summary": "我的授权",
  3032. "responses": {
  3033. "200": {
  3034. "description": "OK",
  3035. "schema": {
  3036. "allOf": [
  3037. {
  3038. "$ref": "#/definitions/response.Response"
  3039. },
  3040. {
  3041. "type": "object",
  3042. "properties": {
  3043. "data": {
  3044. "type": "array",
  3045. "items": {
  3046. "$ref": "#/definitions/admin.UserOauthItem"
  3047. }
  3048. }
  3049. }
  3050. }
  3051. ]
  3052. }
  3053. },
  3054. "500": {
  3055. "description": "Internal Server Error",
  3056. "schema": {
  3057. "$ref": "#/definitions/response.Response"
  3058. }
  3059. }
  3060. }
  3061. }
  3062. },
  3063. "/admin/user/update": {
  3064. "post": {
  3065. "security": [
  3066. {
  3067. "token": []
  3068. }
  3069. ],
  3070. "description": "管理员编辑",
  3071. "consumes": [
  3072. "application/json"
  3073. ],
  3074. "produces": [
  3075. "application/json"
  3076. ],
  3077. "tags": [
  3078. "用户"
  3079. ],
  3080. "summary": "管理员编辑",
  3081. "parameters": [
  3082. {
  3083. "description": "用户信息",
  3084. "name": "body",
  3085. "in": "body",
  3086. "required": true,
  3087. "schema": {
  3088. "$ref": "#/definitions/admin.UserForm"
  3089. }
  3090. }
  3091. ],
  3092. "responses": {
  3093. "200": {
  3094. "description": "OK",
  3095. "schema": {
  3096. "allOf": [
  3097. {
  3098. "$ref": "#/definitions/response.Response"
  3099. },
  3100. {
  3101. "type": "object",
  3102. "properties": {
  3103. "data": {
  3104. "$ref": "#/definitions/model.User"
  3105. }
  3106. }
  3107. }
  3108. ]
  3109. }
  3110. },
  3111. "500": {
  3112. "description": "Internal Server Error",
  3113. "schema": {
  3114. "$ref": "#/definitions/response.Response"
  3115. }
  3116. }
  3117. }
  3118. }
  3119. },
  3120. "/admin/user/updatePassword": {
  3121. "post": {
  3122. "security": [
  3123. {
  3124. "token": []
  3125. }
  3126. ],
  3127. "description": "修改密码",
  3128. "consumes": [
  3129. "application/json"
  3130. ],
  3131. "produces": [
  3132. "application/json"
  3133. ],
  3134. "tags": [
  3135. "用户"
  3136. ],
  3137. "summary": "修改密码",
  3138. "parameters": [
  3139. {
  3140. "description": "用户信息",
  3141. "name": "body",
  3142. "in": "body",
  3143. "required": true,
  3144. "schema": {
  3145. "$ref": "#/definitions/admin.UserPasswordForm"
  3146. }
  3147. }
  3148. ],
  3149. "responses": {
  3150. "200": {
  3151. "description": "OK",
  3152. "schema": {
  3153. "$ref": "#/definitions/response.Response"
  3154. }
  3155. },
  3156. "500": {
  3157. "description": "Internal Server Error",
  3158. "schema": {
  3159. "$ref": "#/definitions/response.Response"
  3160. }
  3161. }
  3162. }
  3163. }
  3164. },
  3165. "/admin/user_token/delete": {
  3166. "post": {
  3167. "security": [
  3168. {
  3169. "token": []
  3170. }
  3171. ],
  3172. "description": "登录凭证删除",
  3173. "consumes": [
  3174. "application/json"
  3175. ],
  3176. "produces": [
  3177. "application/json"
  3178. ],
  3179. "tags": [
  3180. "登录凭证"
  3181. ],
  3182. "summary": "登录凭证删除",
  3183. "parameters": [
  3184. {
  3185. "description": "登录凭证信息",
  3186. "name": "body",
  3187. "in": "body",
  3188. "required": true,
  3189. "schema": {
  3190. "$ref": "#/definitions/model.UserToken"
  3191. }
  3192. }
  3193. ],
  3194. "responses": {
  3195. "200": {
  3196. "description": "OK",
  3197. "schema": {
  3198. "$ref": "#/definitions/response.Response"
  3199. }
  3200. },
  3201. "500": {
  3202. "description": "Internal Server Error",
  3203. "schema": {
  3204. "$ref": "#/definitions/response.Response"
  3205. }
  3206. }
  3207. }
  3208. }
  3209. },
  3210. "/admin/user_token/list": {
  3211. "get": {
  3212. "security": [
  3213. {
  3214. "token": []
  3215. }
  3216. ],
  3217. "description": "登录凭证列表",
  3218. "consumes": [
  3219. "application/json"
  3220. ],
  3221. "produces": [
  3222. "application/json"
  3223. ],
  3224. "tags": [
  3225. "登录凭证"
  3226. ],
  3227. "summary": "登录凭证列表",
  3228. "parameters": [
  3229. {
  3230. "type": "integer",
  3231. "description": "页码",
  3232. "name": "page",
  3233. "in": "query"
  3234. },
  3235. {
  3236. "type": "integer",
  3237. "description": "页大小",
  3238. "name": "page_size",
  3239. "in": "query"
  3240. },
  3241. {
  3242. "type": "integer",
  3243. "description": "用户ID",
  3244. "name": "user_id",
  3245. "in": "query"
  3246. }
  3247. ],
  3248. "responses": {
  3249. "200": {
  3250. "description": "OK",
  3251. "schema": {
  3252. "allOf": [
  3253. {
  3254. "$ref": "#/definitions/response.Response"
  3255. },
  3256. {
  3257. "type": "object",
  3258. "properties": {
  3259. "data": {
  3260. "$ref": "#/definitions/model.UserTokenList"
  3261. }
  3262. }
  3263. }
  3264. ]
  3265. }
  3266. },
  3267. "500": {
  3268. "description": "Internal Server Error",
  3269. "schema": {
  3270. "$ref": "#/definitions/response.Response"
  3271. }
  3272. }
  3273. }
  3274. }
  3275. }
  3276. },
  3277. "definitions": {
  3278. "Gwen_http_request_admin.Login": {
  3279. "type": "object",
  3280. "required": [
  3281. "password",
  3282. "username"
  3283. ],
  3284. "properties": {
  3285. "password": {
  3286. "type": "string"
  3287. },
  3288. "platform": {
  3289. "type": "string"
  3290. },
  3291. "username": {
  3292. "type": "string"
  3293. }
  3294. }
  3295. },
  3296. "admin.AddressBookForm": {
  3297. "type": "object",
  3298. "required": [
  3299. "id"
  3300. ],
  3301. "properties": {
  3302. "alias": {
  3303. "type": "string"
  3304. },
  3305. "collection_id": {
  3306. "type": "integer"
  3307. },
  3308. "forceAlwaysRelay": {
  3309. "type": "boolean"
  3310. },
  3311. "hash": {
  3312. "type": "string"
  3313. },
  3314. "hostname": {
  3315. "type": "string"
  3316. },
  3317. "id": {
  3318. "type": "string"
  3319. },
  3320. "loginName": {
  3321. "type": "string"
  3322. },
  3323. "online": {
  3324. "type": "boolean"
  3325. },
  3326. "password": {
  3327. "type": "string"
  3328. },
  3329. "platform": {
  3330. "type": "string"
  3331. },
  3332. "rdpPort": {
  3333. "type": "string"
  3334. },
  3335. "rdpUsername": {
  3336. "type": "string"
  3337. },
  3338. "row_id": {
  3339. "type": "integer"
  3340. },
  3341. "sameServer": {
  3342. "type": "boolean"
  3343. },
  3344. "tags": {
  3345. "type": "array",
  3346. "items": {
  3347. "type": "string"
  3348. }
  3349. },
  3350. "user_id": {
  3351. "type": "integer"
  3352. },
  3353. "user_ids": {
  3354. "type": "array",
  3355. "items": {
  3356. "type": "integer"
  3357. }
  3358. },
  3359. "username": {
  3360. "type": "string"
  3361. }
  3362. }
  3363. },
  3364. "admin.ChangeCurPasswordForm": {
  3365. "type": "object",
  3366. "required": [
  3367. "new_password",
  3368. "old_password"
  3369. ],
  3370. "properties": {
  3371. "new_password": {
  3372. "type": "string",
  3373. "maxLength": 20,
  3374. "minLength": 4
  3375. },
  3376. "old_password": {
  3377. "type": "string",
  3378. "maxLength": 20,
  3379. "minLength": 4
  3380. }
  3381. }
  3382. },
  3383. "admin.GroupForm": {
  3384. "type": "object",
  3385. "required": [
  3386. "name"
  3387. ],
  3388. "properties": {
  3389. "id": {
  3390. "type": "integer"
  3391. },
  3392. "name": {
  3393. "type": "string"
  3394. },
  3395. "type": {
  3396. "type": "integer"
  3397. }
  3398. }
  3399. },
  3400. "admin.LoginPayload": {
  3401. "type": "object",
  3402. "properties": {
  3403. "nickname": {
  3404. "type": "string"
  3405. },
  3406. "route_names": {
  3407. "type": "array",
  3408. "items": {
  3409. "type": "string"
  3410. }
  3411. },
  3412. "token": {
  3413. "type": "string"
  3414. },
  3415. "username": {
  3416. "type": "string"
  3417. }
  3418. }
  3419. },
  3420. "admin.OauthForm": {
  3421. "type": "object",
  3422. "required": [
  3423. "client_id",
  3424. "client_secret",
  3425. "op",
  3426. "redirect_url"
  3427. ],
  3428. "properties": {
  3429. "auto_register": {
  3430. "type": "boolean"
  3431. },
  3432. "client_id": {
  3433. "type": "string"
  3434. },
  3435. "client_secret": {
  3436. "type": "string"
  3437. },
  3438. "id": {
  3439. "type": "integer"
  3440. },
  3441. "issuer": {
  3442. "type": "string"
  3443. },
  3444. "op": {
  3445. "type": "string"
  3446. },
  3447. "redirect_url": {
  3448. "type": "string"
  3449. },
  3450. "scopes": {
  3451. "type": "string"
  3452. }
  3453. }
  3454. },
  3455. "admin.PeerBatchDeleteForm": {
  3456. "type": "object",
  3457. "required": [
  3458. "row_ids"
  3459. ],
  3460. "properties": {
  3461. "row_ids": {
  3462. "type": "array",
  3463. "items": {
  3464. "type": "integer"
  3465. }
  3466. }
  3467. }
  3468. },
  3469. "admin.PeerForm": {
  3470. "type": "object",
  3471. "properties": {
  3472. "cpu": {
  3473. "type": "string"
  3474. },
  3475. "hostname": {
  3476. "type": "string"
  3477. },
  3478. "id": {
  3479. "type": "string"
  3480. },
  3481. "memory": {
  3482. "type": "string"
  3483. },
  3484. "os": {
  3485. "type": "string"
  3486. },
  3487. "row_id": {
  3488. "type": "integer"
  3489. },
  3490. "username": {
  3491. "type": "string"
  3492. },
  3493. "uuid": {
  3494. "type": "string"
  3495. },
  3496. "version": {
  3497. "type": "string"
  3498. }
  3499. }
  3500. },
  3501. "admin.ShareByWebClientForm": {
  3502. "type": "object",
  3503. "required": [
  3504. "id",
  3505. "password",
  3506. "password_type"
  3507. ],
  3508. "properties": {
  3509. "expire": {
  3510. "type": "integer"
  3511. },
  3512. "id": {
  3513. "type": "string"
  3514. },
  3515. "password": {
  3516. "type": "string"
  3517. },
  3518. "password_type": {
  3519. "description": "只能是once,fixed",
  3520. "type": "string",
  3521. "enum": [
  3522. "once",
  3523. "fixed"
  3524. ]
  3525. }
  3526. }
  3527. },
  3528. "admin.TagForm": {
  3529. "type": "object",
  3530. "required": [
  3531. "color",
  3532. "name"
  3533. ],
  3534. "properties": {
  3535. "collection_id": {
  3536. "type": "integer"
  3537. },
  3538. "color": {
  3539. "type": "integer"
  3540. },
  3541. "id": {
  3542. "type": "integer"
  3543. },
  3544. "name": {
  3545. "type": "string"
  3546. },
  3547. "user_id": {
  3548. "type": "integer"
  3549. }
  3550. }
  3551. },
  3552. "admin.UserForm": {
  3553. "type": "object",
  3554. "required": [
  3555. "group_id",
  3556. "status",
  3557. "username"
  3558. ],
  3559. "properties": {
  3560. "avatar": {
  3561. "type": "string"
  3562. },
  3563. "group_id": {
  3564. "type": "integer"
  3565. },
  3566. "id": {
  3567. "type": "integer"
  3568. },
  3569. "is_admin": {
  3570. "type": "boolean"
  3571. },
  3572. "nickname": {
  3573. "description": "Password string `json:\"password\" validate:\"required,gte=4,lte=20\"`",
  3574. "type": "string"
  3575. },
  3576. "status": {
  3577. "minimum": 0,
  3578. "allOf": [
  3579. {
  3580. "$ref": "#/definitions/model.StatusCode"
  3581. }
  3582. ]
  3583. },
  3584. "username": {
  3585. "type": "string",
  3586. "maxLength": 10,
  3587. "minLength": 4
  3588. }
  3589. }
  3590. },
  3591. "admin.UserOauthItem": {
  3592. "type": "object",
  3593. "properties": {
  3594. "status": {
  3595. "type": "integer"
  3596. },
  3597. "third_type": {
  3598. "type": "string"
  3599. }
  3600. }
  3601. },
  3602. "admin.UserPasswordForm": {
  3603. "type": "object",
  3604. "required": [
  3605. "id",
  3606. "password"
  3607. ],
  3608. "properties": {
  3609. "id": {
  3610. "type": "integer"
  3611. },
  3612. "password": {
  3613. "type": "string",
  3614. "maxLength": 20,
  3615. "minLength": 4
  3616. }
  3617. }
  3618. },
  3619. "model.AddressBook": {
  3620. "type": "object",
  3621. "properties": {
  3622. "alias": {
  3623. "type": "string"
  3624. },
  3625. "collection": {
  3626. "$ref": "#/definitions/model.AddressBookCollection"
  3627. },
  3628. "collection_id": {
  3629. "type": "integer"
  3630. },
  3631. "created_at": {
  3632. "type": "string"
  3633. },
  3634. "forceAlwaysRelay": {
  3635. "type": "boolean"
  3636. },
  3637. "hash": {
  3638. "type": "string"
  3639. },
  3640. "hostname": {
  3641. "type": "string"
  3642. },
  3643. "id": {
  3644. "type": "string"
  3645. },
  3646. "loginName": {
  3647. "type": "string"
  3648. },
  3649. "online": {
  3650. "type": "boolean"
  3651. },
  3652. "password": {
  3653. "type": "string"
  3654. },
  3655. "platform": {
  3656. "type": "string"
  3657. },
  3658. "rdpPort": {
  3659. "type": "string"
  3660. },
  3661. "rdpUsername": {
  3662. "type": "string"
  3663. },
  3664. "row_id": {
  3665. "type": "integer"
  3666. },
  3667. "sameServer": {
  3668. "type": "boolean"
  3669. },
  3670. "tags": {
  3671. "type": "array",
  3672. "items": {
  3673. "type": "string"
  3674. }
  3675. },
  3676. "updated_at": {
  3677. "type": "string"
  3678. },
  3679. "user_id": {
  3680. "type": "integer"
  3681. },
  3682. "username": {
  3683. "type": "string"
  3684. }
  3685. }
  3686. },
  3687. "model.AddressBookCollection": {
  3688. "type": "object",
  3689. "required": [
  3690. "name"
  3691. ],
  3692. "properties": {
  3693. "created_at": {
  3694. "type": "string"
  3695. },
  3696. "id": {
  3697. "type": "integer"
  3698. },
  3699. "name": {
  3700. "type": "string"
  3701. },
  3702. "updated_at": {
  3703. "type": "string"
  3704. },
  3705. "user_id": {
  3706. "type": "integer"
  3707. }
  3708. }
  3709. },
  3710. "model.AddressBookCollectionList": {
  3711. "type": "object",
  3712. "properties": {
  3713. "list": {
  3714. "type": "array",
  3715. "items": {
  3716. "$ref": "#/definitions/model.AddressBookCollection"
  3717. }
  3718. },
  3719. "page": {
  3720. "type": "integer"
  3721. },
  3722. "page_size": {
  3723. "type": "integer"
  3724. },
  3725. "total": {
  3726. "type": "integer"
  3727. }
  3728. }
  3729. },
  3730. "model.AddressBookCollectionRule": {
  3731. "type": "object",
  3732. "required": [
  3733. "collection_id",
  3734. "rule",
  3735. "to_id",
  3736. "type"
  3737. ],
  3738. "properties": {
  3739. "collection_id": {
  3740. "type": "integer"
  3741. },
  3742. "created_at": {
  3743. "type": "string"
  3744. },
  3745. "id": {
  3746. "type": "integer"
  3747. },
  3748. "rule": {
  3749. "description": "0: 无 1: 读 2: 读写 3: 完全控制",
  3750. "type": "integer",
  3751. "maximum": 3,
  3752. "minimum": 1
  3753. },
  3754. "to_id": {
  3755. "type": "integer"
  3756. },
  3757. "type": {
  3758. "description": "1: 个人 2: 群组",
  3759. "type": "integer",
  3760. "maximum": 2,
  3761. "minimum": 1
  3762. },
  3763. "updated_at": {
  3764. "type": "string"
  3765. },
  3766. "user_id": {
  3767. "type": "integer"
  3768. }
  3769. }
  3770. },
  3771. "model.AddressBookList": {
  3772. "type": "object",
  3773. "properties": {
  3774. "list": {
  3775. "type": "array",
  3776. "items": {
  3777. "$ref": "#/definitions/model.AddressBook"
  3778. }
  3779. },
  3780. "page": {
  3781. "type": "integer"
  3782. },
  3783. "page_size": {
  3784. "type": "integer"
  3785. },
  3786. "total": {
  3787. "type": "integer"
  3788. }
  3789. }
  3790. },
  3791. "model.AuditConn": {
  3792. "type": "object",
  3793. "properties": {
  3794. "action": {
  3795. "type": "string"
  3796. },
  3797. "close_time": {
  3798. "type": "integer"
  3799. },
  3800. "conn_id": {
  3801. "type": "integer"
  3802. },
  3803. "created_at": {
  3804. "type": "string"
  3805. },
  3806. "from_name": {
  3807. "type": "string"
  3808. },
  3809. "from_peer": {
  3810. "type": "string"
  3811. },
  3812. "id": {
  3813. "type": "integer"
  3814. },
  3815. "ip": {
  3816. "type": "string"
  3817. },
  3818. "peer_id": {
  3819. "type": "string"
  3820. },
  3821. "session_id": {
  3822. "type": "string"
  3823. },
  3824. "type": {
  3825. "type": "integer"
  3826. },
  3827. "updated_at": {
  3828. "type": "string"
  3829. },
  3830. "uuid": {
  3831. "type": "string"
  3832. }
  3833. }
  3834. },
  3835. "model.AuditConnList": {
  3836. "type": "object",
  3837. "properties": {
  3838. "list": {
  3839. "type": "array",
  3840. "items": {
  3841. "$ref": "#/definitions/model.AuditConn"
  3842. }
  3843. },
  3844. "page": {
  3845. "type": "integer"
  3846. },
  3847. "page_size": {
  3848. "type": "integer"
  3849. },
  3850. "total": {
  3851. "type": "integer"
  3852. }
  3853. }
  3854. },
  3855. "model.AuditFile": {
  3856. "type": "object",
  3857. "properties": {
  3858. "created_at": {
  3859. "type": "string"
  3860. },
  3861. "from_name": {
  3862. "type": "string"
  3863. },
  3864. "from_peer": {
  3865. "type": "string"
  3866. },
  3867. "id": {
  3868. "type": "integer"
  3869. },
  3870. "info": {
  3871. "type": "string"
  3872. },
  3873. "ip": {
  3874. "type": "string"
  3875. },
  3876. "is_file": {
  3877. "type": "boolean"
  3878. },
  3879. "num": {
  3880. "type": "integer"
  3881. },
  3882. "path": {
  3883. "type": "string"
  3884. },
  3885. "peer_id": {
  3886. "type": "string"
  3887. },
  3888. "type": {
  3889. "type": "integer"
  3890. },
  3891. "updated_at": {
  3892. "type": "string"
  3893. },
  3894. "uuid": {
  3895. "type": "string"
  3896. }
  3897. }
  3898. },
  3899. "model.AuditFileList": {
  3900. "type": "object",
  3901. "properties": {
  3902. "list": {
  3903. "type": "array",
  3904. "items": {
  3905. "$ref": "#/definitions/model.AuditFile"
  3906. }
  3907. },
  3908. "page": {
  3909. "type": "integer"
  3910. },
  3911. "page_size": {
  3912. "type": "integer"
  3913. },
  3914. "total": {
  3915. "type": "integer"
  3916. }
  3917. }
  3918. },
  3919. "model.Group": {
  3920. "type": "object",
  3921. "properties": {
  3922. "created_at": {
  3923. "type": "string"
  3924. },
  3925. "id": {
  3926. "type": "integer"
  3927. },
  3928. "name": {
  3929. "type": "string"
  3930. },
  3931. "type": {
  3932. "type": "integer"
  3933. },
  3934. "updated_at": {
  3935. "type": "string"
  3936. }
  3937. }
  3938. },
  3939. "model.GroupList": {
  3940. "type": "object",
  3941. "properties": {
  3942. "list": {
  3943. "type": "array",
  3944. "items": {
  3945. "$ref": "#/definitions/model.Group"
  3946. }
  3947. },
  3948. "page": {
  3949. "type": "integer"
  3950. },
  3951. "page_size": {
  3952. "type": "integer"
  3953. },
  3954. "total": {
  3955. "type": "integer"
  3956. }
  3957. }
  3958. },
  3959. "model.LoginLog": {
  3960. "type": "object",
  3961. "properties": {
  3962. "client": {
  3963. "description": "webadmin,webclient,app,",
  3964. "type": "string"
  3965. },
  3966. "created_at": {
  3967. "type": "string"
  3968. },
  3969. "id": {
  3970. "type": "integer"
  3971. },
  3972. "ip": {
  3973. "type": "string"
  3974. },
  3975. "platform": {
  3976. "description": "windows,linux,mac,android,ios",
  3977. "type": "string"
  3978. },
  3979. "type": {
  3980. "description": "account,oauth",
  3981. "type": "string"
  3982. },
  3983. "updated_at": {
  3984. "type": "string"
  3985. },
  3986. "user_id": {
  3987. "type": "integer"
  3988. },
  3989. "user_token_id": {
  3990. "type": "integer"
  3991. },
  3992. "uuid": {
  3993. "type": "string"
  3994. }
  3995. }
  3996. },
  3997. "model.LoginLogList": {
  3998. "type": "object",
  3999. "properties": {
  4000. "list": {
  4001. "type": "array",
  4002. "items": {
  4003. "$ref": "#/definitions/model.LoginLog"
  4004. }
  4005. },
  4006. "page": {
  4007. "type": "integer"
  4008. },
  4009. "page_size": {
  4010. "type": "integer"
  4011. },
  4012. "total": {
  4013. "type": "integer"
  4014. }
  4015. }
  4016. },
  4017. "model.Oauth": {
  4018. "type": "object",
  4019. "properties": {
  4020. "auto_register": {
  4021. "type": "boolean"
  4022. },
  4023. "client_id": {
  4024. "type": "string"
  4025. },
  4026. "client_secret": {
  4027. "type": "string"
  4028. },
  4029. "created_at": {
  4030. "type": "string"
  4031. },
  4032. "id": {
  4033. "type": "integer"
  4034. },
  4035. "issuer": {
  4036. "type": "string"
  4037. },
  4038. "op": {
  4039. "type": "string"
  4040. },
  4041. "redirect_url": {
  4042. "type": "string"
  4043. },
  4044. "scopes": {
  4045. "type": "string"
  4046. },
  4047. "updated_at": {
  4048. "type": "string"
  4049. }
  4050. }
  4051. },
  4052. "model.OauthList": {
  4053. "type": "object",
  4054. "properties": {
  4055. "list": {
  4056. "type": "array",
  4057. "items": {
  4058. "$ref": "#/definitions/model.Oauth"
  4059. }
  4060. },
  4061. "page": {
  4062. "type": "integer"
  4063. },
  4064. "page_size": {
  4065. "type": "integer"
  4066. },
  4067. "total": {
  4068. "type": "integer"
  4069. }
  4070. }
  4071. },
  4072. "model.Peer": {
  4073. "type": "object",
  4074. "properties": {
  4075. "cpu": {
  4076. "type": "string"
  4077. },
  4078. "created_at": {
  4079. "type": "string"
  4080. },
  4081. "hostname": {
  4082. "type": "string"
  4083. },
  4084. "id": {
  4085. "type": "string"
  4086. },
  4087. "last_online_ip": {
  4088. "type": "string"
  4089. },
  4090. "last_online_time": {
  4091. "type": "integer"
  4092. },
  4093. "memory": {
  4094. "type": "string"
  4095. },
  4096. "os": {
  4097. "type": "string"
  4098. },
  4099. "row_id": {
  4100. "type": "integer"
  4101. },
  4102. "updated_at": {
  4103. "type": "string"
  4104. },
  4105. "user": {
  4106. "$ref": "#/definitions/model.User"
  4107. },
  4108. "user_id": {
  4109. "type": "integer"
  4110. },
  4111. "username": {
  4112. "type": "string"
  4113. },
  4114. "uuid": {
  4115. "type": "string"
  4116. },
  4117. "version": {
  4118. "type": "string"
  4119. }
  4120. }
  4121. },
  4122. "model.PeerList": {
  4123. "type": "object",
  4124. "properties": {
  4125. "list": {
  4126. "type": "array",
  4127. "items": {
  4128. "$ref": "#/definitions/model.Peer"
  4129. }
  4130. },
  4131. "page": {
  4132. "type": "integer"
  4133. },
  4134. "page_size": {
  4135. "type": "integer"
  4136. },
  4137. "total": {
  4138. "type": "integer"
  4139. }
  4140. }
  4141. },
  4142. "model.StatusCode": {
  4143. "type": "integer",
  4144. "enum": [
  4145. 1,
  4146. 2
  4147. ],
  4148. "x-enum-comments": {
  4149. "COMMON_STATUS_DISABLED": "通用状态 禁用",
  4150. "COMMON_STATUS_ENABLE": "通用状态 启用"
  4151. },
  4152. "x-enum-varnames": [
  4153. "COMMON_STATUS_ENABLE",
  4154. "COMMON_STATUS_DISABLED"
  4155. ]
  4156. },
  4157. "model.Tag": {
  4158. "type": "object",
  4159. "properties": {
  4160. "collection": {
  4161. "$ref": "#/definitions/model.AddressBookCollection"
  4162. },
  4163. "collection_id": {
  4164. "type": "integer"
  4165. },
  4166. "color": {
  4167. "description": "color 是flutter的颜色值,从0x00000000 到 0xFFFFFFFF; 前两位表示透明度,后面6位表示颜色, 可以转成rgba",
  4168. "type": "integer"
  4169. },
  4170. "created_at": {
  4171. "type": "string"
  4172. },
  4173. "id": {
  4174. "type": "integer"
  4175. },
  4176. "name": {
  4177. "type": "string"
  4178. },
  4179. "updated_at": {
  4180. "type": "string"
  4181. },
  4182. "user_id": {
  4183. "type": "integer"
  4184. }
  4185. }
  4186. },
  4187. "model.TagList": {
  4188. "type": "object",
  4189. "properties": {
  4190. "list": {
  4191. "type": "array",
  4192. "items": {
  4193. "$ref": "#/definitions/model.Tag"
  4194. }
  4195. },
  4196. "page": {
  4197. "type": "integer"
  4198. },
  4199. "page_size": {
  4200. "type": "integer"
  4201. },
  4202. "total": {
  4203. "type": "integer"
  4204. }
  4205. }
  4206. },
  4207. "model.User": {
  4208. "type": "object",
  4209. "properties": {
  4210. "avatar": {
  4211. "type": "string"
  4212. },
  4213. "created_at": {
  4214. "type": "string"
  4215. },
  4216. "group_id": {
  4217. "type": "integer"
  4218. },
  4219. "id": {
  4220. "type": "integer"
  4221. },
  4222. "is_admin": {
  4223. "type": "boolean"
  4224. },
  4225. "nickname": {
  4226. "type": "string"
  4227. },
  4228. "status": {
  4229. "$ref": "#/definitions/model.StatusCode"
  4230. },
  4231. "updated_at": {
  4232. "type": "string"
  4233. },
  4234. "username": {
  4235. "type": "string"
  4236. }
  4237. }
  4238. },
  4239. "model.UserList": {
  4240. "type": "object",
  4241. "properties": {
  4242. "list": {
  4243. "type": "array",
  4244. "items": {
  4245. "$ref": "#/definitions/model.User"
  4246. }
  4247. },
  4248. "page": {
  4249. "type": "integer"
  4250. },
  4251. "page_size": {
  4252. "type": "integer"
  4253. },
  4254. "total": {
  4255. "type": "integer"
  4256. }
  4257. }
  4258. },
  4259. "model.UserToken": {
  4260. "type": "object",
  4261. "properties": {
  4262. "created_at": {
  4263. "type": "string"
  4264. },
  4265. "expired_at": {
  4266. "type": "integer"
  4267. },
  4268. "id": {
  4269. "type": "integer"
  4270. },
  4271. "token": {
  4272. "type": "string"
  4273. },
  4274. "updated_at": {
  4275. "type": "string"
  4276. },
  4277. "user_id": {
  4278. "type": "integer"
  4279. }
  4280. }
  4281. },
  4282. "model.UserTokenList": {
  4283. "type": "object",
  4284. "properties": {
  4285. "list": {
  4286. "type": "array",
  4287. "items": {
  4288. "$ref": "#/definitions/model.UserToken"
  4289. }
  4290. },
  4291. "page": {
  4292. "type": "integer"
  4293. },
  4294. "page_size": {
  4295. "type": "integer"
  4296. },
  4297. "total": {
  4298. "type": "integer"
  4299. }
  4300. }
  4301. },
  4302. "response.ErrorResponse": {
  4303. "type": "object",
  4304. "properties": {
  4305. "error": {
  4306. "type": "string"
  4307. }
  4308. }
  4309. },
  4310. "response.Response": {
  4311. "type": "object",
  4312. "properties": {
  4313. "code": {
  4314. "type": "integer"
  4315. },
  4316. "data": {},
  4317. "message": {
  4318. "type": "string"
  4319. }
  4320. }
  4321. }
  4322. },
  4323. "securityDefinitions": {
  4324. "BearerAuth": {
  4325. "type": "apiKey",
  4326. "name": "Authorization",
  4327. "in": "header"
  4328. },
  4329. "token": {
  4330. "type": "apiKey",
  4331. "name": "api-token",
  4332. "in": "header"
  4333. }
  4334. }
  4335. }