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.

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