admin_docs.go 141 KB

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