docs.go 68 KB

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