admin_docs.go 145 KB

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