admin_swagger.json 133 KB

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