admin_swagger.json 138 KB

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