swagger.json 118 KB

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