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.

2184 lines
67 KiB

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