admin_swagger.json 144 KB

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