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.

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