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.

2369 lines
72 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
  1. // GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
  2. // This file was generated by swaggo/swag at
  3. // 2020-04-15 09:37:13.5084762 +0800 CST m=+0.126566601
  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/createAuthority": {
  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/model.SysAuthority"
  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/deleteAuthority": {
  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/getAuthorityList": {
  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/request.PageInfo"
  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/setDataAuthority": {
  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/model.SysAuthority"
  390. }
  391. }
  392. ],
  393. "responses": {
  394. "200": {
  395. "description": "{\"success\":true,\"data\":{},\"msg\":\"设置成功\"}",
  396. "schema": {
  397. "type": "string"
  398. }
  399. }
  400. }
  401. }
  402. },
  403. "/autoCode/createTemp": {
  404. "post": {
  405. "security": [
  406. {
  407. "ApiKeyAuth": []
  408. }
  409. ],
  410. "consumes": [
  411. "application/json"
  412. ],
  413. "produces": [
  414. "application/json"
  415. ],
  416. "tags": [
  417. "SysApi"
  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.AutoCodeStruct"
  429. }
  430. }
  431. ],
  432. "responses": {
  433. "200": {
  434. "description": "{\"success\":true,\"data\":{},\"msg\":\"创建成功\"}",
  435. "schema": {
  436. "type": "string"
  437. }
  438. }
  439. }
  440. }
  441. },
  442. "/base/captcha": {
  443. "post": {
  444. "security": [
  445. {
  446. "ApiKeyAuth": []
  447. }
  448. ],
  449. "consumes": [
  450. "application/json"
  451. ],
  452. "produces": [
  453. "application/json"
  454. ],
  455. "tags": [
  456. "base"
  457. ],
  458. "summary": "生成验证码",
  459. "responses": {
  460. "200": {
  461. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  462. "schema": {
  463. "type": "string"
  464. }
  465. }
  466. }
  467. }
  468. },
  469. "/base/captcha/": {
  470. "get": {
  471. "security": [
  472. {
  473. "ApiKeyAuth": []
  474. }
  475. ],
  476. "consumes": [
  477. "application/json"
  478. ],
  479. "produces": [
  480. "application/json"
  481. ],
  482. "tags": [
  483. "base"
  484. ],
  485. "summary": "生成验证码图片路径",
  486. "responses": {
  487. "200": {
  488. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  489. "schema": {
  490. "type": "string"
  491. }
  492. }
  493. }
  494. }
  495. },
  496. "/base/login": {
  497. "post": {
  498. "produces": [
  499. "application/json"
  500. ],
  501. "tags": [
  502. "Base"
  503. ],
  504. "summary": "用户登录",
  505. "parameters": [
  506. {
  507. "description": "用户登录接口",
  508. "name": "data",
  509. "in": "body",
  510. "required": true,
  511. "schema": {
  512. "type": "object",
  513. "$ref": "#/definitions/request.RegisterAndLoginStruct"
  514. }
  515. }
  516. ],
  517. "responses": {
  518. "200": {
  519. "description": "{\"success\":true,\"data\":{},\"msg\":\"登陆成功\"}",
  520. "schema": {
  521. "type": "string"
  522. }
  523. }
  524. }
  525. }
  526. },
  527. "/base/register": {
  528. "post": {
  529. "produces": [
  530. "application/json"
  531. ],
  532. "tags": [
  533. "Base"
  534. ],
  535. "summary": "用户注册账号",
  536. "parameters": [
  537. {
  538. "description": "用户注册接口",
  539. "name": "data",
  540. "in": "body",
  541. "required": true,
  542. "schema": {
  543. "type": "object",
  544. "$ref": "#/definitions/model.SysUser"
  545. }
  546. }
  547. ],
  548. "responses": {
  549. "200": {
  550. "description": "{\"success\":true,\"data\":{},\"msg\":\"注册成功\"}",
  551. "schema": {
  552. "type": "string"
  553. }
  554. }
  555. }
  556. }
  557. },
  558. "/casbin/CasbinTest": {
  559. "get": {
  560. "security": [
  561. {
  562. "ApiKeyAuth": []
  563. }
  564. ],
  565. "consumes": [
  566. "application/json"
  567. ],
  568. "produces": [
  569. "application/json"
  570. ],
  571. "tags": [
  572. "casbin"
  573. ],
  574. "summary": "casb RBAC RESTFUL测试路由",
  575. "parameters": [
  576. {
  577. "description": "获取权限列表",
  578. "name": "data",
  579. "in": "body",
  580. "required": true,
  581. "schema": {
  582. "type": "object",
  583. "$ref": "#/definitions/request.CasbinInReceive"
  584. }
  585. }
  586. ],
  587. "responses": {
  588. "200": {
  589. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  590. "schema": {
  591. "type": "string"
  592. }
  593. }
  594. }
  595. }
  596. },
  597. "/casbin/UpdateCasbin": {
  598. "post": {
  599. "security": [
  600. {
  601. "ApiKeyAuth": []
  602. }
  603. ],
  604. "consumes": [
  605. "application/json"
  606. ],
  607. "produces": [
  608. "application/json"
  609. ],
  610. "tags": [
  611. "casbin"
  612. ],
  613. "summary": "更改角色api权限",
  614. "parameters": [
  615. {
  616. "description": "更改角色api权限",
  617. "name": "data",
  618. "in": "body",
  619. "required": true,
  620. "schema": {
  621. "type": "object",
  622. "$ref": "#/definitions/request.CasbinInReceive"
  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/getPolicyPathByAuthorityId": {
  637. "post": {
  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": "获取权限列表",
  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. "/customer/customer": {
  676. "get": {
  677. "security": [
  678. {
  679. "ApiKeyAuth": []
  680. }
  681. ],
  682. "consumes": [
  683. "application/json"
  684. ],
  685. "produces": [
  686. "application/json"
  687. ],
  688. "tags": [
  689. "SysApi"
  690. ],
  691. "summary": "获取单一客户信息",
  692. "parameters": [
  693. {
  694. "description": "获取单一客户信息",
  695. "name": "data",
  696. "in": "body",
  697. "required": true,
  698. "schema": {
  699. "type": "object",
  700. "$ref": "#/definitions/model.ExaCustomer"
  701. }
  702. }
  703. ],
  704. "responses": {
  705. "200": {
  706. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  707. "schema": {
  708. "type": "string"
  709. }
  710. }
  711. }
  712. },
  713. "put": {
  714. "security": [
  715. {
  716. "ApiKeyAuth": []
  717. }
  718. ],
  719. "consumes": [
  720. "application/json"
  721. ],
  722. "produces": [
  723. "application/json"
  724. ],
  725. "tags": [
  726. "SysApi"
  727. ],
  728. "summary": "更新客户信息",
  729. "parameters": [
  730. {
  731. "description": "创建客户",
  732. "name": "data",
  733. "in": "body",
  734. "required": true,
  735. "schema": {
  736. "type": "object",
  737. "$ref": "#/definitions/model.ExaCustomer"
  738. }
  739. }
  740. ],
  741. "responses": {
  742. "200": {
  743. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  744. "schema": {
  745. "type": "string"
  746. }
  747. }
  748. }
  749. },
  750. "post": {
  751. "security": [
  752. {
  753. "ApiKeyAuth": []
  754. }
  755. ],
  756. "consumes": [
  757. "application/json"
  758. ],
  759. "produces": [
  760. "application/json"
  761. ],
  762. "tags": [
  763. "SysApi"
  764. ],
  765. "summary": "创建客户",
  766. "parameters": [
  767. {
  768. "description": "创建客户",
  769. "name": "data",
  770. "in": "body",
  771. "required": true,
  772. "schema": {
  773. "type": "object",
  774. "$ref": "#/definitions/model.ExaCustomer"
  775. }
  776. }
  777. ],
  778. "responses": {
  779. "200": {
  780. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  781. "schema": {
  782. "type": "string"
  783. }
  784. }
  785. }
  786. },
  787. "delete": {
  788. "security": [
  789. {
  790. "ApiKeyAuth": []
  791. }
  792. ],
  793. "consumes": [
  794. "application/json"
  795. ],
  796. "produces": [
  797. "application/json"
  798. ],
  799. "tags": [
  800. "SysApi"
  801. ],
  802. "summary": "删除客户",
  803. "parameters": [
  804. {
  805. "description": "删除客户",
  806. "name": "data",
  807. "in": "body",
  808. "required": true,
  809. "schema": {
  810. "type": "object",
  811. "$ref": "#/definitions/model.ExaCustomer"
  812. }
  813. }
  814. ],
  815. "responses": {
  816. "200": {
  817. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  818. "schema": {
  819. "type": "string"
  820. }
  821. }
  822. }
  823. }
  824. },
  825. "/customer/customerList": {
  826. "get": {
  827. "security": [
  828. {
  829. "ApiKeyAuth": []
  830. }
  831. ],
  832. "consumes": [
  833. "application/json"
  834. ],
  835. "produces": [
  836. "application/json"
  837. ],
  838. "tags": [
  839. "SysApi"
  840. ],
  841. "summary": "获取权限客户列表",
  842. "parameters": [
  843. {
  844. "description": "获取权限客户列表",
  845. "name": "data",
  846. "in": "body",
  847. "required": true,
  848. "schema": {
  849. "type": "object",
  850. "$ref": "#/definitions/request.PageInfo"
  851. }
  852. }
  853. ],
  854. "responses": {
  855. "200": {
  856. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  857. "schema": {
  858. "type": "string"
  859. }
  860. }
  861. }
  862. }
  863. },
  864. "/fileUploadAndDownload/breakpointContinue": {
  865. "post": {
  866. "security": [
  867. {
  868. "ApiKeyAuth": []
  869. }
  870. ],
  871. "consumes": [
  872. "multipart/form-data"
  873. ],
  874. "produces": [
  875. "application/json"
  876. ],
  877. "tags": [
  878. "ExaFileUploadAndDownload"
  879. ],
  880. "summary": "断点续传到服务器",
  881. "parameters": [
  882. {
  883. "type": "file",
  884. "description": "an example for breakpoint resume, 断点续传示例",
  885. "name": "file",
  886. "in": "formData",
  887. "required": true
  888. }
  889. ],
  890. "responses": {
  891. "200": {
  892. "description": "{\"success\":true,\"data\":{},\"msg\":\"上传成功\"}",
  893. "schema": {
  894. "type": "string"
  895. }
  896. }
  897. }
  898. }
  899. },
  900. "/fileUploadAndDownload/deleteFile": {
  901. "post": {
  902. "security": [
  903. {
  904. "ApiKeyAuth": []
  905. }
  906. ],
  907. "produces": [
  908. "application/json"
  909. ],
  910. "tags": [
  911. "ExaFileUploadAndDownload"
  912. ],
  913. "summary": "删除文件",
  914. "parameters": [
  915. {
  916. "description": "传入文件里面id即可",
  917. "name": "data",
  918. "in": "body",
  919. "required": true,
  920. "schema": {
  921. "type": "object",
  922. "$ref": "#/definitions/model.ExaFileUploadAndDownload"
  923. }
  924. }
  925. ],
  926. "responses": {
  927. "200": {
  928. "description": "{\"success\":true,\"data\":{},\"msg\":\"返回成功\"}",
  929. "schema": {
  930. "type": "string"
  931. }
  932. }
  933. }
  934. }
  935. },
  936. "/fileUploadAndDownload/findFile": {
  937. "post": {
  938. "security": [
  939. {
  940. "ApiKeyAuth": []
  941. }
  942. ],
  943. "consumes": [
  944. "multipart/form-data"
  945. ],
  946. "produces": [
  947. "application/json"
  948. ],
  949. "tags": [
  950. "ExaFileUploadAndDownload"
  951. ],
  952. "summary": "查找文件",
  953. "parameters": [
  954. {
  955. "type": "file",
  956. "description": "上传文件完成",
  957. "name": "file",
  958. "in": "formData",
  959. "required": true
  960. }
  961. ],
  962. "responses": {
  963. "200": {
  964. "description": "{\"success\":true,\"data\":{},\"msg\":\"file uploaded, 文件创建成功\"}",
  965. "schema": {
  966. "type": "string"
  967. }
  968. }
  969. }
  970. }
  971. },
  972. "/fileUploadAndDownload/getFileList": {
  973. "post": {
  974. "security": [
  975. {
  976. "ApiKeyAuth": []
  977. }
  978. ],
  979. "consumes": [
  980. "application/json"
  981. ],
  982. "produces": [
  983. "application/json"
  984. ],
  985. "tags": [
  986. "ExaFileUploadAndDownload"
  987. ],
  988. "summary": "分页文件列表",
  989. "parameters": [
  990. {
  991. "description": "分页获取文件户列表",
  992. "name": "data",
  993. "in": "body",
  994. "required": true,
  995. "schema": {
  996. "type": "object",
  997. "$ref": "#/definitions/request.PageInfo"
  998. }
  999. }
  1000. ],
  1001. "responses": {
  1002. "200": {
  1003. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  1004. "schema": {
  1005. "type": "string"
  1006. }
  1007. }
  1008. }
  1009. }
  1010. },
  1011. "/fileUploadAndDownload/removeChunk": {
  1012. "post": {
  1013. "security": [
  1014. {
  1015. "ApiKeyAuth": []
  1016. }
  1017. ],
  1018. "consumes": [
  1019. "multipart/form-data"
  1020. ],
  1021. "produces": [
  1022. "application/json"
  1023. ],
  1024. "tags": [
  1025. "ExaFileUploadAndDownload"
  1026. ],
  1027. "summary": "删除切片",
  1028. "parameters": [
  1029. {
  1030. "type": "file",
  1031. "description": "删除缓存切片",
  1032. "name": "file",
  1033. "in": "formData",
  1034. "required": true
  1035. }
  1036. ],
  1037. "responses": {
  1038. "200": {
  1039. "description": "{\"success\":true,\"data\":{},\"msg\":\"查找成功\"}",
  1040. "schema": {
  1041. "type": "string"
  1042. }
  1043. }
  1044. }
  1045. }
  1046. },
  1047. "/fileUploadAndDownload/upload": {
  1048. "post": {
  1049. "security": [
  1050. {
  1051. "ApiKeyAuth": []
  1052. }
  1053. ],
  1054. "consumes": [
  1055. "multipart/form-data"
  1056. ],
  1057. "produces": [
  1058. "application/json"
  1059. ],
  1060. "tags": [
  1061. "ExaFileUploadAndDownload"
  1062. ],
  1063. "summary": "上传文件示例",
  1064. "parameters": [
  1065. {
  1066. "type": "file",
  1067. "description": "上传文件示例",
  1068. "name": "file",
  1069. "in": "formData",
  1070. "required": true
  1071. }
  1072. ],
  1073. "responses": {
  1074. "200": {
  1075. "description": "{\"success\":true,\"data\":{},\"msg\":\"上传成功\"}",
  1076. "schema": {
  1077. "type": "string"
  1078. }
  1079. }
  1080. }
  1081. }
  1082. },
  1083. "/jwt/jsonInBlacklist": {
  1084. "post": {
  1085. "security": [
  1086. {
  1087. "ApiKeyAuth": []
  1088. }
  1089. ],
  1090. "consumes": [
  1091. "application/json"
  1092. ],
  1093. "produces": [
  1094. "application/json"
  1095. ],
  1096. "tags": [
  1097. "jwt"
  1098. ],
  1099. "summary": "jwt加入黑名单",
  1100. "responses": {
  1101. "200": {
  1102. "description": "{\"success\":true,\"data\":{},\"msg\":\"拉黑成功\"}",
  1103. "schema": {
  1104. "type": "string"
  1105. }
  1106. }
  1107. }
  1108. }
  1109. },
  1110. "/menu/GetMenuAuthority": {
  1111. "post": {
  1112. "security": [
  1113. {
  1114. "ApiKeyAuth": []
  1115. }
  1116. ],
  1117. "consumes": [
  1118. "application/json"
  1119. ],
  1120. "produces": [
  1121. "application/json"
  1122. ],
  1123. "tags": [
  1124. "authorityAndMenu"
  1125. ],
  1126. "summary": "获取指定角色menu",
  1127. "parameters": [
  1128. {
  1129. "description": "增加menu和角色关联关系",
  1130. "name": "data",
  1131. "in": "body",
  1132. "required": true,
  1133. "schema": {
  1134. "type": "object",
  1135. "$ref": "#/definitions/request.AuthorityIdInfo"
  1136. }
  1137. }
  1138. ],
  1139. "responses": {
  1140. "200": {
  1141. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  1142. "schema": {
  1143. "type": "string"
  1144. }
  1145. }
  1146. }
  1147. }
  1148. },
  1149. "/menu/addBaseMenu": {
  1150. "post": {
  1151. "security": [
  1152. {
  1153. "ApiKeyAuth": []
  1154. }
  1155. ],
  1156. "consumes": [
  1157. "application/json"
  1158. ],
  1159. "produces": [
  1160. "application/json"
  1161. ],
  1162. "tags": [
  1163. "menu"
  1164. ],
  1165. "summary": "新增菜单",
  1166. "parameters": [
  1167. {
  1168. "description": "新增菜单",
  1169. "name": "data",
  1170. "in": "body",
  1171. "required": true,
  1172. "schema": {
  1173. "type": "object",
  1174. "$ref": "#/definitions/model.SysBaseMenu"
  1175. }
  1176. }
  1177. ],
  1178. "responses": {
  1179. "200": {
  1180. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  1181. "schema": {
  1182. "type": "string"
  1183. }
  1184. }
  1185. }
  1186. }
  1187. },
  1188. "/menu/addMenuAuthority": {
  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.AddMenuAuthorityInfo"
  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/deleteBaseMenu": {
  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/request.GetById"
  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/getBaseMenuById": {
  1267. "post": {
  1268. "security": [
  1269. {
  1270. "ApiKeyAuth": []
  1271. }
  1272. ],
  1273. "consumes": [
  1274. "application/json"
  1275. ],
  1276. "produces": [
  1277. "application/json"
  1278. ],
  1279. "tags": [
  1280. "menu"
  1281. ],
  1282. "summary": "根据id获取菜单",
  1283. "parameters": [
  1284. {
  1285. "description": "根据id获取菜单",
  1286. "name": "data",
  1287. "in": "body",
  1288. "required": true,
  1289. "schema": {
  1290. "type": "object",
  1291. "$ref": "#/definitions/request.GetById"
  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/getBaseMenuTree": {
  1306. "post": {
  1307. "security": [
  1308. {
  1309. "ApiKeyAuth": []
  1310. }
  1311. ],
  1312. "produces": [
  1313. "application/json"
  1314. ],
  1315. "tags": [
  1316. "authorityAndMenu"
  1317. ],
  1318. "summary": "获取用户动态路由",
  1319. "parameters": [
  1320. {
  1321. "description": "可以什么都不填",
  1322. "name": "data",
  1323. "in": "body",
  1324. "required": true,
  1325. "schema": {
  1326. "type": "object",
  1327. "$ref": "#/definitions/request.RegisterAndLoginStruct"
  1328. }
  1329. }
  1330. ],
  1331. "responses": {
  1332. "200": {
  1333. "description": "{\"success\":true,\"data\":{},\"msg\":\"返回成功\"}",
  1334. "schema": {
  1335. "type": "string"
  1336. }
  1337. }
  1338. }
  1339. }
  1340. },
  1341. "/menu/getMenu": {
  1342. "post": {
  1343. "security": [
  1344. {
  1345. "ApiKeyAuth": []
  1346. }
  1347. ],
  1348. "produces": [
  1349. "application/json"
  1350. ],
  1351. "tags": [
  1352. "authorityAndMenu"
  1353. ],
  1354. "summary": "获取用户动态路由",
  1355. "parameters": [
  1356. {
  1357. "description": "可以什么都不填",
  1358. "name": "data",
  1359. "in": "body",
  1360. "required": true,
  1361. "schema": {
  1362. "type": "object",
  1363. "$ref": "#/definitions/request.RegisterAndLoginStruct"
  1364. }
  1365. }
  1366. ],
  1367. "responses": {
  1368. "200": {
  1369. "description": "{\"success\":true,\"data\":{},\"msg\":\"返回成功\"}",
  1370. "schema": {
  1371. "type": "string"
  1372. }
  1373. }
  1374. }
  1375. }
  1376. },
  1377. "/menu/getMenuList": {
  1378. "post": {
  1379. "security": [
  1380. {
  1381. "ApiKeyAuth": []
  1382. }
  1383. ],
  1384. "consumes": [
  1385. "application/json"
  1386. ],
  1387. "produces": [
  1388. "application/json"
  1389. ],
  1390. "tags": [
  1391. "menu"
  1392. ],
  1393. "summary": "分页获取基础menu列表",
  1394. "parameters": [
  1395. {
  1396. "description": "分页获取基础menu列表",
  1397. "name": "data",
  1398. "in": "body",
  1399. "required": true,
  1400. "schema": {
  1401. "type": "object",
  1402. "$ref": "#/definitions/request.PageInfo"
  1403. }
  1404. }
  1405. ],
  1406. "responses": {
  1407. "200": {
  1408. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  1409. "schema": {
  1410. "type": "string"
  1411. }
  1412. }
  1413. }
  1414. }
  1415. },
  1416. "/menu/updateBaseMenu": {
  1417. "post": {
  1418. "security": [
  1419. {
  1420. "ApiKeyAuth": []
  1421. }
  1422. ],
  1423. "consumes": [
  1424. "application/json"
  1425. ],
  1426. "produces": [
  1427. "application/json"
  1428. ],
  1429. "tags": [
  1430. "menu"
  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/model.SysBaseMenu"
  1442. }
  1443. }
  1444. ],
  1445. "responses": {
  1446. "200": {
  1447. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  1448. "schema": {
  1449. "type": "string"
  1450. }
  1451. }
  1452. }
  1453. }
  1454. },
  1455. "/system/ReloadSystem": {
  1456. "post": {
  1457. "security": [
  1458. {
  1459. "ApiKeyAuth": []
  1460. }
  1461. ],
  1462. "produces": [
  1463. "application/json"
  1464. ],
  1465. "tags": [
  1466. "system"
  1467. ],
  1468. "summary": "设置配置文件内容",
  1469. "parameters": [
  1470. {
  1471. "description": "设置配置文件内容",
  1472. "name": "data",
  1473. "in": "body",
  1474. "required": true,
  1475. "schema": {
  1476. "type": "object",
  1477. "$ref": "#/definitions/model.System"
  1478. }
  1479. }
  1480. ],
  1481. "responses": {
  1482. "200": {
  1483. "description": "{\"success\":true,\"data\":{},\"msg\":\"返回成功\"}",
  1484. "schema": {
  1485. "type": "string"
  1486. }
  1487. }
  1488. }
  1489. }
  1490. },
  1491. "/system/getSystemConfig": {
  1492. "post": {
  1493. "security": [
  1494. {
  1495. "ApiKeyAuth": []
  1496. }
  1497. ],
  1498. "produces": [
  1499. "application/json"
  1500. ],
  1501. "tags": [
  1502. "system"
  1503. ],
  1504. "summary": "获取配置文件内容",
  1505. "responses": {
  1506. "200": {
  1507. "description": "{\"success\":true,\"data\":{},\"msg\":\"返回成功\"}",
  1508. "schema": {
  1509. "type": "string"
  1510. }
  1511. }
  1512. }
  1513. }
  1514. },
  1515. "/system/setSystemConfig": {
  1516. "post": {
  1517. "security": [
  1518. {
  1519. "ApiKeyAuth": []
  1520. }
  1521. ],
  1522. "produces": [
  1523. "application/json"
  1524. ],
  1525. "tags": [
  1526. "system"
  1527. ],
  1528. "summary": "设置配置文件内容",
  1529. "parameters": [
  1530. {
  1531. "description": "设置配置文件内容",
  1532. "name": "data",
  1533. "in": "body",
  1534. "required": true,
  1535. "schema": {
  1536. "type": "object",
  1537. "$ref": "#/definitions/model.System"
  1538. }
  1539. }
  1540. ],
  1541. "responses": {
  1542. "200": {
  1543. "description": "{\"success\":true,\"data\":{},\"msg\":\"返回成功\"}",
  1544. "schema": {
  1545. "type": "string"
  1546. }
  1547. }
  1548. }
  1549. }
  1550. },
  1551. "/user/changePassword": {
  1552. "put": {
  1553. "security": [
  1554. {
  1555. "ApiKeyAuth": []
  1556. }
  1557. ],
  1558. "produces": [
  1559. "application/json"
  1560. ],
  1561. "tags": [
  1562. "SysUser"
  1563. ],
  1564. "summary": "用户修改密码",
  1565. "parameters": [
  1566. {
  1567. "description": "用户修改密码",
  1568. "name": "data",
  1569. "in": "body",
  1570. "required": true,
  1571. "schema": {
  1572. "type": "object",
  1573. "$ref": "#/definitions/request.ChangePasswordStruct"
  1574. }
  1575. }
  1576. ],
  1577. "responses": {
  1578. "200": {
  1579. "description": "{\"success\":true,\"data\":{},\"msg\":\"修改成功\"}",
  1580. "schema": {
  1581. "type": "string"
  1582. }
  1583. }
  1584. }
  1585. }
  1586. },
  1587. "/user/getUserList": {
  1588. "post": {
  1589. "security": [
  1590. {
  1591. "ApiKeyAuth": []
  1592. }
  1593. ],
  1594. "consumes": [
  1595. "application/json"
  1596. ],
  1597. "produces": [
  1598. "application/json"
  1599. ],
  1600. "tags": [
  1601. "SysUser"
  1602. ],
  1603. "summary": "分页获取用户列表",
  1604. "parameters": [
  1605. {
  1606. "description": "分页获取用户列表",
  1607. "name": "data",
  1608. "in": "body",
  1609. "required": true,
  1610. "schema": {
  1611. "type": "object",
  1612. "$ref": "#/definitions/request.PageInfo"
  1613. }
  1614. }
  1615. ],
  1616. "responses": {
  1617. "200": {
  1618. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  1619. "schema": {
  1620. "type": "string"
  1621. }
  1622. }
  1623. }
  1624. }
  1625. },
  1626. "/user/setUserAuthority": {
  1627. "post": {
  1628. "security": [
  1629. {
  1630. "ApiKeyAuth": []
  1631. }
  1632. ],
  1633. "consumes": [
  1634. "application/json"
  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.SetUserAuth"
  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/uploadHeaderImg": {
  1666. "post": {
  1667. "security": [
  1668. {
  1669. "ApiKeyAuth": []
  1670. }
  1671. ],
  1672. "consumes": [
  1673. "multipart/form-data"
  1674. ],
  1675. "produces": [
  1676. "application/json"
  1677. ],
  1678. "tags": [
  1679. "SysUser"
  1680. ],
  1681. "summary": "用户上传头像",
  1682. "parameters": [
  1683. {
  1684. "type": "file",
  1685. "description": "用户上传头像",
  1686. "name": "headerImg",
  1687. "in": "formData",
  1688. "required": true
  1689. },
  1690. {
  1691. "type": "string",
  1692. "description": "用户上传头像",
  1693. "name": "username",
  1694. "in": "formData",
  1695. "required": true
  1696. }
  1697. ],
  1698. "responses": {
  1699. "200": {
  1700. "description": "{\"success\":true,\"data\":{},\"msg\":\"上传成功\"}",
  1701. "schema": {
  1702. "type": "string"
  1703. }
  1704. }
  1705. }
  1706. }
  1707. },
  1708. "/workflow/createWorkFlow": {
  1709. "post": {
  1710. "produces": [
  1711. "application/json"
  1712. ],
  1713. "tags": [
  1714. "workflow"
  1715. ],
  1716. "summary": "注册工作流",
  1717. "parameters": [
  1718. {
  1719. "description": "注册工作流接口",
  1720. "name": "data",
  1721. "in": "body",
  1722. "required": true,
  1723. "schema": {
  1724. "type": "object",
  1725. "$ref": "#/definitions/model.SysWorkflow"
  1726. }
  1727. }
  1728. ],
  1729. "responses": {
  1730. "200": {
  1731. "description": "{\"success\":true,\"data\":{},\"msg\":\"注册成功\"}",
  1732. "schema": {
  1733. "type": "string"
  1734. }
  1735. }
  1736. }
  1737. }
  1738. }
  1739. },
  1740. "definitions": {
  1741. "config.Captcha": {
  1742. "type": "object",
  1743. "properties": {
  1744. "imgHeight": {
  1745. "type": "integer"
  1746. },
  1747. "imgWidth": {
  1748. "type": "integer"
  1749. },
  1750. "keyLong": {
  1751. "type": "integer"
  1752. }
  1753. }
  1754. },
  1755. "config.Casbin": {
  1756. "type": "object",
  1757. "properties": {
  1758. "modelPath": {
  1759. "type": "string"
  1760. }
  1761. }
  1762. },
  1763. "config.JWT": {
  1764. "type": "object",
  1765. "properties": {
  1766. "signingKey": {
  1767. "type": "string"
  1768. }
  1769. }
  1770. },
  1771. "config.Log": {
  1772. "type": "object",
  1773. "properties": {
  1774. "file": {
  1775. "type": "string"
  1776. },
  1777. "logFile": {
  1778. "type": "boolean"
  1779. },
  1780. "prefix": {
  1781. "type": "string"
  1782. },
  1783. "stdout": {
  1784. "type": "string"
  1785. }
  1786. }
  1787. },
  1788. "config.Mysql": {
  1789. "type": "object",
  1790. "properties": {
  1791. "config": {
  1792. "type": "string"
  1793. },
  1794. "dbname": {
  1795. "type": "string"
  1796. },
  1797. "logMode": {
  1798. "type": "boolean"
  1799. },
  1800. "maxIdleConns": {
  1801. "type": "integer"
  1802. },
  1803. "maxOpenConns": {
  1804. "type": "integer"
  1805. },
  1806. "password": {
  1807. "type": "string"
  1808. },
  1809. "path": {
  1810. "type": "string"
  1811. },
  1812. "username": {
  1813. "type": "string"
  1814. }
  1815. }
  1816. },
  1817. "config.Qiniu": {
  1818. "type": "object",
  1819. "properties": {
  1820. "accessKey": {
  1821. "type": "string"
  1822. },
  1823. "secretKey": {
  1824. "type": "string"
  1825. }
  1826. }
  1827. },
  1828. "config.Redis": {
  1829. "type": "object",
  1830. "properties": {
  1831. "addr": {
  1832. "type": "string"
  1833. },
  1834. "db": {
  1835. "type": "integer"
  1836. },
  1837. "password": {
  1838. "type": "string"
  1839. }
  1840. }
  1841. },
  1842. "config.Server": {
  1843. "type": "object",
  1844. "properties": {
  1845. "captcha": {
  1846. "type": "object",
  1847. "$ref": "#/definitions/config.Captcha"
  1848. },
  1849. "casbin": {
  1850. "type": "object",
  1851. "$ref": "#/definitions/config.Casbin"
  1852. },
  1853. "jwt": {
  1854. "type": "object",
  1855. "$ref": "#/definitions/config.JWT"
  1856. },
  1857. "log": {
  1858. "type": "object",
  1859. "$ref": "#/definitions/config.Log"
  1860. },
  1861. "mysql": {
  1862. "type": "object",
  1863. "$ref": "#/definitions/config.Mysql"
  1864. },
  1865. "qiniu": {
  1866. "type": "object",
  1867. "$ref": "#/definitions/config.Qiniu"
  1868. },
  1869. "redis": {
  1870. "type": "object",
  1871. "$ref": "#/definitions/config.Redis"
  1872. },
  1873. "sqlite": {
  1874. "type": "object",
  1875. "$ref": "#/definitions/config.Sqlite"
  1876. },
  1877. "system": {
  1878. "type": "object",
  1879. "$ref": "#/definitions/config.System"
  1880. }
  1881. }
  1882. },
  1883. "config.Sqlite": {
  1884. "type": "object",
  1885. "properties": {
  1886. "config": {
  1887. "type": "string"
  1888. },
  1889. "logMode": {
  1890. "type": "boolean"
  1891. },
  1892. "password": {
  1893. "type": "string"
  1894. },
  1895. "path": {
  1896. "type": "string"
  1897. },
  1898. "username": {
  1899. "type": "string"
  1900. }
  1901. }
  1902. },
  1903. "config.System": {
  1904. "type": "object",
  1905. "properties": {
  1906. "addr": {
  1907. "type": "integer"
  1908. },
  1909. "dbType": {
  1910. "type": "string"
  1911. },
  1912. "env": {
  1913. "type": "string"
  1914. },
  1915. "useMultipoint": {
  1916. "type": "boolean"
  1917. }
  1918. }
  1919. },
  1920. "model.AutoCodeStruct": {
  1921. "type": "object",
  1922. "properties": {
  1923. "abbreviation": {
  1924. "type": "string"
  1925. },
  1926. "fields": {
  1927. "type": "array",
  1928. "items": {
  1929. "$ref": "#/definitions/model.Field"
  1930. }
  1931. },
  1932. "packageName": {
  1933. "type": "string"
  1934. },
  1935. "structName": {
  1936. "type": "string"
  1937. }
  1938. }
  1939. },
  1940. "model.ExaCustomer": {
  1941. "type": "object",
  1942. "properties": {
  1943. "customerName": {
  1944. "type": "string"
  1945. },
  1946. "customerPhoneData": {
  1947. "type": "string"
  1948. },
  1949. "sysUser": {
  1950. "type": "object",
  1951. "$ref": "#/definitions/model.SysUser"
  1952. },
  1953. "sysUserAuthorityID": {
  1954. "type": "string"
  1955. },
  1956. "sysUserId": {
  1957. "type": "integer"
  1958. }
  1959. }
  1960. },
  1961. "model.ExaFileUploadAndDownload": {
  1962. "type": "object",
  1963. "properties": {
  1964. "key": {
  1965. "type": "string"
  1966. },
  1967. "name": {
  1968. "type": "string"
  1969. },
  1970. "tag": {
  1971. "type": "string"
  1972. },
  1973. "url": {
  1974. "type": "string"
  1975. }
  1976. }
  1977. },
  1978. "model.Field": {
  1979. "type": "object",
  1980. "properties": {
  1981. "columnName": {
  1982. "type": "string"
  1983. },
  1984. "fieldJson": {
  1985. "type": "string"
  1986. },
  1987. "fieldName": {
  1988. "type": "string"
  1989. },
  1990. "fieldType": {
  1991. "type": "string"
  1992. }
  1993. }
  1994. },
  1995. "model.SysApi": {
  1996. "type": "object",
  1997. "properties": {
  1998. "apiGroup": {
  1999. "type": "string"
  2000. },
  2001. "description": {
  2002. "type": "string"
  2003. },
  2004. "method": {
  2005. "type": "string"
  2006. },
  2007. "path": {
  2008. "type": "string"
  2009. }
  2010. }
  2011. },
  2012. "model.SysAuthority": {
  2013. "type": "object",
  2014. "properties": {
  2015. "authorityId": {
  2016. "type": "string"
  2017. },
  2018. "authorityName": {
  2019. "type": "string"
  2020. },
  2021. "children": {
  2022. "type": "array",
  2023. "items": {
  2024. "$ref": "#/definitions/model.SysAuthority"
  2025. }
  2026. },
  2027. "createdAt": {
  2028. "type": "string"
  2029. },
  2030. "dataAuthorityId": {
  2031. "type": "array",
  2032. "items": {
  2033. "$ref": "#/definitions/model.SysAuthority"
  2034. }
  2035. },
  2036. "deletedAt": {
  2037. "type": "string"
  2038. },
  2039. "menus": {
  2040. "type": "array",
  2041. "items": {
  2042. "$ref": "#/definitions/model.SysBaseMenu"
  2043. }
  2044. },
  2045. "parentId": {
  2046. "type": "string"
  2047. },
  2048. "updatedAt": {
  2049. "type": "string"
  2050. }
  2051. }
  2052. },
  2053. "model.SysBaseMenu": {
  2054. "type": "object",
  2055. "properties": {
  2056. "authoritys": {
  2057. "type": "array",
  2058. "items": {
  2059. "$ref": "#/definitions/model.SysAuthority"
  2060. }
  2061. },
  2062. "children": {
  2063. "type": "array",
  2064. "items": {
  2065. "$ref": "#/definitions/model.SysBaseMenu"
  2066. }
  2067. },
  2068. "component": {
  2069. "type": "string"
  2070. },
  2071. "hidden": {
  2072. "type": "boolean"
  2073. },
  2074. "icon": {
  2075. "type": "string"
  2076. },
  2077. "name": {
  2078. "type": "string"
  2079. },
  2080. "parentId": {
  2081. "type": "string"
  2082. },
  2083. "path": {
  2084. "type": "string"
  2085. },
  2086. "sort": {
  2087. "type": "integer"
  2088. },
  2089. "title": {
  2090. "type": "string"
  2091. }
  2092. }
  2093. },
  2094. "model.SysUser": {
  2095. "type": "object",
  2096. "properties": {
  2097. "authority": {
  2098. "type": "object",
  2099. "$ref": "#/definitions/model.SysAuthority"
  2100. },
  2101. "authorityId": {
  2102. "type": "string"
  2103. },
  2104. "headerImg": {
  2105. "type": "string"
  2106. },
  2107. "nickName": {
  2108. "type": "string"
  2109. },
  2110. "userName": {
  2111. "type": "string"
  2112. },
  2113. "uuid": {
  2114. "type": "string"
  2115. }
  2116. }
  2117. },
  2118. "model.SysWorkflow": {
  2119. "type": "object",
  2120. "properties": {
  2121. "workflowDescription": {
  2122. "description": "工作流描述",
  2123. "type": "string"
  2124. },
  2125. "workflowName": {
  2126. "description": "工作流英文id",
  2127. "type": "string"
  2128. },
  2129. "workflowNickName": {
  2130. "description": "工作流名称",
  2131. "type": "string"
  2132. },
  2133. "workflowStep": {
  2134. "description": "工作流步骤",
  2135. "type": "array",
  2136. "items": {
  2137. "$ref": "#/definitions/model.SysWorkflowStepInfo"
  2138. }
  2139. }
  2140. }
  2141. },
  2142. "model.SysWorkflowStepInfo": {
  2143. "type": "object",
  2144. "properties": {
  2145. "isEnd": {
  2146. "description": "是否是完结流节点",
  2147. "type": "boolean"
  2148. },
  2149. "isStrat": {
  2150. "description": "是否是开始流节点",
  2151. "type": "boolean"
  2152. },
  2153. "stepAuthorityID": {
  2154. "description": "操作者级别id",
  2155. "type": "string"
  2156. },
  2157. "stepName": {
  2158. "description": "工作流名称",
  2159. "type": "string"
  2160. },
  2161. "stepNo": {
  2162. "description": "步骤id (第几步)",
  2163. "type": "number"
  2164. },
  2165. "workflowID": {
  2166. "description": "所属工作流ID",
  2167. "type": "integer"
  2168. }
  2169. }
  2170. },
  2171. "model.System": {
  2172. "type": "object",
  2173. "properties": {
  2174. "config": {
  2175. "type": "object",
  2176. "$ref": "#/definitions/config.Server"
  2177. }
  2178. }
  2179. },
  2180. "request.AddMenuAuthorityInfo": {
  2181. "type": "object",
  2182. "properties": {
  2183. "authorityId": {
  2184. "type": "string"
  2185. },
  2186. "menus": {
  2187. "type": "array",
  2188. "items": {
  2189. "$ref": "#/definitions/model.SysBaseMenu"
  2190. }
  2191. }
  2192. }
  2193. },
  2194. "request.AuthorityIdInfo": {
  2195. "type": "object",
  2196. "properties": {
  2197. "authorityId": {
  2198. "type": "string"
  2199. }
  2200. }
  2201. },
  2202. "request.CasbinInReceive": {
  2203. "type": "object",
  2204. "properties": {
  2205. "authorityId": {
  2206. "type": "string"
  2207. },
  2208. "casbinInfos": {
  2209. "type": "array",
  2210. "items": {
  2211. "$ref": "#/definitions/request.CasbinInfo"
  2212. }
  2213. }
  2214. }
  2215. },
  2216. "request.CasbinInfo": {
  2217. "type": "object",
  2218. "properties": {
  2219. "method": {
  2220. "type": "string"
  2221. },
  2222. "path": {
  2223. "type": "string"
  2224. }
  2225. }
  2226. },
  2227. "request.ChangePasswordStruct": {
  2228. "type": "object",
  2229. "properties": {
  2230. "newPassword": {
  2231. "type": "string"
  2232. },
  2233. "password": {
  2234. "type": "string"
  2235. },
  2236. "username": {
  2237. "type": "string"
  2238. }
  2239. }
  2240. },
  2241. "request.GetById": {
  2242. "type": "object",
  2243. "properties": {
  2244. "id": {
  2245. "type": "number"
  2246. }
  2247. }
  2248. },
  2249. "request.PageInfo": {
  2250. "type": "object",
  2251. "properties": {
  2252. "page": {
  2253. "type": "integer"
  2254. },
  2255. "pageSize": {
  2256. "type": "integer"
  2257. }
  2258. }
  2259. },
  2260. "request.RegisterAndLoginStruct": {
  2261. "type": "object",
  2262. "properties": {
  2263. "captcha": {
  2264. "type": "string"
  2265. },
  2266. "captchaId": {
  2267. "type": "string"
  2268. },
  2269. "password": {
  2270. "type": "string"
  2271. },
  2272. "username": {
  2273. "type": "string"
  2274. }
  2275. }
  2276. },
  2277. "request.SearchApiParams": {
  2278. "type": "object",
  2279. "properties": {
  2280. "apiGroup": {
  2281. "type": "string"
  2282. },
  2283. "desc": {
  2284. "type": "boolean"
  2285. },
  2286. "description": {
  2287. "type": "string"
  2288. },
  2289. "method": {
  2290. "type": "string"
  2291. },
  2292. "orderKey": {
  2293. "type": "string"
  2294. },
  2295. "page": {
  2296. "type": "integer"
  2297. },
  2298. "pageSize": {
  2299. "type": "integer"
  2300. },
  2301. "path": {
  2302. "type": "string"
  2303. }
  2304. }
  2305. },
  2306. "request.SetUserAuth": {
  2307. "type": "object",
  2308. "properties": {
  2309. "authorityId": {
  2310. "type": "string"
  2311. },
  2312. "uuid": {
  2313. "type": "string"
  2314. }
  2315. }
  2316. }
  2317. }
  2318. }`
  2319. type swaggerInfo struct {
  2320. Version string
  2321. Host string
  2322. BasePath string
  2323. Schemes []string
  2324. Title string
  2325. Description string
  2326. }
  2327. // SwaggerInfo holds exported Swagger Info so clients can modify it
  2328. var SwaggerInfo = swaggerInfo{
  2329. Version: "",
  2330. Host: "",
  2331. BasePath: "",
  2332. Schemes: []string{},
  2333. Title: "",
  2334. Description: "",
  2335. }
  2336. type s struct{}
  2337. func (s *s) ReadDoc() string {
  2338. sInfo := SwaggerInfo
  2339. sInfo.Description = strings.Replace(sInfo.Description, "\n", "\\n", -1)
  2340. t, err := template.New("swagger_info").Funcs(template.FuncMap{
  2341. "marshal": func(v interface{}) string {
  2342. a, _ := json.Marshal(v)
  2343. return string(a)
  2344. },
  2345. }).Parse(doc)
  2346. if err != nil {
  2347. return doc
  2348. }
  2349. var tpl bytes.Buffer
  2350. if err := t.Execute(&tpl, sInfo); err != nil {
  2351. return doc
  2352. }
  2353. return tpl.String()
  2354. }
  2355. func init() {
  2356. swag.Register(swag.Name, &s{})
  2357. }