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.

2446 lines
76 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
  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/model.SysApi"
  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/model.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": "根据id获取api",
  137. "name": "data",
  138. "in": "body",
  139. "required": true,
  140. "schema": {
  141. "type": "object",
  142. "$ref": "#/definitions/request.GetById"
  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/request.SearchApiParams"
  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/updateApi": {
  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/model.SysApi"
  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/copyAuthority": {
  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/response.SysAuthorityCopyResponse"
  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/createAuthority": {
  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/model.SysAuthority"
  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/deleteAuthority": {
  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/model.SysAuthority"
  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/getAuthorityList": {
  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/request.PageInfo"
  377. }
  378. }
  379. ],
  380. "responses": {
  381. "200": {
  382. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  383. "schema": {
  384. "type": "string"
  385. }
  386. }
  387. }
  388. }
  389. },
  390. "/authority/setDataAuthority": {
  391. "post": {
  392. "security": [
  393. {
  394. "ApiKeyAuth": []
  395. }
  396. ],
  397. "consumes": [
  398. "application/json"
  399. ],
  400. "produces": [
  401. "application/json"
  402. ],
  403. "tags": [
  404. "authority"
  405. ],
  406. "summary": "设置角色资源权限",
  407. "parameters": [
  408. {
  409. "description": "设置角色资源权限",
  410. "name": "data",
  411. "in": "body",
  412. "required": true,
  413. "schema": {
  414. "type": "object",
  415. "$ref": "#/definitions/model.SysAuthority"
  416. }
  417. }
  418. ],
  419. "responses": {
  420. "200": {
  421. "description": "{\"success\":true,\"data\":{},\"msg\":\"设置成功\"}",
  422. "schema": {
  423. "type": "string"
  424. }
  425. }
  426. }
  427. }
  428. },
  429. "/authority/updateAuthority": {
  430. "post": {
  431. "security": [
  432. {
  433. "ApiKeyAuth": []
  434. }
  435. ],
  436. "consumes": [
  437. "application/json"
  438. ],
  439. "produces": [
  440. "application/json"
  441. ],
  442. "tags": [
  443. "authority"
  444. ],
  445. "summary": "设置角色资源权限",
  446. "parameters": [
  447. {
  448. "description": "设置角色资源权限",
  449. "name": "data",
  450. "in": "body",
  451. "required": true,
  452. "schema": {
  453. "type": "object",
  454. "$ref": "#/definitions/model.SysAuthority"
  455. }
  456. }
  457. ],
  458. "responses": {
  459. "200": {
  460. "description": "{\"success\":true,\"data\":{},\"msg\":\"设置成功\"}",
  461. "schema": {
  462. "type": "string"
  463. }
  464. }
  465. }
  466. }
  467. },
  468. "/autoCode/createTemp": {
  469. "post": {
  470. "security": [
  471. {
  472. "ApiKeyAuth": []
  473. }
  474. ],
  475. "consumes": [
  476. "application/json"
  477. ],
  478. "produces": [
  479. "application/json"
  480. ],
  481. "tags": [
  482. "SysApi"
  483. ],
  484. "summary": "自动代码模板",
  485. "parameters": [
  486. {
  487. "description": "创建自动代码",
  488. "name": "data",
  489. "in": "body",
  490. "required": true,
  491. "schema": {
  492. "type": "object",
  493. "$ref": "#/definitions/model.AutoCodeStruct"
  494. }
  495. }
  496. ],
  497. "responses": {
  498. "200": {
  499. "description": "{\"success\":true,\"data\":{},\"msg\":\"创建成功\"}",
  500. "schema": {
  501. "type": "string"
  502. }
  503. }
  504. }
  505. }
  506. },
  507. "/base/captcha": {
  508. "post": {
  509. "security": [
  510. {
  511. "ApiKeyAuth": []
  512. }
  513. ],
  514. "consumes": [
  515. "application/json"
  516. ],
  517. "produces": [
  518. "application/json"
  519. ],
  520. "tags": [
  521. "base"
  522. ],
  523. "summary": "生成验证码",
  524. "responses": {
  525. "200": {
  526. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  527. "schema": {
  528. "type": "string"
  529. }
  530. }
  531. }
  532. }
  533. },
  534. "/base/captcha/": {
  535. "get": {
  536. "security": [
  537. {
  538. "ApiKeyAuth": []
  539. }
  540. ],
  541. "consumes": [
  542. "application/json"
  543. ],
  544. "produces": [
  545. "application/json"
  546. ],
  547. "tags": [
  548. "base"
  549. ],
  550. "summary": "生成验证码图片路径",
  551. "responses": {
  552. "200": {
  553. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  554. "schema": {
  555. "type": "string"
  556. }
  557. }
  558. }
  559. }
  560. },
  561. "/base/login": {
  562. "post": {
  563. "produces": [
  564. "application/json"
  565. ],
  566. "tags": [
  567. "Base"
  568. ],
  569. "summary": "用户登录",
  570. "parameters": [
  571. {
  572. "description": "用户登录接口",
  573. "name": "data",
  574. "in": "body",
  575. "required": true,
  576. "schema": {
  577. "type": "object",
  578. "$ref": "#/definitions/request.RegisterAndLoginStruct"
  579. }
  580. }
  581. ],
  582. "responses": {
  583. "200": {
  584. "description": "{\"success\":true,\"data\":{},\"msg\":\"登陆成功\"}",
  585. "schema": {
  586. "type": "string"
  587. }
  588. }
  589. }
  590. }
  591. },
  592. "/base/register": {
  593. "post": {
  594. "produces": [
  595. "application/json"
  596. ],
  597. "tags": [
  598. "Base"
  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/model.SysUser"
  610. }
  611. }
  612. ],
  613. "responses": {
  614. "200": {
  615. "description": "{\"success\":true,\"data\":{},\"msg\":\"注册成功\"}",
  616. "schema": {
  617. "type": "string"
  618. }
  619. }
  620. }
  621. }
  622. },
  623. "/casbin/CasbinTest": {
  624. "get": {
  625. "security": [
  626. {
  627. "ApiKeyAuth": []
  628. }
  629. ],
  630. "consumes": [
  631. "application/json"
  632. ],
  633. "produces": [
  634. "application/json"
  635. ],
  636. "tags": [
  637. "casbin"
  638. ],
  639. "summary": "casb RBAC RESTFUL测试路由",
  640. "parameters": [
  641. {
  642. "description": "获取权限列表",
  643. "name": "data",
  644. "in": "body",
  645. "required": true,
  646. "schema": {
  647. "type": "object",
  648. "$ref": "#/definitions/request.CasbinInReceive"
  649. }
  650. }
  651. ],
  652. "responses": {
  653. "200": {
  654. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  655. "schema": {
  656. "type": "string"
  657. }
  658. }
  659. }
  660. }
  661. },
  662. "/casbin/UpdateCasbin": {
  663. "post": {
  664. "security": [
  665. {
  666. "ApiKeyAuth": []
  667. }
  668. ],
  669. "consumes": [
  670. "application/json"
  671. ],
  672. "produces": [
  673. "application/json"
  674. ],
  675. "tags": [
  676. "casbin"
  677. ],
  678. "summary": "更改角色api权限",
  679. "parameters": [
  680. {
  681. "description": "更改角色api权限",
  682. "name": "data",
  683. "in": "body",
  684. "required": true,
  685. "schema": {
  686. "type": "object",
  687. "$ref": "#/definitions/request.CasbinInReceive"
  688. }
  689. }
  690. ],
  691. "responses": {
  692. "200": {
  693. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  694. "schema": {
  695. "type": "string"
  696. }
  697. }
  698. }
  699. }
  700. },
  701. "/casbin/getPolicyPathByAuthorityId": {
  702. "post": {
  703. "security": [
  704. {
  705. "ApiKeyAuth": []
  706. }
  707. ],
  708. "consumes": [
  709. "application/json"
  710. ],
  711. "produces": [
  712. "application/json"
  713. ],
  714. "tags": [
  715. "casbin"
  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/request.CasbinInReceive"
  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/customer": {
  741. "get": {
  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/model.ExaCustomer"
  766. }
  767. }
  768. ],
  769. "responses": {
  770. "200": {
  771. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  772. "schema": {
  773. "type": "string"
  774. }
  775. }
  776. }
  777. },
  778. "put": {
  779. "security": [
  780. {
  781. "ApiKeyAuth": []
  782. }
  783. ],
  784. "consumes": [
  785. "application/json"
  786. ],
  787. "produces": [
  788. "application/json"
  789. ],
  790. "tags": [
  791. "SysApi"
  792. ],
  793. "summary": "更新客户信息",
  794. "parameters": [
  795. {
  796. "description": "创建客户",
  797. "name": "data",
  798. "in": "body",
  799. "required": true,
  800. "schema": {
  801. "type": "object",
  802. "$ref": "#/definitions/model.ExaCustomer"
  803. }
  804. }
  805. ],
  806. "responses": {
  807. "200": {
  808. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  809. "schema": {
  810. "type": "string"
  811. }
  812. }
  813. }
  814. },
  815. "post": {
  816. "security": [
  817. {
  818. "ApiKeyAuth": []
  819. }
  820. ],
  821. "consumes": [
  822. "application/json"
  823. ],
  824. "produces": [
  825. "application/json"
  826. ],
  827. "tags": [
  828. "SysApi"
  829. ],
  830. "summary": "创建客户",
  831. "parameters": [
  832. {
  833. "description": "创建客户",
  834. "name": "data",
  835. "in": "body",
  836. "required": true,
  837. "schema": {
  838. "type": "object",
  839. "$ref": "#/definitions/model.ExaCustomer"
  840. }
  841. }
  842. ],
  843. "responses": {
  844. "200": {
  845. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  846. "schema": {
  847. "type": "string"
  848. }
  849. }
  850. }
  851. },
  852. "delete": {
  853. "security": [
  854. {
  855. "ApiKeyAuth": []
  856. }
  857. ],
  858. "consumes": [
  859. "application/json"
  860. ],
  861. "produces": [
  862. "application/json"
  863. ],
  864. "tags": [
  865. "SysApi"
  866. ],
  867. "summary": "删除客户",
  868. "parameters": [
  869. {
  870. "description": "删除客户",
  871. "name": "data",
  872. "in": "body",
  873. "required": true,
  874. "schema": {
  875. "type": "object",
  876. "$ref": "#/definitions/model.ExaCustomer"
  877. }
  878. }
  879. ],
  880. "responses": {
  881. "200": {
  882. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  883. "schema": {
  884. "type": "string"
  885. }
  886. }
  887. }
  888. }
  889. },
  890. "/customer/customerList": {
  891. "get": {
  892. "security": [
  893. {
  894. "ApiKeyAuth": []
  895. }
  896. ],
  897. "consumes": [
  898. "application/json"
  899. ],
  900. "produces": [
  901. "application/json"
  902. ],
  903. "tags": [
  904. "SysApi"
  905. ],
  906. "summary": "获取权限客户列表",
  907. "parameters": [
  908. {
  909. "description": "获取权限客户列表",
  910. "name": "data",
  911. "in": "body",
  912. "required": true,
  913. "schema": {
  914. "type": "object",
  915. "$ref": "#/definitions/request.PageInfo"
  916. }
  917. }
  918. ],
  919. "responses": {
  920. "200": {
  921. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  922. "schema": {
  923. "type": "string"
  924. }
  925. }
  926. }
  927. }
  928. },
  929. "/fileUploadAndDownload/breakpointContinue": {
  930. "post": {
  931. "security": [
  932. {
  933. "ApiKeyAuth": []
  934. }
  935. ],
  936. "consumes": [
  937. "multipart/form-data"
  938. ],
  939. "produces": [
  940. "application/json"
  941. ],
  942. "tags": [
  943. "ExaFileUploadAndDownload"
  944. ],
  945. "summary": "断点续传到服务器",
  946. "parameters": [
  947. {
  948. "type": "file",
  949. "description": "an example for breakpoint resume, 断点续传示例",
  950. "name": "file",
  951. "in": "formData",
  952. "required": true
  953. }
  954. ],
  955. "responses": {
  956. "200": {
  957. "description": "{\"success\":true,\"data\":{},\"msg\":\"上传成功\"}",
  958. "schema": {
  959. "type": "string"
  960. }
  961. }
  962. }
  963. }
  964. },
  965. "/fileUploadAndDownload/deleteFile": {
  966. "post": {
  967. "security": [
  968. {
  969. "ApiKeyAuth": []
  970. }
  971. ],
  972. "produces": [
  973. "application/json"
  974. ],
  975. "tags": [
  976. "ExaFileUploadAndDownload"
  977. ],
  978. "summary": "删除文件",
  979. "parameters": [
  980. {
  981. "description": "传入文件里面id即可",
  982. "name": "data",
  983. "in": "body",
  984. "required": true,
  985. "schema": {
  986. "type": "object",
  987. "$ref": "#/definitions/model.ExaFileUploadAndDownload"
  988. }
  989. }
  990. ],
  991. "responses": {
  992. "200": {
  993. "description": "{\"success\":true,\"data\":{},\"msg\":\"返回成功\"}",
  994. "schema": {
  995. "type": "string"
  996. }
  997. }
  998. }
  999. }
  1000. },
  1001. "/fileUploadAndDownload/findFile": {
  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\":\"file uploaded, 文件创建成功\"}",
  1030. "schema": {
  1031. "type": "string"
  1032. }
  1033. }
  1034. }
  1035. }
  1036. },
  1037. "/fileUploadAndDownload/getFileList": {
  1038. "post": {
  1039. "security": [
  1040. {
  1041. "ApiKeyAuth": []
  1042. }
  1043. ],
  1044. "consumes": [
  1045. "application/json"
  1046. ],
  1047. "produces": [
  1048. "application/json"
  1049. ],
  1050. "tags": [
  1051. "ExaFileUploadAndDownload"
  1052. ],
  1053. "summary": "分页文件列表",
  1054. "parameters": [
  1055. {
  1056. "description": "分页获取文件户列表",
  1057. "name": "data",
  1058. "in": "body",
  1059. "required": true,
  1060. "schema": {
  1061. "type": "object",
  1062. "$ref": "#/definitions/request.PageInfo"
  1063. }
  1064. }
  1065. ],
  1066. "responses": {
  1067. "200": {
  1068. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  1069. "schema": {
  1070. "type": "string"
  1071. }
  1072. }
  1073. }
  1074. }
  1075. },
  1076. "/fileUploadAndDownload/removeChunk": {
  1077. "post": {
  1078. "security": [
  1079. {
  1080. "ApiKeyAuth": []
  1081. }
  1082. ],
  1083. "consumes": [
  1084. "multipart/form-data"
  1085. ],
  1086. "produces": [
  1087. "application/json"
  1088. ],
  1089. "tags": [
  1090. "ExaFileUploadAndDownload"
  1091. ],
  1092. "summary": "删除切片",
  1093. "parameters": [
  1094. {
  1095. "type": "file",
  1096. "description": "删除缓存切片",
  1097. "name": "file",
  1098. "in": "formData",
  1099. "required": true
  1100. }
  1101. ],
  1102. "responses": {
  1103. "200": {
  1104. "description": "{\"success\":true,\"data\":{},\"msg\":\"查找成功\"}",
  1105. "schema": {
  1106. "type": "string"
  1107. }
  1108. }
  1109. }
  1110. }
  1111. },
  1112. "/fileUploadAndDownload/upload": {
  1113. "post": {
  1114. "security": [
  1115. {
  1116. "ApiKeyAuth": []
  1117. }
  1118. ],
  1119. "consumes": [
  1120. "multipart/form-data"
  1121. ],
  1122. "produces": [
  1123. "application/json"
  1124. ],
  1125. "tags": [
  1126. "ExaFileUploadAndDownload"
  1127. ],
  1128. "summary": "上传文件示例",
  1129. "parameters": [
  1130. {
  1131. "type": "file",
  1132. "description": "上传文件示例",
  1133. "name": "file",
  1134. "in": "formData",
  1135. "required": true
  1136. }
  1137. ],
  1138. "responses": {
  1139. "200": {
  1140. "description": "{\"success\":true,\"data\":{},\"msg\":\"上传成功\"}",
  1141. "schema": {
  1142. "type": "string"
  1143. }
  1144. }
  1145. }
  1146. }
  1147. },
  1148. "/jwt/jsonInBlacklist": {
  1149. "post": {
  1150. "security": [
  1151. {
  1152. "ApiKeyAuth": []
  1153. }
  1154. ],
  1155. "consumes": [
  1156. "application/json"
  1157. ],
  1158. "produces": [
  1159. "application/json"
  1160. ],
  1161. "tags": [
  1162. "jwt"
  1163. ],
  1164. "summary": "jwt加入黑名单",
  1165. "responses": {
  1166. "200": {
  1167. "description": "{\"success\":true,\"data\":{},\"msg\":\"拉黑成功\"}",
  1168. "schema": {
  1169. "type": "string"
  1170. }
  1171. }
  1172. }
  1173. }
  1174. },
  1175. "/menu/GetMenuAuthority": {
  1176. "post": {
  1177. "security": [
  1178. {
  1179. "ApiKeyAuth": []
  1180. }
  1181. ],
  1182. "consumes": [
  1183. "application/json"
  1184. ],
  1185. "produces": [
  1186. "application/json"
  1187. ],
  1188. "tags": [
  1189. "authorityAndMenu"
  1190. ],
  1191. "summary": "获取指定角色menu",
  1192. "parameters": [
  1193. {
  1194. "description": "增加menu和角色关联关系",
  1195. "name": "data",
  1196. "in": "body",
  1197. "required": true,
  1198. "schema": {
  1199. "type": "object",
  1200. "$ref": "#/definitions/request.AuthorityIdInfo"
  1201. }
  1202. }
  1203. ],
  1204. "responses": {
  1205. "200": {
  1206. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  1207. "schema": {
  1208. "type": "string"
  1209. }
  1210. }
  1211. }
  1212. }
  1213. },
  1214. "/menu/addBaseMenu": {
  1215. "post": {
  1216. "security": [
  1217. {
  1218. "ApiKeyAuth": []
  1219. }
  1220. ],
  1221. "consumes": [
  1222. "application/json"
  1223. ],
  1224. "produces": [
  1225. "application/json"
  1226. ],
  1227. "tags": [
  1228. "menu"
  1229. ],
  1230. "summary": "新增菜单",
  1231. "parameters": [
  1232. {
  1233. "description": "新增菜单",
  1234. "name": "data",
  1235. "in": "body",
  1236. "required": true,
  1237. "schema": {
  1238. "type": "object",
  1239. "$ref": "#/definitions/model.SysBaseMenu"
  1240. }
  1241. }
  1242. ],
  1243. "responses": {
  1244. "200": {
  1245. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  1246. "schema": {
  1247. "type": "string"
  1248. }
  1249. }
  1250. }
  1251. }
  1252. },
  1253. "/menu/addMenuAuthority": {
  1254. "post": {
  1255. "security": [
  1256. {
  1257. "ApiKeyAuth": []
  1258. }
  1259. ],
  1260. "consumes": [
  1261. "application/json"
  1262. ],
  1263. "produces": [
  1264. "application/json"
  1265. ],
  1266. "tags": [
  1267. "authorityAndMenu"
  1268. ],
  1269. "summary": "增加menu和角色关联关系",
  1270. "parameters": [
  1271. {
  1272. "description": "增加menu和角色关联关系",
  1273. "name": "data",
  1274. "in": "body",
  1275. "required": true,
  1276. "schema": {
  1277. "type": "object",
  1278. "$ref": "#/definitions/request.AddMenuAuthorityInfo"
  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/deleteBaseMenu": {
  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": "删除菜单",
  1309. "parameters": [
  1310. {
  1311. "description": "删除菜单",
  1312. "name": "data",
  1313. "in": "body",
  1314. "required": true,
  1315. "schema": {
  1316. "type": "object",
  1317. "$ref": "#/definitions/request.GetById"
  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/getBaseMenuById": {
  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": "根据id获取菜单",
  1348. "parameters": [
  1349. {
  1350. "description": "根据id获取菜单",
  1351. "name": "data",
  1352. "in": "body",
  1353. "required": true,
  1354. "schema": {
  1355. "type": "object",
  1356. "$ref": "#/definitions/request.GetById"
  1357. }
  1358. }
  1359. ],
  1360. "responses": {
  1361. "200": {
  1362. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  1363. "schema": {
  1364. "type": "string"
  1365. }
  1366. }
  1367. }
  1368. }
  1369. },
  1370. "/menu/getBaseMenuTree": {
  1371. "post": {
  1372. "security": [
  1373. {
  1374. "ApiKeyAuth": []
  1375. }
  1376. ],
  1377. "produces": [
  1378. "application/json"
  1379. ],
  1380. "tags": [
  1381. "authorityAndMenu"
  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/request.RegisterAndLoginStruct"
  1393. }
  1394. }
  1395. ],
  1396. "responses": {
  1397. "200": {
  1398. "description": "{\"success\":true,\"data\":{},\"msg\":\"返回成功\"}",
  1399. "schema": {
  1400. "type": "string"
  1401. }
  1402. }
  1403. }
  1404. }
  1405. },
  1406. "/menu/getMenu": {
  1407. "post": {
  1408. "security": [
  1409. {
  1410. "ApiKeyAuth": []
  1411. }
  1412. ],
  1413. "produces": [
  1414. "application/json"
  1415. ],
  1416. "tags": [
  1417. "authorityAndMenu"
  1418. ],
  1419. "summary": "获取用户动态路由",
  1420. "parameters": [
  1421. {
  1422. "description": "可以什么都不填",
  1423. "name": "data",
  1424. "in": "body",
  1425. "required": true,
  1426. "schema": {
  1427. "type": "object",
  1428. "$ref": "#/definitions/request.RegisterAndLoginStruct"
  1429. }
  1430. }
  1431. ],
  1432. "responses": {
  1433. "200": {
  1434. "description": "{\"success\":true,\"data\":{},\"msg\":\"返回成功\"}",
  1435. "schema": {
  1436. "type": "string"
  1437. }
  1438. }
  1439. }
  1440. }
  1441. },
  1442. "/menu/getMenuList": {
  1443. "post": {
  1444. "security": [
  1445. {
  1446. "ApiKeyAuth": []
  1447. }
  1448. ],
  1449. "consumes": [
  1450. "application/json"
  1451. ],
  1452. "produces": [
  1453. "application/json"
  1454. ],
  1455. "tags": [
  1456. "menu"
  1457. ],
  1458. "summary": "分页获取基础menu列表",
  1459. "parameters": [
  1460. {
  1461. "description": "分页获取基础menu列表",
  1462. "name": "data",
  1463. "in": "body",
  1464. "required": true,
  1465. "schema": {
  1466. "type": "object",
  1467. "$ref": "#/definitions/request.PageInfo"
  1468. }
  1469. }
  1470. ],
  1471. "responses": {
  1472. "200": {
  1473. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  1474. "schema": {
  1475. "type": "string"
  1476. }
  1477. }
  1478. }
  1479. }
  1480. },
  1481. "/menu/updateBaseMenu": {
  1482. "post": {
  1483. "security": [
  1484. {
  1485. "ApiKeyAuth": []
  1486. }
  1487. ],
  1488. "consumes": [
  1489. "application/json"
  1490. ],
  1491. "produces": [
  1492. "application/json"
  1493. ],
  1494. "tags": [
  1495. "menu"
  1496. ],
  1497. "summary": "更新菜单",
  1498. "parameters": [
  1499. {
  1500. "description": "更新菜单",
  1501. "name": "data",
  1502. "in": "body",
  1503. "required": true,
  1504. "schema": {
  1505. "type": "object",
  1506. "$ref": "#/definitions/model.SysBaseMenu"
  1507. }
  1508. }
  1509. ],
  1510. "responses": {
  1511. "200": {
  1512. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  1513. "schema": {
  1514. "type": "string"
  1515. }
  1516. }
  1517. }
  1518. }
  1519. },
  1520. "/system/ReloadSystem": {
  1521. "post": {
  1522. "security": [
  1523. {
  1524. "ApiKeyAuth": []
  1525. }
  1526. ],
  1527. "produces": [
  1528. "application/json"
  1529. ],
  1530. "tags": [
  1531. "system"
  1532. ],
  1533. "summary": "设置配置文件内容",
  1534. "parameters": [
  1535. {
  1536. "description": "设置配置文件内容",
  1537. "name": "data",
  1538. "in": "body",
  1539. "required": true,
  1540. "schema": {
  1541. "type": "object",
  1542. "$ref": "#/definitions/model.System"
  1543. }
  1544. }
  1545. ],
  1546. "responses": {
  1547. "200": {
  1548. "description": "{\"success\":true,\"data\":{},\"msg\":\"返回成功\"}",
  1549. "schema": {
  1550. "type": "string"
  1551. }
  1552. }
  1553. }
  1554. }
  1555. },
  1556. "/system/getSystemConfig": {
  1557. "post": {
  1558. "security": [
  1559. {
  1560. "ApiKeyAuth": []
  1561. }
  1562. ],
  1563. "produces": [
  1564. "application/json"
  1565. ],
  1566. "tags": [
  1567. "system"
  1568. ],
  1569. "summary": "获取配置文件内容",
  1570. "responses": {
  1571. "200": {
  1572. "description": "{\"success\":true,\"data\":{},\"msg\":\"返回成功\"}",
  1573. "schema": {
  1574. "type": "string"
  1575. }
  1576. }
  1577. }
  1578. }
  1579. },
  1580. "/system/setSystemConfig": {
  1581. "post": {
  1582. "security": [
  1583. {
  1584. "ApiKeyAuth": []
  1585. }
  1586. ],
  1587. "produces": [
  1588. "application/json"
  1589. ],
  1590. "tags": [
  1591. "system"
  1592. ],
  1593. "summary": "设置配置文件内容",
  1594. "parameters": [
  1595. {
  1596. "description": "设置配置文件内容",
  1597. "name": "data",
  1598. "in": "body",
  1599. "required": true,
  1600. "schema": {
  1601. "type": "object",
  1602. "$ref": "#/definitions/model.System"
  1603. }
  1604. }
  1605. ],
  1606. "responses": {
  1607. "200": {
  1608. "description": "{\"success\":true,\"data\":{},\"msg\":\"返回成功\"}",
  1609. "schema": {
  1610. "type": "string"
  1611. }
  1612. }
  1613. }
  1614. }
  1615. },
  1616. "/user/changePassword": {
  1617. "put": {
  1618. "security": [
  1619. {
  1620. "ApiKeyAuth": []
  1621. }
  1622. ],
  1623. "produces": [
  1624. "application/json"
  1625. ],
  1626. "tags": [
  1627. "SysUser"
  1628. ],
  1629. "summary": "用户修改密码",
  1630. "parameters": [
  1631. {
  1632. "description": "用户修改密码",
  1633. "name": "data",
  1634. "in": "body",
  1635. "required": true,
  1636. "schema": {
  1637. "type": "object",
  1638. "$ref": "#/definitions/request.ChangePasswordStruct"
  1639. }
  1640. }
  1641. ],
  1642. "responses": {
  1643. "200": {
  1644. "description": "{\"success\":true,\"data\":{},\"msg\":\"修改成功\"}",
  1645. "schema": {
  1646. "type": "string"
  1647. }
  1648. }
  1649. }
  1650. }
  1651. },
  1652. "/user/deleteUser": {
  1653. "delete": {
  1654. "security": [
  1655. {
  1656. "ApiKeyAuth": []
  1657. }
  1658. ],
  1659. "consumes": [
  1660. "application/json"
  1661. ],
  1662. "produces": [
  1663. "application/json"
  1664. ],
  1665. "tags": [
  1666. "SysUser"
  1667. ],
  1668. "summary": "删除用户",
  1669. "parameters": [
  1670. {
  1671. "description": "删除用户",
  1672. "name": "data",
  1673. "in": "body",
  1674. "required": true,
  1675. "schema": {
  1676. "type": "object",
  1677. "$ref": "#/definitions/request.SetUserAuth"
  1678. }
  1679. }
  1680. ],
  1681. "responses": {
  1682. "200": {
  1683. "description": "{\"success\":true,\"data\":{},\"msg\":\"修改成功\"}",
  1684. "schema": {
  1685. "type": "string"
  1686. }
  1687. }
  1688. }
  1689. }
  1690. },
  1691. "/user/getUserList": {
  1692. "post": {
  1693. "security": [
  1694. {
  1695. "ApiKeyAuth": []
  1696. }
  1697. ],
  1698. "consumes": [
  1699. "application/json"
  1700. ],
  1701. "produces": [
  1702. "application/json"
  1703. ],
  1704. "tags": [
  1705. "SysUser"
  1706. ],
  1707. "summary": "分页获取用户列表",
  1708. "parameters": [
  1709. {
  1710. "description": "分页获取用户列表",
  1711. "name": "data",
  1712. "in": "body",
  1713. "required": true,
  1714. "schema": {
  1715. "type": "object",
  1716. "$ref": "#/definitions/request.PageInfo"
  1717. }
  1718. }
  1719. ],
  1720. "responses": {
  1721. "200": {
  1722. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  1723. "schema": {
  1724. "type": "string"
  1725. }
  1726. }
  1727. }
  1728. }
  1729. },
  1730. "/user/setUserAuthority": {
  1731. "post": {
  1732. "security": [
  1733. {
  1734. "ApiKeyAuth": []
  1735. }
  1736. ],
  1737. "consumes": [
  1738. "application/json"
  1739. ],
  1740. "produces": [
  1741. "application/json"
  1742. ],
  1743. "tags": [
  1744. "SysUser"
  1745. ],
  1746. "summary": "设置用户权限",
  1747. "parameters": [
  1748. {
  1749. "description": "设置用户权限",
  1750. "name": "data",
  1751. "in": "body",
  1752. "required": true,
  1753. "schema": {
  1754. "type": "object",
  1755. "$ref": "#/definitions/request.SetUserAuth"
  1756. }
  1757. }
  1758. ],
  1759. "responses": {
  1760. "200": {
  1761. "description": "{\"success\":true,\"data\":{},\"msg\":\"修改成功\"}",
  1762. "schema": {
  1763. "type": "string"
  1764. }
  1765. }
  1766. }
  1767. }
  1768. },
  1769. "/user/uploadHeaderImg": {
  1770. "post": {
  1771. "security": [
  1772. {
  1773. "ApiKeyAuth": []
  1774. }
  1775. ],
  1776. "consumes": [
  1777. "multipart/form-data"
  1778. ],
  1779. "produces": [
  1780. "application/json"
  1781. ],
  1782. "tags": [
  1783. "SysUser"
  1784. ],
  1785. "summary": "用户上传头像",
  1786. "parameters": [
  1787. {
  1788. "type": "file",
  1789. "description": "用户上传头像",
  1790. "name": "headerImg",
  1791. "in": "formData",
  1792. "required": true
  1793. },
  1794. {
  1795. "type": "string",
  1796. "description": "用户上传头像",
  1797. "name": "username",
  1798. "in": "formData",
  1799. "required": true
  1800. }
  1801. ],
  1802. "responses": {
  1803. "200": {
  1804. "description": "{\"success\":true,\"data\":{},\"msg\":\"上传成功\"}",
  1805. "schema": {
  1806. "type": "string"
  1807. }
  1808. }
  1809. }
  1810. }
  1811. },
  1812. "/workflow/createWorkFlow": {
  1813. "post": {
  1814. "produces": [
  1815. "application/json"
  1816. ],
  1817. "tags": [
  1818. "workflow"
  1819. ],
  1820. "summary": "注册工作流",
  1821. "parameters": [
  1822. {
  1823. "description": "注册工作流接口",
  1824. "name": "data",
  1825. "in": "body",
  1826. "required": true,
  1827. "schema": {
  1828. "type": "object",
  1829. "$ref": "#/definitions/model.SysWorkflow"
  1830. }
  1831. }
  1832. ],
  1833. "responses": {
  1834. "200": {
  1835. "description": "{\"success\":true,\"data\":{},\"msg\":\"注册成功\"}",
  1836. "schema": {
  1837. "type": "string"
  1838. }
  1839. }
  1840. }
  1841. }
  1842. }
  1843. },
  1844. "definitions": {
  1845. "config.Captcha": {
  1846. "type": "object",
  1847. "properties": {
  1848. "imgHeight": {
  1849. "type": "integer"
  1850. },
  1851. "imgWidth": {
  1852. "type": "integer"
  1853. },
  1854. "keyLong": {
  1855. "type": "integer"
  1856. }
  1857. }
  1858. },
  1859. "config.Casbin": {
  1860. "type": "object",
  1861. "properties": {
  1862. "modelPath": {
  1863. "type": "string"
  1864. }
  1865. }
  1866. },
  1867. "config.JWT": {
  1868. "type": "object",
  1869. "properties": {
  1870. "signingKey": {
  1871. "type": "string"
  1872. }
  1873. }
  1874. },
  1875. "config.Log": {
  1876. "type": "object",
  1877. "properties": {
  1878. "file": {
  1879. "type": "string"
  1880. },
  1881. "logFile": {
  1882. "type": "boolean"
  1883. },
  1884. "prefix": {
  1885. "type": "string"
  1886. },
  1887. "stdout": {
  1888. "type": "string"
  1889. }
  1890. }
  1891. },
  1892. "config.Mysql": {
  1893. "type": "object",
  1894. "properties": {
  1895. "config": {
  1896. "type": "string"
  1897. },
  1898. "dbname": {
  1899. "type": "string"
  1900. },
  1901. "logMode": {
  1902. "type": "boolean"
  1903. },
  1904. "maxIdleConns": {
  1905. "type": "integer"
  1906. },
  1907. "maxOpenConns": {
  1908. "type": "integer"
  1909. },
  1910. "password": {
  1911. "type": "string"
  1912. },
  1913. "path": {
  1914. "type": "string"
  1915. },
  1916. "username": {
  1917. "type": "string"
  1918. }
  1919. }
  1920. },
  1921. "config.Qiniu": {
  1922. "type": "object",
  1923. "properties": {
  1924. "accessKey": {
  1925. "type": "string"
  1926. },
  1927. "secretKey": {
  1928. "type": "string"
  1929. }
  1930. }
  1931. },
  1932. "config.Redis": {
  1933. "type": "object",
  1934. "properties": {
  1935. "addr": {
  1936. "type": "string"
  1937. },
  1938. "db": {
  1939. "type": "integer"
  1940. },
  1941. "password": {
  1942. "type": "string"
  1943. }
  1944. }
  1945. },
  1946. "config.Server": {
  1947. "type": "object",
  1948. "properties": {
  1949. "captcha": {
  1950. "type": "object",
  1951. "$ref": "#/definitions/config.Captcha"
  1952. },
  1953. "casbin": {
  1954. "type": "object",
  1955. "$ref": "#/definitions/config.Casbin"
  1956. },
  1957. "jwt": {
  1958. "type": "object",
  1959. "$ref": "#/definitions/config.JWT"
  1960. },
  1961. "log": {
  1962. "type": "object",
  1963. "$ref": "#/definitions/config.Log"
  1964. },
  1965. "mysql": {
  1966. "type": "object",
  1967. "$ref": "#/definitions/config.Mysql"
  1968. },
  1969. "qiniu": {
  1970. "type": "object",
  1971. "$ref": "#/definitions/config.Qiniu"
  1972. },
  1973. "redis": {
  1974. "type": "object",
  1975. "$ref": "#/definitions/config.Redis"
  1976. },
  1977. "sqlite": {
  1978. "type": "object",
  1979. "$ref": "#/definitions/config.Sqlite"
  1980. },
  1981. "system": {
  1982. "type": "object",
  1983. "$ref": "#/definitions/config.System"
  1984. }
  1985. }
  1986. },
  1987. "config.Sqlite": {
  1988. "type": "object",
  1989. "properties": {
  1990. "config": {
  1991. "type": "string"
  1992. },
  1993. "logMode": {
  1994. "type": "boolean"
  1995. },
  1996. "password": {
  1997. "type": "string"
  1998. },
  1999. "path": {
  2000. "type": "string"
  2001. },
  2002. "username": {
  2003. "type": "string"
  2004. }
  2005. }
  2006. },
  2007. "config.System": {
  2008. "type": "object",
  2009. "properties": {
  2010. "addr": {
  2011. "type": "integer"
  2012. },
  2013. "dbType": {
  2014. "type": "string"
  2015. },
  2016. "env": {
  2017. "type": "string"
  2018. },
  2019. "useMultipoint": {
  2020. "type": "boolean"
  2021. }
  2022. }
  2023. },
  2024. "model.AutoCodeStruct": {
  2025. "type": "object",
  2026. "properties": {
  2027. "abbreviation": {
  2028. "type": "string"
  2029. },
  2030. "fields": {
  2031. "type": "array",
  2032. "items": {
  2033. "$ref": "#/definitions/model.Field"
  2034. }
  2035. },
  2036. "packageName": {
  2037. "type": "string"
  2038. },
  2039. "structName": {
  2040. "type": "string"
  2041. }
  2042. }
  2043. },
  2044. "model.ExaCustomer": {
  2045. "type": "object",
  2046. "properties": {
  2047. "customerName": {
  2048. "type": "string"
  2049. },
  2050. "customerPhoneData": {
  2051. "type": "string"
  2052. },
  2053. "sysUser": {
  2054. "type": "object",
  2055. "$ref": "#/definitions/model.SysUser"
  2056. },
  2057. "sysUserAuthorityID": {
  2058. "type": "string"
  2059. },
  2060. "sysUserId": {
  2061. "type": "integer"
  2062. }
  2063. }
  2064. },
  2065. "model.ExaFileUploadAndDownload": {
  2066. "type": "object",
  2067. "properties": {
  2068. "key": {
  2069. "type": "string"
  2070. },
  2071. "name": {
  2072. "type": "string"
  2073. },
  2074. "tag": {
  2075. "type": "string"
  2076. },
  2077. "url": {
  2078. "type": "string"
  2079. }
  2080. }
  2081. },
  2082. "model.Field": {
  2083. "type": "object",
  2084. "properties": {
  2085. "columnName": {
  2086. "type": "string"
  2087. },
  2088. "fieldJson": {
  2089. "type": "string"
  2090. },
  2091. "fieldName": {
  2092. "type": "string"
  2093. },
  2094. "fieldType": {
  2095. "type": "string"
  2096. }
  2097. }
  2098. },
  2099. "model.SysApi": {
  2100. "type": "object",
  2101. "properties": {
  2102. "apiGroup": {
  2103. "type": "string"
  2104. },
  2105. "description": {
  2106. "type": "string"
  2107. },
  2108. "method": {
  2109. "type": "string"
  2110. },
  2111. "path": {
  2112. "type": "string"
  2113. }
  2114. }
  2115. },
  2116. "model.SysAuthority": {
  2117. "type": "object",
  2118. "properties": {
  2119. "authorityId": {
  2120. "type": "string"
  2121. },
  2122. "authorityName": {
  2123. "type": "string"
  2124. },
  2125. "children": {
  2126. "type": "array",
  2127. "items": {
  2128. "$ref": "#/definitions/model.SysAuthority"
  2129. }
  2130. },
  2131. "createdAt": {
  2132. "type": "string"
  2133. },
  2134. "dataAuthorityId": {
  2135. "type": "array",
  2136. "items": {
  2137. "$ref": "#/definitions/model.SysAuthority"
  2138. }
  2139. },
  2140. "deletedAt": {
  2141. "type": "string"
  2142. },
  2143. "menus": {
  2144. "type": "array",
  2145. "items": {
  2146. "$ref": "#/definitions/model.SysBaseMenu"
  2147. }
  2148. },
  2149. "parentId": {
  2150. "type": "string"
  2151. },
  2152. "updatedAt": {
  2153. "type": "string"
  2154. }
  2155. }
  2156. },
  2157. "model.SysBaseMenu": {
  2158. "type": "object",
  2159. "properties": {
  2160. "authoritys": {
  2161. "type": "array",
  2162. "items": {
  2163. "$ref": "#/definitions/model.SysAuthority"
  2164. }
  2165. },
  2166. "children": {
  2167. "type": "array",
  2168. "items": {
  2169. "$ref": "#/definitions/model.SysBaseMenu"
  2170. }
  2171. },
  2172. "component": {
  2173. "type": "string"
  2174. },
  2175. "defaultMenu": {
  2176. "type": "boolean"
  2177. },
  2178. "hidden": {
  2179. "type": "boolean"
  2180. },
  2181. "icon": {
  2182. "type": "string"
  2183. },
  2184. "keepAlive": {
  2185. "type": "boolean"
  2186. },
  2187. "name": {
  2188. "type": "string"
  2189. },
  2190. "parentId": {
  2191. "type": "string"
  2192. },
  2193. "path": {
  2194. "type": "string"
  2195. },
  2196. "sort": {
  2197. "type": "integer"
  2198. },
  2199. "title": {
  2200. "type": "string"
  2201. }
  2202. }
  2203. },
  2204. "model.SysUser": {
  2205. "type": "object",
  2206. "properties": {
  2207. "authority": {
  2208. "type": "object",
  2209. "$ref": "#/definitions/model.SysAuthority"
  2210. },
  2211. "authorityId": {
  2212. "type": "string"
  2213. },
  2214. "headerImg": {
  2215. "type": "string"
  2216. },
  2217. "nickName": {
  2218. "type": "string"
  2219. },
  2220. "userName": {
  2221. "type": "string"
  2222. },
  2223. "uuid": {
  2224. "type": "string"
  2225. }
  2226. }
  2227. },
  2228. "model.SysWorkflow": {
  2229. "type": "object",
  2230. "properties": {
  2231. "workflowDescription": {
  2232. "description": "工作流描述",
  2233. "type": "string"
  2234. },
  2235. "workflowName": {
  2236. "description": "工作流英文id",
  2237. "type": "string"
  2238. },
  2239. "workflowNickName": {
  2240. "description": "工作流名称",
  2241. "type": "string"
  2242. },
  2243. "workflowStep": {
  2244. "description": "工作流步骤",
  2245. "type": "array",
  2246. "items": {
  2247. "$ref": "#/definitions/model.SysWorkflowStepInfo"
  2248. }
  2249. }
  2250. }
  2251. },
  2252. "model.SysWorkflowStepInfo": {
  2253. "type": "object",
  2254. "properties": {
  2255. "isEnd": {
  2256. "description": "是否是完结流节点",
  2257. "type": "boolean"
  2258. },
  2259. "isStrat": {
  2260. "description": "是否是开始流节点",
  2261. "type": "boolean"
  2262. },
  2263. "stepAuthorityID": {
  2264. "description": "操作者级别id",
  2265. "type": "string"
  2266. },
  2267. "stepName": {
  2268. "description": "工作流名称",
  2269. "type": "string"
  2270. },
  2271. "stepNo": {
  2272. "description": "步骤id (第几步)",
  2273. "type": "number"
  2274. },
  2275. "workflowID": {
  2276. "description": "所属工作流ID",
  2277. "type": "integer"
  2278. }
  2279. }
  2280. },
  2281. "model.System": {
  2282. "type": "object",
  2283. "properties": {
  2284. "config": {
  2285. "type": "object",
  2286. "$ref": "#/definitions/config.Server"
  2287. }
  2288. }
  2289. },
  2290. "request.AddMenuAuthorityInfo": {
  2291. "type": "object",
  2292. "properties": {
  2293. "authorityId": {
  2294. "type": "string"
  2295. },
  2296. "menus": {
  2297. "type": "array",
  2298. "items": {
  2299. "$ref": "#/definitions/model.SysBaseMenu"
  2300. }
  2301. }
  2302. }
  2303. },
  2304. "request.AuthorityIdInfo": {
  2305. "type": "object",
  2306. "properties": {
  2307. "authorityId": {
  2308. "type": "string"
  2309. }
  2310. }
  2311. },
  2312. "request.CasbinInReceive": {
  2313. "type": "object",
  2314. "properties": {
  2315. "authorityId": {
  2316. "type": "string"
  2317. },
  2318. "casbinInfos": {
  2319. "type": "array",
  2320. "items": {
  2321. "$ref": "#/definitions/request.CasbinInfo"
  2322. }
  2323. }
  2324. }
  2325. },
  2326. "request.CasbinInfo": {
  2327. "type": "object",
  2328. "properties": {
  2329. "method": {
  2330. "type": "string"
  2331. },
  2332. "path": {
  2333. "type": "string"
  2334. }
  2335. }
  2336. },
  2337. "request.ChangePasswordStruct": {
  2338. "type": "object",
  2339. "properties": {
  2340. "newPassword": {
  2341. "type": "string"
  2342. },
  2343. "password": {
  2344. "type": "string"
  2345. },
  2346. "username": {
  2347. "type": "string"
  2348. }
  2349. }
  2350. },
  2351. "request.GetById": {
  2352. "type": "object",
  2353. "properties": {
  2354. "id": {
  2355. "type": "number"
  2356. }
  2357. }
  2358. },
  2359. "request.PageInfo": {
  2360. "type": "object",
  2361. "properties": {
  2362. "page": {
  2363. "type": "integer"
  2364. },
  2365. "pageSize": {
  2366. "type": "integer"
  2367. }
  2368. }
  2369. },
  2370. "request.RegisterAndLoginStruct": {
  2371. "type": "object",
  2372. "properties": {
  2373. "captcha": {
  2374. "type": "string"
  2375. },
  2376. "captchaId": {
  2377. "type": "string"
  2378. },
  2379. "password": {
  2380. "type": "string"
  2381. },
  2382. "username": {
  2383. "type": "string"
  2384. }
  2385. }
  2386. },
  2387. "request.SearchApiParams": {
  2388. "type": "object",
  2389. "properties": {
  2390. "apiGroup": {
  2391. "type": "string"
  2392. },
  2393. "desc": {
  2394. "type": "boolean"
  2395. },
  2396. "description": {
  2397. "type": "string"
  2398. },
  2399. "method": {
  2400. "type": "string"
  2401. },
  2402. "orderKey": {
  2403. "type": "string"
  2404. },
  2405. "page": {
  2406. "type": "integer"
  2407. },
  2408. "pageSize": {
  2409. "type": "integer"
  2410. },
  2411. "path": {
  2412. "type": "string"
  2413. }
  2414. }
  2415. },
  2416. "request.SetUserAuth": {
  2417. "type": "object",
  2418. "properties": {
  2419. "authorityId": {
  2420. "type": "string"
  2421. },
  2422. "uuid": {
  2423. "type": "string"
  2424. }
  2425. }
  2426. },
  2427. "response.SysAuthorityCopyResponse": {
  2428. "type": "object",
  2429. "properties": {
  2430. "authority": {
  2431. "type": "object",
  2432. "$ref": "#/definitions/model.SysAuthority"
  2433. },
  2434. "oldAuthorityId": {
  2435. "type": "integer"
  2436. }
  2437. }
  2438. }
  2439. },
  2440. "securityDefinitions": {
  2441. "ApiKeyAuth": {
  2442. "type": "apiKey",
  2443. "name": "x-token",
  2444. "in": "header"
  2445. }
  2446. }
  2447. }