You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1458 lines
45 KiB

5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
  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/login": {
  391. "post": {
  392. "produces": [
  393. "application/json"
  394. ],
  395. "tags": [
  396. "Base"
  397. ],
  398. "summary": "用户登录",
  399. "parameters": [
  400. {
  401. "description": "用户登录接口",
  402. "name": "data",
  403. "in": "body",
  404. "required": true,
  405. "schema": {
  406. "type": "object",
  407. "$ref": "#/definitions/api.RegistAndLoginStuct"
  408. }
  409. }
  410. ],
  411. "responses": {
  412. "200": {
  413. "description": "{\"success\":true,\"data\":{},\"msg\":\"登陆成功\"}",
  414. "schema": {
  415. "type": "string"
  416. }
  417. }
  418. }
  419. }
  420. },
  421. "/base/regist": {
  422. "post": {
  423. "produces": [
  424. "application/json"
  425. ],
  426. "tags": [
  427. "Base"
  428. ],
  429. "summary": "用户注册账号",
  430. "parameters": [
  431. {
  432. "description": "用户注册接口",
  433. "name": "data",
  434. "in": "body",
  435. "required": true,
  436. "schema": {
  437. "type": "object",
  438. "$ref": "#/definitions/sysModel.SysUser"
  439. }
  440. }
  441. ],
  442. "responses": {
  443. "200": {
  444. "description": "{\"success\":true,\"data\":{},\"msg\":\"注册成功\"}",
  445. "schema": {
  446. "type": "string"
  447. }
  448. }
  449. }
  450. }
  451. },
  452. "/casbin/casbinPUpdata": {
  453. "post": {
  454. "security": [
  455. {
  456. "ApiKeyAuth": []
  457. }
  458. ],
  459. "consumes": [
  460. "application/json"
  461. ],
  462. "produces": [
  463. "application/json"
  464. ],
  465. "tags": [
  466. "casbin"
  467. ],
  468. "summary": "更改角色api权限",
  469. "parameters": [
  470. {
  471. "description": "更改角色api权限",
  472. "name": "data",
  473. "in": "body",
  474. "required": true,
  475. "schema": {
  476. "type": "object",
  477. "$ref": "#/definitions/api.CreateAuthorityParams"
  478. }
  479. }
  480. ],
  481. "responses": {
  482. "200": {
  483. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  484. "schema": {
  485. "type": "string"
  486. }
  487. }
  488. }
  489. }
  490. },
  491. "/casbin/getPolicyPathByAuthorityId": {
  492. "post": {
  493. "security": [
  494. {
  495. "ApiKeyAuth": []
  496. }
  497. ],
  498. "consumes": [
  499. "application/json"
  500. ],
  501. "produces": [
  502. "application/json"
  503. ],
  504. "tags": [
  505. "casbin"
  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/api.CreateAuthorityParams"
  517. }
  518. }
  519. ],
  520. "responses": {
  521. "200": {
  522. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  523. "schema": {
  524. "type": "string"
  525. }
  526. }
  527. }
  528. }
  529. },
  530. "/fileUploadAndDownload/deleteFile": {
  531. "post": {
  532. "security": [
  533. {
  534. "ApiKeyAuth": []
  535. }
  536. ],
  537. "produces": [
  538. "application/json"
  539. ],
  540. "tags": [
  541. "ExaFileUploadAndDownload"
  542. ],
  543. "summary": "删除文件",
  544. "parameters": [
  545. {
  546. "description": "传入文件里面id即可",
  547. "name": "data",
  548. "in": "body",
  549. "required": true,
  550. "schema": {
  551. "type": "object",
  552. "$ref": "#/definitions/dbModel.ExaFileUploadAndDownload"
  553. }
  554. }
  555. ],
  556. "responses": {
  557. "200": {
  558. "description": "{\"success\":true,\"data\":{},\"msg\":\"返回成功\"}",
  559. "schema": {
  560. "type": "string"
  561. }
  562. }
  563. }
  564. }
  565. },
  566. "/fileUploadAndDownload/getFileList": {
  567. "post": {
  568. "security": [
  569. {
  570. "ApiKeyAuth": []
  571. }
  572. ],
  573. "consumes": [
  574. "application/json"
  575. ],
  576. "produces": [
  577. "application/json"
  578. ],
  579. "tags": [
  580. "ExaFileUploadAndDownload"
  581. ],
  582. "summary": "分页文件列表",
  583. "parameters": [
  584. {
  585. "description": "分页获取文件户列表",
  586. "name": "data",
  587. "in": "body",
  588. "required": true,
  589. "schema": {
  590. "type": "object",
  591. "$ref": "#/definitions/modelInterface.PageInfo"
  592. }
  593. }
  594. ],
  595. "responses": {
  596. "200": {
  597. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  598. "schema": {
  599. "type": "string"
  600. }
  601. }
  602. }
  603. }
  604. },
  605. "/fileUploadAndDownload/upload": {
  606. "post": {
  607. "security": [
  608. {
  609. "ApiKeyAuth": []
  610. }
  611. ],
  612. "consumes": [
  613. "multipart/form-data"
  614. ],
  615. "produces": [
  616. "application/json"
  617. ],
  618. "tags": [
  619. "ExaFileUploadAndDownload"
  620. ],
  621. "summary": "上传文件示例",
  622. "parameters": [
  623. {
  624. "type": "file",
  625. "description": "上传文件示例",
  626. "name": "file",
  627. "in": "formData",
  628. "required": true
  629. }
  630. ],
  631. "responses": {
  632. "200": {
  633. "description": "{\"success\":true,\"data\":{},\"msg\":\"上传成功\"}",
  634. "schema": {
  635. "type": "string"
  636. }
  637. }
  638. }
  639. }
  640. },
  641. "/jwt/jsonInBlacklist": {
  642. "post": {
  643. "security": [
  644. {
  645. "ApiKeyAuth": []
  646. }
  647. ],
  648. "consumes": [
  649. "application/json"
  650. ],
  651. "produces": [
  652. "application/json"
  653. ],
  654. "tags": [
  655. "jwt"
  656. ],
  657. "summary": "jwt加入黑名单",
  658. "responses": {
  659. "200": {
  660. "description": "{\"success\":true,\"data\":{},\"msg\":\"拉黑成功\"}",
  661. "schema": {
  662. "type": "string"
  663. }
  664. }
  665. }
  666. }
  667. },
  668. "/menu/addBaseMenu": {
  669. "post": {
  670. "security": [
  671. {
  672. "ApiKeyAuth": []
  673. }
  674. ],
  675. "consumes": [
  676. "application/json"
  677. ],
  678. "produces": [
  679. "application/json"
  680. ],
  681. "tags": [
  682. "menu"
  683. ],
  684. "summary": "新增菜单",
  685. "parameters": [
  686. {
  687. "description": "新增菜单",
  688. "name": "data",
  689. "in": "body",
  690. "required": true,
  691. "schema": {
  692. "type": "object",
  693. "$ref": "#/definitions/sysModel.SysBaseMenu"
  694. }
  695. }
  696. ],
  697. "responses": {
  698. "200": {
  699. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  700. "schema": {
  701. "type": "string"
  702. }
  703. }
  704. }
  705. }
  706. },
  707. "/menu/addMenuAuthority": {
  708. "post": {
  709. "security": [
  710. {
  711. "ApiKeyAuth": []
  712. }
  713. ],
  714. "consumes": [
  715. "application/json"
  716. ],
  717. "produces": [
  718. "application/json"
  719. ],
  720. "tags": [
  721. "authorityAndMenu"
  722. ],
  723. "summary": "获取指定角色menu",
  724. "parameters": [
  725. {
  726. "description": "增加menu和角色关联关系",
  727. "name": "data",
  728. "in": "body",
  729. "required": true,
  730. "schema": {
  731. "type": "object",
  732. "$ref": "#/definitions/api.AuthorityIdInfo"
  733. }
  734. }
  735. ],
  736. "responses": {
  737. "200": {
  738. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  739. "schema": {
  740. "type": "string"
  741. }
  742. }
  743. }
  744. }
  745. },
  746. "/menu/deleteBaseMenu": {
  747. "post": {
  748. "security": [
  749. {
  750. "ApiKeyAuth": []
  751. }
  752. ],
  753. "consumes": [
  754. "application/json"
  755. ],
  756. "produces": [
  757. "application/json"
  758. ],
  759. "tags": [
  760. "menu"
  761. ],
  762. "summary": "删除菜单",
  763. "parameters": [
  764. {
  765. "description": "删除菜单",
  766. "name": "data",
  767. "in": "body",
  768. "required": true,
  769. "schema": {
  770. "type": "object",
  771. "$ref": "#/definitions/api.IdInfo"
  772. }
  773. }
  774. ],
  775. "responses": {
  776. "200": {
  777. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  778. "schema": {
  779. "type": "string"
  780. }
  781. }
  782. }
  783. }
  784. },
  785. "/menu/getBaseMenuById": {
  786. "post": {
  787. "security": [
  788. {
  789. "ApiKeyAuth": []
  790. }
  791. ],
  792. "consumes": [
  793. "application/json"
  794. ],
  795. "produces": [
  796. "application/json"
  797. ],
  798. "tags": [
  799. "menu"
  800. ],
  801. "summary": "根据id获取菜单",
  802. "parameters": [
  803. {
  804. "description": "根据id获取菜单",
  805. "name": "data",
  806. "in": "body",
  807. "required": true,
  808. "schema": {
  809. "type": "object",
  810. "$ref": "#/definitions/api.GetById"
  811. }
  812. }
  813. ],
  814. "responses": {
  815. "200": {
  816. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  817. "schema": {
  818. "type": "string"
  819. }
  820. }
  821. }
  822. }
  823. },
  824. "/menu/getBaseMenuTree": {
  825. "post": {
  826. "security": [
  827. {
  828. "ApiKeyAuth": []
  829. }
  830. ],
  831. "produces": [
  832. "application/json"
  833. ],
  834. "tags": [
  835. "authorityAndMenu"
  836. ],
  837. "summary": "获取用户动态路由",
  838. "parameters": [
  839. {
  840. "description": "可以什么都不填",
  841. "name": "data",
  842. "in": "body",
  843. "required": true,
  844. "schema": {
  845. "type": "object",
  846. "$ref": "#/definitions/api.RegistAndLoginStuct"
  847. }
  848. }
  849. ],
  850. "responses": {
  851. "200": {
  852. "description": "{\"success\":true,\"data\":{},\"msg\":\"返回成功\"}",
  853. "schema": {
  854. "type": "string"
  855. }
  856. }
  857. }
  858. }
  859. },
  860. "/menu/getMenu": {
  861. "post": {
  862. "security": [
  863. {
  864. "ApiKeyAuth": []
  865. }
  866. ],
  867. "produces": [
  868. "application/json"
  869. ],
  870. "tags": [
  871. "authorityAndMenu"
  872. ],
  873. "summary": "获取用户动态路由",
  874. "parameters": [
  875. {
  876. "description": "可以什么都不填",
  877. "name": "data",
  878. "in": "body",
  879. "required": true,
  880. "schema": {
  881. "type": "object",
  882. "$ref": "#/definitions/api.RegistAndLoginStuct"
  883. }
  884. }
  885. ],
  886. "responses": {
  887. "200": {
  888. "description": "{\"success\":true,\"data\":{},\"msg\":\"返回成功\"}",
  889. "schema": {
  890. "type": "string"
  891. }
  892. }
  893. }
  894. }
  895. },
  896. "/menu/getMenuList": {
  897. "post": {
  898. "security": [
  899. {
  900. "ApiKeyAuth": []
  901. }
  902. ],
  903. "consumes": [
  904. "application/json"
  905. ],
  906. "produces": [
  907. "application/json"
  908. ],
  909. "tags": [
  910. "menu"
  911. ],
  912. "summary": "分页获取基础menu列表",
  913. "parameters": [
  914. {
  915. "description": "分页获取基础menu列表",
  916. "name": "data",
  917. "in": "body",
  918. "required": true,
  919. "schema": {
  920. "type": "object",
  921. "$ref": "#/definitions/modelInterface.PageInfo"
  922. }
  923. }
  924. ],
  925. "responses": {
  926. "200": {
  927. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  928. "schema": {
  929. "type": "string"
  930. }
  931. }
  932. }
  933. }
  934. },
  935. "/menu/updataBaseMen": {
  936. "post": {
  937. "security": [
  938. {
  939. "ApiKeyAuth": []
  940. }
  941. ],
  942. "consumes": [
  943. "application/json"
  944. ],
  945. "produces": [
  946. "application/json"
  947. ],
  948. "tags": [
  949. "menu"
  950. ],
  951. "summary": "更新菜单",
  952. "parameters": [
  953. {
  954. "description": "更新菜单",
  955. "name": "data",
  956. "in": "body",
  957. "required": true,
  958. "schema": {
  959. "type": "object",
  960. "$ref": "#/definitions/sysModel.SysBaseMenu"
  961. }
  962. }
  963. ],
  964. "responses": {
  965. "200": {
  966. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  967. "schema": {
  968. "type": "string"
  969. }
  970. }
  971. }
  972. }
  973. },
  974. "/user/changePassword": {
  975. "post": {
  976. "security": [
  977. {
  978. "ApiKeyAuth": []
  979. }
  980. ],
  981. "produces": [
  982. "application/json"
  983. ],
  984. "tags": [
  985. "SysUser"
  986. ],
  987. "summary": "用户修改密码",
  988. "parameters": [
  989. {
  990. "description": "用户修改密码",
  991. "name": "data",
  992. "in": "body",
  993. "required": true,
  994. "schema": {
  995. "type": "object",
  996. "$ref": "#/definitions/api.ChangePasswordStutrc"
  997. }
  998. }
  999. ],
  1000. "responses": {
  1001. "200": {
  1002. "description": "{\"success\":true,\"data\":{},\"msg\":\"修改成功\"}",
  1003. "schema": {
  1004. "type": "string"
  1005. }
  1006. }
  1007. }
  1008. }
  1009. },
  1010. "/user/getUserList": {
  1011. "post": {
  1012. "security": [
  1013. {
  1014. "ApiKeyAuth": []
  1015. }
  1016. ],
  1017. "consumes": [
  1018. "application/json"
  1019. ],
  1020. "produces": [
  1021. "application/json"
  1022. ],
  1023. "tags": [
  1024. "SysUser"
  1025. ],
  1026. "summary": "分页获取用户列表",
  1027. "parameters": [
  1028. {
  1029. "description": "分页获取用户列表",
  1030. "name": "data",
  1031. "in": "body",
  1032. "required": true,
  1033. "schema": {
  1034. "type": "object",
  1035. "$ref": "#/definitions/modelInterface.PageInfo"
  1036. }
  1037. }
  1038. ],
  1039. "responses": {
  1040. "200": {
  1041. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  1042. "schema": {
  1043. "type": "string"
  1044. }
  1045. }
  1046. }
  1047. }
  1048. },
  1049. "/user/setUserAuthority": {
  1050. "post": {
  1051. "security": [
  1052. {
  1053. "ApiKeyAuth": []
  1054. }
  1055. ],
  1056. "consumes": [
  1057. "application/json"
  1058. ],
  1059. "produces": [
  1060. "application/json"
  1061. ],
  1062. "tags": [
  1063. "SysUser"
  1064. ],
  1065. "summary": "设置用户权限",
  1066. "parameters": [
  1067. {
  1068. "description": "设置用户权限",
  1069. "name": "data",
  1070. "in": "body",
  1071. "required": true,
  1072. "schema": {
  1073. "type": "object",
  1074. "$ref": "#/definitions/api.SetUserAuth"
  1075. }
  1076. }
  1077. ],
  1078. "responses": {
  1079. "200": {
  1080. "description": "{\"success\":true,\"data\":{},\"msg\":\"修改成功\"}",
  1081. "schema": {
  1082. "type": "string"
  1083. }
  1084. }
  1085. }
  1086. }
  1087. },
  1088. "/user/uploadHeaderImg": {
  1089. "post": {
  1090. "security": [
  1091. {
  1092. "ApiKeyAuth": []
  1093. }
  1094. ],
  1095. "consumes": [
  1096. "multipart/form-data"
  1097. ],
  1098. "produces": [
  1099. "application/json"
  1100. ],
  1101. "tags": [
  1102. "SysUser"
  1103. ],
  1104. "summary": "用户上传头像",
  1105. "parameters": [
  1106. {
  1107. "type": "file",
  1108. "description": "用户上传头像",
  1109. "name": "headerImg",
  1110. "in": "formData",
  1111. "required": true
  1112. },
  1113. {
  1114. "type": "string",
  1115. "description": "用户上传头像",
  1116. "name": "username",
  1117. "in": "formData",
  1118. "required": true
  1119. }
  1120. ],
  1121. "responses": {
  1122. "200": {
  1123. "description": "{\"success\":true,\"data\":{},\"msg\":\"上传成功\"}",
  1124. "schema": {
  1125. "type": "string"
  1126. }
  1127. }
  1128. }
  1129. }
  1130. },
  1131. "/workflow/createWorkFlow": {
  1132. "post": {
  1133. "produces": [
  1134. "application/json"
  1135. ],
  1136. "tags": [
  1137. "workflow"
  1138. ],
  1139. "summary": "注册工作流",
  1140. "parameters": [
  1141. {
  1142. "description": "注册工作流接口",
  1143. "name": "data",
  1144. "in": "body",
  1145. "required": true,
  1146. "schema": {
  1147. "type": "object",
  1148. "$ref": "#/definitions/sysModel.SysWorkflow"
  1149. }
  1150. }
  1151. ],
  1152. "responses": {
  1153. "200": {
  1154. "description": "{\"success\":true,\"data\":{},\"msg\":\"注册成功\"}",
  1155. "schema": {
  1156. "type": "string"
  1157. }
  1158. }
  1159. }
  1160. }
  1161. }
  1162. },
  1163. "definitions": {
  1164. "api.AddMenuAuthorityInfo": {
  1165. "type": "object",
  1166. "properties": {
  1167. "authorityId": {
  1168. "type": "string"
  1169. },
  1170. "menus": {
  1171. "type": "array",
  1172. "items": {
  1173. "$ref": "#/definitions/sysModel.SysBaseMenu"
  1174. }
  1175. }
  1176. }
  1177. },
  1178. "api.AuthorityIdInfo": {
  1179. "type": "object",
  1180. "properties": {
  1181. "authorityId": {
  1182. "type": "string"
  1183. }
  1184. }
  1185. },
  1186. "api.ChangePasswordStutrc": {
  1187. "type": "object",
  1188. "properties": {
  1189. "newPassword": {
  1190. "type": "string"
  1191. },
  1192. "password": {
  1193. "type": "string"
  1194. },
  1195. "username": {
  1196. "type": "string"
  1197. }
  1198. }
  1199. },
  1200. "api.CreateApiParams": {
  1201. "type": "object",
  1202. "properties": {
  1203. "description": {
  1204. "type": "string"
  1205. },
  1206. "path": {
  1207. "type": "string"
  1208. }
  1209. }
  1210. },
  1211. "api.CreateAuthorityParams": {
  1212. "type": "object",
  1213. "properties": {
  1214. "authorityId": {
  1215. "type": "string"
  1216. },
  1217. "authorityName": {
  1218. "type": "string"
  1219. }
  1220. }
  1221. },
  1222. "api.DeleteAuthorityPatams": {
  1223. "type": "object",
  1224. "properties": {
  1225. "authorityId": {
  1226. "type": "integer"
  1227. }
  1228. }
  1229. },
  1230. "api.GetById": {
  1231. "type": "object",
  1232. "properties": {
  1233. "id": {
  1234. "type": "number"
  1235. }
  1236. }
  1237. },
  1238. "api.IdInfo": {
  1239. "type": "object",
  1240. "properties": {
  1241. "id": {
  1242. "type": "number"
  1243. }
  1244. }
  1245. },
  1246. "api.RegistAndLoginStuct": {
  1247. "type": "object",
  1248. "properties": {
  1249. "password": {
  1250. "type": "string"
  1251. },
  1252. "username": {
  1253. "type": "string"
  1254. }
  1255. }
  1256. },
  1257. "api.SetUserAuth": {
  1258. "type": "object",
  1259. "properties": {
  1260. "authorityId": {
  1261. "type": "string"
  1262. },
  1263. "uuid": {
  1264. "type": "string"
  1265. }
  1266. }
  1267. },
  1268. "dbModel.ExaFileUploadAndDownload": {
  1269. "type": "object",
  1270. "properties": {
  1271. "key": {
  1272. "type": "string"
  1273. },
  1274. "name": {
  1275. "type": "string"
  1276. },
  1277. "tag": {
  1278. "type": "string"
  1279. },
  1280. "url": {
  1281. "type": "string"
  1282. }
  1283. }
  1284. },
  1285. "modelInterface.PageInfo": {
  1286. "type": "object",
  1287. "properties": {
  1288. "page": {
  1289. "type": "integer"
  1290. },
  1291. "pageSize": {
  1292. "type": "integer"
  1293. }
  1294. }
  1295. },
  1296. "sysModel.SysApi": {
  1297. "type": "object",
  1298. "properties": {
  1299. "description": {
  1300. "type": "string"
  1301. },
  1302. "group": {
  1303. "type": "string"
  1304. },
  1305. "path": {
  1306. "type": "string"
  1307. }
  1308. }
  1309. },
  1310. "sysModel.SysAuthority": {
  1311. "type": "object",
  1312. "properties": {
  1313. "authorityId": {
  1314. "type": "string"
  1315. },
  1316. "authorityName": {
  1317. "type": "string"
  1318. },
  1319. "children": {
  1320. "type": "array",
  1321. "items": {
  1322. "$ref": "#/definitions/sysModel.SysAuthority"
  1323. }
  1324. },
  1325. "dataAuthorityId": {
  1326. "type": "array",
  1327. "items": {
  1328. "$ref": "#/definitions/sysModel.SysAuthority"
  1329. }
  1330. },
  1331. "parentId": {
  1332. "type": "string"
  1333. }
  1334. }
  1335. },
  1336. "sysModel.SysBaseMenu": {
  1337. "type": "object",
  1338. "properties": {
  1339. "children": {
  1340. "type": "array",
  1341. "items": {
  1342. "$ref": "#/definitions/sysModel.SysBaseMenu"
  1343. }
  1344. },
  1345. "component": {
  1346. "type": "string"
  1347. },
  1348. "hidden": {
  1349. "type": "boolean"
  1350. },
  1351. "icon": {
  1352. "type": "string"
  1353. },
  1354. "name": {
  1355. "type": "string"
  1356. },
  1357. "nickName": {
  1358. "type": "string"
  1359. },
  1360. "parentId": {
  1361. "type": "string"
  1362. },
  1363. "path": {
  1364. "type": "string"
  1365. },
  1366. "sort": {
  1367. "type": "string"
  1368. },
  1369. "title": {
  1370. "type": "string"
  1371. }
  1372. }
  1373. },
  1374. "sysModel.SysUser": {
  1375. "type": "object",
  1376. "properties": {
  1377. "authority": {
  1378. "type": "object",
  1379. "$ref": "#/definitions/sysModel.SysAuthority"
  1380. },
  1381. "authorityId": {
  1382. "type": "string"
  1383. },
  1384. "headerImg": {
  1385. "type": "string"
  1386. },
  1387. "nickName": {
  1388. "type": "string"
  1389. },
  1390. "userName": {
  1391. "type": "string"
  1392. },
  1393. "uuid": {
  1394. "type": "string"
  1395. }
  1396. }
  1397. },
  1398. "sysModel.SysWorkflow": {
  1399. "type": "object",
  1400. "properties": {
  1401. "workflowDescription": {
  1402. "description": "工作流描述",
  1403. "type": "string"
  1404. },
  1405. "workflowName": {
  1406. "description": "工作流英文id",
  1407. "type": "string"
  1408. },
  1409. "workflowNickName": {
  1410. "description": "工作流名称",
  1411. "type": "string"
  1412. },
  1413. "workflowStep": {
  1414. "description": "工作流步骤",
  1415. "type": "array",
  1416. "items": {
  1417. "$ref": "#/definitions/sysModel.SysWorkflowStepInfo"
  1418. }
  1419. }
  1420. }
  1421. },
  1422. "sysModel.SysWorkflowStepInfo": {
  1423. "type": "object",
  1424. "properties": {
  1425. "isEnd": {
  1426. "description": "是否是完结流节点",
  1427. "type": "boolean"
  1428. },
  1429. "isStrat": {
  1430. "description": "是否是开始流节点",
  1431. "type": "boolean"
  1432. },
  1433. "stepAuthorityID": {
  1434. "description": "操作者级别id",
  1435. "type": "string"
  1436. },
  1437. "stepName": {
  1438. "description": "工作流名称",
  1439. "type": "string"
  1440. },
  1441. "stepNo": {
  1442. "description": "步骤id (第几步)",
  1443. "type": "number"
  1444. },
  1445. "workflowID": {
  1446. "description": "所属工作流ID",
  1447. "type": "integer"
  1448. }
  1449. }
  1450. }
  1451. },
  1452. "securityDefinitions": {
  1453. "ApiKeyAuth": {
  1454. "type": "apiKey",
  1455. "name": "x-token",
  1456. "in": "header"
  1457. }
  1458. }
  1459. }