swagger.json 67 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144
  1. {
  2. "swagger": "2.0",
  3. "info": {
  4. "description": "This is a sample Server pets",
  5. "title": "Swagger Example API",
  6. "contact": {},
  7. "license": {},
  8. "version": "0.0.1"
  9. },
  10. "basePath": "/",
  11. "paths": {
  12. "/api/createApi": {
  13. "post": {
  14. "security": [
  15. {
  16. "ApiKeyAuth": []
  17. }
  18. ],
  19. "consumes": [
  20. "application/json"
  21. ],
  22. "produces": [
  23. "application/json"
  24. ],
  25. "tags": [
  26. "SysApi"
  27. ],
  28. "summary": "创建基础api",
  29. "parameters": [
  30. {
  31. "description": "创建api",
  32. "name": "data",
  33. "in": "body",
  34. "required": true,
  35. "schema": {
  36. "type": "object",
  37. "$ref": "#/definitions/api.CreateApiParams"
  38. }
  39. }
  40. ],
  41. "responses": {
  42. "200": {
  43. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  44. "schema": {
  45. "type": "string"
  46. }
  47. }
  48. }
  49. }
  50. },
  51. "/api/deleteApi": {
  52. "post": {
  53. "security": [
  54. {
  55. "ApiKeyAuth": []
  56. }
  57. ],
  58. "consumes": [
  59. "application/json"
  60. ],
  61. "produces": [
  62. "application/json"
  63. ],
  64. "tags": [
  65. "SysApi"
  66. ],
  67. "summary": "删除指定api",
  68. "parameters": [
  69. {
  70. "description": "删除api",
  71. "name": "data",
  72. "in": "body",
  73. "required": true,
  74. "schema": {
  75. "type": "object",
  76. "$ref": "#/definitions/sysModel.SysApi"
  77. }
  78. }
  79. ],
  80. "responses": {
  81. "200": {
  82. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  83. "schema": {
  84. "type": "string"
  85. }
  86. }
  87. }
  88. }
  89. },
  90. "/api/getAllApis": {
  91. "post": {
  92. "security": [
  93. {
  94. "ApiKeyAuth": []
  95. }
  96. ],
  97. "consumes": [
  98. "application/json"
  99. ],
  100. "produces": [
  101. "application/json"
  102. ],
  103. "tags": [
  104. "SysApi"
  105. ],
  106. "summary": "获取所有的Api 不分页",
  107. "responses": {
  108. "200": {
  109. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  110. "schema": {
  111. "type": "string"
  112. }
  113. }
  114. }
  115. }
  116. },
  117. "/api/getApiById": {
  118. "post": {
  119. "security": [
  120. {
  121. "ApiKeyAuth": []
  122. }
  123. ],
  124. "consumes": [
  125. "application/json"
  126. ],
  127. "produces": [
  128. "application/json"
  129. ],
  130. "tags": [
  131. "SysApi"
  132. ],
  133. "summary": "根据id获取api",
  134. "parameters": [
  135. {
  136. "description": "分页获取用户列表",
  137. "name": "data",
  138. "in": "body",
  139. "required": true,
  140. "schema": {
  141. "type": "object",
  142. "$ref": "#/definitions/modelInterface.PageInfo"
  143. }
  144. }
  145. ],
  146. "responses": {
  147. "200": {
  148. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  149. "schema": {
  150. "type": "string"
  151. }
  152. }
  153. }
  154. }
  155. },
  156. "/api/getApiList": {
  157. "post": {
  158. "security": [
  159. {
  160. "ApiKeyAuth": []
  161. }
  162. ],
  163. "consumes": [
  164. "application/json"
  165. ],
  166. "produces": [
  167. "application/json"
  168. ],
  169. "tags": [
  170. "SysApi"
  171. ],
  172. "summary": "分页获取API列表",
  173. "parameters": [
  174. {
  175. "description": "分页获取API列表",
  176. "name": "data",
  177. "in": "body",
  178. "required": true,
  179. "schema": {
  180. "type": "object",
  181. "$ref": "#/definitions/modelInterface.PageInfo"
  182. }
  183. }
  184. ],
  185. "responses": {
  186. "200": {
  187. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  188. "schema": {
  189. "type": "string"
  190. }
  191. }
  192. }
  193. }
  194. },
  195. "/api/updataApi": {
  196. "post": {
  197. "security": [
  198. {
  199. "ApiKeyAuth": []
  200. }
  201. ],
  202. "consumes": [
  203. "application/json"
  204. ],
  205. "produces": [
  206. "application/json"
  207. ],
  208. "tags": [
  209. "SysApi"
  210. ],
  211. "summary": "创建基础api",
  212. "parameters": [
  213. {
  214. "description": "创建api",
  215. "name": "data",
  216. "in": "body",
  217. "required": true,
  218. "schema": {
  219. "type": "object",
  220. "$ref": "#/definitions/api.CreateApiParams"
  221. }
  222. }
  223. ],
  224. "responses": {
  225. "200": {
  226. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  227. "schema": {
  228. "type": "string"
  229. }
  230. }
  231. }
  232. }
  233. },
  234. "/authority/createAuthority": {
  235. "post": {
  236. "security": [
  237. {
  238. "ApiKeyAuth": []
  239. }
  240. ],
  241. "consumes": [
  242. "application/json"
  243. ],
  244. "produces": [
  245. "application/json"
  246. ],
  247. "tags": [
  248. "authority"
  249. ],
  250. "summary": "创建角色",
  251. "parameters": [
  252. {
  253. "description": "创建角色",
  254. "name": "data",
  255. "in": "body",
  256. "required": true,
  257. "schema": {
  258. "type": "object",
  259. "$ref": "#/definitions/api.CreateAuthorityParams"
  260. }
  261. }
  262. ],
  263. "responses": {
  264. "200": {
  265. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  266. "schema": {
  267. "type": "string"
  268. }
  269. }
  270. }
  271. }
  272. },
  273. "/authority/deleteAuthority": {
  274. "post": {
  275. "security": [
  276. {
  277. "ApiKeyAuth": []
  278. }
  279. ],
  280. "consumes": [
  281. "application/json"
  282. ],
  283. "produces": [
  284. "application/json"
  285. ],
  286. "tags": [
  287. "authority"
  288. ],
  289. "summary": "删除角色",
  290. "parameters": [
  291. {
  292. "description": "删除角色",
  293. "name": "data",
  294. "in": "body",
  295. "required": true,
  296. "schema": {
  297. "type": "object",
  298. "$ref": "#/definitions/api.DeleteAuthorityPatams"
  299. }
  300. }
  301. ],
  302. "responses": {
  303. "200": {
  304. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  305. "schema": {
  306. "type": "string"
  307. }
  308. }
  309. }
  310. }
  311. },
  312. "/authority/getAuthorityList": {
  313. "post": {
  314. "security": [
  315. {
  316. "ApiKeyAuth": []
  317. }
  318. ],
  319. "consumes": [
  320. "application/json"
  321. ],
  322. "produces": [
  323. "application/json"
  324. ],
  325. "tags": [
  326. "authority"
  327. ],
  328. "summary": "分页获取角色列表",
  329. "parameters": [
  330. {
  331. "description": "分页获取用户列表",
  332. "name": "data",
  333. "in": "body",
  334. "required": true,
  335. "schema": {
  336. "type": "object",
  337. "$ref": "#/definitions/modelInterface.PageInfo"
  338. }
  339. }
  340. ],
  341. "responses": {
  342. "200": {
  343. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  344. "schema": {
  345. "type": "string"
  346. }
  347. }
  348. }
  349. }
  350. },
  351. "/authority/setDataAuthority": {
  352. "post": {
  353. "security": [
  354. {
  355. "ApiKeyAuth": []
  356. }
  357. ],
  358. "consumes": [
  359. "application/json"
  360. ],
  361. "produces": [
  362. "application/json"
  363. ],
  364. "tags": [
  365. "authority"
  366. ],
  367. "summary": "设置角色资源权限",
  368. "parameters": [
  369. {
  370. "description": "设置角色资源权限",
  371. "name": "data",
  372. "in": "body",
  373. "required": true,
  374. "schema": {
  375. "type": "object",
  376. "$ref": "#/definitions/sysModel.SysAuthority"
  377. }
  378. }
  379. ],
  380. "responses": {
  381. "200": {
  382. "description": "{\"success\":true,\"data\":{},\"msg\":\"设置成功\"}",
  383. "schema": {
  384. "type": "string"
  385. }
  386. }
  387. }
  388. }
  389. },
  390. "/base/captcha": {
  391. "post": {
  392. "security": [
  393. {
  394. "ApiKeyAuth": []
  395. }
  396. ],
  397. "consumes": [
  398. "application/json"
  399. ],
  400. "produces": [
  401. "application/json"
  402. ],
  403. "tags": [
  404. "base"
  405. ],
  406. "summary": "生成验证码",
  407. "parameters": [
  408. {
  409. "description": "生成验证码",
  410. "name": "data",
  411. "in": "body",
  412. "required": true,
  413. "schema": {
  414. "type": "object",
  415. "$ref": "#/definitions/modelInterface.PageInfo"
  416. }
  417. }
  418. ],
  419. "responses": {
  420. "200": {
  421. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  422. "schema": {
  423. "type": "string"
  424. }
  425. }
  426. }
  427. }
  428. },
  429. "/base/captcha/": {
  430. "get": {
  431. "security": [
  432. {
  433. "ApiKeyAuth": []
  434. }
  435. ],
  436. "consumes": [
  437. "application/json"
  438. ],
  439. "produces": [
  440. "application/json"
  441. ],
  442. "tags": [
  443. "base"
  444. ],
  445. "summary": "生成验证码图片路径",
  446. "parameters": [
  447. {
  448. "description": "生成验证码图片路径",
  449. "name": "data",
  450. "in": "body",
  451. "required": true,
  452. "schema": {
  453. "type": "object",
  454. "$ref": "#/definitions/modelInterface.PageInfo"
  455. }
  456. }
  457. ],
  458. "responses": {
  459. "200": {
  460. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  461. "schema": {
  462. "type": "string"
  463. }
  464. }
  465. }
  466. }
  467. },
  468. "/base/login": {
  469. "post": {
  470. "produces": [
  471. "application/json"
  472. ],
  473. "tags": [
  474. "Base"
  475. ],
  476. "summary": "用户登录",
  477. "parameters": [
  478. {
  479. "description": "用户登录接口",
  480. "name": "data",
  481. "in": "body",
  482. "required": true,
  483. "schema": {
  484. "type": "object",
  485. "$ref": "#/definitions/api.RegistAndLoginStuct"
  486. }
  487. }
  488. ],
  489. "responses": {
  490. "200": {
  491. "description": "{\"success\":true,\"data\":{},\"msg\":\"登陆成功\"}",
  492. "schema": {
  493. "type": "string"
  494. }
  495. }
  496. }
  497. }
  498. },
  499. "/base/regist": {
  500. "post": {
  501. "produces": [
  502. "application/json"
  503. ],
  504. "tags": [
  505. "Base"
  506. ],
  507. "summary": "用户注册账号",
  508. "parameters": [
  509. {
  510. "description": "用户注册接口",
  511. "name": "data",
  512. "in": "body",
  513. "required": true,
  514. "schema": {
  515. "type": "object",
  516. "$ref": "#/definitions/sysModel.SysUser"
  517. }
  518. }
  519. ],
  520. "responses": {
  521. "200": {
  522. "description": "{\"success\":true,\"data\":{},\"msg\":\"注册成功\"}",
  523. "schema": {
  524. "type": "string"
  525. }
  526. }
  527. }
  528. }
  529. },
  530. "/casbin/CasbinTest": {
  531. "get": {
  532. "security": [
  533. {
  534. "ApiKeyAuth": []
  535. }
  536. ],
  537. "consumes": [
  538. "application/json"
  539. ],
  540. "produces": [
  541. "application/json"
  542. ],
  543. "tags": [
  544. "casbin"
  545. ],
  546. "summary": "casb RBAC RESTFUL测试路由",
  547. "parameters": [
  548. {
  549. "description": "获取权限列表",
  550. "name": "data",
  551. "in": "body",
  552. "required": true,
  553. "schema": {
  554. "type": "object",
  555. "$ref": "#/definitions/api.CreateAuthorityParams"
  556. }
  557. }
  558. ],
  559. "responses": {
  560. "200": {
  561. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  562. "schema": {
  563. "type": "string"
  564. }
  565. }
  566. }
  567. }
  568. },
  569. "/casbin/casbinPUpdata": {
  570. "post": {
  571. "security": [
  572. {
  573. "ApiKeyAuth": []
  574. }
  575. ],
  576. "consumes": [
  577. "application/json"
  578. ],
  579. "produces": [
  580. "application/json"
  581. ],
  582. "tags": [
  583. "casbin"
  584. ],
  585. "summary": "更改角色api权限",
  586. "parameters": [
  587. {
  588. "description": "更改角色api权限",
  589. "name": "data",
  590. "in": "body",
  591. "required": true,
  592. "schema": {
  593. "type": "object",
  594. "$ref": "#/definitions/sysModel.CasbinInReceive"
  595. }
  596. }
  597. ],
  598. "responses": {
  599. "200": {
  600. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  601. "schema": {
  602. "type": "string"
  603. }
  604. }
  605. }
  606. }
  607. },
  608. "/casbin/getPolicyPathByAuthorityId": {
  609. "post": {
  610. "security": [
  611. {
  612. "ApiKeyAuth": []
  613. }
  614. ],
  615. "consumes": [
  616. "application/json"
  617. ],
  618. "produces": [
  619. "application/json"
  620. ],
  621. "tags": [
  622. "casbin"
  623. ],
  624. "summary": "获取权限列表",
  625. "parameters": [
  626. {
  627. "description": "获取权限列表",
  628. "name": "data",
  629. "in": "body",
  630. "required": true,
  631. "schema": {
  632. "type": "object",
  633. "$ref": "#/definitions/api.CreateAuthorityParams"
  634. }
  635. }
  636. ],
  637. "responses": {
  638. "200": {
  639. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  640. "schema": {
  641. "type": "string"
  642. }
  643. }
  644. }
  645. }
  646. },
  647. "/customer/createExaCustomer": {
  648. "post": {
  649. "security": [
  650. {
  651. "ApiKeyAuth": []
  652. }
  653. ],
  654. "consumes": [
  655. "application/json"
  656. ],
  657. "produces": [
  658. "application/json"
  659. ],
  660. "tags": [
  661. "SysApi"
  662. ],
  663. "summary": "创建客户",
  664. "parameters": [
  665. {
  666. "description": "创建客户",
  667. "name": "data",
  668. "in": "body",
  669. "required": true,
  670. "schema": {
  671. "type": "object",
  672. "$ref": "#/definitions/dbModel.ExaCustomer"
  673. }
  674. }
  675. ],
  676. "responses": {
  677. "200": {
  678. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  679. "schema": {
  680. "type": "string"
  681. }
  682. }
  683. }
  684. }
  685. },
  686. "/customer/deleteExaCustomer": {
  687. "post": {
  688. "security": [
  689. {
  690. "ApiKeyAuth": []
  691. }
  692. ],
  693. "consumes": [
  694. "application/json"
  695. ],
  696. "produces": [
  697. "application/json"
  698. ],
  699. "tags": [
  700. "SysApi"
  701. ],
  702. "summary": "删除客户",
  703. "parameters": [
  704. {
  705. "description": "删除客户",
  706. "name": "data",
  707. "in": "body",
  708. "required": true,
  709. "schema": {
  710. "type": "object",
  711. "$ref": "#/definitions/dbModel.ExaCustomer"
  712. }
  713. }
  714. ],
  715. "responses": {
  716. "200": {
  717. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  718. "schema": {
  719. "type": "string"
  720. }
  721. }
  722. }
  723. }
  724. },
  725. "/customer/getExaCustomer": {
  726. "post": {
  727. "security": [
  728. {
  729. "ApiKeyAuth": []
  730. }
  731. ],
  732. "consumes": [
  733. "application/json"
  734. ],
  735. "produces": [
  736. "application/json"
  737. ],
  738. "tags": [
  739. "SysApi"
  740. ],
  741. "summary": "获取单一客户信息",
  742. "parameters": [
  743. {
  744. "description": "获取单一客户信息",
  745. "name": "data",
  746. "in": "body",
  747. "required": true,
  748. "schema": {
  749. "type": "object",
  750. "$ref": "#/definitions/dbModel.ExaCustomer"
  751. }
  752. }
  753. ],
  754. "responses": {
  755. "200": {
  756. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  757. "schema": {
  758. "type": "string"
  759. }
  760. }
  761. }
  762. }
  763. },
  764. "/customer/getExaCustomerList": {
  765. "post": {
  766. "security": [
  767. {
  768. "ApiKeyAuth": []
  769. }
  770. ],
  771. "consumes": [
  772. "application/json"
  773. ],
  774. "produces": [
  775. "application/json"
  776. ],
  777. "tags": [
  778. "SysApi"
  779. ],
  780. "summary": "获取权限客户列表",
  781. "parameters": [
  782. {
  783. "description": "获取权限客户列表",
  784. "name": "data",
  785. "in": "body",
  786. "required": true,
  787. "schema": {
  788. "type": "object",
  789. "$ref": "#/definitions/modelInterface.PageInfo"
  790. }
  791. }
  792. ],
  793. "responses": {
  794. "200": {
  795. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  796. "schema": {
  797. "type": "string"
  798. }
  799. }
  800. }
  801. }
  802. },
  803. "/customer/updataExaCustomer": {
  804. "post": {
  805. "security": [
  806. {
  807. "ApiKeyAuth": []
  808. }
  809. ],
  810. "consumes": [
  811. "application/json"
  812. ],
  813. "produces": [
  814. "application/json"
  815. ],
  816. "tags": [
  817. "SysApi"
  818. ],
  819. "summary": "更新客户信息",
  820. "parameters": [
  821. {
  822. "description": "创建客户",
  823. "name": "data",
  824. "in": "body",
  825. "required": true,
  826. "schema": {
  827. "type": "object",
  828. "$ref": "#/definitions/dbModel.ExaCustomer"
  829. }
  830. }
  831. ],
  832. "responses": {
  833. "200": {
  834. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  835. "schema": {
  836. "type": "string"
  837. }
  838. }
  839. }
  840. }
  841. },
  842. "/fileUploadAndDownload/breakpointContinue": {
  843. "post": {
  844. "security": [
  845. {
  846. "ApiKeyAuth": []
  847. }
  848. ],
  849. "consumes": [
  850. "multipart/form-data"
  851. ],
  852. "produces": [
  853. "application/json"
  854. ],
  855. "tags": [
  856. "ExaFileUploadAndDownload"
  857. ],
  858. "summary": "断点续传到服务器",
  859. "parameters": [
  860. {
  861. "type": "file",
  862. "description": "断点续传示例",
  863. "name": "file",
  864. "in": "formData",
  865. "required": true
  866. }
  867. ],
  868. "responses": {
  869. "200": {
  870. "description": "{\"success\":true,\"data\":{},\"msg\":\"上传成功\"}",
  871. "schema": {
  872. "type": "string"
  873. }
  874. }
  875. }
  876. }
  877. },
  878. "/fileUploadAndDownload/deleteFile": {
  879. "post": {
  880. "security": [
  881. {
  882. "ApiKeyAuth": []
  883. }
  884. ],
  885. "produces": [
  886. "application/json"
  887. ],
  888. "tags": [
  889. "ExaFileUploadAndDownload"
  890. ],
  891. "summary": "删除文件",
  892. "parameters": [
  893. {
  894. "description": "传入文件里面id即可",
  895. "name": "data",
  896. "in": "body",
  897. "required": true,
  898. "schema": {
  899. "type": "object",
  900. "$ref": "#/definitions/dbModel.ExaFileUploadAndDownload"
  901. }
  902. }
  903. ],
  904. "responses": {
  905. "200": {
  906. "description": "{\"success\":true,\"data\":{},\"msg\":\"返回成功\"}",
  907. "schema": {
  908. "type": "string"
  909. }
  910. }
  911. }
  912. }
  913. },
  914. "/fileUploadAndDownload/findFile": {
  915. "post": {
  916. "security": [
  917. {
  918. "ApiKeyAuth": []
  919. }
  920. ],
  921. "consumes": [
  922. "multipart/form-data"
  923. ],
  924. "produces": [
  925. "application/json"
  926. ],
  927. "tags": [
  928. "ExaFileUploadAndDownload"
  929. ],
  930. "summary": "查找文件",
  931. "parameters": [
  932. {
  933. "type": "file",
  934. "description": "查找文件",
  935. "name": "file",
  936. "in": "formData",
  937. "required": true
  938. }
  939. ],
  940. "responses": {
  941. "200": {
  942. "description": "{\"success\":true,\"data\":{},\"msg\":\"查找成功\"}",
  943. "schema": {
  944. "type": "string"
  945. }
  946. }
  947. }
  948. }
  949. },
  950. "/fileUploadAndDownload/getFileList": {
  951. "post": {
  952. "security": [
  953. {
  954. "ApiKeyAuth": []
  955. }
  956. ],
  957. "consumes": [
  958. "application/json"
  959. ],
  960. "produces": [
  961. "application/json"
  962. ],
  963. "tags": [
  964. "ExaFileUploadAndDownload"
  965. ],
  966. "summary": "分页文件列表",
  967. "parameters": [
  968. {
  969. "description": "分页获取文件户列表",
  970. "name": "data",
  971. "in": "body",
  972. "required": true,
  973. "schema": {
  974. "type": "object",
  975. "$ref": "#/definitions/modelInterface.PageInfo"
  976. }
  977. }
  978. ],
  979. "responses": {
  980. "200": {
  981. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  982. "schema": {
  983. "type": "string"
  984. }
  985. }
  986. }
  987. }
  988. },
  989. "/fileUploadAndDownload/removeChunk": {
  990. "post": {
  991. "security": [
  992. {
  993. "ApiKeyAuth": []
  994. }
  995. ],
  996. "consumes": [
  997. "multipart/form-data"
  998. ],
  999. "produces": [
  1000. "application/json"
  1001. ],
  1002. "tags": [
  1003. "ExaFileUploadAndDownload"
  1004. ],
  1005. "summary": "删除切片",
  1006. "parameters": [
  1007. {
  1008. "type": "file",
  1009. "description": "查找文件",
  1010. "name": "file",
  1011. "in": "formData",
  1012. "required": true
  1013. }
  1014. ],
  1015. "responses": {
  1016. "200": {
  1017. "description": "{\"success\":true,\"data\":{},\"msg\":\"查找成功\"}",
  1018. "schema": {
  1019. "type": "string"
  1020. }
  1021. }
  1022. }
  1023. }
  1024. },
  1025. "/fileUploadAndDownload/upload": {
  1026. "post": {
  1027. "security": [
  1028. {
  1029. "ApiKeyAuth": []
  1030. }
  1031. ],
  1032. "consumes": [
  1033. "multipart/form-data"
  1034. ],
  1035. "produces": [
  1036. "application/json"
  1037. ],
  1038. "tags": [
  1039. "ExaFileUploadAndDownload"
  1040. ],
  1041. "summary": "上传文件示例",
  1042. "parameters": [
  1043. {
  1044. "type": "file",
  1045. "description": "上传文件示例",
  1046. "name": "file",
  1047. "in": "formData",
  1048. "required": true
  1049. }
  1050. ],
  1051. "responses": {
  1052. "200": {
  1053. "description": "{\"success\":true,\"data\":{},\"msg\":\"上传成功\"}",
  1054. "schema": {
  1055. "type": "string"
  1056. }
  1057. }
  1058. }
  1059. }
  1060. },
  1061. "/jwt/jsonInBlacklist": {
  1062. "post": {
  1063. "security": [
  1064. {
  1065. "ApiKeyAuth": []
  1066. }
  1067. ],
  1068. "consumes": [
  1069. "application/json"
  1070. ],
  1071. "produces": [
  1072. "application/json"
  1073. ],
  1074. "tags": [
  1075. "jwt"
  1076. ],
  1077. "summary": "jwt加入黑名单",
  1078. "responses": {
  1079. "200": {
  1080. "description": "{\"success\":true,\"data\":{},\"msg\":\"拉黑成功\"}",
  1081. "schema": {
  1082. "type": "string"
  1083. }
  1084. }
  1085. }
  1086. }
  1087. },
  1088. "/menu/addBaseMenu": {
  1089. "post": {
  1090. "security": [
  1091. {
  1092. "ApiKeyAuth": []
  1093. }
  1094. ],
  1095. "consumes": [
  1096. "application/json"
  1097. ],
  1098. "produces": [
  1099. "application/json"
  1100. ],
  1101. "tags": [
  1102. "menu"
  1103. ],
  1104. "summary": "新增菜单",
  1105. "parameters": [
  1106. {
  1107. "description": "新增菜单",
  1108. "name": "data",
  1109. "in": "body",
  1110. "required": true,
  1111. "schema": {
  1112. "type": "object",
  1113. "$ref": "#/definitions/sysModel.SysBaseMenu"
  1114. }
  1115. }
  1116. ],
  1117. "responses": {
  1118. "200": {
  1119. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  1120. "schema": {
  1121. "type": "string"
  1122. }
  1123. }
  1124. }
  1125. }
  1126. },
  1127. "/menu/addMenuAuthority": {
  1128. "post": {
  1129. "security": [
  1130. {
  1131. "ApiKeyAuth": []
  1132. }
  1133. ],
  1134. "consumes": [
  1135. "application/json"
  1136. ],
  1137. "produces": [
  1138. "application/json"
  1139. ],
  1140. "tags": [
  1141. "authorityAndMenu"
  1142. ],
  1143. "summary": "获取指定角色menu",
  1144. "parameters": [
  1145. {
  1146. "description": "增加menu和角色关联关系",
  1147. "name": "data",
  1148. "in": "body",
  1149. "required": true,
  1150. "schema": {
  1151. "type": "object",
  1152. "$ref": "#/definitions/api.AuthorityIdInfo"
  1153. }
  1154. }
  1155. ],
  1156. "responses": {
  1157. "200": {
  1158. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  1159. "schema": {
  1160. "type": "string"
  1161. }
  1162. }
  1163. }
  1164. }
  1165. },
  1166. "/menu/deleteBaseMenu": {
  1167. "post": {
  1168. "security": [
  1169. {
  1170. "ApiKeyAuth": []
  1171. }
  1172. ],
  1173. "consumes": [
  1174. "application/json"
  1175. ],
  1176. "produces": [
  1177. "application/json"
  1178. ],
  1179. "tags": [
  1180. "menu"
  1181. ],
  1182. "summary": "删除菜单",
  1183. "parameters": [
  1184. {
  1185. "description": "删除菜单",
  1186. "name": "data",
  1187. "in": "body",
  1188. "required": true,
  1189. "schema": {
  1190. "type": "object",
  1191. "$ref": "#/definitions/api.IdInfo"
  1192. }
  1193. }
  1194. ],
  1195. "responses": {
  1196. "200": {
  1197. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  1198. "schema": {
  1199. "type": "string"
  1200. }
  1201. }
  1202. }
  1203. }
  1204. },
  1205. "/menu/getBaseMenuById": {
  1206. "post": {
  1207. "security": [
  1208. {
  1209. "ApiKeyAuth": []
  1210. }
  1211. ],
  1212. "consumes": [
  1213. "application/json"
  1214. ],
  1215. "produces": [
  1216. "application/json"
  1217. ],
  1218. "tags": [
  1219. "menu"
  1220. ],
  1221. "summary": "根据id获取菜单",
  1222. "parameters": [
  1223. {
  1224. "description": "根据id获取菜单",
  1225. "name": "data",
  1226. "in": "body",
  1227. "required": true,
  1228. "schema": {
  1229. "type": "object",
  1230. "$ref": "#/definitions/api.GetById"
  1231. }
  1232. }
  1233. ],
  1234. "responses": {
  1235. "200": {
  1236. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  1237. "schema": {
  1238. "type": "string"
  1239. }
  1240. }
  1241. }
  1242. }
  1243. },
  1244. "/menu/getBaseMenuTree": {
  1245. "post": {
  1246. "security": [
  1247. {
  1248. "ApiKeyAuth": []
  1249. }
  1250. ],
  1251. "produces": [
  1252. "application/json"
  1253. ],
  1254. "tags": [
  1255. "authorityAndMenu"
  1256. ],
  1257. "summary": "获取用户动态路由",
  1258. "parameters": [
  1259. {
  1260. "description": "可以什么都不填",
  1261. "name": "data",
  1262. "in": "body",
  1263. "required": true,
  1264. "schema": {
  1265. "type": "object",
  1266. "$ref": "#/definitions/api.RegistAndLoginStuct"
  1267. }
  1268. }
  1269. ],
  1270. "responses": {
  1271. "200": {
  1272. "description": "{\"success\":true,\"data\":{},\"msg\":\"返回成功\"}",
  1273. "schema": {
  1274. "type": "string"
  1275. }
  1276. }
  1277. }
  1278. }
  1279. },
  1280. "/menu/getMenu": {
  1281. "post": {
  1282. "security": [
  1283. {
  1284. "ApiKeyAuth": []
  1285. }
  1286. ],
  1287. "produces": [
  1288. "application/json"
  1289. ],
  1290. "tags": [
  1291. "authorityAndMenu"
  1292. ],
  1293. "summary": "获取用户动态路由",
  1294. "parameters": [
  1295. {
  1296. "description": "可以什么都不填",
  1297. "name": "data",
  1298. "in": "body",
  1299. "required": true,
  1300. "schema": {
  1301. "type": "object",
  1302. "$ref": "#/definitions/api.RegistAndLoginStuct"
  1303. }
  1304. }
  1305. ],
  1306. "responses": {
  1307. "200": {
  1308. "description": "{\"success\":true,\"data\":{},\"msg\":\"返回成功\"}",
  1309. "schema": {
  1310. "type": "string"
  1311. }
  1312. }
  1313. }
  1314. }
  1315. },
  1316. "/menu/getMenuList": {
  1317. "post": {
  1318. "security": [
  1319. {
  1320. "ApiKeyAuth": []
  1321. }
  1322. ],
  1323. "consumes": [
  1324. "application/json"
  1325. ],
  1326. "produces": [
  1327. "application/json"
  1328. ],
  1329. "tags": [
  1330. "menu"
  1331. ],
  1332. "summary": "分页获取基础menu列表",
  1333. "parameters": [
  1334. {
  1335. "description": "分页获取基础menu列表",
  1336. "name": "data",
  1337. "in": "body",
  1338. "required": true,
  1339. "schema": {
  1340. "type": "object",
  1341. "$ref": "#/definitions/modelInterface.PageInfo"
  1342. }
  1343. }
  1344. ],
  1345. "responses": {
  1346. "200": {
  1347. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  1348. "schema": {
  1349. "type": "string"
  1350. }
  1351. }
  1352. }
  1353. }
  1354. },
  1355. "/menu/updataBaseMen": {
  1356. "post": {
  1357. "security": [
  1358. {
  1359. "ApiKeyAuth": []
  1360. }
  1361. ],
  1362. "consumes": [
  1363. "application/json"
  1364. ],
  1365. "produces": [
  1366. "application/json"
  1367. ],
  1368. "tags": [
  1369. "menu"
  1370. ],
  1371. "summary": "更新菜单",
  1372. "parameters": [
  1373. {
  1374. "description": "更新菜单",
  1375. "name": "data",
  1376. "in": "body",
  1377. "required": true,
  1378. "schema": {
  1379. "type": "object",
  1380. "$ref": "#/definitions/sysModel.SysBaseMenu"
  1381. }
  1382. }
  1383. ],
  1384. "responses": {
  1385. "200": {
  1386. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  1387. "schema": {
  1388. "type": "string"
  1389. }
  1390. }
  1391. }
  1392. }
  1393. },
  1394. "/system/ReloadSystem": {
  1395. "post": {
  1396. "security": [
  1397. {
  1398. "ApiKeyAuth": []
  1399. }
  1400. ],
  1401. "produces": [
  1402. "application/json"
  1403. ],
  1404. "tags": [
  1405. "system"
  1406. ],
  1407. "summary": "设置配置文件内容",
  1408. "parameters": [
  1409. {
  1410. "description": "设置配置文件内容",
  1411. "name": "data",
  1412. "in": "body",
  1413. "required": true,
  1414. "schema": {
  1415. "type": "object",
  1416. "$ref": "#/definitions/sysModel.System"
  1417. }
  1418. }
  1419. ],
  1420. "responses": {
  1421. "200": {
  1422. "description": "{\"success\":true,\"data\":{},\"msg\":\"返回成功\"}",
  1423. "schema": {
  1424. "type": "string"
  1425. }
  1426. }
  1427. }
  1428. }
  1429. },
  1430. "/system/getSystemConfig": {
  1431. "post": {
  1432. "security": [
  1433. {
  1434. "ApiKeyAuth": []
  1435. }
  1436. ],
  1437. "produces": [
  1438. "application/json"
  1439. ],
  1440. "tags": [
  1441. "system"
  1442. ],
  1443. "summary": "获取配置文件内容",
  1444. "responses": {
  1445. "200": {
  1446. "description": "{\"success\":true,\"data\":{},\"msg\":\"返回成功\"}",
  1447. "schema": {
  1448. "type": "string"
  1449. }
  1450. }
  1451. }
  1452. }
  1453. },
  1454. "/system/setSystemConfig": {
  1455. "post": {
  1456. "security": [
  1457. {
  1458. "ApiKeyAuth": []
  1459. }
  1460. ],
  1461. "produces": [
  1462. "application/json"
  1463. ],
  1464. "tags": [
  1465. "system"
  1466. ],
  1467. "summary": "设置配置文件内容",
  1468. "parameters": [
  1469. {
  1470. "description": "设置配置文件内容",
  1471. "name": "data",
  1472. "in": "body",
  1473. "required": true,
  1474. "schema": {
  1475. "type": "object",
  1476. "$ref": "#/definitions/sysModel.System"
  1477. }
  1478. }
  1479. ],
  1480. "responses": {
  1481. "200": {
  1482. "description": "{\"success\":true,\"data\":{},\"msg\":\"返回成功\"}",
  1483. "schema": {
  1484. "type": "string"
  1485. }
  1486. }
  1487. }
  1488. }
  1489. },
  1490. "/user/changePassword": {
  1491. "post": {
  1492. "security": [
  1493. {
  1494. "ApiKeyAuth": []
  1495. }
  1496. ],
  1497. "produces": [
  1498. "application/json"
  1499. ],
  1500. "tags": [
  1501. "SysUser"
  1502. ],
  1503. "summary": "用户修改密码",
  1504. "parameters": [
  1505. {
  1506. "description": "用户修改密码",
  1507. "name": "data",
  1508. "in": "body",
  1509. "required": true,
  1510. "schema": {
  1511. "type": "object",
  1512. "$ref": "#/definitions/api.ChangePasswordStutrc"
  1513. }
  1514. }
  1515. ],
  1516. "responses": {
  1517. "200": {
  1518. "description": "{\"success\":true,\"data\":{},\"msg\":\"修改成功\"}",
  1519. "schema": {
  1520. "type": "string"
  1521. }
  1522. }
  1523. }
  1524. }
  1525. },
  1526. "/user/getUserList": {
  1527. "post": {
  1528. "security": [
  1529. {
  1530. "ApiKeyAuth": []
  1531. }
  1532. ],
  1533. "consumes": [
  1534. "application/json"
  1535. ],
  1536. "produces": [
  1537. "application/json"
  1538. ],
  1539. "tags": [
  1540. "SysUser"
  1541. ],
  1542. "summary": "分页获取用户列表",
  1543. "parameters": [
  1544. {
  1545. "description": "分页获取用户列表",
  1546. "name": "data",
  1547. "in": "body",
  1548. "required": true,
  1549. "schema": {
  1550. "type": "object",
  1551. "$ref": "#/definitions/modelInterface.PageInfo"
  1552. }
  1553. }
  1554. ],
  1555. "responses": {
  1556. "200": {
  1557. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  1558. "schema": {
  1559. "type": "string"
  1560. }
  1561. }
  1562. }
  1563. }
  1564. },
  1565. "/user/setUserAuthority": {
  1566. "post": {
  1567. "security": [
  1568. {
  1569. "ApiKeyAuth": []
  1570. }
  1571. ],
  1572. "consumes": [
  1573. "application/json"
  1574. ],
  1575. "produces": [
  1576. "application/json"
  1577. ],
  1578. "tags": [
  1579. "SysUser"
  1580. ],
  1581. "summary": "设置用户权限",
  1582. "parameters": [
  1583. {
  1584. "description": "设置用户权限",
  1585. "name": "data",
  1586. "in": "body",
  1587. "required": true,
  1588. "schema": {
  1589. "type": "object",
  1590. "$ref": "#/definitions/api.SetUserAuth"
  1591. }
  1592. }
  1593. ],
  1594. "responses": {
  1595. "200": {
  1596. "description": "{\"success\":true,\"data\":{},\"msg\":\"修改成功\"}",
  1597. "schema": {
  1598. "type": "string"
  1599. }
  1600. }
  1601. }
  1602. }
  1603. },
  1604. "/user/uploadHeaderImg": {
  1605. "post": {
  1606. "security": [
  1607. {
  1608. "ApiKeyAuth": []
  1609. }
  1610. ],
  1611. "consumes": [
  1612. "multipart/form-data"
  1613. ],
  1614. "produces": [
  1615. "application/json"
  1616. ],
  1617. "tags": [
  1618. "SysUser"
  1619. ],
  1620. "summary": "用户上传头像",
  1621. "parameters": [
  1622. {
  1623. "type": "file",
  1624. "description": "用户上传头像",
  1625. "name": "headerImg",
  1626. "in": "formData",
  1627. "required": true
  1628. },
  1629. {
  1630. "type": "string",
  1631. "description": "用户上传头像",
  1632. "name": "username",
  1633. "in": "formData",
  1634. "required": true
  1635. }
  1636. ],
  1637. "responses": {
  1638. "200": {
  1639. "description": "{\"success\":true,\"data\":{},\"msg\":\"上传成功\"}",
  1640. "schema": {
  1641. "type": "string"
  1642. }
  1643. }
  1644. }
  1645. }
  1646. },
  1647. "/workflow/createWorkFlow": {
  1648. "post": {
  1649. "produces": [
  1650. "application/json"
  1651. ],
  1652. "tags": [
  1653. "workflow"
  1654. ],
  1655. "summary": "注册工作流",
  1656. "parameters": [
  1657. {
  1658. "description": "注册工作流接口",
  1659. "name": "data",
  1660. "in": "body",
  1661. "required": true,
  1662. "schema": {
  1663. "type": "object",
  1664. "$ref": "#/definitions/sysModel.SysWorkflow"
  1665. }
  1666. }
  1667. ],
  1668. "responses": {
  1669. "200": {
  1670. "description": "{\"success\":true,\"data\":{},\"msg\":\"注册成功\"}",
  1671. "schema": {
  1672. "type": "string"
  1673. }
  1674. }
  1675. }
  1676. }
  1677. }
  1678. },
  1679. "definitions": {
  1680. "api.AddMenuAuthorityInfo": {
  1681. "type": "object",
  1682. "properties": {
  1683. "authorityId": {
  1684. "type": "string"
  1685. },
  1686. "menus": {
  1687. "type": "array",
  1688. "items": {
  1689. "$ref": "#/definitions/sysModel.SysBaseMenu"
  1690. }
  1691. }
  1692. }
  1693. },
  1694. "api.AuthorityIdInfo": {
  1695. "type": "object",
  1696. "properties": {
  1697. "authorityId": {
  1698. "type": "string"
  1699. }
  1700. }
  1701. },
  1702. "api.ChangePasswordStutrc": {
  1703. "type": "object",
  1704. "properties": {
  1705. "newPassword": {
  1706. "type": "string"
  1707. },
  1708. "password": {
  1709. "type": "string"
  1710. },
  1711. "username": {
  1712. "type": "string"
  1713. }
  1714. }
  1715. },
  1716. "api.CreateApiParams": {
  1717. "type": "object",
  1718. "properties": {
  1719. "description": {
  1720. "type": "string"
  1721. },
  1722. "path": {
  1723. "type": "string"
  1724. }
  1725. }
  1726. },
  1727. "api.CreateAuthorityParams": {
  1728. "type": "object",
  1729. "properties": {
  1730. "authorityId": {
  1731. "type": "string"
  1732. },
  1733. "authorityName": {
  1734. "type": "string"
  1735. }
  1736. }
  1737. },
  1738. "api.DeleteAuthorityPatams": {
  1739. "type": "object",
  1740. "properties": {
  1741. "authorityId": {
  1742. "type": "integer"
  1743. }
  1744. }
  1745. },
  1746. "api.GetById": {
  1747. "type": "object",
  1748. "properties": {
  1749. "id": {
  1750. "type": "number"
  1751. }
  1752. }
  1753. },
  1754. "api.IdInfo": {
  1755. "type": "object",
  1756. "properties": {
  1757. "id": {
  1758. "type": "number"
  1759. }
  1760. }
  1761. },
  1762. "api.RegistAndLoginStuct": {
  1763. "type": "object",
  1764. "properties": {
  1765. "captcha": {
  1766. "type": "string"
  1767. },
  1768. "captchaId": {
  1769. "type": "string"
  1770. },
  1771. "password": {
  1772. "type": "string"
  1773. },
  1774. "username": {
  1775. "type": "string"
  1776. }
  1777. }
  1778. },
  1779. "api.SetUserAuth": {
  1780. "type": "object",
  1781. "properties": {
  1782. "authorityId": {
  1783. "type": "string"
  1784. },
  1785. "uuid": {
  1786. "type": "string"
  1787. }
  1788. }
  1789. },
  1790. "config.CasbinConfig": {
  1791. "type": "object",
  1792. "properties": {
  1793. "modelPath": {
  1794. "description": "casbin model地址配置",
  1795. "type": "string"
  1796. }
  1797. }
  1798. },
  1799. "config.Config": {
  1800. "type": "object",
  1801. "properties": {
  1802. "casbinConfig": {
  1803. "type": "object",
  1804. "$ref": "#/definitions/config.CasbinConfig"
  1805. },
  1806. "jwt": {
  1807. "type": "object",
  1808. "$ref": "#/definitions/config.JWT"
  1809. },
  1810. "mysqlAdmin": {
  1811. "type": "object",
  1812. "$ref": "#/definitions/config.MysqlAdmin"
  1813. },
  1814. "qiniu": {
  1815. "type": "object",
  1816. "$ref": "#/definitions/config.Qiniu"
  1817. },
  1818. "redisAdmin": {
  1819. "type": "object",
  1820. "$ref": "#/definitions/config.RedisAdmin"
  1821. },
  1822. "system": {
  1823. "type": "object",
  1824. "$ref": "#/definitions/config.System"
  1825. }
  1826. }
  1827. },
  1828. "config.JWT": {
  1829. "type": "object",
  1830. "properties": {
  1831. "signingKey": {
  1832. "type": "string"
  1833. }
  1834. }
  1835. },
  1836. "config.MysqlAdmin": {
  1837. "type": "object",
  1838. "properties": {
  1839. "config": {
  1840. "type": "string"
  1841. },
  1842. "dbname": {
  1843. "type": "string"
  1844. },
  1845. "password": {
  1846. "type": "string"
  1847. },
  1848. "path": {
  1849. "type": "string"
  1850. },
  1851. "username": {
  1852. "type": "string"
  1853. }
  1854. }
  1855. },
  1856. "config.Qiniu": {
  1857. "type": "object",
  1858. "properties": {
  1859. "accessKey": {
  1860. "type": "string"
  1861. },
  1862. "secretKey": {
  1863. "type": "string"
  1864. }
  1865. }
  1866. },
  1867. "config.RedisAdmin": {
  1868. "type": "object",
  1869. "properties": {
  1870. "addr": {
  1871. "type": "string"
  1872. },
  1873. "db": {
  1874. "type": "integer"
  1875. },
  1876. "password": {
  1877. "type": "string"
  1878. }
  1879. }
  1880. },
  1881. "config.System": {
  1882. "type": "object",
  1883. "properties": {
  1884. "addr": {
  1885. "type": "integer"
  1886. },
  1887. "env": {
  1888. "type": "string"
  1889. },
  1890. "useMultipoint": {
  1891. "type": "boolean"
  1892. }
  1893. }
  1894. },
  1895. "dbModel.ExaCustomer": {
  1896. "type": "object",
  1897. "properties": {
  1898. "customerName": {
  1899. "type": "string"
  1900. },
  1901. "customerPhoneData": {
  1902. "type": "string"
  1903. },
  1904. "sysUser": {
  1905. "type": "object",
  1906. "$ref": "#/definitions/sysModel.SysUser"
  1907. },
  1908. "sysUserAuthorityID": {
  1909. "type": "string"
  1910. },
  1911. "sysUserId": {
  1912. "type": "integer"
  1913. }
  1914. }
  1915. },
  1916. "dbModel.ExaFileUploadAndDownload": {
  1917. "type": "object",
  1918. "properties": {
  1919. "key": {
  1920. "type": "string"
  1921. },
  1922. "name": {
  1923. "type": "string"
  1924. },
  1925. "tag": {
  1926. "type": "string"
  1927. },
  1928. "url": {
  1929. "type": "string"
  1930. }
  1931. }
  1932. },
  1933. "modelInterface.PageInfo": {
  1934. "type": "object",
  1935. "properties": {
  1936. "page": {
  1937. "type": "integer"
  1938. },
  1939. "pageSize": {
  1940. "type": "integer"
  1941. }
  1942. }
  1943. },
  1944. "sysModel.CasbinInReceive": {
  1945. "type": "object",
  1946. "properties": {
  1947. "authorityId": {
  1948. "type": "string"
  1949. },
  1950. "casbinInfos": {
  1951. "type": "array",
  1952. "items": {
  1953. "$ref": "#/definitions/sysModel.CasbinInfo"
  1954. }
  1955. }
  1956. }
  1957. },
  1958. "sysModel.CasbinInfo": {
  1959. "type": "object",
  1960. "properties": {
  1961. "method": {
  1962. "type": "string"
  1963. },
  1964. "path": {
  1965. "type": "string"
  1966. }
  1967. }
  1968. },
  1969. "sysModel.SysApi": {
  1970. "type": "object",
  1971. "properties": {
  1972. "description": {
  1973. "type": "string"
  1974. },
  1975. "group": {
  1976. "type": "string"
  1977. },
  1978. "method": {
  1979. "type": "string"
  1980. },
  1981. "path": {
  1982. "type": "string"
  1983. }
  1984. }
  1985. },
  1986. "sysModel.SysAuthority": {
  1987. "type": "object",
  1988. "properties": {
  1989. "authorityId": {
  1990. "type": "string"
  1991. },
  1992. "authorityName": {
  1993. "type": "string"
  1994. },
  1995. "children": {
  1996. "type": "array",
  1997. "items": {
  1998. "$ref": "#/definitions/sysModel.SysAuthority"
  1999. }
  2000. },
  2001. "dataAuthorityId": {
  2002. "type": "array",
  2003. "items": {
  2004. "$ref": "#/definitions/sysModel.SysAuthority"
  2005. }
  2006. },
  2007. "parentId": {
  2008. "type": "string"
  2009. }
  2010. }
  2011. },
  2012. "sysModel.SysBaseMenu": {
  2013. "type": "object",
  2014. "properties": {
  2015. "children": {
  2016. "type": "array",
  2017. "items": {
  2018. "$ref": "#/definitions/sysModel.SysBaseMenu"
  2019. }
  2020. },
  2021. "component": {
  2022. "type": "string"
  2023. },
  2024. "hidden": {
  2025. "type": "boolean"
  2026. },
  2027. "icon": {
  2028. "type": "string"
  2029. },
  2030. "name": {
  2031. "type": "string"
  2032. },
  2033. "nickName": {
  2034. "type": "string"
  2035. },
  2036. "parentId": {
  2037. "type": "string"
  2038. },
  2039. "path": {
  2040. "type": "string"
  2041. },
  2042. "sort": {
  2043. "type": "string"
  2044. },
  2045. "title": {
  2046. "type": "string"
  2047. }
  2048. }
  2049. },
  2050. "sysModel.SysUser": {
  2051. "type": "object",
  2052. "properties": {
  2053. "authority": {
  2054. "type": "object",
  2055. "$ref": "#/definitions/sysModel.SysAuthority"
  2056. },
  2057. "authorityId": {
  2058. "type": "string"
  2059. },
  2060. "headerImg": {
  2061. "type": "string"
  2062. },
  2063. "nickName": {
  2064. "type": "string"
  2065. },
  2066. "userName": {
  2067. "type": "string"
  2068. },
  2069. "uuid": {
  2070. "type": "string"
  2071. }
  2072. }
  2073. },
  2074. "sysModel.SysWorkflow": {
  2075. "type": "object",
  2076. "properties": {
  2077. "workflowDescription": {
  2078. "description": "工作流描述",
  2079. "type": "string"
  2080. },
  2081. "workflowName": {
  2082. "description": "工作流英文id",
  2083. "type": "string"
  2084. },
  2085. "workflowNickName": {
  2086. "description": "工作流名称",
  2087. "type": "string"
  2088. },
  2089. "workflowStep": {
  2090. "description": "工作流步骤",
  2091. "type": "array",
  2092. "items": {
  2093. "$ref": "#/definitions/sysModel.SysWorkflowStepInfo"
  2094. }
  2095. }
  2096. }
  2097. },
  2098. "sysModel.SysWorkflowStepInfo": {
  2099. "type": "object",
  2100. "properties": {
  2101. "isEnd": {
  2102. "description": "是否是完结流节点",
  2103. "type": "boolean"
  2104. },
  2105. "isStrat": {
  2106. "description": "是否是开始流节点",
  2107. "type": "boolean"
  2108. },
  2109. "stepAuthorityID": {
  2110. "description": "操作者级别id",
  2111. "type": "string"
  2112. },
  2113. "stepName": {
  2114. "description": "工作流名称",
  2115. "type": "string"
  2116. },
  2117. "stepNo": {
  2118. "description": "步骤id (第几步)",
  2119. "type": "number"
  2120. },
  2121. "workflowID": {
  2122. "description": "所属工作流ID",
  2123. "type": "integer"
  2124. }
  2125. }
  2126. },
  2127. "sysModel.System": {
  2128. "type": "object",
  2129. "properties": {
  2130. "config": {
  2131. "type": "object",
  2132. "$ref": "#/definitions/config.Config"
  2133. }
  2134. }
  2135. }
  2136. },
  2137. "securityDefinitions": {
  2138. "ApiKeyAuth": {
  2139. "type": "apiKey",
  2140. "name": "x-token",
  2141. "in": "header"
  2142. }
  2143. }
  2144. }