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.

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