admin_swagger.json 130 KB

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