admin_docs.go 156 KB

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