admin_docs.go 105 KB

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