docs.go 119 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794
  1. // GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
  2. // This file was generated by swaggo/swag at
  3. // 2020-08-27 14:47:40.749512 +0800 CST m=+0.171410739
  4. package docs
  5. import (
  6. "bytes"
  7. "encoding/json"
  8. "strings"
  9. "github.com/alecthomas/template"
  10. "github.com/swaggo/swag"
  11. )
  12. var doc = `{
  13. "schemes": {{ marshal .Schemes }},
  14. "swagger": "2.0",
  15. "info": {
  16. "description": "{{.Description}}",
  17. "title": "{{.Title}}",
  18. "contact": {},
  19. "license": {
  20. "name": "MIT",
  21. "url": "https://github.com/wenjianzhang/device-manage/blob/master/LICENSE.md"
  22. },
  23. "version": "{{.Version}}"
  24. },
  25. "host": "{{.Host}}",
  26. "basePath": "{{.BasePath}}",
  27. "paths": {
  28. "/api/v1/config": {
  29. "put": {
  30. "security": [
  31. {
  32. "Bearer": []
  33. }
  34. ],
  35. "description": "获取JSON",
  36. "consumes": [
  37. "application/json"
  38. ],
  39. "tags": [
  40. "配置"
  41. ],
  42. "summary": "修改配置",
  43. "parameters": [
  44. {
  45. "description": "body",
  46. "name": "data",
  47. "in": "body",
  48. "required": true,
  49. "schema": {
  50. "type": "object",
  51. "$ref": "#/definitions/models.SysConfig"
  52. }
  53. }
  54. ],
  55. "responses": {
  56. "200": {
  57. "description": "{\"code\": -1, \"message\": \"添加失败\"}",
  58. "schema": {
  59. "type": "string"
  60. }
  61. }
  62. }
  63. }
  64. },
  65. "/api/v1/config/{configId}": {
  66. "get": {
  67. "security": [
  68. {
  69. "Bearer": []
  70. }
  71. ],
  72. "description": "获取JSON",
  73. "tags": [
  74. "配置"
  75. ],
  76. "summary": "获取配置",
  77. "parameters": [
  78. {
  79. "type": "integer",
  80. "description": "配置编码",
  81. "name": "configId",
  82. "in": "path",
  83. "required": true
  84. }
  85. ],
  86. "responses": {
  87. "200": {
  88. "description": "{\"code\": 200, \"data\": [...]}",
  89. "schema": {
  90. "$ref": "#/definitions/app.Response"
  91. }
  92. }
  93. }
  94. },
  95. "delete": {
  96. "description": "删除数据",
  97. "tags": [
  98. "配置"
  99. ],
  100. "summary": "删除配置",
  101. "parameters": [
  102. {
  103. "type": "integer",
  104. "description": "configId",
  105. "name": "configId",
  106. "in": "path",
  107. "required": true
  108. }
  109. ],
  110. "responses": {
  111. "200": {
  112. "description": "{\"code\": -1, \"message\": \"删除失败\"}",
  113. "schema": {
  114. "type": "string"
  115. }
  116. }
  117. }
  118. }
  119. },
  120. "/api/v1/configKey/{configKey}": {
  121. "get": {
  122. "security": [
  123. {
  124. "Bearer": []
  125. }
  126. ],
  127. "description": "获取JSON",
  128. "tags": [
  129. "配置"
  130. ],
  131. "summary": "获取配置",
  132. "parameters": [
  133. {
  134. "type": "integer",
  135. "description": "configKey",
  136. "name": "configKey",
  137. "in": "path",
  138. "required": true
  139. }
  140. ],
  141. "responses": {
  142. "200": {
  143. "description": "{\"code\": 200, \"data\": [...]}",
  144. "schema": {
  145. "$ref": "#/definitions/app.Response"
  146. }
  147. }
  148. }
  149. }
  150. },
  151. "/api/v1/configList": {
  152. "get": {
  153. "security": [
  154. {
  155. "Bearer": []
  156. }
  157. ],
  158. "description": "获取JSON",
  159. "tags": [
  160. "配置"
  161. ],
  162. "summary": "配置列表数据",
  163. "parameters": [
  164. {
  165. "type": "string",
  166. "description": "configKey",
  167. "name": "configKey",
  168. "in": "query"
  169. },
  170. {
  171. "type": "string",
  172. "description": "configName",
  173. "name": "configName",
  174. "in": "query"
  175. },
  176. {
  177. "type": "string",
  178. "description": "configType",
  179. "name": "configType",
  180. "in": "query"
  181. },
  182. {
  183. "type": "integer",
  184. "description": "页条数",
  185. "name": "pageSize",
  186. "in": "query"
  187. },
  188. {
  189. "type": "integer",
  190. "description": "页码",
  191. "name": "pageIndex",
  192. "in": "query"
  193. }
  194. ],
  195. "responses": {
  196. "200": {
  197. "description": "{\"code\": 200, \"data\": [...]}",
  198. "schema": {
  199. "$ref": "#/definitions/app.Response"
  200. }
  201. }
  202. }
  203. }
  204. },
  205. "/api/v1/db/columns/page": {
  206. "get": {
  207. "description": "数据库表列分页列表 / database table column page list",
  208. "tags": [
  209. "工具 / Tools"
  210. ],
  211. "summary": "分页列表数据 / page list data",
  212. "parameters": [
  213. {
  214. "type": "string",
  215. "description": "tableName / 数据表名称",
  216. "name": "tableName",
  217. "in": "query"
  218. },
  219. {
  220. "type": "integer",
  221. "description": "pageSize / 页条数",
  222. "name": "pageSize",
  223. "in": "query"
  224. },
  225. {
  226. "type": "integer",
  227. "description": "pageIndex / 页码",
  228. "name": "pageIndex",
  229. "in": "query"
  230. }
  231. ],
  232. "responses": {
  233. "200": {
  234. "description": "{\"code\": 200, \"data\": [...]}",
  235. "schema": {
  236. "$ref": "#/definitions/app.Response"
  237. }
  238. }
  239. }
  240. }
  241. },
  242. "/api/v1/db/tables/page": {
  243. "get": {
  244. "description": "数据库表分页列表 / database table page list",
  245. "tags": [
  246. "工具 / Tools"
  247. ],
  248. "summary": "分页列表数据 / page list data",
  249. "parameters": [
  250. {
  251. "type": "string",
  252. "description": "tableName / 数据表名称",
  253. "name": "tableName",
  254. "in": "query"
  255. },
  256. {
  257. "type": "integer",
  258. "description": "pageSize / 页条数",
  259. "name": "pageSize",
  260. "in": "query"
  261. },
  262. {
  263. "type": "integer",
  264. "description": "pageIndex / 页码",
  265. "name": "pageIndex",
  266. "in": "query"
  267. }
  268. ],
  269. "responses": {
  270. "200": {
  271. "description": "{\"code\": 200, \"data\": [...]}",
  272. "schema": {
  273. "$ref": "#/definitions/app.Response"
  274. }
  275. }
  276. }
  277. }
  278. },
  279. "/api/v1/dept": {
  280. "put": {
  281. "security": [
  282. {
  283. "Bearer": []
  284. }
  285. ],
  286. "description": "获取JSON",
  287. "consumes": [
  288. "application/json"
  289. ],
  290. "tags": [
  291. "部门"
  292. ],
  293. "summary": "修改部门",
  294. "parameters": [
  295. {
  296. "type": "integer",
  297. "description": "id",
  298. "name": "id",
  299. "in": "path",
  300. "required": true
  301. },
  302. {
  303. "description": "body",
  304. "name": "data",
  305. "in": "body",
  306. "required": true,
  307. "schema": {
  308. "type": "object",
  309. "$ref": "#/definitions/models.SysDept"
  310. }
  311. }
  312. ],
  313. "responses": {
  314. "200": {
  315. "description": "{\"code\": -1, \"message\": \"添加失败\"}",
  316. "schema": {
  317. "type": "string"
  318. }
  319. }
  320. }
  321. },
  322. "post": {
  323. "security": [
  324. {
  325. "Bearer": []
  326. }
  327. ],
  328. "description": "获取JSON",
  329. "consumes": [
  330. "application/json"
  331. ],
  332. "tags": [
  333. "部门"
  334. ],
  335. "summary": "添加部门",
  336. "parameters": [
  337. {
  338. "description": "data",
  339. "name": "data",
  340. "in": "body",
  341. "required": true,
  342. "schema": {
  343. "type": "object",
  344. "$ref": "#/definitions/models.SysDept"
  345. }
  346. }
  347. ],
  348. "responses": {
  349. "200": {
  350. "description": "{\"code\": -1, \"message\": \"添加失败\"}",
  351. "schema": {
  352. "type": "string"
  353. }
  354. }
  355. }
  356. }
  357. },
  358. "/api/v1/dept/{deptId}": {
  359. "get": {
  360. "security": [
  361. {
  362. "Bearer": []
  363. }
  364. ],
  365. "description": "获取JSON",
  366. "tags": [
  367. "部门"
  368. ],
  369. "summary": "部门列表数据",
  370. "parameters": [
  371. {
  372. "type": "string",
  373. "description": "deptId",
  374. "name": "deptId",
  375. "in": "path"
  376. },
  377. {
  378. "type": "string",
  379. "description": "position",
  380. "name": "position",
  381. "in": "query"
  382. }
  383. ],
  384. "responses": {
  385. "200": {
  386. "description": "{\"code\": 200, \"data\": [...]}",
  387. "schema": {
  388. "$ref": "#/definitions/app.Response"
  389. }
  390. }
  391. }
  392. }
  393. },
  394. "/api/v1/dept/{id}": {
  395. "delete": {
  396. "description": "删除数据",
  397. "tags": [
  398. "部门"
  399. ],
  400. "summary": "删除部门",
  401. "parameters": [
  402. {
  403. "type": "integer",
  404. "description": "id",
  405. "name": "id",
  406. "in": "path",
  407. "required": true
  408. }
  409. ],
  410. "responses": {
  411. "200": {
  412. "description": "{\"code\": -1, \"message\": \"删除失败\"}",
  413. "schema": {
  414. "type": "string"
  415. }
  416. }
  417. }
  418. }
  419. },
  420. "/api/v1/deptList": {
  421. "get": {
  422. "security": [
  423. {
  424. "Bearer": []
  425. }
  426. ],
  427. "description": "分页列表",
  428. "tags": [
  429. "部门"
  430. ],
  431. "summary": "分页部门列表数据",
  432. "parameters": [
  433. {
  434. "type": "string",
  435. "description": "name",
  436. "name": "name",
  437. "in": "query"
  438. },
  439. {
  440. "type": "string",
  441. "description": "id",
  442. "name": "id",
  443. "in": "query"
  444. },
  445. {
  446. "type": "string",
  447. "description": "position",
  448. "name": "position",
  449. "in": "query"
  450. }
  451. ],
  452. "responses": {
  453. "200": {
  454. "description": "{\"code\": 200, \"data\": [...]}",
  455. "schema": {
  456. "$ref": "#/definitions/app.Response"
  457. }
  458. }
  459. }
  460. }
  461. },
  462. "/api/v1/dict/data": {
  463. "put": {
  464. "security": [
  465. {
  466. "Bearer": []
  467. }
  468. ],
  469. "description": "获取JSON",
  470. "consumes": [
  471. "application/json"
  472. ],
  473. "tags": [
  474. "字典数据"
  475. ],
  476. "summary": "修改字典数据",
  477. "parameters": [
  478. {
  479. "description": "body",
  480. "name": "data",
  481. "in": "body",
  482. "required": true,
  483. "schema": {
  484. "type": "object",
  485. "$ref": "#/definitions/models.DictType"
  486. }
  487. }
  488. ],
  489. "responses": {
  490. "200": {
  491. "description": "{\"code\": -1, \"message\": \"添加失败\"}",
  492. "schema": {
  493. "type": "string"
  494. }
  495. }
  496. }
  497. },
  498. "post": {
  499. "security": [
  500. {
  501. "Bearer": []
  502. }
  503. ],
  504. "description": "获取JSON",
  505. "consumes": [
  506. "application/json"
  507. ],
  508. "tags": [
  509. "字典数据"
  510. ],
  511. "summary": "添加字典数据",
  512. "parameters": [
  513. {
  514. "description": "data",
  515. "name": "data",
  516. "in": "body",
  517. "required": true,
  518. "schema": {
  519. "type": "object",
  520. "$ref": "#/definitions/models.DictType"
  521. }
  522. }
  523. ],
  524. "responses": {
  525. "200": {
  526. "description": "{\"code\": -1, \"message\": \"添加失败\"}",
  527. "schema": {
  528. "type": "string"
  529. }
  530. }
  531. }
  532. }
  533. },
  534. "/api/v1/dict/data/list": {
  535. "get": {
  536. "security": [
  537. {
  538. "Bearer": []
  539. }
  540. ],
  541. "description": "获取JSON",
  542. "tags": [
  543. "字典数据"
  544. ],
  545. "summary": "字典数据列表",
  546. "parameters": [
  547. {
  548. "type": "string",
  549. "description": "status",
  550. "name": "status",
  551. "in": "query"
  552. },
  553. {
  554. "type": "string",
  555. "description": "dictCode",
  556. "name": "dictCode",
  557. "in": "query"
  558. },
  559. {
  560. "type": "string",
  561. "description": "dictType",
  562. "name": "dictType",
  563. "in": "query"
  564. },
  565. {
  566. "type": "integer",
  567. "description": "页条数",
  568. "name": "pageSize",
  569. "in": "query"
  570. },
  571. {
  572. "type": "integer",
  573. "description": "页码",
  574. "name": "pageIndex",
  575. "in": "query"
  576. }
  577. ],
  578. "responses": {
  579. "200": {
  580. "description": "{\"code\": 200, \"data\": [...]}",
  581. "schema": {
  582. "$ref": "#/definitions/app.Response"
  583. }
  584. }
  585. }
  586. }
  587. },
  588. "/api/v1/dict/data/{dictCode}": {
  589. "get": {
  590. "security": [
  591. {
  592. "Bearer": []
  593. }
  594. ],
  595. "description": "获取JSON",
  596. "tags": [
  597. "字典数据"
  598. ],
  599. "summary": "通过编码获取字典数据",
  600. "parameters": [
  601. {
  602. "type": "integer",
  603. "description": "字典编码",
  604. "name": "dictCode",
  605. "in": "path",
  606. "required": true
  607. }
  608. ],
  609. "responses": {
  610. "200": {
  611. "description": "{\"code\": 200, \"data\": [...]}",
  612. "schema": {
  613. "$ref": "#/definitions/app.Response"
  614. }
  615. }
  616. }
  617. },
  618. "delete": {
  619. "description": "删除数据",
  620. "tags": [
  621. "字典数据"
  622. ],
  623. "summary": "删除字典数据",
  624. "parameters": [
  625. {
  626. "type": "integer",
  627. "description": "dictCode",
  628. "name": "dictCode",
  629. "in": "path",
  630. "required": true
  631. }
  632. ],
  633. "responses": {
  634. "200": {
  635. "description": "{\"code\": -1, \"message\": \"删除失败\"}",
  636. "schema": {
  637. "type": "string"
  638. }
  639. }
  640. }
  641. }
  642. },
  643. "/api/v1/dict/databyType/{dictType}": {
  644. "get": {
  645. "security": [
  646. {
  647. "Bearer": []
  648. }
  649. ],
  650. "description": "获取JSON",
  651. "tags": [
  652. "字典数据"
  653. ],
  654. "summary": "通过字典类型获取字典数据",
  655. "parameters": [
  656. {
  657. "type": "integer",
  658. "description": "dictType",
  659. "name": "dictType",
  660. "in": "path",
  661. "required": true
  662. }
  663. ],
  664. "responses": {
  665. "200": {
  666. "description": "{\"code\": 200, \"data\": [...]}",
  667. "schema": {
  668. "$ref": "#/definitions/app.Response"
  669. }
  670. }
  671. }
  672. }
  673. },
  674. "/api/v1/dict/type": {
  675. "put": {
  676. "security": [
  677. {
  678. "Bearer": []
  679. }
  680. ],
  681. "description": "获取JSON",
  682. "consumes": [
  683. "application/json"
  684. ],
  685. "tags": [
  686. "字典类型"
  687. ],
  688. "summary": "修改字典类型",
  689. "parameters": [
  690. {
  691. "description": "body",
  692. "name": "data",
  693. "in": "body",
  694. "required": true,
  695. "schema": {
  696. "type": "object",
  697. "$ref": "#/definitions/models.DictType"
  698. }
  699. }
  700. ],
  701. "responses": {
  702. "200": {
  703. "description": "{\"code\": -1, \"message\": \"添加失败\"}",
  704. "schema": {
  705. "type": "string"
  706. }
  707. }
  708. }
  709. },
  710. "post": {
  711. "security": [
  712. {
  713. "Bearer": []
  714. }
  715. ],
  716. "description": "获取JSON",
  717. "consumes": [
  718. "application/json"
  719. ],
  720. "tags": [
  721. "字典类型"
  722. ],
  723. "summary": "添加字典类型",
  724. "parameters": [
  725. {
  726. "description": "data",
  727. "name": "data",
  728. "in": "body",
  729. "required": true,
  730. "schema": {
  731. "type": "object",
  732. "$ref": "#/definitions/models.DictType"
  733. }
  734. }
  735. ],
  736. "responses": {
  737. "200": {
  738. "description": "{\"code\": -1, \"message\": \"添加失败\"}",
  739. "schema": {
  740. "type": "string"
  741. }
  742. }
  743. }
  744. }
  745. },
  746. "/api/v1/dict/type/list": {
  747. "get": {
  748. "security": [
  749. {
  750. "Bearer": []
  751. }
  752. ],
  753. "description": "获取JSON",
  754. "tags": [
  755. "字典类型"
  756. ],
  757. "summary": "字典类型列表数据",
  758. "parameters": [
  759. {
  760. "type": "string",
  761. "description": "dictName",
  762. "name": "dictName",
  763. "in": "query"
  764. },
  765. {
  766. "type": "string",
  767. "description": "dictId",
  768. "name": "dictId",
  769. "in": "query"
  770. },
  771. {
  772. "type": "string",
  773. "description": "dictType",
  774. "name": "dictType",
  775. "in": "query"
  776. },
  777. {
  778. "type": "integer",
  779. "description": "页条数",
  780. "name": "pageSize",
  781. "in": "query"
  782. },
  783. {
  784. "type": "integer",
  785. "description": "页码",
  786. "name": "pageIndex",
  787. "in": "query"
  788. }
  789. ],
  790. "responses": {
  791. "200": {
  792. "description": "{\"code\": 200, \"data\": [...]}",
  793. "schema": {
  794. "$ref": "#/definitions/app.PageResponse"
  795. }
  796. }
  797. }
  798. }
  799. },
  800. "/api/v1/dict/type/{dictId}": {
  801. "get": {
  802. "security": [
  803. {
  804. "Bearer": []
  805. }
  806. ],
  807. "description": "获取JSON",
  808. "tags": [
  809. "字典类型"
  810. ],
  811. "summary": "通过字典id获取字典类型",
  812. "parameters": [
  813. {
  814. "type": "integer",
  815. "description": "字典类型编码",
  816. "name": "dictId",
  817. "in": "path",
  818. "required": true
  819. }
  820. ],
  821. "responses": {
  822. "200": {
  823. "description": "{\"code\": 200, \"data\": [...]}",
  824. "schema": {
  825. "$ref": "#/definitions/app.Response"
  826. }
  827. }
  828. }
  829. },
  830. "delete": {
  831. "description": "删除数据",
  832. "tags": [
  833. "字典类型"
  834. ],
  835. "summary": "删除字典类型",
  836. "parameters": [
  837. {
  838. "type": "integer",
  839. "description": "dictId",
  840. "name": "dictId",
  841. "in": "path",
  842. "required": true
  843. }
  844. ],
  845. "responses": {
  846. "200": {
  847. "description": "{\"code\": -1, \"message\": \"删除失败\"}",
  848. "schema": {
  849. "type": "string"
  850. }
  851. }
  852. }
  853. }
  854. },
  855. "/api/v1/loginlog": {
  856. "put": {
  857. "security": [
  858. {
  859. "Bearer": []
  860. }
  861. ],
  862. "description": "获取JSON",
  863. "consumes": [
  864. "application/json"
  865. ],
  866. "tags": [
  867. "登录日志"
  868. ],
  869. "summary": "修改登录日志",
  870. "parameters": [
  871. {
  872. "description": "body",
  873. "name": "data",
  874. "in": "body",
  875. "required": true,
  876. "schema": {
  877. "type": "object",
  878. "$ref": "#/definitions/models.LoginLog"
  879. }
  880. }
  881. ],
  882. "responses": {
  883. "200": {
  884. "description": "{\"code\": -1, \"message\": \"添加失败\"}",
  885. "schema": {
  886. "type": "string"
  887. }
  888. }
  889. }
  890. },
  891. "post": {
  892. "security": [
  893. {
  894. "Bearer": []
  895. }
  896. ],
  897. "description": "获取JSON",
  898. "consumes": [
  899. "application/json"
  900. ],
  901. "tags": [
  902. "登录日志"
  903. ],
  904. "summary": "添加登录日志",
  905. "parameters": [
  906. {
  907. "description": "data",
  908. "name": "data",
  909. "in": "body",
  910. "required": true,
  911. "schema": {
  912. "type": "object",
  913. "$ref": "#/definitions/models.LoginLog"
  914. }
  915. }
  916. ],
  917. "responses": {
  918. "200": {
  919. "description": "{\"code\": -1, \"message\": \"添加失败\"}",
  920. "schema": {
  921. "type": "string"
  922. }
  923. }
  924. }
  925. }
  926. },
  927. "/api/v1/loginlog/{infoId}": {
  928. "get": {
  929. "security": [
  930. {
  931. "Bearer": []
  932. }
  933. ],
  934. "description": "获取JSON",
  935. "tags": [
  936. "登录日志"
  937. ],
  938. "summary": "通过编码获取登录日志",
  939. "parameters": [
  940. {
  941. "type": "integer",
  942. "description": "infoId",
  943. "name": "infoId",
  944. "in": "path",
  945. "required": true
  946. }
  947. ],
  948. "responses": {
  949. "200": {
  950. "description": "{\"code\": 200, \"data\": [...]}",
  951. "schema": {
  952. "$ref": "#/definitions/app.Response"
  953. }
  954. }
  955. }
  956. },
  957. "delete": {
  958. "description": "删除数据",
  959. "tags": [
  960. "登录日志"
  961. ],
  962. "summary": "批量删除登录日志",
  963. "parameters": [
  964. {
  965. "type": "string",
  966. "description": "以逗号(,)分割的infoId",
  967. "name": "infoId",
  968. "in": "path",
  969. "required": true
  970. }
  971. ],
  972. "responses": {
  973. "200": {
  974. "description": "{\"code\": -1, \"message\": \"删除失败\"}",
  975. "schema": {
  976. "type": "string"
  977. }
  978. }
  979. }
  980. }
  981. },
  982. "/api/v1/loginloglist": {
  983. "get": {
  984. "security": [
  985. {
  986. "Bearer": []
  987. }
  988. ],
  989. "description": "获取JSON",
  990. "tags": [
  991. "登录日志"
  992. ],
  993. "summary": "登录日志列表",
  994. "parameters": [
  995. {
  996. "type": "string",
  997. "description": "status",
  998. "name": "status",
  999. "in": "query"
  1000. },
  1001. {
  1002. "type": "string",
  1003. "description": "dictCode",
  1004. "name": "dictCode",
  1005. "in": "query"
  1006. },
  1007. {
  1008. "type": "string",
  1009. "description": "dictType",
  1010. "name": "dictType",
  1011. "in": "query"
  1012. },
  1013. {
  1014. "type": "integer",
  1015. "description": "页条数",
  1016. "name": "pageSize",
  1017. "in": "query"
  1018. },
  1019. {
  1020. "type": "integer",
  1021. "description": "页码",
  1022. "name": "pageIndex",
  1023. "in": "query"
  1024. }
  1025. ],
  1026. "responses": {
  1027. "200": {
  1028. "description": "{\"code\": 200, \"data\": [...]}",
  1029. "schema": {
  1030. "$ref": "#/definitions/app.Response"
  1031. }
  1032. }
  1033. }
  1034. }
  1035. },
  1036. "/api/v1/menu": {
  1037. "get": {
  1038. "security": [
  1039. {
  1040. "Bearer": []
  1041. }
  1042. ],
  1043. "description": "获取JSON",
  1044. "tags": [
  1045. "菜单"
  1046. ],
  1047. "summary": "Menu列表数据",
  1048. "parameters": [
  1049. {
  1050. "type": "string",
  1051. "description": "menuName",
  1052. "name": "menuName",
  1053. "in": "query"
  1054. }
  1055. ],
  1056. "responses": {
  1057. "200": {
  1058. "description": "{\"code\": -1, \"message\": \"抱歉未找到相关信息\"}",
  1059. "schema": {
  1060. "type": "string"
  1061. }
  1062. }
  1063. }
  1064. },
  1065. "post": {
  1066. "security": [
  1067. {
  1068. "Bearer": []
  1069. }
  1070. ],
  1071. "description": "获取JSON",
  1072. "consumes": [
  1073. "application/x-www-form-urlencoded"
  1074. ],
  1075. "tags": [
  1076. "菜单"
  1077. ],
  1078. "summary": "创建菜单",
  1079. "parameters": [
  1080. {
  1081. "type": "string",
  1082. "description": "menuName",
  1083. "name": "menuName",
  1084. "in": "formData",
  1085. "required": true
  1086. },
  1087. {
  1088. "type": "string",
  1089. "description": "Path",
  1090. "name": "Path",
  1091. "in": "formData"
  1092. },
  1093. {
  1094. "type": "string",
  1095. "description": "Action",
  1096. "name": "Action",
  1097. "in": "formData",
  1098. "required": true
  1099. },
  1100. {
  1101. "type": "string",
  1102. "description": "Permission",
  1103. "name": "Permission",
  1104. "in": "formData",
  1105. "required": true
  1106. },
  1107. {
  1108. "type": "string",
  1109. "description": "ParentId",
  1110. "name": "ParentId",
  1111. "in": "formData",
  1112. "required": true
  1113. },
  1114. {
  1115. "type": "string",
  1116. "description": "IsDel",
  1117. "name": "IsDel",
  1118. "in": "formData",
  1119. "required": true
  1120. }
  1121. ],
  1122. "responses": {
  1123. "200": {
  1124. "description": "{\"code\": -1, \"message\": \"添加失败\"}",
  1125. "schema": {
  1126. "type": "string"
  1127. }
  1128. }
  1129. }
  1130. }
  1131. },
  1132. "/api/v1/menu/{id}": {
  1133. "put": {
  1134. "security": [
  1135. {
  1136. "Bearer": []
  1137. }
  1138. ],
  1139. "description": "获取JSON",
  1140. "consumes": [
  1141. "application/x-www-form-urlencoded"
  1142. ],
  1143. "tags": [
  1144. "菜单"
  1145. ],
  1146. "summary": "修改菜单",
  1147. "parameters": [
  1148. {
  1149. "type": "integer",
  1150. "description": "id",
  1151. "name": "id",
  1152. "in": "path",
  1153. "required": true
  1154. },
  1155. {
  1156. "description": "body",
  1157. "name": "data",
  1158. "in": "body",
  1159. "required": true,
  1160. "schema": {
  1161. "type": "object",
  1162. "$ref": "#/definitions/models.Menu"
  1163. }
  1164. }
  1165. ],
  1166. "responses": {
  1167. "200": {
  1168. "description": "{\"code\": -1, \"message\": \"修改失败\"}",
  1169. "schema": {
  1170. "type": "string"
  1171. }
  1172. }
  1173. }
  1174. },
  1175. "delete": {
  1176. "description": "删除数据",
  1177. "tags": [
  1178. "菜单"
  1179. ],
  1180. "summary": "删除菜单",
  1181. "parameters": [
  1182. {
  1183. "type": "integer",
  1184. "description": "id",
  1185. "name": "id",
  1186. "in": "path",
  1187. "required": true
  1188. }
  1189. ],
  1190. "responses": {
  1191. "200": {
  1192. "description": "{\"code\": -1, \"message\": \"删除失败\"}",
  1193. "schema": {
  1194. "type": "string"
  1195. }
  1196. }
  1197. }
  1198. }
  1199. },
  1200. "/api/v1/menuTreeselect": {
  1201. "get": {
  1202. "security": [
  1203. {
  1204. "Bearer": []
  1205. }
  1206. ],
  1207. "description": "获取JSON",
  1208. "consumes": [
  1209. "application/x-www-form-urlencoded"
  1210. ],
  1211. "tags": [
  1212. "菜单"
  1213. ],
  1214. "summary": "获取菜单树",
  1215. "responses": {
  1216. "200": {
  1217. "description": "{\"code\": -1, \"message\": \"添加失败\"}",
  1218. "schema": {
  1219. "type": "string"
  1220. }
  1221. }
  1222. }
  1223. }
  1224. },
  1225. "/api/v1/menuids/{id}": {
  1226. "get": {
  1227. "security": [
  1228. {
  1229. "Bearer": []
  1230. }
  1231. ],
  1232. "description": "获取JSON",
  1233. "tags": [
  1234. "菜单"
  1235. ],
  1236. "summary": "获取角色对应的菜单id数组",
  1237. "parameters": [
  1238. {
  1239. "type": "integer",
  1240. "description": "id",
  1241. "name": "id",
  1242. "in": "path",
  1243. "required": true
  1244. }
  1245. ],
  1246. "responses": {
  1247. "200": {
  1248. "description": "{\"code\": -1, \"message\": \"抱歉未找到相关信息\"}",
  1249. "schema": {
  1250. "type": "string"
  1251. }
  1252. }
  1253. }
  1254. }
  1255. },
  1256. "/api/v1/menulist": {
  1257. "get": {
  1258. "security": [
  1259. {
  1260. "Bearer": []
  1261. }
  1262. ],
  1263. "description": "获取JSON",
  1264. "tags": [
  1265. "菜单"
  1266. ],
  1267. "summary": "Menu列表数据",
  1268. "parameters": [
  1269. {
  1270. "type": "string",
  1271. "description": "menuName",
  1272. "name": "menuName",
  1273. "in": "query"
  1274. }
  1275. ],
  1276. "responses": {
  1277. "200": {
  1278. "description": "{\"code\": -1, \"message\": \"抱歉未找到相关信息\"}",
  1279. "schema": {
  1280. "type": "string"
  1281. }
  1282. }
  1283. }
  1284. }
  1285. },
  1286. "/api/v1/menurole": {
  1287. "get": {
  1288. "security": [
  1289. {
  1290. "Bearer": []
  1291. }
  1292. ],
  1293. "description": "获取JSON",
  1294. "tags": [
  1295. "菜单"
  1296. ],
  1297. "summary": "根据角色名称获取菜单列表数据(左菜单使用)",
  1298. "parameters": [
  1299. {
  1300. "type": "integer",
  1301. "description": "id",
  1302. "name": "id",
  1303. "in": "path",
  1304. "required": true
  1305. }
  1306. ],
  1307. "responses": {
  1308. "200": {
  1309. "description": "{\"code\": -1, \"message\": \"抱歉未找到相关信息\"}",
  1310. "schema": {
  1311. "type": "string"
  1312. }
  1313. }
  1314. }
  1315. }
  1316. },
  1317. "/api/v1/operlog": {
  1318. "post": {
  1319. "security": [
  1320. {
  1321. "Bearer": []
  1322. }
  1323. ],
  1324. "description": "获取JSON",
  1325. "consumes": [
  1326. "application/json"
  1327. ],
  1328. "tags": [
  1329. "操作日志"
  1330. ],
  1331. "summary": "添加操作日志",
  1332. "parameters": [
  1333. {
  1334. "description": "data",
  1335. "name": "data",
  1336. "in": "body",
  1337. "required": true,
  1338. "schema": {
  1339. "type": "object",
  1340. "$ref": "#/definitions/models.SysOperLog"
  1341. }
  1342. }
  1343. ],
  1344. "responses": {
  1345. "200": {
  1346. "description": "{\"code\": -1, \"message\": \"添加失败\"}",
  1347. "schema": {
  1348. "type": "string"
  1349. }
  1350. }
  1351. }
  1352. }
  1353. },
  1354. "/api/v1/operlog/{infoId}": {
  1355. "get": {
  1356. "security": [
  1357. {
  1358. "Bearer": []
  1359. }
  1360. ],
  1361. "description": "获取JSON",
  1362. "tags": [
  1363. "登录日志"
  1364. ],
  1365. "summary": "通过编码获取登录日志",
  1366. "parameters": [
  1367. {
  1368. "type": "integer",
  1369. "description": "infoId",
  1370. "name": "infoId",
  1371. "in": "path",
  1372. "required": true
  1373. }
  1374. ],
  1375. "responses": {
  1376. "200": {
  1377. "description": "{\"code\": 200, \"data\": [...]}",
  1378. "schema": {
  1379. "$ref": "#/definitions/app.Response"
  1380. }
  1381. }
  1382. }
  1383. }
  1384. },
  1385. "/api/v1/operlog/{operId}": {
  1386. "delete": {
  1387. "description": "删除数据",
  1388. "tags": [
  1389. "操作日志"
  1390. ],
  1391. "summary": "批量删除操作日志",
  1392. "parameters": [
  1393. {
  1394. "type": "string",
  1395. "description": "以逗号(,)分割的operId",
  1396. "name": "operId",
  1397. "in": "path",
  1398. "required": true
  1399. }
  1400. ],
  1401. "responses": {
  1402. "200": {
  1403. "description": "{\"code\": -1, \"message\": \"删除失败\"}",
  1404. "schema": {
  1405. "type": "string"
  1406. }
  1407. }
  1408. }
  1409. }
  1410. },
  1411. "/api/v1/operloglist": {
  1412. "get": {
  1413. "security": [
  1414. {
  1415. "Bearer": []
  1416. }
  1417. ],
  1418. "description": "获取JSON",
  1419. "tags": [
  1420. "登录日志"
  1421. ],
  1422. "summary": "登录日志列表",
  1423. "parameters": [
  1424. {
  1425. "type": "string",
  1426. "description": "status",
  1427. "name": "status",
  1428. "in": "query"
  1429. },
  1430. {
  1431. "type": "string",
  1432. "description": "dictCode",
  1433. "name": "dictCode",
  1434. "in": "query"
  1435. },
  1436. {
  1437. "type": "string",
  1438. "description": "dictType",
  1439. "name": "dictType",
  1440. "in": "query"
  1441. },
  1442. {
  1443. "type": "integer",
  1444. "description": "页条数",
  1445. "name": "pageSize",
  1446. "in": "query"
  1447. },
  1448. {
  1449. "type": "integer",
  1450. "description": "页码",
  1451. "name": "pageIndex",
  1452. "in": "query"
  1453. }
  1454. ],
  1455. "responses": {
  1456. "200": {
  1457. "description": "{\"code\": 200, \"data\": [...]}",
  1458. "schema": {
  1459. "$ref": "#/definitions/app.Response"
  1460. }
  1461. }
  1462. }
  1463. }
  1464. },
  1465. "/api/v1/post": {
  1466. "get": {
  1467. "security": [
  1468. {
  1469. "Bearer": []
  1470. }
  1471. ],
  1472. "description": "获取JSON",
  1473. "tags": [
  1474. "岗位"
  1475. ],
  1476. "summary": "岗位列表数据",
  1477. "parameters": [
  1478. {
  1479. "type": "string",
  1480. "description": "postName",
  1481. "name": "postName",
  1482. "in": "query"
  1483. },
  1484. {
  1485. "type": "string",
  1486. "description": "postCode",
  1487. "name": "postCode",
  1488. "in": "query"
  1489. },
  1490. {
  1491. "type": "string",
  1492. "description": "postId",
  1493. "name": "postId",
  1494. "in": "query"
  1495. },
  1496. {
  1497. "type": "string",
  1498. "description": "status",
  1499. "name": "status",
  1500. "in": "query"
  1501. }
  1502. ],
  1503. "responses": {
  1504. "200": {
  1505. "description": "{\"code\": 200, \"data\": [...]}",
  1506. "schema": {
  1507. "$ref": "#/definitions/app.Response"
  1508. }
  1509. }
  1510. }
  1511. },
  1512. "post": {
  1513. "security": [
  1514. {
  1515. "Bearer": []
  1516. }
  1517. ],
  1518. "description": "获取JSON",
  1519. "consumes": [
  1520. "application/json"
  1521. ],
  1522. "tags": [
  1523. "岗位"
  1524. ],
  1525. "summary": "添加岗位",
  1526. "parameters": [
  1527. {
  1528. "description": "data",
  1529. "name": "data",
  1530. "in": "body",
  1531. "required": true,
  1532. "schema": {
  1533. "type": "object",
  1534. "$ref": "#/definitions/models.Post"
  1535. }
  1536. }
  1537. ],
  1538. "responses": {
  1539. "200": {
  1540. "description": "{\"code\": -1, \"message\": \"添加失败\"}",
  1541. "schema": {
  1542. "type": "string"
  1543. }
  1544. }
  1545. }
  1546. }
  1547. },
  1548. "/api/v1/post/": {
  1549. "put": {
  1550. "security": [
  1551. {
  1552. "Bearer": []
  1553. }
  1554. ],
  1555. "description": "获取JSON",
  1556. "consumes": [
  1557. "application/json"
  1558. ],
  1559. "tags": [
  1560. "岗位"
  1561. ],
  1562. "summary": "修改岗位",
  1563. "parameters": [
  1564. {
  1565. "description": "body",
  1566. "name": "data",
  1567. "in": "body",
  1568. "required": true,
  1569. "schema": {
  1570. "type": "object",
  1571. "$ref": "#/definitions/models.Post"
  1572. }
  1573. }
  1574. ],
  1575. "responses": {
  1576. "200": {
  1577. "description": "{\"code\": -1, \"message\": \"添加失败\"}",
  1578. "schema": {
  1579. "type": "string"
  1580. }
  1581. }
  1582. }
  1583. }
  1584. },
  1585. "/api/v1/post/{postId}": {
  1586. "get": {
  1587. "security": [
  1588. {
  1589. "Bearer": []
  1590. }
  1591. ],
  1592. "description": "获取JSON",
  1593. "tags": [
  1594. "岗位"
  1595. ],
  1596. "summary": "获取岗位信息",
  1597. "parameters": [
  1598. {
  1599. "type": "integer",
  1600. "description": "postId",
  1601. "name": "postId",
  1602. "in": "path",
  1603. "required": true
  1604. }
  1605. ],
  1606. "responses": {
  1607. "200": {
  1608. "description": "{\"code\": 200, \"data\": [...]}",
  1609. "schema": {
  1610. "$ref": "#/definitions/app.Response"
  1611. }
  1612. }
  1613. }
  1614. },
  1615. "delete": {
  1616. "description": "删除数据",
  1617. "tags": [
  1618. "岗位"
  1619. ],
  1620. "summary": "删除岗位",
  1621. "parameters": [
  1622. {
  1623. "type": "integer",
  1624. "description": "id",
  1625. "name": "id",
  1626. "in": "path",
  1627. "required": true
  1628. }
  1629. ],
  1630. "responses": {
  1631. "200": {
  1632. "description": "{\"code\": 200, \"message\": \"删除成功\"}",
  1633. "schema": {
  1634. "type": "string"
  1635. }
  1636. },
  1637. "500": {
  1638. "description": "{\"code\": 500, \"message\": \"删除失败\"}",
  1639. "schema": {
  1640. "type": "string"
  1641. }
  1642. }
  1643. }
  1644. }
  1645. },
  1646. "/api/v1/public/uploadFile": {
  1647. "post": {
  1648. "description": "获取JSON",
  1649. "consumes": [
  1650. "multipart/form-data"
  1651. ],
  1652. "tags": [
  1653. "公共接口"
  1654. ],
  1655. "summary": "上传图片",
  1656. "parameters": [
  1657. {
  1658. "type": "string",
  1659. "description": "type",
  1660. "name": "type",
  1661. "in": "query",
  1662. "required": true
  1663. },
  1664. {
  1665. "type": "file",
  1666. "description": "file",
  1667. "name": "file",
  1668. "in": "formData",
  1669. "required": true
  1670. }
  1671. ],
  1672. "responses": {
  1673. "200": {
  1674. "description": "{\"code\": -1, \"message\": \"添加失败\"}",
  1675. "schema": {
  1676. "type": "string"
  1677. }
  1678. }
  1679. }
  1680. }
  1681. },
  1682. "/api/v1/role": {
  1683. "get": {
  1684. "security": [
  1685. {
  1686. "Bearer": []
  1687. }
  1688. ],
  1689. "description": "获取JSON",
  1690. "tags": [
  1691. "角色/Role"
  1692. ],
  1693. "summary": "获取Role数据",
  1694. "parameters": [
  1695. {
  1696. "type": "string",
  1697. "description": "roleId",
  1698. "name": "roleId",
  1699. "in": "path"
  1700. }
  1701. ],
  1702. "responses": {
  1703. "200": {
  1704. "description": "{\"code\": -1, \"message\": \"抱歉未找到相关信息\"}",
  1705. "schema": {
  1706. "type": "string"
  1707. }
  1708. }
  1709. }
  1710. },
  1711. "put": {
  1712. "description": "获取JSON",
  1713. "consumes": [
  1714. "application/json"
  1715. ],
  1716. "tags": [
  1717. "角色/Role"
  1718. ],
  1719. "summary": "修改用户角色",
  1720. "parameters": [
  1721. {
  1722. "description": "body",
  1723. "name": "data",
  1724. "in": "body",
  1725. "required": true,
  1726. "schema": {
  1727. "type": "object",
  1728. "$ref": "#/definitions/models.SysRole"
  1729. }
  1730. }
  1731. ],
  1732. "responses": {
  1733. "200": {
  1734. "description": "{\"code\": -1, \"message\": \"修改失败\"}",
  1735. "schema": {
  1736. "type": "string"
  1737. }
  1738. }
  1739. }
  1740. },
  1741. "post": {
  1742. "description": "获取JSON",
  1743. "consumes": [
  1744. "application/json"
  1745. ],
  1746. "tags": [
  1747. "角色/Role"
  1748. ],
  1749. "summary": "创建角色",
  1750. "parameters": [
  1751. {
  1752. "description": "data",
  1753. "name": "data",
  1754. "in": "body",
  1755. "required": true,
  1756. "schema": {
  1757. "type": "object",
  1758. "$ref": "#/definitions/models.SysRole"
  1759. }
  1760. }
  1761. ],
  1762. "responses": {
  1763. "200": {
  1764. "description": "{\"code\": -1, \"message\": \"添加失败\"}",
  1765. "schema": {
  1766. "type": "string"
  1767. }
  1768. }
  1769. }
  1770. }
  1771. },
  1772. "/api/v1/role/{roleId}": {
  1773. "delete": {
  1774. "description": "删除数据",
  1775. "tags": [
  1776. "角色/Role"
  1777. ],
  1778. "summary": "删除用户角色",
  1779. "parameters": [
  1780. {
  1781. "type": "integer",
  1782. "description": "roleId",
  1783. "name": "roleId",
  1784. "in": "path",
  1785. "required": true
  1786. }
  1787. ],
  1788. "responses": {
  1789. "200": {
  1790. "description": "{\"code\": -1, \"message\": \"删除失败\"}",
  1791. "schema": {
  1792. "type": "string"
  1793. }
  1794. }
  1795. }
  1796. }
  1797. },
  1798. "/api/v1/rolelist": {
  1799. "get": {
  1800. "security": [
  1801. {
  1802. "Bearer": []
  1803. }
  1804. ],
  1805. "description": "Get JSON",
  1806. "tags": [
  1807. "角色/Role"
  1808. ],
  1809. "summary": "角色列表数据",
  1810. "parameters": [
  1811. {
  1812. "type": "string",
  1813. "description": "roleName",
  1814. "name": "roleName",
  1815. "in": "query"
  1816. },
  1817. {
  1818. "type": "string",
  1819. "description": "status",
  1820. "name": "status",
  1821. "in": "query"
  1822. },
  1823. {
  1824. "type": "string",
  1825. "description": "roleKey",
  1826. "name": "roleKey",
  1827. "in": "query"
  1828. },
  1829. {
  1830. "type": "integer",
  1831. "description": "页条数",
  1832. "name": "pageSize",
  1833. "in": "query"
  1834. },
  1835. {
  1836. "type": "integer",
  1837. "description": "页码",
  1838. "name": "pageIndex",
  1839. "in": "query"
  1840. }
  1841. ],
  1842. "responses": {
  1843. "200": {
  1844. "description": "{\"code\": 200, \"data\": [...]}",
  1845. "schema": {
  1846. "$ref": "#/definitions/app.Response"
  1847. }
  1848. }
  1849. }
  1850. }
  1851. },
  1852. "/api/v1/rolemenu": {
  1853. "get": {
  1854. "security": [
  1855. {
  1856. "Bearer": []
  1857. }
  1858. ],
  1859. "description": "获取JSON",
  1860. "tags": [
  1861. "角色菜单"
  1862. ],
  1863. "summary": "RoleMenu列表数据",
  1864. "parameters": [
  1865. {
  1866. "type": "string",
  1867. "description": "RoleId",
  1868. "name": "RoleId",
  1869. "in": "query"
  1870. }
  1871. ],
  1872. "responses": {
  1873. "200": {
  1874. "description": "{\"code\": -1, \"message\": \"抱歉未找到相关信息\"}",
  1875. "schema": {
  1876. "type": "string"
  1877. }
  1878. }
  1879. }
  1880. }
  1881. },
  1882. "/api/v1/rolemenu/{id}": {
  1883. "delete": {
  1884. "description": "删除数据",
  1885. "tags": [
  1886. "角色菜单"
  1887. ],
  1888. "summary": "删除用户菜单数据",
  1889. "parameters": [
  1890. {
  1891. "type": "string",
  1892. "description": "id",
  1893. "name": "id",
  1894. "in": "path",
  1895. "required": true
  1896. },
  1897. {
  1898. "type": "string",
  1899. "description": "menu_id",
  1900. "name": "menu_id",
  1901. "in": "query"
  1902. }
  1903. ],
  1904. "responses": {
  1905. "200": {
  1906. "description": "{\"code\": -1, \"message\": \"删除失败\"}",
  1907. "schema": {
  1908. "type": "string"
  1909. }
  1910. }
  1911. }
  1912. }
  1913. },
  1914. "/api/v1/setting": {
  1915. "get": {
  1916. "description": "获取JSON",
  1917. "tags": [
  1918. "系统信息"
  1919. ],
  1920. "summary": "查询系统信息",
  1921. "responses": {
  1922. "200": {
  1923. "description": "{\"code\": -1, \"message\": \"添加失败\"}",
  1924. "schema": {
  1925. "type": "string"
  1926. }
  1927. }
  1928. }
  1929. }
  1930. },
  1931. "/api/v1/settings/serverInfo": {
  1932. "get": {
  1933. "description": "获取JSON",
  1934. "tags": [
  1935. "系统信息"
  1936. ],
  1937. "summary": "系统信息",
  1938. "responses": {
  1939. "200": {
  1940. "description": "{\"code\": 200, \"data\": [...]}",
  1941. "schema": {
  1942. "$ref": "#/definitions/app.Response"
  1943. }
  1944. }
  1945. }
  1946. }
  1947. },
  1948. "/api/v1/sys/tables/info": {
  1949. "put": {
  1950. "security": [
  1951. {
  1952. "Bearer": []
  1953. }
  1954. ],
  1955. "description": "修改表结构",
  1956. "consumes": [
  1957. "application/json"
  1958. ],
  1959. "tags": [
  1960. "工具 - 生成表"
  1961. ],
  1962. "summary": "修改表结构",
  1963. "parameters": [
  1964. {
  1965. "description": "body",
  1966. "name": "data",
  1967. "in": "body",
  1968. "required": true,
  1969. "schema": {
  1970. "type": "object",
  1971. "$ref": "#/definitions/tools.SysTables"
  1972. }
  1973. }
  1974. ],
  1975. "responses": {
  1976. "200": {
  1977. "description": "{\"code\": -1, \"message\": \"添加失败\"}",
  1978. "schema": {
  1979. "type": "string"
  1980. }
  1981. }
  1982. }
  1983. },
  1984. "post": {
  1985. "security": [
  1986. {
  1987. "Bearer": []
  1988. }
  1989. ],
  1990. "description": "添加表结构",
  1991. "consumes": [
  1992. "application/json"
  1993. ],
  1994. "tags": [
  1995. "工具 - 生成表"
  1996. ],
  1997. "summary": "添加表结构",
  1998. "parameters": [
  1999. {
  2000. "type": "string",
  2001. "description": "tableName / 数据表名称",
  2002. "name": "tables",
  2003. "in": "query"
  2004. }
  2005. ],
  2006. "responses": {
  2007. "200": {
  2008. "description": "{\"code\": -1, \"message\": \"添加失败\"}",
  2009. "schema": {
  2010. "type": "string"
  2011. }
  2012. }
  2013. }
  2014. }
  2015. },
  2016. "/api/v1/sys/tables/info/{tableId}": {
  2017. "get": {
  2018. "security": [
  2019. {
  2020. "Bearer": []
  2021. }
  2022. ],
  2023. "description": "获取JSON",
  2024. "tags": [
  2025. "工具 - 生成表"
  2026. ],
  2027. "summary": "获取配置",
  2028. "parameters": [
  2029. {
  2030. "type": "integer",
  2031. "description": "configKey",
  2032. "name": "configKey",
  2033. "in": "path",
  2034. "required": true
  2035. }
  2036. ],
  2037. "responses": {
  2038. "200": {
  2039. "description": "{\"code\": 200, \"data\": [...]}",
  2040. "schema": {
  2041. "$ref": "#/definitions/app.Response"
  2042. }
  2043. }
  2044. }
  2045. },
  2046. "delete": {
  2047. "description": "删除表结构",
  2048. "tags": [
  2049. "工具 - 生成表"
  2050. ],
  2051. "summary": "删除表结构",
  2052. "parameters": [
  2053. {
  2054. "type": "integer",
  2055. "description": "tableId",
  2056. "name": "tableId",
  2057. "in": "path",
  2058. "required": true
  2059. }
  2060. ],
  2061. "responses": {
  2062. "200": {
  2063. "description": "{\"code\": -1, \"message\": \"删除失败\"}",
  2064. "schema": {
  2065. "type": "string"
  2066. }
  2067. }
  2068. }
  2069. }
  2070. },
  2071. "/api/v1/sys/tables/page": {
  2072. "get": {
  2073. "description": "生成表分页列表",
  2074. "tags": [
  2075. "工具 - 生成表"
  2076. ],
  2077. "summary": "分页列表数据",
  2078. "parameters": [
  2079. {
  2080. "type": "string",
  2081. "description": "tableName / 数据表名称",
  2082. "name": "tableName",
  2083. "in": "query"
  2084. },
  2085. {
  2086. "type": "integer",
  2087. "description": "pageSize / 页条数",
  2088. "name": "pageSize",
  2089. "in": "query"
  2090. },
  2091. {
  2092. "type": "integer",
  2093. "description": "pageIndex / 页码",
  2094. "name": "pageIndex",
  2095. "in": "query"
  2096. }
  2097. ],
  2098. "responses": {
  2099. "200": {
  2100. "description": "{\"code\": 200, \"data\": [...]}",
  2101. "schema": {
  2102. "$ref": "#/definitions/app.Response"
  2103. }
  2104. }
  2105. }
  2106. }
  2107. },
  2108. "/api/v1/sysUser": {
  2109. "get": {
  2110. "security": [
  2111. {
  2112. "Bearer": []
  2113. }
  2114. ],
  2115. "description": "获取JSON",
  2116. "tags": [
  2117. "用户"
  2118. ],
  2119. "summary": "获取用户角色和职位",
  2120. "responses": {
  2121. "200": {
  2122. "description": "{\"code\": 200, \"data\": [...]}",
  2123. "schema": {
  2124. "$ref": "#/definitions/app.Response"
  2125. }
  2126. }
  2127. }
  2128. },
  2129. "post": {
  2130. "description": "获取JSON",
  2131. "consumes": [
  2132. "application/json"
  2133. ],
  2134. "tags": [
  2135. "用户"
  2136. ],
  2137. "summary": "创建用户",
  2138. "parameters": [
  2139. {
  2140. "description": "用户数据",
  2141. "name": "data",
  2142. "in": "body",
  2143. "required": true,
  2144. "schema": {
  2145. "type": "object",
  2146. "$ref": "#/definitions/models.SysUser"
  2147. }
  2148. }
  2149. ],
  2150. "responses": {
  2151. "200": {
  2152. "description": "{\"code\": -1, \"message\": \"添加失败\"}",
  2153. "schema": {
  2154. "type": "string"
  2155. }
  2156. }
  2157. }
  2158. }
  2159. },
  2160. "/api/v1/sysUser/{userId}": {
  2161. "get": {
  2162. "security": [
  2163. {
  2164. "Bearer": []
  2165. }
  2166. ],
  2167. "description": "获取JSON",
  2168. "tags": [
  2169. "用户"
  2170. ],
  2171. "summary": "获取用户",
  2172. "parameters": [
  2173. {
  2174. "type": "integer",
  2175. "description": "用户编码",
  2176. "name": "userId",
  2177. "in": "path",
  2178. "required": true
  2179. }
  2180. ],
  2181. "responses": {
  2182. "200": {
  2183. "description": "{\"code\": 200, \"data\": [...]}",
  2184. "schema": {
  2185. "$ref": "#/definitions/app.Response"
  2186. }
  2187. }
  2188. }
  2189. }
  2190. },
  2191. "/api/v1/sysUserList": {
  2192. "get": {
  2193. "security": [
  2194. {
  2195. "Bearer": []
  2196. }
  2197. ],
  2198. "description": "获取JSON",
  2199. "tags": [
  2200. "用户"
  2201. ],
  2202. "summary": "列表用户信息数据",
  2203. "parameters": [
  2204. {
  2205. "type": "string",
  2206. "description": "username",
  2207. "name": "username",
  2208. "in": "query"
  2209. }
  2210. ],
  2211. "responses": {
  2212. "200": {
  2213. "description": "{\"code\": -1, \"message\": \"抱歉未找到相关信息\"}",
  2214. "schema": {
  2215. "type": "string"
  2216. }
  2217. }
  2218. }
  2219. }
  2220. },
  2221. "/api/v1/syscategory": {
  2222. "post": {
  2223. "description": "获取JSON",
  2224. "consumes": [
  2225. "application/json"
  2226. ],
  2227. "tags": [
  2228. "分类"
  2229. ],
  2230. "summary": "添加分类",
  2231. "parameters": [
  2232. {
  2233. "description": "data",
  2234. "name": "data",
  2235. "in": "body",
  2236. "required": true,
  2237. "schema": {
  2238. "type": "object",
  2239. "$ref": "#/definitions/models.SysCategory"
  2240. }
  2241. }
  2242. ],
  2243. "responses": {
  2244. "200": {
  2245. "description": "{\"code\": -1, \"message\": \"添加失败\"}",
  2246. "schema": {
  2247. "type": "string"
  2248. }
  2249. }
  2250. }
  2251. }
  2252. },
  2253. "/api/v1/syscontent": {
  2254. "post": {
  2255. "description": "获取JSON",
  2256. "consumes": [
  2257. "application/json"
  2258. ],
  2259. "tags": [
  2260. "内容管理"
  2261. ],
  2262. "summary": "添加内容管理",
  2263. "parameters": [
  2264. {
  2265. "description": "data",
  2266. "name": "data",
  2267. "in": "body",
  2268. "required": true,
  2269. "schema": {
  2270. "type": "object",
  2271. "$ref": "#/definitions/models.SysContent"
  2272. }
  2273. }
  2274. ],
  2275. "responses": {
  2276. "200": {
  2277. "description": "{\"code\": -1, \"message\": \"添加失败\"}",
  2278. "schema": {
  2279. "type": "string"
  2280. }
  2281. }
  2282. }
  2283. }
  2284. },
  2285. "/api/v1/sysfiledir": {
  2286. "post": {
  2287. "description": "获取JSON",
  2288. "consumes": [
  2289. "application/json"
  2290. ],
  2291. "tags": [
  2292. "SysFileDir"
  2293. ],
  2294. "summary": "添加SysFileDir",
  2295. "parameters": [
  2296. {
  2297. "description": "data",
  2298. "name": "data",
  2299. "in": "body",
  2300. "required": true,
  2301. "schema": {
  2302. "type": "object",
  2303. "$ref": "#/definitions/models.SysFileDir"
  2304. }
  2305. }
  2306. ],
  2307. "responses": {
  2308. "200": {
  2309. "description": "{\"code\": -1, \"message\": \"添加失败\"}",
  2310. "schema": {
  2311. "type": "string"
  2312. }
  2313. }
  2314. }
  2315. }
  2316. },
  2317. "/api/v1/system/setting": {
  2318. "post": {
  2319. "description": "获取JSON",
  2320. "tags": [
  2321. "系统信息"
  2322. ],
  2323. "summary": "更新或提交系统信息",
  2324. "parameters": [
  2325. {
  2326. "description": "body",
  2327. "name": "data",
  2328. "in": "body",
  2329. "required": true,
  2330. "schema": {
  2331. "type": "object",
  2332. "$ref": "#/definitions/models.SysUser"
  2333. }
  2334. }
  2335. ],
  2336. "responses": {
  2337. "200": {
  2338. "description": "{\"code\": -1, \"message\": \"添加失败\"}",
  2339. "schema": {
  2340. "type": "string"
  2341. }
  2342. }
  2343. }
  2344. }
  2345. },
  2346. "/api/v1/sysuser/{userId}": {
  2347. "put": {
  2348. "description": "获取JSON",
  2349. "consumes": [
  2350. "application/json"
  2351. ],
  2352. "tags": [
  2353. "用户"
  2354. ],
  2355. "summary": "修改用户数据",
  2356. "parameters": [
  2357. {
  2358. "description": "body",
  2359. "name": "data",
  2360. "in": "body",
  2361. "required": true,
  2362. "schema": {
  2363. "type": "object",
  2364. "$ref": "#/definitions/models.SysUser"
  2365. }
  2366. }
  2367. ],
  2368. "responses": {
  2369. "200": {
  2370. "description": "{\"code\": -1, \"message\": \"修改失败\"}",
  2371. "schema": {
  2372. "type": "string"
  2373. }
  2374. }
  2375. }
  2376. },
  2377. "delete": {
  2378. "description": "删除数据",
  2379. "tags": [
  2380. "用户"
  2381. ],
  2382. "summary": "删除用户数据",
  2383. "parameters": [
  2384. {
  2385. "type": "integer",
  2386. "description": "userId",
  2387. "name": "userId",
  2388. "in": "path",
  2389. "required": true
  2390. }
  2391. ],
  2392. "responses": {
  2393. "200": {
  2394. "description": "{\"code\": -1, \"message\": \"删除失败\"}",
  2395. "schema": {
  2396. "type": "string"
  2397. }
  2398. }
  2399. }
  2400. }
  2401. },
  2402. "/api/v1/user/profile": {
  2403. "get": {
  2404. "security": [
  2405. {
  2406. "Bearer": []
  2407. }
  2408. ],
  2409. "description": "获取JSON",
  2410. "tags": [
  2411. "个人中心"
  2412. ],
  2413. "summary": "获取个人中心用户",
  2414. "responses": {
  2415. "200": {
  2416. "description": "{\"code\": 200, \"data\": [...]}",
  2417. "schema": {
  2418. "$ref": "#/definitions/app.Response"
  2419. }
  2420. }
  2421. }
  2422. }
  2423. },
  2424. "/api/v1/user/profileAvatar": {
  2425. "post": {
  2426. "description": "获取JSON",
  2427. "consumes": [
  2428. "multipart/form-data"
  2429. ],
  2430. "tags": [
  2431. "用户"
  2432. ],
  2433. "summary": "修改头像",
  2434. "parameters": [
  2435. {
  2436. "type": "file",
  2437. "description": "file",
  2438. "name": "file",
  2439. "in": "formData",
  2440. "required": true
  2441. }
  2442. ],
  2443. "responses": {
  2444. "200": {
  2445. "description": "{\"code\": -1, \"message\": \"添加失败\"}",
  2446. "schema": {
  2447. "type": "string"
  2448. }
  2449. }
  2450. }
  2451. }
  2452. },
  2453. "/login": {
  2454. "post": {
  2455. "description": "获取token\nLoginHandler can be used by clients to get a jwt token.\nPayload needs to be json in the form of {\"username\": \"USERNAME\", \"password\": \"PASSWORD\"}.\nReply will be of the form {\"token\": \"TOKEN\"}.\ndev mode:It should be noted that all fields cannot be empty, and a value of 0 can be passed in addition to the account password\n注意:开发模式:需要注意全部字段不能为空,账号密码外可以传入0值",
  2456. "consumes": [
  2457. "application/json"
  2458. ],
  2459. "summary": "登陆",
  2460. "parameters": [
  2461. {
  2462. "description": "account",
  2463. "name": "account",
  2464. "in": "body",
  2465. "required": true,
  2466. "schema": {
  2467. "type": "object",
  2468. "$ref": "#/definitions/models.Login"
  2469. }
  2470. }
  2471. ],
  2472. "responses": {
  2473. "200": {
  2474. "description": "{\"code\": 200, \"expire\": \"2019-08-07T12:45:48+08:00\", \"token\": \".eyJleHAiOjE1NjUxNTMxNDgsImlkIjoiYWRtaW4iLCJvcmlnX2lhdCI6MTU2NTE0OTU0OH0.-zvzHvbg0A\" }",
  2475. "schema": {
  2476. "type": "string"
  2477. }
  2478. }
  2479. }
  2480. }
  2481. },
  2482. "/logout": {
  2483. "post": {
  2484. "security": [
  2485. {
  2486. "Bearer": []
  2487. }
  2488. ],
  2489. "description": "获取token",
  2490. "consumes": [
  2491. "application/json"
  2492. ],
  2493. "summary": "退出登录",
  2494. "responses": {
  2495. "200": {
  2496. "description": "{\"code\": 200, \"msg\": \"成功退出系统\" }",
  2497. "schema": {
  2498. "type": "string"
  2499. }
  2500. }
  2501. }
  2502. }
  2503. },
  2504. "/sd/cpu": {
  2505. "get": {
  2506. "description": "CPU 使用量 DiskCheck checks the disk usage.",
  2507. "consumes": [
  2508. "text/html"
  2509. ],
  2510. "produces": [
  2511. "text/html"
  2512. ],
  2513. "summary": "CPU 使用量",
  2514. "responses": {
  2515. "200": {
  2516. "description": "OK",
  2517. "schema": {
  2518. "type": "string"
  2519. }
  2520. }
  2521. }
  2522. }
  2523. },
  2524. "/sd/disk": {
  2525. "get": {
  2526. "description": "服务器硬盘使用量 DiskCheck checks the disk usage.",
  2527. "consumes": [
  2528. "text/html"
  2529. ],
  2530. "produces": [
  2531. "text/html"
  2532. ],
  2533. "summary": "服务器硬盘使用量",
  2534. "responses": {
  2535. "200": {
  2536. "description": "OK - Free space: 16321MB (15GB) / 51200MB (50GB) | Used: 31%",
  2537. "schema": {
  2538. "type": "string"
  2539. }
  2540. },
  2541. "429": {
  2542. "description": "WARNING",
  2543. "schema": {
  2544. "type": "string"
  2545. }
  2546. },
  2547. "500": {
  2548. "description": "CRITICAL",
  2549. "schema": {
  2550. "type": "string"
  2551. }
  2552. }
  2553. }
  2554. }
  2555. },
  2556. "/sd/health": {
  2557. "get": {
  2558. "description": "健康状况",
  2559. "consumes": [
  2560. "text/html"
  2561. ],
  2562. "produces": [
  2563. "text/html"
  2564. ],
  2565. "summary": "健康状况 HealthCheck shows OK as the ping-pong result.",
  2566. "responses": {
  2567. "200": {
  2568. "description": "OK",
  2569. "schema": {
  2570. "type": "string"
  2571. }
  2572. }
  2573. }
  2574. }
  2575. },
  2576. "/sd/os": {
  2577. "get": {
  2578. "description": "Os",
  2579. "consumes": [
  2580. "text/html"
  2581. ],
  2582. "produces": [
  2583. "text/html"
  2584. ],
  2585. "summary": "OS",
  2586. "responses": {
  2587. "200": {
  2588. "description": "OK",
  2589. "schema": {
  2590. "type": "string"
  2591. }
  2592. }
  2593. }
  2594. }
  2595. },
  2596. "/sd/ram": {
  2597. "get": {
  2598. "description": "内存使用量 RAMCheck checks the disk usage.",
  2599. "consumes": [
  2600. "text/html"
  2601. ],
  2602. "produces": [
  2603. "text/html"
  2604. ],
  2605. "summary": "内存使用量",
  2606. "responses": {
  2607. "200": {
  2608. "description": "OK",
  2609. "schema": {
  2610. "type": "string"
  2611. }
  2612. }
  2613. }
  2614. }
  2615. }
  2616. },
  2617. "definitions": {
  2618. "app.Page": {
  2619. "type": "object",
  2620. "properties": {
  2621. "count": {
  2622. "type": "integer"
  2623. },
  2624. "list": {
  2625. "type": "object"
  2626. },
  2627. "pageIndex": {
  2628. "type": "integer"
  2629. },
  2630. "pageSize": {
  2631. "type": "integer"
  2632. }
  2633. }
  2634. },
  2635. "app.PageResponse": {
  2636. "type": "object",
  2637. "properties": {
  2638. "code": {
  2639. "description": "代码",
  2640. "type": "integer",
  2641. "example": 200
  2642. },
  2643. "data": {
  2644. "description": "数据集",
  2645. "type": "object",
  2646. "$ref": "#/definitions/app.Page"
  2647. },
  2648. "msg": {
  2649. "description": "消息",
  2650. "type": "string"
  2651. }
  2652. }
  2653. },
  2654. "app.Response": {
  2655. "type": "object",
  2656. "properties": {
  2657. "code": {
  2658. "description": "代码",
  2659. "type": "integer",
  2660. "example": 200
  2661. },
  2662. "data": {
  2663. "description": "数据集",
  2664. "type": "object"
  2665. },
  2666. "msg": {
  2667. "description": "消息",
  2668. "type": "string"
  2669. }
  2670. }
  2671. },
  2672. "models.DictType": {
  2673. "type": "object",
  2674. "properties": {
  2675. "createBy": {
  2676. "description": "创建者",
  2677. "type": "string"
  2678. },
  2679. "createdAt": {
  2680. "type": "string"
  2681. },
  2682. "dataScope": {
  2683. "type": "string"
  2684. },
  2685. "deletedAt": {
  2686. "type": "string"
  2687. },
  2688. "dictId": {
  2689. "type": "integer"
  2690. },
  2691. "dictName": {
  2692. "description": "字典名称",
  2693. "type": "string"
  2694. },
  2695. "dictType": {
  2696. "description": "字典类型",
  2697. "type": "string"
  2698. },
  2699. "params": {
  2700. "type": "string"
  2701. },
  2702. "remark": {
  2703. "description": "备注",
  2704. "type": "string"
  2705. },
  2706. "status": {
  2707. "description": "状态",
  2708. "type": "string"
  2709. },
  2710. "updateBy": {
  2711. "description": "更新者",
  2712. "type": "string"
  2713. },
  2714. "updatedAt": {
  2715. "type": "string"
  2716. }
  2717. }
  2718. },
  2719. "models.Login": {
  2720. "type": "object",
  2721. "required": [
  2722. "code",
  2723. "password",
  2724. "username",
  2725. "uuid"
  2726. ],
  2727. "properties": {
  2728. "code": {
  2729. "type": "string"
  2730. },
  2731. "password": {
  2732. "type": "string"
  2733. },
  2734. "username": {
  2735. "type": "string"
  2736. },
  2737. "uuid": {
  2738. "type": "string"
  2739. }
  2740. }
  2741. },
  2742. "models.LoginLog": {
  2743. "type": "object",
  2744. "properties": {
  2745. "browser": {
  2746. "description": "浏览器",
  2747. "type": "string"
  2748. },
  2749. "createBy": {
  2750. "description": "创建人",
  2751. "type": "string"
  2752. },
  2753. "createdAt": {
  2754. "type": "string"
  2755. },
  2756. "dataScope": {
  2757. "description": "数据",
  2758. "type": "string"
  2759. },
  2760. "deletedAt": {
  2761. "type": "string"
  2762. },
  2763. "infoId": {
  2764. "description": "主键",
  2765. "type": "integer"
  2766. },
  2767. "ipaddr": {
  2768. "description": "ip地址",
  2769. "type": "string"
  2770. },
  2771. "loginLocation": {
  2772. "description": "归属地",
  2773. "type": "string"
  2774. },
  2775. "loginTime": {
  2776. "description": "登录时间",
  2777. "type": "string"
  2778. },
  2779. "msg": {
  2780. "type": "string"
  2781. },
  2782. "os": {
  2783. "description": "系统",
  2784. "type": "string"
  2785. },
  2786. "params": {
  2787. "type": "string"
  2788. },
  2789. "platform": {
  2790. "description": "固件",
  2791. "type": "string"
  2792. },
  2793. "remark": {
  2794. "description": "备注",
  2795. "type": "string"
  2796. },
  2797. "status": {
  2798. "description": "状态",
  2799. "type": "string"
  2800. },
  2801. "updateBy": {
  2802. "description": "更新者",
  2803. "type": "string"
  2804. },
  2805. "updatedAt": {
  2806. "type": "string"
  2807. },
  2808. "username": {
  2809. "description": "用户名",
  2810. "type": "string"
  2811. }
  2812. }
  2813. },
  2814. "models.Menu": {
  2815. "type": "object",
  2816. "properties": {
  2817. "action": {
  2818. "type": "string"
  2819. },
  2820. "breadcrumb": {
  2821. "type": "string"
  2822. },
  2823. "children": {
  2824. "type": "array",
  2825. "items": {
  2826. "$ref": "#/definitions/models.Menu"
  2827. }
  2828. },
  2829. "component": {
  2830. "type": "string"
  2831. },
  2832. "createBy": {
  2833. "type": "string"
  2834. },
  2835. "createdAt": {
  2836. "type": "string"
  2837. },
  2838. "dataScope": {
  2839. "type": "string"
  2840. },
  2841. "deletedAt": {
  2842. "type": "string"
  2843. },
  2844. "icon": {
  2845. "type": "string"
  2846. },
  2847. "isFrame": {
  2848. "type": "string"
  2849. },
  2850. "is_select": {
  2851. "type": "boolean"
  2852. },
  2853. "menuId": {
  2854. "type": "integer"
  2855. },
  2856. "menuName": {
  2857. "type": "string"
  2858. },
  2859. "menuType": {
  2860. "type": "string"
  2861. },
  2862. "noCache": {
  2863. "type": "boolean"
  2864. },
  2865. "params": {
  2866. "type": "string"
  2867. },
  2868. "parentId": {
  2869. "type": "integer"
  2870. },
  2871. "path": {
  2872. "type": "string"
  2873. },
  2874. "paths": {
  2875. "type": "string"
  2876. },
  2877. "permission": {
  2878. "type": "string"
  2879. },
  2880. "roleId": {
  2881. "type": "integer"
  2882. },
  2883. "sort": {
  2884. "type": "integer"
  2885. },
  2886. "title": {
  2887. "type": "string"
  2888. },
  2889. "updateBy": {
  2890. "type": "string"
  2891. },
  2892. "updatedAt": {
  2893. "type": "string"
  2894. },
  2895. "visible": {
  2896. "type": "string"
  2897. }
  2898. }
  2899. },
  2900. "models.Post": {
  2901. "type": "object",
  2902. "properties": {
  2903. "createBy": {
  2904. "type": "string"
  2905. },
  2906. "createdAt": {
  2907. "type": "string"
  2908. },
  2909. "dataScope": {
  2910. "type": "string"
  2911. },
  2912. "deletedAt": {
  2913. "type": "string"
  2914. },
  2915. "params": {
  2916. "type": "string"
  2917. },
  2918. "postCode": {
  2919. "description": "岗位代码",
  2920. "type": "string"
  2921. },
  2922. "postId": {
  2923. "description": "岗位编号",
  2924. "type": "integer"
  2925. },
  2926. "postName": {
  2927. "description": "岗位名称",
  2928. "type": "string"
  2929. },
  2930. "remark": {
  2931. "description": "描述",
  2932. "type": "string"
  2933. },
  2934. "sort": {
  2935. "description": "岗位排序",
  2936. "type": "integer"
  2937. },
  2938. "status": {
  2939. "description": "状态",
  2940. "type": "string"
  2941. },
  2942. "updateBy": {
  2943. "type": "string"
  2944. },
  2945. "updatedAt": {
  2946. "type": "string"
  2947. }
  2948. }
  2949. },
  2950. "models.SysCategory": {
  2951. "type": "object",
  2952. "properties": {
  2953. "createBy": {
  2954. "description": "创建者",
  2955. "type": "string"
  2956. },
  2957. "createdAt": {
  2958. "type": "string"
  2959. },
  2960. "dataScope": {
  2961. "type": "string"
  2962. },
  2963. "deletedAt": {
  2964. "type": "string"
  2965. },
  2966. "id": {
  2967. "description": "分类Id",
  2968. "type": "integer"
  2969. },
  2970. "img": {
  2971. "description": "图片",
  2972. "type": "string"
  2973. },
  2974. "name": {
  2975. "description": "名称",
  2976. "type": "string"
  2977. },
  2978. "params": {
  2979. "type": "string"
  2980. },
  2981. "remark": {
  2982. "description": "备注",
  2983. "type": "string"
  2984. },
  2985. "sort": {
  2986. "description": "排序",
  2987. "type": "string"
  2988. },
  2989. "status": {
  2990. "description": "状态",
  2991. "type": "string"
  2992. },
  2993. "updateBy": {
  2994. "description": "更新者",
  2995. "type": "string"
  2996. },
  2997. "updatedAt": {
  2998. "type": "string"
  2999. }
  3000. }
  3001. },
  3002. "models.SysConfig": {
  3003. "type": "object",
  3004. "properties": {
  3005. "configId": {
  3006. "description": "编码",
  3007. "type": "integer"
  3008. },
  3009. "configKey": {
  3010. "description": "参数键名",
  3011. "type": "string"
  3012. },
  3013. "configName": {
  3014. "description": "参数名称",
  3015. "type": "string"
  3016. },
  3017. "configType": {
  3018. "description": "是否系统内置",
  3019. "type": "string"
  3020. },
  3021. "configValue": {
  3022. "description": "参数键值",
  3023. "type": "string"
  3024. },
  3025. "createBy": {
  3026. "type": "string"
  3027. },
  3028. "createdAt": {
  3029. "type": "string"
  3030. },
  3031. "dataScope": {
  3032. "type": "string"
  3033. },
  3034. "deletedAt": {
  3035. "type": "string"
  3036. },
  3037. "params": {
  3038. "type": "string"
  3039. },
  3040. "remark": {
  3041. "description": "备注",
  3042. "type": "string"
  3043. },
  3044. "updateBy": {
  3045. "type": "string"
  3046. },
  3047. "updatedAt": {
  3048. "type": "string"
  3049. }
  3050. }
  3051. },
  3052. "models.SysContent": {
  3053. "type": "object",
  3054. "properties": {
  3055. "cateId": {
  3056. "description": "分类id",
  3057. "type": "string"
  3058. },
  3059. "content": {
  3060. "description": "内容",
  3061. "type": "string"
  3062. },
  3063. "createBy": {
  3064. "description": "创建者",
  3065. "type": "string"
  3066. },
  3067. "createdAt": {
  3068. "type": "string"
  3069. },
  3070. "dataScope": {
  3071. "type": "string"
  3072. },
  3073. "deletedAt": {
  3074. "type": "string"
  3075. },
  3076. "id": {
  3077. "description": "id",
  3078. "type": "integer"
  3079. },
  3080. "img": {
  3081. "description": "图片",
  3082. "type": "string"
  3083. },
  3084. "name": {
  3085. "description": "名称",
  3086. "type": "string"
  3087. },
  3088. "params": {
  3089. "type": "string"
  3090. },
  3091. "remark": {
  3092. "description": "备注",
  3093. "type": "string"
  3094. },
  3095. "sort": {
  3096. "description": "排序",
  3097. "type": "string"
  3098. },
  3099. "status": {
  3100. "description": "状态",
  3101. "type": "string"
  3102. },
  3103. "updateBy": {
  3104. "description": "更新者",
  3105. "type": "string"
  3106. },
  3107. "updatedAt": {
  3108. "type": "string"
  3109. }
  3110. }
  3111. },
  3112. "models.SysDept": {
  3113. "type": "object",
  3114. "properties": {
  3115. "children": {
  3116. "type": "array",
  3117. "items": {
  3118. "$ref": "#/definitions/models.SysDept"
  3119. }
  3120. },
  3121. "createBy": {
  3122. "type": "string"
  3123. },
  3124. "createdAt": {
  3125. "type": "string"
  3126. },
  3127. "dataScope": {
  3128. "type": "string"
  3129. },
  3130. "deletedAt": {
  3131. "type": "string"
  3132. },
  3133. "deptId": {
  3134. "description": "部门编码",
  3135. "type": "integer"
  3136. },
  3137. "deptName": {
  3138. "description": "部门名称",
  3139. "type": "string"
  3140. },
  3141. "deptPath": {
  3142. "type": "string"
  3143. },
  3144. "email": {
  3145. "description": "邮箱",
  3146. "type": "string"
  3147. },
  3148. "leader": {
  3149. "description": "负责人",
  3150. "type": "string"
  3151. },
  3152. "params": {
  3153. "type": "string"
  3154. },
  3155. "parentId": {
  3156. "description": "上级部门",
  3157. "type": "integer"
  3158. },
  3159. "phone": {
  3160. "description": "手机",
  3161. "type": "string"
  3162. },
  3163. "sort": {
  3164. "description": "排序",
  3165. "type": "integer"
  3166. },
  3167. "status": {
  3168. "description": "状态",
  3169. "type": "string"
  3170. },
  3171. "updateBy": {
  3172. "type": "string"
  3173. },
  3174. "updatedAt": {
  3175. "type": "string"
  3176. }
  3177. }
  3178. },
  3179. "models.SysFileDir": {
  3180. "type": "object",
  3181. "properties": {
  3182. "children": {
  3183. "type": "array",
  3184. "items": {
  3185. "$ref": "#/definitions/models.SysFileDir"
  3186. }
  3187. },
  3188. "createBy": {
  3189. "description": "创建人",
  3190. "type": "string"
  3191. },
  3192. "createdAt": {
  3193. "type": "string"
  3194. },
  3195. "dataScope": {
  3196. "type": "string"
  3197. },
  3198. "deletedAt": {
  3199. "type": "string"
  3200. },
  3201. "id": {
  3202. "type": "integer"
  3203. },
  3204. "label": {
  3205. "description": "名称",
  3206. "type": "string"
  3207. },
  3208. "pId": {
  3209. "description": "父id",
  3210. "type": "integer"
  3211. },
  3212. "params": {
  3213. "type": "string"
  3214. },
  3215. "path": {
  3216. "type": "string"
  3217. },
  3218. "sort": {
  3219. "description": "排序",
  3220. "type": "integer"
  3221. },
  3222. "updateBy": {
  3223. "description": "编辑人",
  3224. "type": "string"
  3225. },
  3226. "updatedAt": {
  3227. "type": "string"
  3228. }
  3229. }
  3230. },
  3231. "models.SysOperLog": {
  3232. "type": "object",
  3233. "properties": {
  3234. "businessType": {
  3235. "description": "操作类型",
  3236. "type": "string"
  3237. },
  3238. "businessTypes": {
  3239. "type": "string"
  3240. },
  3241. "createBy": {
  3242. "description": "创建人",
  3243. "type": "string"
  3244. },
  3245. "createdAt": {
  3246. "type": "string"
  3247. },
  3248. "dataScope": {
  3249. "description": "数据",
  3250. "type": "string"
  3251. },
  3252. "deletedAt": {
  3253. "type": "string"
  3254. },
  3255. "deptName": {
  3256. "description": "部门名称",
  3257. "type": "string"
  3258. },
  3259. "jsonResult": {
  3260. "description": "返回数据",
  3261. "type": "string"
  3262. },
  3263. "latencyime": {
  3264. "description": "耗时",
  3265. "type": "string"
  3266. },
  3267. "method": {
  3268. "description": "函数",
  3269. "type": "string"
  3270. },
  3271. "operId": {
  3272. "description": "日志编码",
  3273. "type": "integer"
  3274. },
  3275. "operIp": {
  3276. "description": "客户端ip",
  3277. "type": "string"
  3278. },
  3279. "operLocation": {
  3280. "description": "访问位置",
  3281. "type": "string"
  3282. },
  3283. "operName": {
  3284. "description": "操作者",
  3285. "type": "string"
  3286. },
  3287. "operParam": {
  3288. "description": "请求参数",
  3289. "type": "string"
  3290. },
  3291. "operTime": {
  3292. "description": "操作时间",
  3293. "type": "string"
  3294. },
  3295. "operUrl": {
  3296. "description": "访问地址",
  3297. "type": "string"
  3298. },
  3299. "operatorType": {
  3300. "description": "操作类型",
  3301. "type": "string"
  3302. },
  3303. "params": {
  3304. "description": "参数",
  3305. "type": "string"
  3306. },
  3307. "remark": {
  3308. "description": "备注",
  3309. "type": "string"
  3310. },
  3311. "requestMethod": {
  3312. "description": "请求方式",
  3313. "type": "string"
  3314. },
  3315. "status": {
  3316. "description": "操作状态",
  3317. "type": "string"
  3318. },
  3319. "title": {
  3320. "description": "操作模块",
  3321. "type": "string"
  3322. },
  3323. "updateBy": {
  3324. "description": "更新者",
  3325. "type": "string"
  3326. },
  3327. "updatedAt": {
  3328. "type": "string"
  3329. },
  3330. "userAgent": {
  3331. "description": "ua",
  3332. "type": "string"
  3333. }
  3334. }
  3335. },
  3336. "models.SysRole": {
  3337. "type": "object",
  3338. "properties": {
  3339. "admin": {
  3340. "type": "boolean"
  3341. },
  3342. "createBy": {
  3343. "type": "string"
  3344. },
  3345. "createdAt": {
  3346. "type": "string"
  3347. },
  3348. "dataScope": {
  3349. "type": "string"
  3350. },
  3351. "deletedAt": {
  3352. "type": "string"
  3353. },
  3354. "deptIds": {
  3355. "type": "array",
  3356. "items": {
  3357. "type": "integer"
  3358. }
  3359. },
  3360. "flag": {
  3361. "type": "string"
  3362. },
  3363. "menuIds": {
  3364. "type": "array",
  3365. "items": {
  3366. "type": "integer"
  3367. }
  3368. },
  3369. "params": {
  3370. "type": "string"
  3371. },
  3372. "remark": {
  3373. "description": "备注",
  3374. "type": "string"
  3375. },
  3376. "roleId": {
  3377. "description": "角色编码",
  3378. "type": "integer"
  3379. },
  3380. "roleKey": {
  3381. "description": "角色代码",
  3382. "type": "string"
  3383. },
  3384. "roleName": {
  3385. "description": "角色名称",
  3386. "type": "string"
  3387. },
  3388. "roleSort": {
  3389. "description": "角色排序",
  3390. "type": "integer"
  3391. },
  3392. "status": {
  3393. "type": "string"
  3394. },
  3395. "updateBy": {
  3396. "type": "string"
  3397. },
  3398. "updatedAt": {
  3399. "type": "string"
  3400. }
  3401. }
  3402. },
  3403. "models.SysUser": {
  3404. "type": "object",
  3405. "properties": {
  3406. "avatar": {
  3407. "description": "头像",
  3408. "type": "string"
  3409. },
  3410. "createBy": {
  3411. "type": "string"
  3412. },
  3413. "createdAt": {
  3414. "type": "string"
  3415. },
  3416. "dataScope": {
  3417. "type": "string"
  3418. },
  3419. "deletedAt": {
  3420. "type": "string"
  3421. },
  3422. "deptId": {
  3423. "description": "部门编码",
  3424. "type": "integer"
  3425. },
  3426. "email": {
  3427. "description": "邮箱",
  3428. "type": "string"
  3429. },
  3430. "nickName": {
  3431. "description": "昵称",
  3432. "type": "string"
  3433. },
  3434. "params": {
  3435. "type": "string"
  3436. },
  3437. "password": {
  3438. "description": "密码",
  3439. "type": "string"
  3440. },
  3441. "phone": {
  3442. "description": "手机号",
  3443. "type": "string"
  3444. },
  3445. "postId": {
  3446. "description": "职位编码",
  3447. "type": "integer"
  3448. },
  3449. "remark": {
  3450. "description": "备注",
  3451. "type": "string"
  3452. },
  3453. "roleId": {
  3454. "description": "角色编码",
  3455. "type": "integer"
  3456. },
  3457. "salt": {
  3458. "description": "盐",
  3459. "type": "string"
  3460. },
  3461. "sex": {
  3462. "description": "性别",
  3463. "type": "string"
  3464. },
  3465. "status": {
  3466. "type": "string"
  3467. },
  3468. "updateBy": {
  3469. "type": "string"
  3470. },
  3471. "updatedAt": {
  3472. "type": "string"
  3473. },
  3474. "userId": {
  3475. "description": "编码",
  3476. "type": "integer"
  3477. },
  3478. "username": {
  3479. "type": "string"
  3480. }
  3481. }
  3482. },
  3483. "tools.Params": {
  3484. "type": "object",
  3485. "properties": {
  3486. "treeCode": {
  3487. "type": "string"
  3488. },
  3489. "treeName": {
  3490. "type": "string"
  3491. },
  3492. "treeParentCode": {
  3493. "type": "string"
  3494. }
  3495. }
  3496. },
  3497. "tools.SysColumns": {
  3498. "type": "object",
  3499. "properties": {
  3500. "columnComment": {
  3501. "type": "string"
  3502. },
  3503. "columnId": {
  3504. "type": "integer"
  3505. },
  3506. "columnName": {
  3507. "type": "string"
  3508. },
  3509. "columnType": {
  3510. "type": "string"
  3511. },
  3512. "createBy": {
  3513. "type": "string"
  3514. },
  3515. "createdAt": {
  3516. "type": "string"
  3517. },
  3518. "deletedAt": {
  3519. "type": "string"
  3520. },
  3521. "dictType": {
  3522. "type": "string"
  3523. },
  3524. "edit": {
  3525. "type": "boolean"
  3526. },
  3527. "fkCol": {
  3528. "type": "array",
  3529. "items": {
  3530. "$ref": "#/definitions/tools.SysColumns"
  3531. }
  3532. },
  3533. "fkLabelId": {
  3534. "type": "string"
  3535. },
  3536. "fkLabelName": {
  3537. "type": "string"
  3538. },
  3539. "fkTableName": {
  3540. "type": "string"
  3541. },
  3542. "fkTableNameClass": {
  3543. "type": "string"
  3544. },
  3545. "fkTableNamePackage": {
  3546. "type": "string"
  3547. },
  3548. "goField": {
  3549. "type": "string"
  3550. },
  3551. "goType": {
  3552. "type": "string"
  3553. },
  3554. "htmlType": {
  3555. "type": "string"
  3556. },
  3557. "increment": {
  3558. "type": "boolean"
  3559. },
  3560. "insert": {
  3561. "type": "boolean"
  3562. },
  3563. "isEdit": {
  3564. "type": "string"
  3565. },
  3566. "isIncrement": {
  3567. "type": "string"
  3568. },
  3569. "isInsert": {
  3570. "type": "string"
  3571. },
  3572. "isList": {
  3573. "type": "string"
  3574. },
  3575. "isPk": {
  3576. "type": "string"
  3577. },
  3578. "isQuery": {
  3579. "type": "string"
  3580. },
  3581. "isRequired": {
  3582. "type": "string"
  3583. },
  3584. "jsonField": {
  3585. "type": "string"
  3586. },
  3587. "list": {
  3588. "type": "string"
  3589. },
  3590. "pk": {
  3591. "type": "boolean"
  3592. },
  3593. "query": {
  3594. "type": "boolean"
  3595. },
  3596. "queryType": {
  3597. "type": "string"
  3598. },
  3599. "remark": {
  3600. "type": "string"
  3601. },
  3602. "required": {
  3603. "type": "boolean"
  3604. },
  3605. "sort": {
  3606. "type": "integer"
  3607. },
  3608. "superColumn": {
  3609. "type": "boolean"
  3610. },
  3611. "tableId": {
  3612. "type": "integer"
  3613. },
  3614. "updateBy": {
  3615. "type": "string"
  3616. },
  3617. "updatedAt": {
  3618. "type": "string"
  3619. },
  3620. "usableColumn": {
  3621. "type": "boolean"
  3622. }
  3623. }
  3624. },
  3625. "tools.SysTables": {
  3626. "type": "object",
  3627. "properties": {
  3628. "businessName": {
  3629. "type": "string"
  3630. },
  3631. "className": {
  3632. "description": "类名",
  3633. "type": "string"
  3634. },
  3635. "columns": {
  3636. "type": "array",
  3637. "items": {
  3638. "$ref": "#/definitions/tools.SysColumns"
  3639. }
  3640. },
  3641. "createBy": {
  3642. "type": "string"
  3643. },
  3644. "createdAt": {
  3645. "type": "string"
  3646. },
  3647. "crud": {
  3648. "type": "boolean"
  3649. },
  3650. "dataScope": {
  3651. "type": "string"
  3652. },
  3653. "deletedAt": {
  3654. "type": "string"
  3655. },
  3656. "functionAuthor": {
  3657. "description": "功能作者",
  3658. "type": "string"
  3659. },
  3660. "functionName": {
  3661. "description": "功能名称",
  3662. "type": "string"
  3663. },
  3664. "isLogicalDelete": {
  3665. "type": "string"
  3666. },
  3667. "logicalDelete": {
  3668. "type": "boolean"
  3669. },
  3670. "logicalDeleteColumn": {
  3671. "type": "string"
  3672. },
  3673. "moduleName": {
  3674. "description": "模块名",
  3675. "type": "string"
  3676. },
  3677. "options": {
  3678. "type": "string"
  3679. },
  3680. "packageName": {
  3681. "description": "包名",
  3682. "type": "string"
  3683. },
  3684. "params": {
  3685. "type": "object",
  3686. "$ref": "#/definitions/tools.Params"
  3687. },
  3688. "pkColumn": {
  3689. "type": "string"
  3690. },
  3691. "pkGoField": {
  3692. "type": "string"
  3693. },
  3694. "pkJsonField": {
  3695. "type": "string"
  3696. },
  3697. "remark": {
  3698. "type": "string"
  3699. },
  3700. "tableComment": {
  3701. "description": "表备注",
  3702. "type": "string"
  3703. },
  3704. "tableId": {
  3705. "description": "表编码",
  3706. "type": "integer"
  3707. },
  3708. "tableName": {
  3709. "description": "表名称",
  3710. "type": "string"
  3711. },
  3712. "tplCategory": {
  3713. "type": "string"
  3714. },
  3715. "tree": {
  3716. "type": "boolean"
  3717. },
  3718. "treeCode": {
  3719. "type": "string"
  3720. },
  3721. "treeName": {
  3722. "type": "string"
  3723. },
  3724. "treeParentCode": {
  3725. "type": "string"
  3726. },
  3727. "updateBy": {
  3728. "type": "string"
  3729. },
  3730. "updatedAt": {
  3731. "type": "string"
  3732. }
  3733. }
  3734. }
  3735. },
  3736. "securityDefinitions": {
  3737. "Bearer": {
  3738. "type": "apiKey",
  3739. "name": "Authorization",
  3740. "in": "header"
  3741. }
  3742. }
  3743. }`
  3744. type swaggerInfo struct {
  3745. Version string
  3746. Host string
  3747. BasePath string
  3748. Schemes []string
  3749. Title string
  3750. Description string
  3751. }
  3752. // SwaggerInfo holds exported Swagger Info so clients can modify it
  3753. var SwaggerInfo = swaggerInfo{
  3754. Version: "1.0.1",
  3755. Host: "",
  3756. BasePath: "",
  3757. Schemes: []string{},
  3758. Title: "device-manage API",
  3759. Description: "基于Gin + Vue + Element UI的前后端分离权限管理系统的接口文档\n添加qq群: 74520518 进入技术交流群 请备注,谢谢!",
  3760. }
  3761. type s struct{}
  3762. func (s *s) ReadDoc() string {
  3763. sInfo := SwaggerInfo
  3764. sInfo.Description = strings.Replace(sInfo.Description, "\n", "\\n", -1)
  3765. t, err := template.New("swagger_info").Funcs(template.FuncMap{
  3766. "marshal": func(v interface{}) string {
  3767. a, _ := json.Marshal(v)
  3768. return string(a)
  3769. },
  3770. }).Parse(doc)
  3771. if err != nil {
  3772. return doc
  3773. }
  3774. var tpl bytes.Buffer
  3775. if err := t.Execute(&tpl, sInfo); err != nil {
  3776. return doc
  3777. }
  3778. return tpl.String()
  3779. }
  3780. func init() {
  3781. swag.Register(swag.Name, &s{})
  3782. }