admin_docs.go 95 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967
  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/update": {
  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.AddressBookForm"
  271. }
  272. }
  273. ],
  274. "responses": {
  275. "200": {
  276. "description": "OK",
  277. "schema": {
  278. "allOf": [
  279. {
  280. "$ref": "#/definitions/response.Response"
  281. },
  282. {
  283. "type": "object",
  284. "properties": {
  285. "data": {
  286. "$ref": "#/definitions/model.AddressBook"
  287. }
  288. }
  289. }
  290. ]
  291. }
  292. },
  293. "500": {
  294. "description": "Internal Server Error",
  295. "schema": {
  296. "$ref": "#/definitions/response.Response"
  297. }
  298. }
  299. }
  300. }
  301. },
  302. "/admin/file/oss_token": {
  303. "get": {
  304. "security": [
  305. {
  306. "token": []
  307. }
  308. ],
  309. "description": "获取ossToken",
  310. "consumes": [
  311. "application/json"
  312. ],
  313. "produces": [
  314. "application/json"
  315. ],
  316. "tags": [
  317. "文件"
  318. ],
  319. "summary": "获取ossToken",
  320. "responses": {
  321. "200": {
  322. "description": "OK",
  323. "schema": {
  324. "$ref": "#/definitions/response.Response"
  325. }
  326. },
  327. "500": {
  328. "description": "Internal Server Error",
  329. "schema": {
  330. "$ref": "#/definitions/response.Response"
  331. }
  332. }
  333. }
  334. }
  335. },
  336. "/admin/file/upload": {
  337. "post": {
  338. "security": [
  339. {
  340. "token": []
  341. }
  342. ],
  343. "description": "上传文件到本地",
  344. "consumes": [
  345. "multipart/form-data"
  346. ],
  347. "produces": [
  348. "application/json"
  349. ],
  350. "tags": [
  351. "文件"
  352. ],
  353. "summary": "上传文件到本地",
  354. "parameters": [
  355. {
  356. "type": "file",
  357. "description": "上传文件示例",
  358. "name": "file",
  359. "in": "formData",
  360. "required": true
  361. }
  362. ],
  363. "responses": {
  364. "200": {
  365. "description": "OK",
  366. "schema": {
  367. "$ref": "#/definitions/response.Response"
  368. }
  369. },
  370. "500": {
  371. "description": "Internal Server Error",
  372. "schema": {
  373. "$ref": "#/definitions/response.Response"
  374. }
  375. }
  376. }
  377. }
  378. },
  379. "/admin/group/create": {
  380. "post": {
  381. "security": [
  382. {
  383. "token": []
  384. }
  385. ],
  386. "description": "创建群组",
  387. "consumes": [
  388. "application/json"
  389. ],
  390. "produces": [
  391. "application/json"
  392. ],
  393. "tags": [
  394. "群组"
  395. ],
  396. "summary": "创建群组",
  397. "parameters": [
  398. {
  399. "description": "群组信息",
  400. "name": "body",
  401. "in": "body",
  402. "required": true,
  403. "schema": {
  404. "$ref": "#/definitions/admin.GroupForm"
  405. }
  406. }
  407. ],
  408. "responses": {
  409. "200": {
  410. "description": "OK",
  411. "schema": {
  412. "allOf": [
  413. {
  414. "$ref": "#/definitions/response.Response"
  415. },
  416. {
  417. "type": "object",
  418. "properties": {
  419. "data": {
  420. "$ref": "#/definitions/model.Group"
  421. }
  422. }
  423. }
  424. ]
  425. }
  426. },
  427. "500": {
  428. "description": "Internal Server Error",
  429. "schema": {
  430. "$ref": "#/definitions/response.Response"
  431. }
  432. }
  433. }
  434. }
  435. },
  436. "/admin/group/delete": {
  437. "post": {
  438. "security": [
  439. {
  440. "token": []
  441. }
  442. ],
  443. "description": "群组删除",
  444. "consumes": [
  445. "application/json"
  446. ],
  447. "produces": [
  448. "application/json"
  449. ],
  450. "tags": [
  451. "群组"
  452. ],
  453. "summary": "群组删除",
  454. "parameters": [
  455. {
  456. "description": "群组信息",
  457. "name": "body",
  458. "in": "body",
  459. "required": true,
  460. "schema": {
  461. "$ref": "#/definitions/admin.GroupForm"
  462. }
  463. }
  464. ],
  465. "responses": {
  466. "200": {
  467. "description": "OK",
  468. "schema": {
  469. "$ref": "#/definitions/response.Response"
  470. }
  471. },
  472. "500": {
  473. "description": "Internal Server Error",
  474. "schema": {
  475. "$ref": "#/definitions/response.Response"
  476. }
  477. }
  478. }
  479. }
  480. },
  481. "/admin/group/detail/{id}": {
  482. "get": {
  483. "security": [
  484. {
  485. "token": []
  486. }
  487. ],
  488. "description": "群组详情",
  489. "consumes": [
  490. "application/json"
  491. ],
  492. "produces": [
  493. "application/json"
  494. ],
  495. "tags": [
  496. "群组"
  497. ],
  498. "summary": "群组详情",
  499. "parameters": [
  500. {
  501. "type": "integer",
  502. "description": "ID",
  503. "name": "id",
  504. "in": "path",
  505. "required": true
  506. }
  507. ],
  508. "responses": {
  509. "200": {
  510. "description": "OK",
  511. "schema": {
  512. "allOf": [
  513. {
  514. "$ref": "#/definitions/response.Response"
  515. },
  516. {
  517. "type": "object",
  518. "properties": {
  519. "data": {
  520. "$ref": "#/definitions/model.Group"
  521. }
  522. }
  523. }
  524. ]
  525. }
  526. },
  527. "500": {
  528. "description": "Internal Server Error",
  529. "schema": {
  530. "$ref": "#/definitions/response.Response"
  531. }
  532. }
  533. }
  534. }
  535. },
  536. "/admin/group/list": {
  537. "get": {
  538. "security": [
  539. {
  540. "token": []
  541. }
  542. ],
  543. "description": "群组列表",
  544. "consumes": [
  545. "application/json"
  546. ],
  547. "produces": [
  548. "application/json"
  549. ],
  550. "tags": [
  551. "群组"
  552. ],
  553. "summary": "群组列表",
  554. "parameters": [
  555. {
  556. "type": "integer",
  557. "description": "页码",
  558. "name": "page",
  559. "in": "query"
  560. },
  561. {
  562. "type": "integer",
  563. "description": "页大小",
  564. "name": "page_size",
  565. "in": "query"
  566. }
  567. ],
  568. "responses": {
  569. "200": {
  570. "description": "OK",
  571. "schema": {
  572. "allOf": [
  573. {
  574. "$ref": "#/definitions/response.Response"
  575. },
  576. {
  577. "type": "object",
  578. "properties": {
  579. "data": {
  580. "$ref": "#/definitions/model.GroupList"
  581. }
  582. }
  583. }
  584. ]
  585. }
  586. },
  587. "500": {
  588. "description": "Internal Server Error",
  589. "schema": {
  590. "$ref": "#/definitions/response.Response"
  591. }
  592. }
  593. }
  594. }
  595. },
  596. "/admin/group/update": {
  597. "post": {
  598. "security": [
  599. {
  600. "token": []
  601. }
  602. ],
  603. "description": "群组编辑",
  604. "consumes": [
  605. "application/json"
  606. ],
  607. "produces": [
  608. "application/json"
  609. ],
  610. "tags": [
  611. "群组"
  612. ],
  613. "summary": "群组编辑",
  614. "parameters": [
  615. {
  616. "description": "群组信息",
  617. "name": "body",
  618. "in": "body",
  619. "required": true,
  620. "schema": {
  621. "$ref": "#/definitions/admin.GroupForm"
  622. }
  623. }
  624. ],
  625. "responses": {
  626. "200": {
  627. "description": "OK",
  628. "schema": {
  629. "allOf": [
  630. {
  631. "$ref": "#/definitions/response.Response"
  632. },
  633. {
  634. "type": "object",
  635. "properties": {
  636. "data": {
  637. "$ref": "#/definitions/model.Group"
  638. }
  639. }
  640. }
  641. ]
  642. }
  643. },
  644. "500": {
  645. "description": "Internal Server Error",
  646. "schema": {
  647. "$ref": "#/definitions/response.Response"
  648. }
  649. }
  650. }
  651. }
  652. },
  653. "/admin/login": {
  654. "post": {
  655. "security": [
  656. {
  657. "token": []
  658. }
  659. ],
  660. "description": "登录",
  661. "consumes": [
  662. "application/json"
  663. ],
  664. "produces": [
  665. "application/json"
  666. ],
  667. "tags": [
  668. "登录"
  669. ],
  670. "summary": "登录",
  671. "parameters": [
  672. {
  673. "description": "登录信息",
  674. "name": "body",
  675. "in": "body",
  676. "required": true,
  677. "schema": {
  678. "$ref": "#/definitions/Gwen_http_request_admin.Login"
  679. }
  680. }
  681. ],
  682. "responses": {
  683. "200": {
  684. "description": "OK",
  685. "schema": {
  686. "allOf": [
  687. {
  688. "$ref": "#/definitions/response.Response"
  689. },
  690. {
  691. "type": "object",
  692. "properties": {
  693. "data": {
  694. "$ref": "#/definitions/admin.LoginPayload"
  695. }
  696. }
  697. }
  698. ]
  699. }
  700. },
  701. "500": {
  702. "description": "Internal Server Error",
  703. "schema": {
  704. "$ref": "#/definitions/response.Response"
  705. }
  706. }
  707. }
  708. }
  709. },
  710. "/admin/loginLog/delete": {
  711. "post": {
  712. "security": [
  713. {
  714. "token": []
  715. }
  716. ],
  717. "description": "登录日志删除",
  718. "consumes": [
  719. "application/json"
  720. ],
  721. "produces": [
  722. "application/json"
  723. ],
  724. "tags": [
  725. "登录日志"
  726. ],
  727. "summary": "登录日志删除",
  728. "parameters": [
  729. {
  730. "description": "登录日志信息",
  731. "name": "body",
  732. "in": "body",
  733. "required": true,
  734. "schema": {
  735. "$ref": "#/definitions/model.LoginLog"
  736. }
  737. }
  738. ],
  739. "responses": {
  740. "200": {
  741. "description": "OK",
  742. "schema": {
  743. "$ref": "#/definitions/response.Response"
  744. }
  745. },
  746. "500": {
  747. "description": "Internal Server Error",
  748. "schema": {
  749. "$ref": "#/definitions/response.Response"
  750. }
  751. }
  752. }
  753. }
  754. },
  755. "/admin/loginLog/detail/{id}": {
  756. "get": {
  757. "security": [
  758. {
  759. "token": []
  760. }
  761. ],
  762. "description": "登录日志详情",
  763. "consumes": [
  764. "application/json"
  765. ],
  766. "produces": [
  767. "application/json"
  768. ],
  769. "tags": [
  770. "登录日志"
  771. ],
  772. "summary": "登录日志详情",
  773. "parameters": [
  774. {
  775. "type": "integer",
  776. "description": "ID",
  777. "name": "id",
  778. "in": "path",
  779. "required": true
  780. }
  781. ],
  782. "responses": {
  783. "200": {
  784. "description": "OK",
  785. "schema": {
  786. "allOf": [
  787. {
  788. "$ref": "#/definitions/response.Response"
  789. },
  790. {
  791. "type": "object",
  792. "properties": {
  793. "data": {
  794. "$ref": "#/definitions/model.LoginLog"
  795. }
  796. }
  797. }
  798. ]
  799. }
  800. },
  801. "500": {
  802. "description": "Internal Server Error",
  803. "schema": {
  804. "$ref": "#/definitions/response.Response"
  805. }
  806. }
  807. }
  808. }
  809. },
  810. "/admin/loginLog/list": {
  811. "get": {
  812. "security": [
  813. {
  814. "token": []
  815. }
  816. ],
  817. "description": "登录日志列表",
  818. "consumes": [
  819. "application/json"
  820. ],
  821. "produces": [
  822. "application/json"
  823. ],
  824. "tags": [
  825. "登录日志"
  826. ],
  827. "summary": "登录日志列表",
  828. "parameters": [
  829. {
  830. "type": "integer",
  831. "description": "页码",
  832. "name": "page",
  833. "in": "query"
  834. },
  835. {
  836. "type": "integer",
  837. "description": "页大小",
  838. "name": "page_size",
  839. "in": "query"
  840. },
  841. {
  842. "type": "integer",
  843. "description": "用户ID",
  844. "name": "user_id",
  845. "in": "query"
  846. }
  847. ],
  848. "responses": {
  849. "200": {
  850. "description": "OK",
  851. "schema": {
  852. "allOf": [
  853. {
  854. "$ref": "#/definitions/response.Response"
  855. },
  856. {
  857. "type": "object",
  858. "properties": {
  859. "data": {
  860. "$ref": "#/definitions/model.LoginLogList"
  861. }
  862. }
  863. }
  864. ]
  865. }
  866. },
  867. "500": {
  868. "description": "Internal Server Error",
  869. "schema": {
  870. "$ref": "#/definitions/response.Response"
  871. }
  872. }
  873. }
  874. }
  875. },
  876. "/admin/logout": {
  877. "post": {
  878. "description": "登出",
  879. "consumes": [
  880. "application/json"
  881. ],
  882. "produces": [
  883. "application/json"
  884. ],
  885. "tags": [
  886. "登录"
  887. ],
  888. "summary": "登出",
  889. "responses": {
  890. "200": {
  891. "description": "OK",
  892. "schema": {
  893. "$ref": "#/definitions/response.Response"
  894. }
  895. },
  896. "500": {
  897. "description": "Internal Server Error",
  898. "schema": {
  899. "$ref": "#/definitions/response.Response"
  900. }
  901. }
  902. }
  903. }
  904. },
  905. "/admin/oauth/create": {
  906. "post": {
  907. "security": [
  908. {
  909. "token": []
  910. }
  911. ],
  912. "description": "创建Oauth",
  913. "consumes": [
  914. "application/json"
  915. ],
  916. "produces": [
  917. "application/json"
  918. ],
  919. "tags": [
  920. "Oauth"
  921. ],
  922. "summary": "创建Oauth",
  923. "parameters": [
  924. {
  925. "description": "Oauth信息",
  926. "name": "body",
  927. "in": "body",
  928. "required": true,
  929. "schema": {
  930. "$ref": "#/definitions/admin.OauthForm"
  931. }
  932. }
  933. ],
  934. "responses": {
  935. "200": {
  936. "description": "OK",
  937. "schema": {
  938. "allOf": [
  939. {
  940. "$ref": "#/definitions/response.Response"
  941. },
  942. {
  943. "type": "object",
  944. "properties": {
  945. "data": {
  946. "$ref": "#/definitions/model.Oauth"
  947. }
  948. }
  949. }
  950. ]
  951. }
  952. },
  953. "500": {
  954. "description": "Internal Server Error",
  955. "schema": {
  956. "$ref": "#/definitions/response.Response"
  957. }
  958. }
  959. }
  960. }
  961. },
  962. "/admin/oauth/delete": {
  963. "post": {
  964. "security": [
  965. {
  966. "token": []
  967. }
  968. ],
  969. "description": "Oauth删除",
  970. "consumes": [
  971. "application/json"
  972. ],
  973. "produces": [
  974. "application/json"
  975. ],
  976. "tags": [
  977. "Oauth"
  978. ],
  979. "summary": "Oauth删除",
  980. "parameters": [
  981. {
  982. "description": "Oauth信息",
  983. "name": "body",
  984. "in": "body",
  985. "required": true,
  986. "schema": {
  987. "$ref": "#/definitions/admin.OauthForm"
  988. }
  989. }
  990. ],
  991. "responses": {
  992. "200": {
  993. "description": "OK",
  994. "schema": {
  995. "$ref": "#/definitions/response.Response"
  996. }
  997. },
  998. "500": {
  999. "description": "Internal Server Error",
  1000. "schema": {
  1001. "$ref": "#/definitions/response.Response"
  1002. }
  1003. }
  1004. }
  1005. }
  1006. },
  1007. "/admin/oauth/detail/{id}": {
  1008. "get": {
  1009. "security": [
  1010. {
  1011. "token": []
  1012. }
  1013. ],
  1014. "description": "Oauth详情",
  1015. "consumes": [
  1016. "application/json"
  1017. ],
  1018. "produces": [
  1019. "application/json"
  1020. ],
  1021. "tags": [
  1022. "Oauth"
  1023. ],
  1024. "summary": "Oauth详情",
  1025. "parameters": [
  1026. {
  1027. "type": "integer",
  1028. "description": "ID",
  1029. "name": "id",
  1030. "in": "path",
  1031. "required": true
  1032. }
  1033. ],
  1034. "responses": {
  1035. "200": {
  1036. "description": "OK",
  1037. "schema": {
  1038. "allOf": [
  1039. {
  1040. "$ref": "#/definitions/response.Response"
  1041. },
  1042. {
  1043. "type": "object",
  1044. "properties": {
  1045. "data": {
  1046. "$ref": "#/definitions/model.Oauth"
  1047. }
  1048. }
  1049. }
  1050. ]
  1051. }
  1052. },
  1053. "500": {
  1054. "description": "Internal Server Error",
  1055. "schema": {
  1056. "$ref": "#/definitions/response.Response"
  1057. }
  1058. }
  1059. }
  1060. }
  1061. },
  1062. "/admin/oauth/list": {
  1063. "get": {
  1064. "security": [
  1065. {
  1066. "token": []
  1067. }
  1068. ],
  1069. "description": "Oauth列表",
  1070. "consumes": [
  1071. "application/json"
  1072. ],
  1073. "produces": [
  1074. "application/json"
  1075. ],
  1076. "tags": [
  1077. "Oauth"
  1078. ],
  1079. "summary": "Oauth列表",
  1080. "parameters": [
  1081. {
  1082. "type": "integer",
  1083. "description": "页码",
  1084. "name": "page",
  1085. "in": "query"
  1086. },
  1087. {
  1088. "type": "integer",
  1089. "description": "页大小",
  1090. "name": "page_size",
  1091. "in": "query"
  1092. }
  1093. ],
  1094. "responses": {
  1095. "200": {
  1096. "description": "OK",
  1097. "schema": {
  1098. "allOf": [
  1099. {
  1100. "$ref": "#/definitions/response.Response"
  1101. },
  1102. {
  1103. "type": "object",
  1104. "properties": {
  1105. "data": {
  1106. "$ref": "#/definitions/model.OauthList"
  1107. }
  1108. }
  1109. }
  1110. ]
  1111. }
  1112. },
  1113. "500": {
  1114. "description": "Internal Server Error",
  1115. "schema": {
  1116. "$ref": "#/definitions/response.Response"
  1117. }
  1118. }
  1119. }
  1120. }
  1121. },
  1122. "/admin/oauth/update": {
  1123. "post": {
  1124. "security": [
  1125. {
  1126. "token": []
  1127. }
  1128. ],
  1129. "description": "Oauth编辑",
  1130. "consumes": [
  1131. "application/json"
  1132. ],
  1133. "produces": [
  1134. "application/json"
  1135. ],
  1136. "tags": [
  1137. "Oauth"
  1138. ],
  1139. "summary": "Oauth编辑",
  1140. "parameters": [
  1141. {
  1142. "description": "Oauth信息",
  1143. "name": "body",
  1144. "in": "body",
  1145. "required": true,
  1146. "schema": {
  1147. "$ref": "#/definitions/admin.OauthForm"
  1148. }
  1149. }
  1150. ],
  1151. "responses": {
  1152. "200": {
  1153. "description": "OK",
  1154. "schema": {
  1155. "allOf": [
  1156. {
  1157. "$ref": "#/definitions/response.Response"
  1158. },
  1159. {
  1160. "type": "object",
  1161. "properties": {
  1162. "data": {
  1163. "$ref": "#/definitions/model.OauthList"
  1164. }
  1165. }
  1166. }
  1167. ]
  1168. }
  1169. },
  1170. "500": {
  1171. "description": "Internal Server Error",
  1172. "schema": {
  1173. "$ref": "#/definitions/response.Response"
  1174. }
  1175. }
  1176. }
  1177. }
  1178. },
  1179. "/admin/peer/create": {
  1180. "post": {
  1181. "security": [
  1182. {
  1183. "token": []
  1184. }
  1185. ],
  1186. "description": "创建机器",
  1187. "consumes": [
  1188. "application/json"
  1189. ],
  1190. "produces": [
  1191. "application/json"
  1192. ],
  1193. "tags": [
  1194. "机器"
  1195. ],
  1196. "summary": "创建机器",
  1197. "parameters": [
  1198. {
  1199. "description": "机器信息",
  1200. "name": "body",
  1201. "in": "body",
  1202. "required": true,
  1203. "schema": {
  1204. "$ref": "#/definitions/admin.PeerForm"
  1205. }
  1206. }
  1207. ],
  1208. "responses": {
  1209. "200": {
  1210. "description": "OK",
  1211. "schema": {
  1212. "allOf": [
  1213. {
  1214. "$ref": "#/definitions/response.Response"
  1215. },
  1216. {
  1217. "type": "object",
  1218. "properties": {
  1219. "data": {
  1220. "$ref": "#/definitions/model.Peer"
  1221. }
  1222. }
  1223. }
  1224. ]
  1225. }
  1226. },
  1227. "500": {
  1228. "description": "Internal Server Error",
  1229. "schema": {
  1230. "$ref": "#/definitions/response.Response"
  1231. }
  1232. }
  1233. }
  1234. }
  1235. },
  1236. "/admin/peer/delete": {
  1237. "post": {
  1238. "security": [
  1239. {
  1240. "token": []
  1241. }
  1242. ],
  1243. "description": "机器删除",
  1244. "consumes": [
  1245. "application/json"
  1246. ],
  1247. "produces": [
  1248. "application/json"
  1249. ],
  1250. "tags": [
  1251. "机器"
  1252. ],
  1253. "summary": "机器删除",
  1254. "parameters": [
  1255. {
  1256. "description": "机器信息",
  1257. "name": "body",
  1258. "in": "body",
  1259. "required": true,
  1260. "schema": {
  1261. "$ref": "#/definitions/admin.PeerForm"
  1262. }
  1263. }
  1264. ],
  1265. "responses": {
  1266. "200": {
  1267. "description": "OK",
  1268. "schema": {
  1269. "$ref": "#/definitions/response.Response"
  1270. }
  1271. },
  1272. "500": {
  1273. "description": "Internal Server Error",
  1274. "schema": {
  1275. "$ref": "#/definitions/response.Response"
  1276. }
  1277. }
  1278. }
  1279. }
  1280. },
  1281. "/admin/peer/detail/{id}": {
  1282. "get": {
  1283. "security": [
  1284. {
  1285. "token": []
  1286. }
  1287. ],
  1288. "description": "机器详情",
  1289. "consumes": [
  1290. "application/json"
  1291. ],
  1292. "produces": [
  1293. "application/json"
  1294. ],
  1295. "tags": [
  1296. "机器"
  1297. ],
  1298. "summary": "机器详情",
  1299. "parameters": [
  1300. {
  1301. "type": "integer",
  1302. "description": "ID",
  1303. "name": "id",
  1304. "in": "path",
  1305. "required": true
  1306. }
  1307. ],
  1308. "responses": {
  1309. "200": {
  1310. "description": "OK",
  1311. "schema": {
  1312. "allOf": [
  1313. {
  1314. "$ref": "#/definitions/response.Response"
  1315. },
  1316. {
  1317. "type": "object",
  1318. "properties": {
  1319. "data": {
  1320. "$ref": "#/definitions/model.Peer"
  1321. }
  1322. }
  1323. }
  1324. ]
  1325. }
  1326. },
  1327. "500": {
  1328. "description": "Internal Server Error",
  1329. "schema": {
  1330. "$ref": "#/definitions/response.Response"
  1331. }
  1332. }
  1333. }
  1334. }
  1335. },
  1336. "/admin/peer/list": {
  1337. "get": {
  1338. "security": [
  1339. {
  1340. "token": []
  1341. }
  1342. ],
  1343. "description": "机器列表",
  1344. "consumes": [
  1345. "application/json"
  1346. ],
  1347. "produces": [
  1348. "application/json"
  1349. ],
  1350. "tags": [
  1351. "机器"
  1352. ],
  1353. "summary": "机器列表",
  1354. "parameters": [
  1355. {
  1356. "type": "integer",
  1357. "description": "页码",
  1358. "name": "page",
  1359. "in": "query"
  1360. },
  1361. {
  1362. "type": "integer",
  1363. "description": "页大小",
  1364. "name": "page_size",
  1365. "in": "query"
  1366. }
  1367. ],
  1368. "responses": {
  1369. "200": {
  1370. "description": "OK",
  1371. "schema": {
  1372. "allOf": [
  1373. {
  1374. "$ref": "#/definitions/response.Response"
  1375. },
  1376. {
  1377. "type": "object",
  1378. "properties": {
  1379. "data": {
  1380. "$ref": "#/definitions/model.PeerList"
  1381. }
  1382. }
  1383. }
  1384. ]
  1385. }
  1386. },
  1387. "500": {
  1388. "description": "Internal Server Error",
  1389. "schema": {
  1390. "$ref": "#/definitions/response.Response"
  1391. }
  1392. }
  1393. }
  1394. }
  1395. },
  1396. "/admin/peer/update": {
  1397. "post": {
  1398. "security": [
  1399. {
  1400. "token": []
  1401. }
  1402. ],
  1403. "description": "机器编辑",
  1404. "consumes": [
  1405. "application/json"
  1406. ],
  1407. "produces": [
  1408. "application/json"
  1409. ],
  1410. "tags": [
  1411. "机器"
  1412. ],
  1413. "summary": "机器编辑",
  1414. "parameters": [
  1415. {
  1416. "description": "机器信息",
  1417. "name": "body",
  1418. "in": "body",
  1419. "required": true,
  1420. "schema": {
  1421. "$ref": "#/definitions/admin.PeerForm"
  1422. }
  1423. }
  1424. ],
  1425. "responses": {
  1426. "200": {
  1427. "description": "OK",
  1428. "schema": {
  1429. "allOf": [
  1430. {
  1431. "$ref": "#/definitions/response.Response"
  1432. },
  1433. {
  1434. "type": "object",
  1435. "properties": {
  1436. "data": {
  1437. "$ref": "#/definitions/model.Peer"
  1438. }
  1439. }
  1440. }
  1441. ]
  1442. }
  1443. },
  1444. "500": {
  1445. "description": "Internal Server Error",
  1446. "schema": {
  1447. "$ref": "#/definitions/response.Response"
  1448. }
  1449. }
  1450. }
  1451. }
  1452. },
  1453. "/admin/server-config": {
  1454. "get": {
  1455. "security": [
  1456. {
  1457. "token": []
  1458. }
  1459. ],
  1460. "description": "服务配置,给webclient提供api-server",
  1461. "consumes": [
  1462. "application/json"
  1463. ],
  1464. "produces": [
  1465. "application/json"
  1466. ],
  1467. "tags": [
  1468. "ADMIN"
  1469. ],
  1470. "summary": "服务配置",
  1471. "responses": {
  1472. "200": {
  1473. "description": "OK",
  1474. "schema": {
  1475. "$ref": "#/definitions/response.Response"
  1476. }
  1477. },
  1478. "500": {
  1479. "description": "Internal Server Error",
  1480. "schema": {
  1481. "$ref": "#/definitions/response.Response"
  1482. }
  1483. }
  1484. }
  1485. }
  1486. },
  1487. "/admin/tag/create": {
  1488. "post": {
  1489. "security": [
  1490. {
  1491. "token": []
  1492. }
  1493. ],
  1494. "description": "创建标签",
  1495. "consumes": [
  1496. "application/json"
  1497. ],
  1498. "produces": [
  1499. "application/json"
  1500. ],
  1501. "tags": [
  1502. "标签"
  1503. ],
  1504. "summary": "创建标签",
  1505. "parameters": [
  1506. {
  1507. "description": "标签信息",
  1508. "name": "body",
  1509. "in": "body",
  1510. "required": true,
  1511. "schema": {
  1512. "$ref": "#/definitions/admin.TagForm"
  1513. }
  1514. }
  1515. ],
  1516. "responses": {
  1517. "200": {
  1518. "description": "OK",
  1519. "schema": {
  1520. "allOf": [
  1521. {
  1522. "$ref": "#/definitions/response.Response"
  1523. },
  1524. {
  1525. "type": "object",
  1526. "properties": {
  1527. "data": {
  1528. "$ref": "#/definitions/model.Tag"
  1529. }
  1530. }
  1531. }
  1532. ]
  1533. }
  1534. },
  1535. "500": {
  1536. "description": "Internal Server Error",
  1537. "schema": {
  1538. "$ref": "#/definitions/response.Response"
  1539. }
  1540. }
  1541. }
  1542. }
  1543. },
  1544. "/admin/tag/delete": {
  1545. "post": {
  1546. "security": [
  1547. {
  1548. "token": []
  1549. }
  1550. ],
  1551. "description": "标签删除",
  1552. "consumes": [
  1553. "application/json"
  1554. ],
  1555. "produces": [
  1556. "application/json"
  1557. ],
  1558. "tags": [
  1559. "标签"
  1560. ],
  1561. "summary": "标签删除",
  1562. "parameters": [
  1563. {
  1564. "description": "标签信息",
  1565. "name": "body",
  1566. "in": "body",
  1567. "required": true,
  1568. "schema": {
  1569. "$ref": "#/definitions/admin.TagForm"
  1570. }
  1571. }
  1572. ],
  1573. "responses": {
  1574. "200": {
  1575. "description": "OK",
  1576. "schema": {
  1577. "$ref": "#/definitions/response.Response"
  1578. }
  1579. },
  1580. "500": {
  1581. "description": "Internal Server Error",
  1582. "schema": {
  1583. "$ref": "#/definitions/response.Response"
  1584. }
  1585. }
  1586. }
  1587. }
  1588. },
  1589. "/admin/tag/detail/{id}": {
  1590. "get": {
  1591. "security": [
  1592. {
  1593. "token": []
  1594. }
  1595. ],
  1596. "description": "标签详情",
  1597. "consumes": [
  1598. "application/json"
  1599. ],
  1600. "produces": [
  1601. "application/json"
  1602. ],
  1603. "tags": [
  1604. "标签"
  1605. ],
  1606. "summary": "标签详情",
  1607. "parameters": [
  1608. {
  1609. "type": "integer",
  1610. "description": "ID",
  1611. "name": "id",
  1612. "in": "path",
  1613. "required": true
  1614. }
  1615. ],
  1616. "responses": {
  1617. "200": {
  1618. "description": "OK",
  1619. "schema": {
  1620. "allOf": [
  1621. {
  1622. "$ref": "#/definitions/response.Response"
  1623. },
  1624. {
  1625. "type": "object",
  1626. "properties": {
  1627. "data": {
  1628. "$ref": "#/definitions/model.Tag"
  1629. }
  1630. }
  1631. }
  1632. ]
  1633. }
  1634. },
  1635. "500": {
  1636. "description": "Internal Server Error",
  1637. "schema": {
  1638. "$ref": "#/definitions/response.Response"
  1639. }
  1640. }
  1641. }
  1642. }
  1643. },
  1644. "/admin/tag/list": {
  1645. "get": {
  1646. "security": [
  1647. {
  1648. "token": []
  1649. }
  1650. ],
  1651. "description": "标签列表",
  1652. "consumes": [
  1653. "application/json"
  1654. ],
  1655. "produces": [
  1656. "application/json"
  1657. ],
  1658. "tags": [
  1659. "标签"
  1660. ],
  1661. "summary": "标签列表",
  1662. "parameters": [
  1663. {
  1664. "type": "integer",
  1665. "description": "页码",
  1666. "name": "page",
  1667. "in": "query"
  1668. },
  1669. {
  1670. "type": "integer",
  1671. "description": "页大小",
  1672. "name": "page_size",
  1673. "in": "query"
  1674. },
  1675. {
  1676. "type": "integer",
  1677. "description": "是否是我的",
  1678. "name": "is_my",
  1679. "in": "query"
  1680. },
  1681. {
  1682. "type": "integer",
  1683. "description": "用户id",
  1684. "name": "user_id",
  1685. "in": "query"
  1686. }
  1687. ],
  1688. "responses": {
  1689. "200": {
  1690. "description": "OK",
  1691. "schema": {
  1692. "allOf": [
  1693. {
  1694. "$ref": "#/definitions/response.Response"
  1695. },
  1696. {
  1697. "type": "object",
  1698. "properties": {
  1699. "data": {
  1700. "$ref": "#/definitions/model.TagList"
  1701. }
  1702. }
  1703. }
  1704. ]
  1705. }
  1706. },
  1707. "500": {
  1708. "description": "Internal Server Error",
  1709. "schema": {
  1710. "$ref": "#/definitions/response.Response"
  1711. }
  1712. }
  1713. }
  1714. }
  1715. },
  1716. "/admin/tag/update": {
  1717. "post": {
  1718. "security": [
  1719. {
  1720. "token": []
  1721. }
  1722. ],
  1723. "description": "标签编辑",
  1724. "consumes": [
  1725. "application/json"
  1726. ],
  1727. "produces": [
  1728. "application/json"
  1729. ],
  1730. "tags": [
  1731. "标签"
  1732. ],
  1733. "summary": "标签编辑",
  1734. "parameters": [
  1735. {
  1736. "description": "标签信息",
  1737. "name": "body",
  1738. "in": "body",
  1739. "required": true,
  1740. "schema": {
  1741. "$ref": "#/definitions/admin.TagForm"
  1742. }
  1743. }
  1744. ],
  1745. "responses": {
  1746. "200": {
  1747. "description": "OK",
  1748. "schema": {
  1749. "allOf": [
  1750. {
  1751. "$ref": "#/definitions/response.Response"
  1752. },
  1753. {
  1754. "type": "object",
  1755. "properties": {
  1756. "data": {
  1757. "$ref": "#/definitions/model.Tag"
  1758. }
  1759. }
  1760. }
  1761. ]
  1762. }
  1763. },
  1764. "500": {
  1765. "description": "Internal Server Error",
  1766. "schema": {
  1767. "$ref": "#/definitions/response.Response"
  1768. }
  1769. }
  1770. }
  1771. }
  1772. },
  1773. "/admin/user/changeCurPwd": {
  1774. "post": {
  1775. "security": [
  1776. {
  1777. "token": []
  1778. }
  1779. ],
  1780. "description": "修改当前用户密码",
  1781. "consumes": [
  1782. "application/json"
  1783. ],
  1784. "produces": [
  1785. "application/json"
  1786. ],
  1787. "tags": [
  1788. "用户"
  1789. ],
  1790. "summary": "修改当前用户密码",
  1791. "parameters": [
  1792. {
  1793. "description": "用户信息",
  1794. "name": "body",
  1795. "in": "body",
  1796. "required": true,
  1797. "schema": {
  1798. "$ref": "#/definitions/admin.ChangeCurPasswordForm"
  1799. }
  1800. }
  1801. ],
  1802. "responses": {
  1803. "200": {
  1804. "description": "OK",
  1805. "schema": {
  1806. "$ref": "#/definitions/response.Response"
  1807. }
  1808. },
  1809. "500": {
  1810. "description": "Internal Server Error",
  1811. "schema": {
  1812. "$ref": "#/definitions/response.Response"
  1813. }
  1814. }
  1815. }
  1816. }
  1817. },
  1818. "/admin/user/create": {
  1819. "post": {
  1820. "security": [
  1821. {
  1822. "token": []
  1823. }
  1824. ],
  1825. "description": "创建管理员",
  1826. "consumes": [
  1827. "application/json"
  1828. ],
  1829. "produces": [
  1830. "application/json"
  1831. ],
  1832. "tags": [
  1833. "用户"
  1834. ],
  1835. "summary": "创建管理员",
  1836. "parameters": [
  1837. {
  1838. "description": "管理员信息",
  1839. "name": "body",
  1840. "in": "body",
  1841. "required": true,
  1842. "schema": {
  1843. "$ref": "#/definitions/admin.UserForm"
  1844. }
  1845. }
  1846. ],
  1847. "responses": {
  1848. "200": {
  1849. "description": "OK",
  1850. "schema": {
  1851. "allOf": [
  1852. {
  1853. "$ref": "#/definitions/response.Response"
  1854. },
  1855. {
  1856. "type": "object",
  1857. "properties": {
  1858. "data": {
  1859. "$ref": "#/definitions/model.User"
  1860. }
  1861. }
  1862. }
  1863. ]
  1864. }
  1865. },
  1866. "500": {
  1867. "description": "Internal Server Error",
  1868. "schema": {
  1869. "$ref": "#/definitions/response.Response"
  1870. }
  1871. }
  1872. }
  1873. }
  1874. },
  1875. "/admin/user/current": {
  1876. "get": {
  1877. "security": [
  1878. {
  1879. "token": []
  1880. }
  1881. ],
  1882. "description": "当前用户",
  1883. "consumes": [
  1884. "application/json"
  1885. ],
  1886. "produces": [
  1887. "application/json"
  1888. ],
  1889. "tags": [
  1890. "用户"
  1891. ],
  1892. "summary": "当前用户",
  1893. "responses": {
  1894. "200": {
  1895. "description": "OK",
  1896. "schema": {
  1897. "allOf": [
  1898. {
  1899. "$ref": "#/definitions/response.Response"
  1900. },
  1901. {
  1902. "type": "object",
  1903. "properties": {
  1904. "data": {
  1905. "$ref": "#/definitions/admin.LoginPayload"
  1906. }
  1907. }
  1908. }
  1909. ]
  1910. }
  1911. },
  1912. "500": {
  1913. "description": "Internal Server Error",
  1914. "schema": {
  1915. "$ref": "#/definitions/response.Response"
  1916. }
  1917. }
  1918. }
  1919. }
  1920. },
  1921. "/admin/user/delete": {
  1922. "post": {
  1923. "security": [
  1924. {
  1925. "token": []
  1926. }
  1927. ],
  1928. "description": "管理员编删除",
  1929. "consumes": [
  1930. "application/json"
  1931. ],
  1932. "produces": [
  1933. "application/json"
  1934. ],
  1935. "tags": [
  1936. "用户"
  1937. ],
  1938. "summary": "管理员删除",
  1939. "parameters": [
  1940. {
  1941. "description": "用户信息",
  1942. "name": "body",
  1943. "in": "body",
  1944. "required": true,
  1945. "schema": {
  1946. "$ref": "#/definitions/admin.UserForm"
  1947. }
  1948. }
  1949. ],
  1950. "responses": {
  1951. "200": {
  1952. "description": "OK",
  1953. "schema": {
  1954. "$ref": "#/definitions/response.Response"
  1955. }
  1956. },
  1957. "500": {
  1958. "description": "Internal Server Error",
  1959. "schema": {
  1960. "$ref": "#/definitions/response.Response"
  1961. }
  1962. }
  1963. }
  1964. }
  1965. },
  1966. "/admin/user/detail/{id}": {
  1967. "get": {
  1968. "security": [
  1969. {
  1970. "token": []
  1971. }
  1972. ],
  1973. "description": "管理员详情",
  1974. "consumes": [
  1975. "application/json"
  1976. ],
  1977. "produces": [
  1978. "application/json"
  1979. ],
  1980. "tags": [
  1981. "用户"
  1982. ],
  1983. "summary": "管理员详情",
  1984. "parameters": [
  1985. {
  1986. "type": "integer",
  1987. "description": "ID",
  1988. "name": "id",
  1989. "in": "path",
  1990. "required": true
  1991. }
  1992. ],
  1993. "responses": {
  1994. "200": {
  1995. "description": "OK",
  1996. "schema": {
  1997. "allOf": [
  1998. {
  1999. "$ref": "#/definitions/response.Response"
  2000. },
  2001. {
  2002. "type": "object",
  2003. "properties": {
  2004. "data": {
  2005. "$ref": "#/definitions/model.User"
  2006. }
  2007. }
  2008. }
  2009. ]
  2010. }
  2011. },
  2012. "500": {
  2013. "description": "Internal Server Error",
  2014. "schema": {
  2015. "$ref": "#/definitions/response.Response"
  2016. }
  2017. }
  2018. }
  2019. }
  2020. },
  2021. "/admin/user/list": {
  2022. "get": {
  2023. "security": [
  2024. {
  2025. "token": []
  2026. }
  2027. ],
  2028. "description": "管理员列表",
  2029. "consumes": [
  2030. "application/json"
  2031. ],
  2032. "produces": [
  2033. "application/json"
  2034. ],
  2035. "tags": [
  2036. "用户"
  2037. ],
  2038. "summary": "管理员列表",
  2039. "parameters": [
  2040. {
  2041. "type": "integer",
  2042. "description": "页码",
  2043. "name": "page",
  2044. "in": "query"
  2045. },
  2046. {
  2047. "type": "integer",
  2048. "description": "页大小",
  2049. "name": "page_size",
  2050. "in": "query"
  2051. },
  2052. {
  2053. "type": "integer",
  2054. "description": "账户",
  2055. "name": "username",
  2056. "in": "query"
  2057. }
  2058. ],
  2059. "responses": {
  2060. "200": {
  2061. "description": "OK",
  2062. "schema": {
  2063. "allOf": [
  2064. {
  2065. "$ref": "#/definitions/response.Response"
  2066. },
  2067. {
  2068. "type": "object",
  2069. "properties": {
  2070. "data": {
  2071. "$ref": "#/definitions/model.UserList"
  2072. }
  2073. }
  2074. }
  2075. ]
  2076. }
  2077. },
  2078. "500": {
  2079. "description": "Internal Server Error",
  2080. "schema": {
  2081. "$ref": "#/definitions/response.Response"
  2082. }
  2083. }
  2084. }
  2085. }
  2086. },
  2087. "/admin/user/myOauth": {
  2088. "get": {
  2089. "security": [
  2090. {
  2091. "token": []
  2092. }
  2093. ],
  2094. "description": "我的授权",
  2095. "consumes": [
  2096. "application/json"
  2097. ],
  2098. "produces": [
  2099. "application/json"
  2100. ],
  2101. "tags": [
  2102. "用户"
  2103. ],
  2104. "summary": "我的授权",
  2105. "responses": {
  2106. "200": {
  2107. "description": "OK",
  2108. "schema": {
  2109. "allOf": [
  2110. {
  2111. "$ref": "#/definitions/response.Response"
  2112. },
  2113. {
  2114. "type": "object",
  2115. "properties": {
  2116. "data": {
  2117. "type": "array",
  2118. "items": {
  2119. "$ref": "#/definitions/admin.UserOauthItem"
  2120. }
  2121. }
  2122. }
  2123. }
  2124. ]
  2125. }
  2126. },
  2127. "500": {
  2128. "description": "Internal Server Error",
  2129. "schema": {
  2130. "$ref": "#/definitions/response.Response"
  2131. }
  2132. }
  2133. }
  2134. }
  2135. },
  2136. "/admin/user/update": {
  2137. "post": {
  2138. "security": [
  2139. {
  2140. "token": []
  2141. }
  2142. ],
  2143. "description": "管理员编辑",
  2144. "consumes": [
  2145. "application/json"
  2146. ],
  2147. "produces": [
  2148. "application/json"
  2149. ],
  2150. "tags": [
  2151. "用户"
  2152. ],
  2153. "summary": "管理员编辑",
  2154. "parameters": [
  2155. {
  2156. "description": "用户信息",
  2157. "name": "body",
  2158. "in": "body",
  2159. "required": true,
  2160. "schema": {
  2161. "$ref": "#/definitions/admin.UserForm"
  2162. }
  2163. }
  2164. ],
  2165. "responses": {
  2166. "200": {
  2167. "description": "OK",
  2168. "schema": {
  2169. "allOf": [
  2170. {
  2171. "$ref": "#/definitions/response.Response"
  2172. },
  2173. {
  2174. "type": "object",
  2175. "properties": {
  2176. "data": {
  2177. "$ref": "#/definitions/model.User"
  2178. }
  2179. }
  2180. }
  2181. ]
  2182. }
  2183. },
  2184. "500": {
  2185. "description": "Internal Server Error",
  2186. "schema": {
  2187. "$ref": "#/definitions/response.Response"
  2188. }
  2189. }
  2190. }
  2191. }
  2192. },
  2193. "/admin/user/updatePassword": {
  2194. "post": {
  2195. "security": [
  2196. {
  2197. "token": []
  2198. }
  2199. ],
  2200. "description": "修改密码",
  2201. "consumes": [
  2202. "application/json"
  2203. ],
  2204. "produces": [
  2205. "application/json"
  2206. ],
  2207. "tags": [
  2208. "用户"
  2209. ],
  2210. "summary": "修改密码",
  2211. "parameters": [
  2212. {
  2213. "description": "用户信息",
  2214. "name": "body",
  2215. "in": "body",
  2216. "required": true,
  2217. "schema": {
  2218. "$ref": "#/definitions/admin.UserPasswordForm"
  2219. }
  2220. }
  2221. ],
  2222. "responses": {
  2223. "200": {
  2224. "description": "OK",
  2225. "schema": {
  2226. "$ref": "#/definitions/response.Response"
  2227. }
  2228. },
  2229. "500": {
  2230. "description": "Internal Server Error",
  2231. "schema": {
  2232. "$ref": "#/definitions/response.Response"
  2233. }
  2234. }
  2235. }
  2236. }
  2237. }
  2238. },
  2239. "definitions": {
  2240. "Gwen_http_request_admin.Login": {
  2241. "type": "object",
  2242. "required": [
  2243. "password",
  2244. "username"
  2245. ],
  2246. "properties": {
  2247. "password": {
  2248. "type": "string"
  2249. },
  2250. "platform": {
  2251. "type": "string"
  2252. },
  2253. "username": {
  2254. "type": "string"
  2255. }
  2256. }
  2257. },
  2258. "admin.AddressBookForm": {
  2259. "type": "object",
  2260. "required": [
  2261. "id"
  2262. ],
  2263. "properties": {
  2264. "alias": {
  2265. "type": "string"
  2266. },
  2267. "forceAlwaysRelay": {
  2268. "type": "boolean"
  2269. },
  2270. "hash": {
  2271. "type": "string"
  2272. },
  2273. "hostname": {
  2274. "type": "string"
  2275. },
  2276. "id": {
  2277. "type": "string"
  2278. },
  2279. "login_name": {
  2280. "type": "string"
  2281. },
  2282. "online": {
  2283. "type": "boolean"
  2284. },
  2285. "password": {
  2286. "type": "string"
  2287. },
  2288. "platform": {
  2289. "type": "string"
  2290. },
  2291. "rdp_port": {
  2292. "type": "string"
  2293. },
  2294. "rdp_username": {
  2295. "type": "string"
  2296. },
  2297. "row_id": {
  2298. "type": "integer"
  2299. },
  2300. "same_server": {
  2301. "type": "boolean"
  2302. },
  2303. "tags": {
  2304. "type": "array",
  2305. "items": {
  2306. "type": "string"
  2307. }
  2308. },
  2309. "user_id": {
  2310. "type": "integer"
  2311. },
  2312. "username": {
  2313. "type": "string"
  2314. }
  2315. }
  2316. },
  2317. "admin.ChangeCurPasswordForm": {
  2318. "type": "object",
  2319. "required": [
  2320. "new_password",
  2321. "old_password"
  2322. ],
  2323. "properties": {
  2324. "new_password": {
  2325. "type": "string",
  2326. "maxLength": 20,
  2327. "minLength": 4
  2328. },
  2329. "old_password": {
  2330. "type": "string",
  2331. "maxLength": 20,
  2332. "minLength": 4
  2333. }
  2334. }
  2335. },
  2336. "admin.GroupForm": {
  2337. "type": "object",
  2338. "required": [
  2339. "name"
  2340. ],
  2341. "properties": {
  2342. "id": {
  2343. "type": "integer"
  2344. },
  2345. "name": {
  2346. "type": "string"
  2347. }
  2348. }
  2349. },
  2350. "admin.LoginPayload": {
  2351. "type": "object",
  2352. "properties": {
  2353. "nickname": {
  2354. "type": "string"
  2355. },
  2356. "route_names": {
  2357. "type": "array",
  2358. "items": {
  2359. "type": "string"
  2360. }
  2361. },
  2362. "token": {
  2363. "type": "string"
  2364. },
  2365. "username": {
  2366. "type": "string"
  2367. }
  2368. }
  2369. },
  2370. "admin.OauthForm": {
  2371. "type": "object",
  2372. "required": [
  2373. "client_id",
  2374. "client_secret",
  2375. "op",
  2376. "redirect_url"
  2377. ],
  2378. "properties": {
  2379. "auto_register": {
  2380. "type": "boolean"
  2381. },
  2382. "client_id": {
  2383. "type": "string"
  2384. },
  2385. "client_secret": {
  2386. "type": "string"
  2387. },
  2388. "id": {
  2389. "type": "integer"
  2390. },
  2391. "op": {
  2392. "type": "string"
  2393. },
  2394. "redirect_url": {
  2395. "type": "string"
  2396. }
  2397. }
  2398. },
  2399. "admin.PeerForm": {
  2400. "type": "object",
  2401. "properties": {
  2402. "cpu": {
  2403. "type": "string"
  2404. },
  2405. "hostname": {
  2406. "type": "string"
  2407. },
  2408. "id": {
  2409. "type": "string"
  2410. },
  2411. "memory": {
  2412. "type": "string"
  2413. },
  2414. "os": {
  2415. "type": "string"
  2416. },
  2417. "row_id": {
  2418. "type": "integer"
  2419. },
  2420. "username": {
  2421. "type": "string"
  2422. },
  2423. "uuid": {
  2424. "type": "string"
  2425. },
  2426. "version": {
  2427. "type": "string"
  2428. }
  2429. }
  2430. },
  2431. "admin.TagForm": {
  2432. "type": "object",
  2433. "required": [
  2434. "color",
  2435. "name"
  2436. ],
  2437. "properties": {
  2438. "color": {
  2439. "type": "integer"
  2440. },
  2441. "id": {
  2442. "type": "integer"
  2443. },
  2444. "name": {
  2445. "type": "string"
  2446. },
  2447. "user_id": {
  2448. "type": "integer"
  2449. }
  2450. }
  2451. },
  2452. "admin.UserForm": {
  2453. "type": "object",
  2454. "required": [
  2455. "group_id",
  2456. "nickname",
  2457. "status",
  2458. "username"
  2459. ],
  2460. "properties": {
  2461. "avatar": {
  2462. "type": "string"
  2463. },
  2464. "group_id": {
  2465. "type": "integer"
  2466. },
  2467. "id": {
  2468. "type": "integer"
  2469. },
  2470. "is_admin": {
  2471. "type": "boolean"
  2472. },
  2473. "nickname": {
  2474. "description": "Password string ` + "`" + `json:\"password\" validate:\"required,gte=4,lte=20\"` + "`" + `",
  2475. "type": "string"
  2476. },
  2477. "status": {
  2478. "minimum": 0,
  2479. "allOf": [
  2480. {
  2481. "$ref": "#/definitions/model.StatusCode"
  2482. }
  2483. ]
  2484. },
  2485. "username": {
  2486. "type": "string",
  2487. "maxLength": 10,
  2488. "minLength": 4
  2489. }
  2490. }
  2491. },
  2492. "admin.UserOauthItem": {
  2493. "type": "object",
  2494. "properties": {
  2495. "status": {
  2496. "type": "integer"
  2497. },
  2498. "third_type": {
  2499. "type": "string"
  2500. }
  2501. }
  2502. },
  2503. "admin.UserPasswordForm": {
  2504. "type": "object",
  2505. "required": [
  2506. "id",
  2507. "password"
  2508. ],
  2509. "properties": {
  2510. "id": {
  2511. "type": "integer"
  2512. },
  2513. "password": {
  2514. "type": "string",
  2515. "maxLength": 20,
  2516. "minLength": 4
  2517. }
  2518. }
  2519. },
  2520. "model.AddressBook": {
  2521. "type": "object",
  2522. "properties": {
  2523. "alias": {
  2524. "type": "string"
  2525. },
  2526. "created_at": {
  2527. "type": "string"
  2528. },
  2529. "forceAlwaysRelay": {
  2530. "type": "boolean"
  2531. },
  2532. "hash": {
  2533. "type": "string"
  2534. },
  2535. "hostname": {
  2536. "type": "string"
  2537. },
  2538. "id": {
  2539. "type": "string"
  2540. },
  2541. "loginName": {
  2542. "type": "string"
  2543. },
  2544. "online": {
  2545. "type": "boolean"
  2546. },
  2547. "password": {
  2548. "type": "string"
  2549. },
  2550. "platform": {
  2551. "type": "string"
  2552. },
  2553. "rdpPort": {
  2554. "type": "string"
  2555. },
  2556. "rdpUsername": {
  2557. "type": "string"
  2558. },
  2559. "row_id": {
  2560. "type": "integer"
  2561. },
  2562. "sameServer": {
  2563. "type": "boolean"
  2564. },
  2565. "tags": {
  2566. "type": "array",
  2567. "items": {
  2568. "type": "string"
  2569. }
  2570. },
  2571. "updated_at": {
  2572. "type": "string"
  2573. },
  2574. "user_id": {
  2575. "type": "integer"
  2576. },
  2577. "username": {
  2578. "type": "string"
  2579. }
  2580. }
  2581. },
  2582. "model.AddressBookList": {
  2583. "type": "object",
  2584. "properties": {
  2585. "list": {
  2586. "type": "array",
  2587. "items": {
  2588. "$ref": "#/definitions/model.AddressBook"
  2589. }
  2590. },
  2591. "page": {
  2592. "type": "integer"
  2593. },
  2594. "page_size": {
  2595. "type": "integer"
  2596. },
  2597. "total": {
  2598. "type": "integer"
  2599. }
  2600. }
  2601. },
  2602. "model.Group": {
  2603. "type": "object",
  2604. "properties": {
  2605. "created_at": {
  2606. "type": "string"
  2607. },
  2608. "id": {
  2609. "type": "integer"
  2610. },
  2611. "name": {
  2612. "type": "string"
  2613. },
  2614. "type": {
  2615. "type": "integer"
  2616. },
  2617. "updated_at": {
  2618. "type": "string"
  2619. }
  2620. }
  2621. },
  2622. "model.GroupList": {
  2623. "type": "object",
  2624. "properties": {
  2625. "list": {
  2626. "type": "array",
  2627. "items": {
  2628. "$ref": "#/definitions/model.Group"
  2629. }
  2630. },
  2631. "page": {
  2632. "type": "integer"
  2633. },
  2634. "page_size": {
  2635. "type": "integer"
  2636. },
  2637. "total": {
  2638. "type": "integer"
  2639. }
  2640. }
  2641. },
  2642. "model.LoginLog": {
  2643. "type": "object",
  2644. "properties": {
  2645. "client": {
  2646. "description": "webadmin,webclient,app,",
  2647. "type": "string"
  2648. },
  2649. "created_at": {
  2650. "type": "string"
  2651. },
  2652. "id": {
  2653. "type": "integer"
  2654. },
  2655. "ip": {
  2656. "type": "string"
  2657. },
  2658. "platform": {
  2659. "description": "windows,linux,mac,android,ios",
  2660. "type": "string"
  2661. },
  2662. "type": {
  2663. "description": "account,oauth",
  2664. "type": "string"
  2665. },
  2666. "updated_at": {
  2667. "type": "string"
  2668. },
  2669. "user_id": {
  2670. "type": "integer"
  2671. },
  2672. "uuid": {
  2673. "type": "string"
  2674. }
  2675. }
  2676. },
  2677. "model.LoginLogList": {
  2678. "type": "object",
  2679. "properties": {
  2680. "list": {
  2681. "type": "array",
  2682. "items": {
  2683. "$ref": "#/definitions/model.LoginLog"
  2684. }
  2685. },
  2686. "page": {
  2687. "type": "integer"
  2688. },
  2689. "page_size": {
  2690. "type": "integer"
  2691. },
  2692. "total": {
  2693. "type": "integer"
  2694. }
  2695. }
  2696. },
  2697. "model.Oauth": {
  2698. "type": "object",
  2699. "properties": {
  2700. "auto_register": {
  2701. "type": "boolean"
  2702. },
  2703. "client_id": {
  2704. "type": "string"
  2705. },
  2706. "client_secret": {
  2707. "type": "string"
  2708. },
  2709. "created_at": {
  2710. "type": "string"
  2711. },
  2712. "id": {
  2713. "type": "integer"
  2714. },
  2715. "op": {
  2716. "type": "string"
  2717. },
  2718. "redirect_url": {
  2719. "type": "string"
  2720. },
  2721. "updated_at": {
  2722. "type": "string"
  2723. }
  2724. }
  2725. },
  2726. "model.OauthList": {
  2727. "type": "object",
  2728. "properties": {
  2729. "list": {
  2730. "type": "array",
  2731. "items": {
  2732. "$ref": "#/definitions/model.Oauth"
  2733. }
  2734. },
  2735. "page": {
  2736. "type": "integer"
  2737. },
  2738. "page_size": {
  2739. "type": "integer"
  2740. },
  2741. "total": {
  2742. "type": "integer"
  2743. }
  2744. }
  2745. },
  2746. "model.Peer": {
  2747. "type": "object",
  2748. "properties": {
  2749. "cpu": {
  2750. "type": "string"
  2751. },
  2752. "created_at": {
  2753. "type": "string"
  2754. },
  2755. "hostname": {
  2756. "type": "string"
  2757. },
  2758. "id": {
  2759. "type": "string"
  2760. },
  2761. "memory": {
  2762. "type": "string"
  2763. },
  2764. "os": {
  2765. "type": "string"
  2766. },
  2767. "row_id": {
  2768. "type": "integer"
  2769. },
  2770. "updated_at": {
  2771. "type": "string"
  2772. },
  2773. "user": {
  2774. "$ref": "#/definitions/model.User"
  2775. },
  2776. "user_id": {
  2777. "type": "integer"
  2778. },
  2779. "username": {
  2780. "type": "string"
  2781. },
  2782. "uuid": {
  2783. "type": "string"
  2784. },
  2785. "version": {
  2786. "type": "string"
  2787. }
  2788. }
  2789. },
  2790. "model.PeerList": {
  2791. "type": "object",
  2792. "properties": {
  2793. "list": {
  2794. "type": "array",
  2795. "items": {
  2796. "$ref": "#/definitions/model.Peer"
  2797. }
  2798. },
  2799. "page": {
  2800. "type": "integer"
  2801. },
  2802. "page_size": {
  2803. "type": "integer"
  2804. },
  2805. "total": {
  2806. "type": "integer"
  2807. }
  2808. }
  2809. },
  2810. "model.StatusCode": {
  2811. "type": "integer",
  2812. "enum": [
  2813. 1,
  2814. 2
  2815. ],
  2816. "x-enum-comments": {
  2817. "COMMON_STATUS_DISABLED": "通用状态 禁用",
  2818. "COMMON_STATUS_ENABLE": "通用状态 启用"
  2819. },
  2820. "x-enum-varnames": [
  2821. "COMMON_STATUS_ENABLE",
  2822. "COMMON_STATUS_DISABLED"
  2823. ]
  2824. },
  2825. "model.Tag": {
  2826. "type": "object",
  2827. "properties": {
  2828. "color": {
  2829. "description": "color 是flutter的颜色值,从0x00000000 到 0xFFFFFFFF; 前两位表示透明度,后面6位表示颜色, 可以转成rgba",
  2830. "type": "integer"
  2831. },
  2832. "created_at": {
  2833. "type": "string"
  2834. },
  2835. "id": {
  2836. "type": "integer"
  2837. },
  2838. "name": {
  2839. "type": "string"
  2840. },
  2841. "updated_at": {
  2842. "type": "string"
  2843. },
  2844. "user_id": {
  2845. "type": "integer"
  2846. }
  2847. }
  2848. },
  2849. "model.TagList": {
  2850. "type": "object",
  2851. "properties": {
  2852. "list": {
  2853. "type": "array",
  2854. "items": {
  2855. "$ref": "#/definitions/model.Tag"
  2856. }
  2857. },
  2858. "page": {
  2859. "type": "integer"
  2860. },
  2861. "page_size": {
  2862. "type": "integer"
  2863. },
  2864. "total": {
  2865. "type": "integer"
  2866. }
  2867. }
  2868. },
  2869. "model.User": {
  2870. "type": "object",
  2871. "properties": {
  2872. "avatar": {
  2873. "type": "string"
  2874. },
  2875. "created_at": {
  2876. "type": "string"
  2877. },
  2878. "group_id": {
  2879. "type": "integer"
  2880. },
  2881. "id": {
  2882. "type": "integer"
  2883. },
  2884. "is_admin": {
  2885. "type": "boolean"
  2886. },
  2887. "nickname": {
  2888. "type": "string"
  2889. },
  2890. "status": {
  2891. "$ref": "#/definitions/model.StatusCode"
  2892. },
  2893. "updated_at": {
  2894. "type": "string"
  2895. },
  2896. "username": {
  2897. "type": "string"
  2898. }
  2899. }
  2900. },
  2901. "model.UserList": {
  2902. "type": "object",
  2903. "properties": {
  2904. "list": {
  2905. "type": "array",
  2906. "items": {
  2907. "$ref": "#/definitions/model.User"
  2908. }
  2909. },
  2910. "page": {
  2911. "type": "integer"
  2912. },
  2913. "page_size": {
  2914. "type": "integer"
  2915. },
  2916. "total": {
  2917. "type": "integer"
  2918. }
  2919. }
  2920. },
  2921. "response.Response": {
  2922. "type": "object",
  2923. "properties": {
  2924. "code": {
  2925. "type": "integer"
  2926. },
  2927. "data": {},
  2928. "message": {
  2929. "type": "string"
  2930. }
  2931. }
  2932. }
  2933. },
  2934. "securityDefinitions": {
  2935. "BearerAuth": {
  2936. "type": "apiKey",
  2937. "name": "Authorization",
  2938. "in": "header"
  2939. },
  2940. "token": {
  2941. "type": "apiKey",
  2942. "name": "api-token",
  2943. "in": "header"
  2944. }
  2945. }
  2946. }`
  2947. // SwaggerInfoadmin holds exported Swagger Info so clients can modify it
  2948. var SwaggerInfoadmin = &swag.Spec{
  2949. Version: "1.0",
  2950. Host: "",
  2951. BasePath: "/api",
  2952. Schemes: []string{},
  2953. Title: "管理系统API",
  2954. Description: "接口",
  2955. InfoInstanceName: "admin",
  2956. SwaggerTemplate: docTemplateadmin,
  2957. LeftDelim: "{{",
  2958. RightDelim: "}}",
  2959. }
  2960. func init() {
  2961. swag.Register(SwaggerInfoadmin.InstanceName(), SwaggerInfoadmin)
  2962. }