admin_docs.go 133 KB

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