admin_docs.go 139 KB

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