admin_docs.go 130 KB

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