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.

3528 lines
108 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
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
5 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
5 years ago
4 years ago
5 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
5 years ago
5 years ago
5 years ago
4 years ago
4 years ago
4 years ago
5 years ago
5 years ago
5 years ago
4 years ago
4 years ago
4 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
4 years ago
5 years ago
4 years ago
4 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-10-18 12:17:37.2292991 +0800 CST m=+0.263609801
  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. "$ref": "#/definitions/model.SysApi"
  50. }
  51. }
  52. ],
  53. "responses": {
  54. "200": {
  55. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  56. "schema": {
  57. "type": "string"
  58. }
  59. }
  60. }
  61. }
  62. },
  63. "/api/deleteApi": {
  64. "post": {
  65. "security": [
  66. {
  67. "ApiKeyAuth": []
  68. }
  69. ],
  70. "consumes": [
  71. "application/json"
  72. ],
  73. "produces": [
  74. "application/json"
  75. ],
  76. "tags": [
  77. "SysApi"
  78. ],
  79. "summary": "删除指定api",
  80. "parameters": [
  81. {
  82. "description": "删除api",
  83. "name": "data",
  84. "in": "body",
  85. "required": true,
  86. "schema": {
  87. "$ref": "#/definitions/model.SysApi"
  88. }
  89. }
  90. ],
  91. "responses": {
  92. "200": {
  93. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  94. "schema": {
  95. "type": "string"
  96. }
  97. }
  98. }
  99. }
  100. },
  101. "/api/getAllApis": {
  102. "post": {
  103. "security": [
  104. {
  105. "ApiKeyAuth": []
  106. }
  107. ],
  108. "consumes": [
  109. "application/json"
  110. ],
  111. "produces": [
  112. "application/json"
  113. ],
  114. "tags": [
  115. "SysApi"
  116. ],
  117. "summary": "获取所有的Api 不分页",
  118. "responses": {
  119. "200": {
  120. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  121. "schema": {
  122. "type": "string"
  123. }
  124. }
  125. }
  126. }
  127. },
  128. "/api/getApiById": {
  129. "post": {
  130. "security": [
  131. {
  132. "ApiKeyAuth": []
  133. }
  134. ],
  135. "consumes": [
  136. "application/json"
  137. ],
  138. "produces": [
  139. "application/json"
  140. ],
  141. "tags": [
  142. "SysApi"
  143. ],
  144. "summary": "根据id获取api",
  145. "parameters": [
  146. {
  147. "description": "根据id获取api",
  148. "name": "data",
  149. "in": "body",
  150. "required": true,
  151. "schema": {
  152. "$ref": "#/definitions/request.GetById"
  153. }
  154. }
  155. ],
  156. "responses": {
  157. "200": {
  158. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  159. "schema": {
  160. "type": "string"
  161. }
  162. }
  163. }
  164. }
  165. },
  166. "/api/getApiList": {
  167. "post": {
  168. "security": [
  169. {
  170. "ApiKeyAuth": []
  171. }
  172. ],
  173. "consumes": [
  174. "application/json"
  175. ],
  176. "produces": [
  177. "application/json"
  178. ],
  179. "tags": [
  180. "SysApi"
  181. ],
  182. "summary": "分页获取API列表",
  183. "parameters": [
  184. {
  185. "description": "分页获取API列表",
  186. "name": "data",
  187. "in": "body",
  188. "required": true,
  189. "schema": {
  190. "$ref": "#/definitions/request.SearchApiParams"
  191. }
  192. }
  193. ],
  194. "responses": {
  195. "200": {
  196. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  197. "schema": {
  198. "type": "string"
  199. }
  200. }
  201. }
  202. }
  203. },
  204. "/api/updateApi": {
  205. "post": {
  206. "security": [
  207. {
  208. "ApiKeyAuth": []
  209. }
  210. ],
  211. "consumes": [
  212. "application/json"
  213. ],
  214. "produces": [
  215. "application/json"
  216. ],
  217. "tags": [
  218. "SysApi"
  219. ],
  220. "summary": "创建基础api",
  221. "parameters": [
  222. {
  223. "description": "创建api",
  224. "name": "data",
  225. "in": "body",
  226. "required": true,
  227. "schema": {
  228. "$ref": "#/definitions/model.SysApi"
  229. }
  230. }
  231. ],
  232. "responses": {
  233. "200": {
  234. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  235. "schema": {
  236. "type": "string"
  237. }
  238. }
  239. }
  240. }
  241. },
  242. "/authority/copyAuthority": {
  243. "post": {
  244. "security": [
  245. {
  246. "ApiKeyAuth": []
  247. }
  248. ],
  249. "consumes": [
  250. "application/json"
  251. ],
  252. "produces": [
  253. "application/json"
  254. ],
  255. "tags": [
  256. "authority"
  257. ],
  258. "summary": "拷贝角色",
  259. "parameters": [
  260. {
  261. "description": "拷贝角色",
  262. "name": "data",
  263. "in": "body",
  264. "required": true,
  265. "schema": {
  266. "$ref": "#/definitions/response.SysAuthorityCopyResponse"
  267. }
  268. }
  269. ],
  270. "responses": {
  271. "200": {
  272. "description": "{\"success\":true,\"data\":{},\"msg\":\"拷贝成功\"}",
  273. "schema": {
  274. "type": "string"
  275. }
  276. }
  277. }
  278. }
  279. },
  280. "/authority/createAuthority": {
  281. "post": {
  282. "security": [
  283. {
  284. "ApiKeyAuth": []
  285. }
  286. ],
  287. "consumes": [
  288. "application/json"
  289. ],
  290. "produces": [
  291. "application/json"
  292. ],
  293. "tags": [
  294. "authority"
  295. ],
  296. "summary": "创建角色",
  297. "parameters": [
  298. {
  299. "description": "创建角色",
  300. "name": "data",
  301. "in": "body",
  302. "required": true,
  303. "schema": {
  304. "$ref": "#/definitions/model.SysAuthority"
  305. }
  306. }
  307. ],
  308. "responses": {
  309. "200": {
  310. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  311. "schema": {
  312. "type": "string"
  313. }
  314. }
  315. }
  316. }
  317. },
  318. "/authority/deleteAuthority": {
  319. "post": {
  320. "security": [
  321. {
  322. "ApiKeyAuth": []
  323. }
  324. ],
  325. "consumes": [
  326. "application/json"
  327. ],
  328. "produces": [
  329. "application/json"
  330. ],
  331. "tags": [
  332. "authority"
  333. ],
  334. "summary": "删除角色",
  335. "parameters": [
  336. {
  337. "description": "删除角色",
  338. "name": "data",
  339. "in": "body",
  340. "required": true,
  341. "schema": {
  342. "$ref": "#/definitions/model.SysAuthority"
  343. }
  344. }
  345. ],
  346. "responses": {
  347. "200": {
  348. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  349. "schema": {
  350. "type": "string"
  351. }
  352. }
  353. }
  354. }
  355. },
  356. "/authority/getAuthorityList": {
  357. "post": {
  358. "security": [
  359. {
  360. "ApiKeyAuth": []
  361. }
  362. ],
  363. "consumes": [
  364. "application/json"
  365. ],
  366. "produces": [
  367. "application/json"
  368. ],
  369. "tags": [
  370. "authority"
  371. ],
  372. "summary": "分页获取角色列表",
  373. "parameters": [
  374. {
  375. "description": "分页获取用户列表",
  376. "name": "data",
  377. "in": "body",
  378. "required": true,
  379. "schema": {
  380. "$ref": "#/definitions/request.PageInfo"
  381. }
  382. }
  383. ],
  384. "responses": {
  385. "200": {
  386. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  387. "schema": {
  388. "type": "string"
  389. }
  390. }
  391. }
  392. }
  393. },
  394. "/authority/setDataAuthority": {
  395. "post": {
  396. "security": [
  397. {
  398. "ApiKeyAuth": []
  399. }
  400. ],
  401. "consumes": [
  402. "application/json"
  403. ],
  404. "produces": [
  405. "application/json"
  406. ],
  407. "tags": [
  408. "authority"
  409. ],
  410. "summary": "设置角色资源权限",
  411. "parameters": [
  412. {
  413. "description": "设置角色资源权限",
  414. "name": "data",
  415. "in": "body",
  416. "required": true,
  417. "schema": {
  418. "$ref": "#/definitions/model.SysAuthority"
  419. }
  420. }
  421. ],
  422. "responses": {
  423. "200": {
  424. "description": "{\"success\":true,\"data\":{},\"msg\":\"设置成功\"}",
  425. "schema": {
  426. "type": "string"
  427. }
  428. }
  429. }
  430. }
  431. },
  432. "/authority/updateAuthority": {
  433. "post": {
  434. "security": [
  435. {
  436. "ApiKeyAuth": []
  437. }
  438. ],
  439. "consumes": [
  440. "application/json"
  441. ],
  442. "produces": [
  443. "application/json"
  444. ],
  445. "tags": [
  446. "authority"
  447. ],
  448. "summary": "设置角色资源权限",
  449. "parameters": [
  450. {
  451. "description": "设置角色资源权限",
  452. "name": "data",
  453. "in": "body",
  454. "required": true,
  455. "schema": {
  456. "$ref": "#/definitions/model.SysAuthority"
  457. }
  458. }
  459. ],
  460. "responses": {
  461. "200": {
  462. "description": "{\"success\":true,\"data\":{},\"msg\":\"设置成功\"}",
  463. "schema": {
  464. "type": "string"
  465. }
  466. }
  467. }
  468. }
  469. },
  470. "/autoCode/createTemp": {
  471. "post": {
  472. "security": [
  473. {
  474. "ApiKeyAuth": []
  475. }
  476. ],
  477. "consumes": [
  478. "application/json"
  479. ],
  480. "produces": [
  481. "application/json"
  482. ],
  483. "tags": [
  484. "SysApi"
  485. ],
  486. "summary": "自动代码模板",
  487. "parameters": [
  488. {
  489. "description": "创建自动代码",
  490. "name": "data",
  491. "in": "body",
  492. "required": true,
  493. "schema": {
  494. "$ref": "#/definitions/model.AutoCodeStruct"
  495. }
  496. }
  497. ],
  498. "responses": {
  499. "200": {
  500. "description": "{\"success\":true,\"data\":{},\"msg\":\"创建成功\"}",
  501. "schema": {
  502. "type": "string"
  503. }
  504. }
  505. }
  506. }
  507. },
  508. "/autoCode/getDatabase": {
  509. "get": {
  510. "security": [
  511. {
  512. "ApiKeyAuth": []
  513. }
  514. ],
  515. "consumes": [
  516. "application/json"
  517. ],
  518. "produces": [
  519. "application/json"
  520. ],
  521. "tags": [
  522. "SysApi"
  523. ],
  524. "summary": "获取当前表所有字段",
  525. "responses": {
  526. "200": {
  527. "description": "{\"success\":true,\"data\":{},\"msg\":\"创建成功\"}",
  528. "schema": {
  529. "type": "string"
  530. }
  531. }
  532. }
  533. }
  534. },
  535. "/base/captcha": {
  536. "post": {
  537. "security": [
  538. {
  539. "ApiKeyAuth": []
  540. }
  541. ],
  542. "consumes": [
  543. "application/json"
  544. ],
  545. "produces": [
  546. "application/json"
  547. ],
  548. "tags": [
  549. "base"
  550. ],
  551. "summary": "生成验证码",
  552. "responses": {
  553. "200": {
  554. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  555. "schema": {
  556. "type": "string"
  557. }
  558. }
  559. }
  560. }
  561. },
  562. "/base/login": {
  563. "post": {
  564. "produces": [
  565. "application/json"
  566. ],
  567. "tags": [
  568. "Base"
  569. ],
  570. "summary": "用户登录",
  571. "parameters": [
  572. {
  573. "description": "用户登录接口",
  574. "name": "data",
  575. "in": "body",
  576. "required": true,
  577. "schema": {
  578. "$ref": "#/definitions/request.RegisterAndLoginStruct"
  579. }
  580. }
  581. ],
  582. "responses": {
  583. "200": {
  584. "description": "{\"success\":true,\"data\":{},\"msg\":\"登陆成功\"}",
  585. "schema": {
  586. "type": "string"
  587. }
  588. }
  589. }
  590. }
  591. },
  592. "/casbin/UpdateCasbin": {
  593. "post": {
  594. "security": [
  595. {
  596. "ApiKeyAuth": []
  597. }
  598. ],
  599. "consumes": [
  600. "application/json"
  601. ],
  602. "produces": [
  603. "application/json"
  604. ],
  605. "tags": [
  606. "casbin"
  607. ],
  608. "summary": "更改角色api权限",
  609. "parameters": [
  610. {
  611. "description": "更改角色api权限",
  612. "name": "data",
  613. "in": "body",
  614. "required": true,
  615. "schema": {
  616. "$ref": "#/definitions/request.CasbinInReceive"
  617. }
  618. }
  619. ],
  620. "responses": {
  621. "200": {
  622. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  623. "schema": {
  624. "type": "string"
  625. }
  626. }
  627. }
  628. }
  629. },
  630. "/casbin/getPolicyPathByAuthorityId": {
  631. "post": {
  632. "security": [
  633. {
  634. "ApiKeyAuth": []
  635. }
  636. ],
  637. "consumes": [
  638. "application/json"
  639. ],
  640. "produces": [
  641. "application/json"
  642. ],
  643. "tags": [
  644. "casbin"
  645. ],
  646. "summary": "获取权限列表",
  647. "parameters": [
  648. {
  649. "description": "获取权限列表",
  650. "name": "data",
  651. "in": "body",
  652. "required": true,
  653. "schema": {
  654. "$ref": "#/definitions/request.CasbinInReceive"
  655. }
  656. }
  657. ],
  658. "responses": {
  659. "200": {
  660. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  661. "schema": {
  662. "type": "string"
  663. }
  664. }
  665. }
  666. }
  667. },
  668. "/customer/customer": {
  669. "get": {
  670. "security": [
  671. {
  672. "ApiKeyAuth": []
  673. }
  674. ],
  675. "consumes": [
  676. "application/json"
  677. ],
  678. "produces": [
  679. "application/json"
  680. ],
  681. "tags": [
  682. "SysApi"
  683. ],
  684. "summary": "获取单一客户信息",
  685. "parameters": [
  686. {
  687. "description": "获取单一客户信息",
  688. "name": "data",
  689. "in": "body",
  690. "required": true,
  691. "schema": {
  692. "$ref": "#/definitions/model.ExaCustomer"
  693. }
  694. }
  695. ],
  696. "responses": {
  697. "200": {
  698. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  699. "schema": {
  700. "type": "string"
  701. }
  702. }
  703. }
  704. },
  705. "put": {
  706. "security": [
  707. {
  708. "ApiKeyAuth": []
  709. }
  710. ],
  711. "consumes": [
  712. "application/json"
  713. ],
  714. "produces": [
  715. "application/json"
  716. ],
  717. "tags": [
  718. "SysApi"
  719. ],
  720. "summary": "更新客户信息",
  721. "parameters": [
  722. {
  723. "description": "创建客户",
  724. "name": "data",
  725. "in": "body",
  726. "required": true,
  727. "schema": {
  728. "$ref": "#/definitions/model.ExaCustomer"
  729. }
  730. }
  731. ],
  732. "responses": {
  733. "200": {
  734. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  735. "schema": {
  736. "type": "string"
  737. }
  738. }
  739. }
  740. },
  741. "post": {
  742. "security": [
  743. {
  744. "ApiKeyAuth": []
  745. }
  746. ],
  747. "consumes": [
  748. "application/json"
  749. ],
  750. "produces": [
  751. "application/json"
  752. ],
  753. "tags": [
  754. "SysApi"
  755. ],
  756. "summary": "创建客户",
  757. "parameters": [
  758. {
  759. "description": "创建客户",
  760. "name": "data",
  761. "in": "body",
  762. "required": true,
  763. "schema": {
  764. "$ref": "#/definitions/model.ExaCustomer"
  765. }
  766. }
  767. ],
  768. "responses": {
  769. "200": {
  770. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  771. "schema": {
  772. "type": "string"
  773. }
  774. }
  775. }
  776. },
  777. "delete": {
  778. "security": [
  779. {
  780. "ApiKeyAuth": []
  781. }
  782. ],
  783. "consumes": [
  784. "application/json"
  785. ],
  786. "produces": [
  787. "application/json"
  788. ],
  789. "tags": [
  790. "SysApi"
  791. ],
  792. "summary": "删除客户",
  793. "parameters": [
  794. {
  795. "description": "删除客户",
  796. "name": "data",
  797. "in": "body",
  798. "required": true,
  799. "schema": {
  800. "$ref": "#/definitions/model.ExaCustomer"
  801. }
  802. }
  803. ],
  804. "responses": {
  805. "200": {
  806. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  807. "schema": {
  808. "type": "string"
  809. }
  810. }
  811. }
  812. }
  813. },
  814. "/customer/customerList": {
  815. "get": {
  816. "security": [
  817. {
  818. "ApiKeyAuth": []
  819. }
  820. ],
  821. "consumes": [
  822. "application/json"
  823. ],
  824. "produces": [
  825. "application/json"
  826. ],
  827. "tags": [
  828. "SysApi"
  829. ],
  830. "summary": "获取权限客户列表",
  831. "parameters": [
  832. {
  833. "description": "获取权限客户列表",
  834. "name": "data",
  835. "in": "body",
  836. "required": true,
  837. "schema": {
  838. "$ref": "#/definitions/request.PageInfo"
  839. }
  840. }
  841. ],
  842. "responses": {
  843. "200": {
  844. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  845. "schema": {
  846. "type": "string"
  847. }
  848. }
  849. }
  850. }
  851. },
  852. "/email/emailTest": {
  853. "post": {
  854. "security": [
  855. {
  856. "ApiKeyAuth": []
  857. }
  858. ],
  859. "produces": [
  860. "application/json"
  861. ],
  862. "tags": [
  863. "system"
  864. ],
  865. "summary": "发送测试邮件",
  866. "responses": {
  867. "200": {
  868. "description": "{\"success\":true,\"data\":{},\"msg\":\"返回成功\"}",
  869. "schema": {
  870. "type": "string"
  871. }
  872. }
  873. }
  874. }
  875. },
  876. "/fileUploadAndDownload/breakpointContinue": {
  877. "post": {
  878. "security": [
  879. {
  880. "ApiKeyAuth": []
  881. }
  882. ],
  883. "consumes": [
  884. "multipart/form-data"
  885. ],
  886. "produces": [
  887. "application/json"
  888. ],
  889. "tags": [
  890. "ExaFileUploadAndDownload"
  891. ],
  892. "summary": "断点续传到服务器",
  893. "parameters": [
  894. {
  895. "type": "file",
  896. "description": "an example for breakpoint resume, 断点续传示例",
  897. "name": "file",
  898. "in": "formData",
  899. "required": true
  900. }
  901. ],
  902. "responses": {
  903. "200": {
  904. "description": "{\"success\":true,\"data\":{},\"msg\":\"上传成功\"}",
  905. "schema": {
  906. "type": "string"
  907. }
  908. }
  909. }
  910. }
  911. },
  912. "/fileUploadAndDownload/deleteFile": {
  913. "post": {
  914. "security": [
  915. {
  916. "ApiKeyAuth": []
  917. }
  918. ],
  919. "produces": [
  920. "application/json"
  921. ],
  922. "tags": [
  923. "ExaFileUploadAndDownload"
  924. ],
  925. "summary": "删除文件",
  926. "parameters": [
  927. {
  928. "description": "传入文件里面id即可",
  929. "name": "data",
  930. "in": "body",
  931. "required": true,
  932. "schema": {
  933. "$ref": "#/definitions/model.ExaFileUploadAndDownload"
  934. }
  935. }
  936. ],
  937. "responses": {
  938. "200": {
  939. "description": "{\"success\":true,\"data\":{},\"msg\":\"返回成功\"}",
  940. "schema": {
  941. "type": "string"
  942. }
  943. }
  944. }
  945. }
  946. },
  947. "/fileUploadAndDownload/findFile": {
  948. "post": {
  949. "security": [
  950. {
  951. "ApiKeyAuth": []
  952. }
  953. ],
  954. "consumes": [
  955. "multipart/form-data"
  956. ],
  957. "produces": [
  958. "application/json"
  959. ],
  960. "tags": [
  961. "ExaFileUploadAndDownload"
  962. ],
  963. "summary": "查找文件",
  964. "parameters": [
  965. {
  966. "type": "file",
  967. "description": "上传文件完成",
  968. "name": "file",
  969. "in": "formData",
  970. "required": true
  971. }
  972. ],
  973. "responses": {
  974. "200": {
  975. "description": "{\"success\":true,\"data\":{},\"msg\":\"file uploaded, 文件创建成功\"}",
  976. "schema": {
  977. "type": "string"
  978. }
  979. }
  980. }
  981. }
  982. },
  983. "/fileUploadAndDownload/getFileList": {
  984. "post": {
  985. "security": [
  986. {
  987. "ApiKeyAuth": []
  988. }
  989. ],
  990. "consumes": [
  991. "application/json"
  992. ],
  993. "produces": [
  994. "application/json"
  995. ],
  996. "tags": [
  997. "ExaFileUploadAndDownload"
  998. ],
  999. "summary": "分页文件列表",
  1000. "parameters": [
  1001. {
  1002. "description": "分页获取文件户列表",
  1003. "name": "data",
  1004. "in": "body",
  1005. "required": true,
  1006. "schema": {
  1007. "$ref": "#/definitions/request.PageInfo"
  1008. }
  1009. }
  1010. ],
  1011. "responses": {
  1012. "200": {
  1013. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  1014. "schema": {
  1015. "type": "string"
  1016. }
  1017. }
  1018. }
  1019. }
  1020. },
  1021. "/fileUploadAndDownload/removeChunk": {
  1022. "post": {
  1023. "security": [
  1024. {
  1025. "ApiKeyAuth": []
  1026. }
  1027. ],
  1028. "consumes": [
  1029. "multipart/form-data"
  1030. ],
  1031. "produces": [
  1032. "application/json"
  1033. ],
  1034. "tags": [
  1035. "ExaFileUploadAndDownload"
  1036. ],
  1037. "summary": "删除切片",
  1038. "parameters": [
  1039. {
  1040. "type": "file",
  1041. "description": "删除缓存切片",
  1042. "name": "file",
  1043. "in": "formData",
  1044. "required": true
  1045. }
  1046. ],
  1047. "responses": {
  1048. "200": {
  1049. "description": "{\"success\":true,\"data\":{},\"msg\":\"查找成功\"}",
  1050. "schema": {
  1051. "type": "string"
  1052. }
  1053. }
  1054. }
  1055. }
  1056. },
  1057. "/fileUploadAndDownload/upload": {
  1058. "post": {
  1059. "security": [
  1060. {
  1061. "ApiKeyAuth": []
  1062. }
  1063. ],
  1064. "consumes": [
  1065. "multipart/form-data"
  1066. ],
  1067. "produces": [
  1068. "application/json"
  1069. ],
  1070. "tags": [
  1071. "ExaFileUploadAndDownload"
  1072. ],
  1073. "summary": "上传文件示例",
  1074. "parameters": [
  1075. {
  1076. "type": "file",
  1077. "description": "上传文件示例",
  1078. "name": "file",
  1079. "in": "formData",
  1080. "required": true
  1081. }
  1082. ],
  1083. "responses": {
  1084. "200": {
  1085. "description": "{\"success\":true,\"data\":{},\"msg\":\"上传成功\"}",
  1086. "schema": {
  1087. "type": "string"
  1088. }
  1089. }
  1090. }
  1091. }
  1092. },
  1093. "/jwt/jsonInBlacklist": {
  1094. "post": {
  1095. "security": [
  1096. {
  1097. "ApiKeyAuth": []
  1098. }
  1099. ],
  1100. "consumes": [
  1101. "application/json"
  1102. ],
  1103. "produces": [
  1104. "application/json"
  1105. ],
  1106. "tags": [
  1107. "jwt"
  1108. ],
  1109. "summary": "jwt加入黑名单",
  1110. "responses": {
  1111. "200": {
  1112. "description": "{\"success\":true,\"data\":{},\"msg\":\"拉黑成功\"}",
  1113. "schema": {
  1114. "type": "string"
  1115. }
  1116. }
  1117. }
  1118. }
  1119. },
  1120. "/menu/GetMenuAuthority": {
  1121. "post": {
  1122. "security": [
  1123. {
  1124. "ApiKeyAuth": []
  1125. }
  1126. ],
  1127. "consumes": [
  1128. "application/json"
  1129. ],
  1130. "produces": [
  1131. "application/json"
  1132. ],
  1133. "tags": [
  1134. "authorityAndMenu"
  1135. ],
  1136. "summary": "获取指定角色menu",
  1137. "parameters": [
  1138. {
  1139. "description": "增加menu和角色关联关系",
  1140. "name": "data",
  1141. "in": "body",
  1142. "required": true,
  1143. "schema": {
  1144. "$ref": "#/definitions/request.AuthorityIdInfo"
  1145. }
  1146. }
  1147. ],
  1148. "responses": {
  1149. "200": {
  1150. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  1151. "schema": {
  1152. "type": "string"
  1153. }
  1154. }
  1155. }
  1156. }
  1157. },
  1158. "/menu/addBaseMenu": {
  1159. "post": {
  1160. "security": [
  1161. {
  1162. "ApiKeyAuth": []
  1163. }
  1164. ],
  1165. "consumes": [
  1166. "application/json"
  1167. ],
  1168. "produces": [
  1169. "application/json"
  1170. ],
  1171. "tags": [
  1172. "menu"
  1173. ],
  1174. "summary": "新增菜单",
  1175. "parameters": [
  1176. {
  1177. "description": "新增菜单",
  1178. "name": "data",
  1179. "in": "body",
  1180. "required": true,
  1181. "schema": {
  1182. "$ref": "#/definitions/model.SysBaseMenu"
  1183. }
  1184. }
  1185. ],
  1186. "responses": {
  1187. "200": {
  1188. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  1189. "schema": {
  1190. "type": "string"
  1191. }
  1192. }
  1193. }
  1194. }
  1195. },
  1196. "/menu/addMenuAuthority": {
  1197. "post": {
  1198. "security": [
  1199. {
  1200. "ApiKeyAuth": []
  1201. }
  1202. ],
  1203. "consumes": [
  1204. "application/json"
  1205. ],
  1206. "produces": [
  1207. "application/json"
  1208. ],
  1209. "tags": [
  1210. "authorityAndMenu"
  1211. ],
  1212. "summary": "增加menu和角色关联关系",
  1213. "parameters": [
  1214. {
  1215. "description": "增加menu和角色关联关系",
  1216. "name": "data",
  1217. "in": "body",
  1218. "required": true,
  1219. "schema": {
  1220. "$ref": "#/definitions/request.AddMenuAuthorityInfo"
  1221. }
  1222. }
  1223. ],
  1224. "responses": {
  1225. "200": {
  1226. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  1227. "schema": {
  1228. "type": "string"
  1229. }
  1230. }
  1231. }
  1232. }
  1233. },
  1234. "/menu/deleteBaseMenu": {
  1235. "post": {
  1236. "security": [
  1237. {
  1238. "ApiKeyAuth": []
  1239. }
  1240. ],
  1241. "consumes": [
  1242. "application/json"
  1243. ],
  1244. "produces": [
  1245. "application/json"
  1246. ],
  1247. "tags": [
  1248. "menu"
  1249. ],
  1250. "summary": "删除菜单",
  1251. "parameters": [
  1252. {
  1253. "description": "删除菜单",
  1254. "name": "data",
  1255. "in": "body",
  1256. "required": true,
  1257. "schema": {
  1258. "$ref": "#/definitions/request.GetById"
  1259. }
  1260. }
  1261. ],
  1262. "responses": {
  1263. "200": {
  1264. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  1265. "schema": {
  1266. "type": "string"
  1267. }
  1268. }
  1269. }
  1270. }
  1271. },
  1272. "/menu/getBaseMenuById": {
  1273. "post": {
  1274. "security": [
  1275. {
  1276. "ApiKeyAuth": []
  1277. }
  1278. ],
  1279. "consumes": [
  1280. "application/json"
  1281. ],
  1282. "produces": [
  1283. "application/json"
  1284. ],
  1285. "tags": [
  1286. "menu"
  1287. ],
  1288. "summary": "根据id获取菜单",
  1289. "parameters": [
  1290. {
  1291. "description": "根据id获取菜单",
  1292. "name": "data",
  1293. "in": "body",
  1294. "required": true,
  1295. "schema": {
  1296. "$ref": "#/definitions/request.GetById"
  1297. }
  1298. }
  1299. ],
  1300. "responses": {
  1301. "200": {
  1302. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  1303. "schema": {
  1304. "type": "string"
  1305. }
  1306. }
  1307. }
  1308. }
  1309. },
  1310. "/menu/getBaseMenuTree": {
  1311. "post": {
  1312. "security": [
  1313. {
  1314. "ApiKeyAuth": []
  1315. }
  1316. ],
  1317. "produces": [
  1318. "application/json"
  1319. ],
  1320. "tags": [
  1321. "authorityAndMenu"
  1322. ],
  1323. "summary": "获取用户动态路由",
  1324. "parameters": [
  1325. {
  1326. "description": "可以什么都不填",
  1327. "name": "data",
  1328. "in": "body",
  1329. "required": true,
  1330. "schema": {
  1331. "$ref": "#/definitions/request.RegisterAndLoginStruct"
  1332. }
  1333. }
  1334. ],
  1335. "responses": {
  1336. "200": {
  1337. "description": "{\"success\":true,\"data\":{},\"msg\":\"返回成功\"}",
  1338. "schema": {
  1339. "type": "string"
  1340. }
  1341. }
  1342. }
  1343. }
  1344. },
  1345. "/menu/getMenu": {
  1346. "post": {
  1347. "security": [
  1348. {
  1349. "ApiKeyAuth": []
  1350. }
  1351. ],
  1352. "produces": [
  1353. "application/json"
  1354. ],
  1355. "tags": [
  1356. "authorityAndMenu"
  1357. ],
  1358. "summary": "获取用户动态路由",
  1359. "parameters": [
  1360. {
  1361. "description": "可以什么都不填",
  1362. "name": "data",
  1363. "in": "body",
  1364. "required": true,
  1365. "schema": {
  1366. "$ref": "#/definitions/request.RegisterAndLoginStruct"
  1367. }
  1368. }
  1369. ],
  1370. "responses": {
  1371. "200": {
  1372. "description": "{\"success\":true,\"data\":{},\"msg\":\"返回成功\"}",
  1373. "schema": {
  1374. "type": "string"
  1375. }
  1376. }
  1377. }
  1378. }
  1379. },
  1380. "/menu/getMenuList": {
  1381. "post": {
  1382. "security": [
  1383. {
  1384. "ApiKeyAuth": []
  1385. }
  1386. ],
  1387. "consumes": [
  1388. "application/json"
  1389. ],
  1390. "produces": [
  1391. "application/json"
  1392. ],
  1393. "tags": [
  1394. "menu"
  1395. ],
  1396. "summary": "分页获取基础menu列表",
  1397. "parameters": [
  1398. {
  1399. "description": "分页获取基础menu列表",
  1400. "name": "data",
  1401. "in": "body",
  1402. "required": true,
  1403. "schema": {
  1404. "$ref": "#/definitions/request.PageInfo"
  1405. }
  1406. }
  1407. ],
  1408. "responses": {
  1409. "200": {
  1410. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  1411. "schema": {
  1412. "type": "string"
  1413. }
  1414. }
  1415. }
  1416. }
  1417. },
  1418. "/menu/updateBaseMenu": {
  1419. "post": {
  1420. "security": [
  1421. {
  1422. "ApiKeyAuth": []
  1423. }
  1424. ],
  1425. "consumes": [
  1426. "application/json"
  1427. ],
  1428. "produces": [
  1429. "application/json"
  1430. ],
  1431. "tags": [
  1432. "menu"
  1433. ],
  1434. "summary": "更新菜单",
  1435. "parameters": [
  1436. {
  1437. "description": "更新菜单",
  1438. "name": "data",
  1439. "in": "body",
  1440. "required": true,
  1441. "schema": {
  1442. "$ref": "#/definitions/model.SysBaseMenu"
  1443. }
  1444. }
  1445. ],
  1446. "responses": {
  1447. "200": {
  1448. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  1449. "schema": {
  1450. "type": "string"
  1451. }
  1452. }
  1453. }
  1454. }
  1455. },
  1456. "/simpleUploader/checkFileMd5": {
  1457. "get": {
  1458. "produces": [
  1459. "application/json"
  1460. ],
  1461. "parameters": [
  1462. {
  1463. "type": "string",
  1464. "description": "测试文件是否已经存在和判断已经上传过的切片",
  1465. "name": "md5",
  1466. "in": "query",
  1467. "required": true
  1468. }
  1469. ],
  1470. "responses": {
  1471. "200": {
  1472. "description": "{\"success\":true,\"data\":{},\"msg\":\"查询成功\"}",
  1473. "schema": {
  1474. "type": "string"
  1475. }
  1476. }
  1477. }
  1478. }
  1479. },
  1480. "/simpleUploader/mergeFileMd5": {
  1481. "get": {
  1482. "security": [
  1483. {
  1484. "ApiKeyAuth": []
  1485. }
  1486. ],
  1487. "produces": [
  1488. "application/json"
  1489. ],
  1490. "tags": [
  1491. "SimpleUploader"
  1492. ],
  1493. "summary": "合并文件",
  1494. "parameters": [
  1495. {
  1496. "type": "string",
  1497. "description": "合并文件",
  1498. "name": "md5",
  1499. "in": "query",
  1500. "required": true
  1501. }
  1502. ],
  1503. "responses": {
  1504. "200": {
  1505. "description": "{\"success\":true,\"data\":{},\"msg\":\"合并成功\"}",
  1506. "schema": {
  1507. "type": "string"
  1508. }
  1509. }
  1510. }
  1511. }
  1512. },
  1513. "/simpleUploader/upload": {
  1514. "post": {
  1515. "security": [
  1516. {
  1517. "ApiKeyAuth": []
  1518. }
  1519. ],
  1520. "consumes": [
  1521. "multipart/form-data"
  1522. ],
  1523. "produces": [
  1524. "application/json"
  1525. ],
  1526. "tags": [
  1527. "SimpleUploader"
  1528. ],
  1529. "summary": "断点续传插件版示例",
  1530. "parameters": [
  1531. {
  1532. "type": "file",
  1533. "description": "断点续传插件版示例",
  1534. "name": "file",
  1535. "in": "formData",
  1536. "required": true
  1537. }
  1538. ],
  1539. "responses": {
  1540. "200": {
  1541. "description": "{\"success\":true,\"data\":{},\"msg\":\"上传成功\"}",
  1542. "schema": {
  1543. "type": "string"
  1544. }
  1545. }
  1546. }
  1547. }
  1548. },
  1549. "/sysDictionary/createSysDictionary": {
  1550. "post": {
  1551. "security": [
  1552. {
  1553. "ApiKeyAuth": []
  1554. }
  1555. ],
  1556. "consumes": [
  1557. "application/json"
  1558. ],
  1559. "produces": [
  1560. "application/json"
  1561. ],
  1562. "tags": [
  1563. "SysDictionary"
  1564. ],
  1565. "summary": "创建SysDictionary",
  1566. "parameters": [
  1567. {
  1568. "description": "创建SysDictionary",
  1569. "name": "data",
  1570. "in": "body",
  1571. "required": true,
  1572. "schema": {
  1573. "$ref": "#/definitions/model.SysDictionary"
  1574. }
  1575. }
  1576. ],
  1577. "responses": {
  1578. "200": {
  1579. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  1580. "schema": {
  1581. "type": "string"
  1582. }
  1583. }
  1584. }
  1585. }
  1586. },
  1587. "/sysDictionary/deleteSysDictionary": {
  1588. "delete": {
  1589. "security": [
  1590. {
  1591. "ApiKeyAuth": []
  1592. }
  1593. ],
  1594. "consumes": [
  1595. "application/json"
  1596. ],
  1597. "produces": [
  1598. "application/json"
  1599. ],
  1600. "tags": [
  1601. "SysDictionary"
  1602. ],
  1603. "summary": "删除SysDictionary",
  1604. "parameters": [
  1605. {
  1606. "description": "删除SysDictionary",
  1607. "name": "data",
  1608. "in": "body",
  1609. "required": true,
  1610. "schema": {
  1611. "$ref": "#/definitions/model.SysDictionary"
  1612. }
  1613. }
  1614. ],
  1615. "responses": {
  1616. "200": {
  1617. "description": "{\"success\":true,\"data\":{},\"msg\":\"删除成功\"}",
  1618. "schema": {
  1619. "type": "string"
  1620. }
  1621. }
  1622. }
  1623. }
  1624. },
  1625. "/sysDictionary/findSysDictionary": {
  1626. "get": {
  1627. "security": [
  1628. {
  1629. "ApiKeyAuth": []
  1630. }
  1631. ],
  1632. "consumes": [
  1633. "application/json"
  1634. ],
  1635. "produces": [
  1636. "application/json"
  1637. ],
  1638. "tags": [
  1639. "SysDictionary"
  1640. ],
  1641. "summary": "用id查询SysDictionary",
  1642. "parameters": [
  1643. {
  1644. "description": "用id查询SysDictionary",
  1645. "name": "data",
  1646. "in": "body",
  1647. "required": true,
  1648. "schema": {
  1649. "$ref": "#/definitions/model.SysDictionary"
  1650. }
  1651. }
  1652. ],
  1653. "responses": {
  1654. "200": {
  1655. "description": "{\"success\":true,\"data\":{},\"msg\":\"查询成功\"}",
  1656. "schema": {
  1657. "type": "string"
  1658. }
  1659. }
  1660. }
  1661. }
  1662. },
  1663. "/sysDictionary/getSysDictionaryList": {
  1664. "get": {
  1665. "security": [
  1666. {
  1667. "ApiKeyAuth": []
  1668. }
  1669. ],
  1670. "consumes": [
  1671. "application/json"
  1672. ],
  1673. "produces": [
  1674. "application/json"
  1675. ],
  1676. "tags": [
  1677. "SysDictionary"
  1678. ],
  1679. "summary": "分页获取SysDictionary列表",
  1680. "parameters": [
  1681. {
  1682. "description": "分页获取SysDictionary列表",
  1683. "name": "data",
  1684. "in": "body",
  1685. "required": true,
  1686. "schema": {
  1687. "$ref": "#/definitions/request.SysDictionarySearch"
  1688. }
  1689. }
  1690. ],
  1691. "responses": {
  1692. "200": {
  1693. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  1694. "schema": {
  1695. "type": "string"
  1696. }
  1697. }
  1698. }
  1699. }
  1700. },
  1701. "/sysDictionary/updateSysDictionary": {
  1702. "put": {
  1703. "security": [
  1704. {
  1705. "ApiKeyAuth": []
  1706. }
  1707. ],
  1708. "consumes": [
  1709. "application/json"
  1710. ],
  1711. "produces": [
  1712. "application/json"
  1713. ],
  1714. "tags": [
  1715. "SysDictionary"
  1716. ],
  1717. "summary": "更新SysDictionary",
  1718. "parameters": [
  1719. {
  1720. "description": "更新SysDictionary",
  1721. "name": "data",
  1722. "in": "body",
  1723. "required": true,
  1724. "schema": {
  1725. "$ref": "#/definitions/model.SysDictionary"
  1726. }
  1727. }
  1728. ],
  1729. "responses": {
  1730. "200": {
  1731. "description": "{\"success\":true,\"data\":{},\"msg\":\"更新成功\"}",
  1732. "schema": {
  1733. "type": "string"
  1734. }
  1735. }
  1736. }
  1737. }
  1738. },
  1739. "/sysDictionaryDetail/createSysDictionaryDetail": {
  1740. "post": {
  1741. "security": [
  1742. {
  1743. "ApiKeyAuth": []
  1744. }
  1745. ],
  1746. "consumes": [
  1747. "application/json"
  1748. ],
  1749. "produces": [
  1750. "application/json"
  1751. ],
  1752. "tags": [
  1753. "SysDictionaryDetail"
  1754. ],
  1755. "summary": "创建SysDictionaryDetail",
  1756. "parameters": [
  1757. {
  1758. "description": "创建SysDictionaryDetail",
  1759. "name": "data",
  1760. "in": "body",
  1761. "required": true,
  1762. "schema": {
  1763. "$ref": "#/definitions/model.SysDictionaryDetail"
  1764. }
  1765. }
  1766. ],
  1767. "responses": {
  1768. "200": {
  1769. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  1770. "schema": {
  1771. "type": "string"
  1772. }
  1773. }
  1774. }
  1775. }
  1776. },
  1777. "/sysDictionaryDetail/deleteSysDictionaryDetail": {
  1778. "delete": {
  1779. "security": [
  1780. {
  1781. "ApiKeyAuth": []
  1782. }
  1783. ],
  1784. "consumes": [
  1785. "application/json"
  1786. ],
  1787. "produces": [
  1788. "application/json"
  1789. ],
  1790. "tags": [
  1791. "SysDictionaryDetail"
  1792. ],
  1793. "summary": "删除SysDictionaryDetail",
  1794. "parameters": [
  1795. {
  1796. "description": "删除SysDictionaryDetail",
  1797. "name": "data",
  1798. "in": "body",
  1799. "required": true,
  1800. "schema": {
  1801. "$ref": "#/definitions/model.SysDictionaryDetail"
  1802. }
  1803. }
  1804. ],
  1805. "responses": {
  1806. "200": {
  1807. "description": "{\"success\":true,\"data\":{},\"msg\":\"删除成功\"}",
  1808. "schema": {
  1809. "type": "string"
  1810. }
  1811. }
  1812. }
  1813. }
  1814. },
  1815. "/sysDictionaryDetail/findSysDictionaryDetail": {
  1816. "get": {
  1817. "security": [
  1818. {
  1819. "ApiKeyAuth": []
  1820. }
  1821. ],
  1822. "consumes": [
  1823. "application/json"
  1824. ],
  1825. "produces": [
  1826. "application/json"
  1827. ],
  1828. "tags": [
  1829. "SysDictionaryDetail"
  1830. ],
  1831. "summary": "用id查询SysDictionaryDetail",
  1832. "parameters": [
  1833. {
  1834. "description": "用id查询SysDictionaryDetail",
  1835. "name": "data",
  1836. "in": "body",
  1837. "required": true,
  1838. "schema": {
  1839. "$ref": "#/definitions/model.SysDictionaryDetail"
  1840. }
  1841. }
  1842. ],
  1843. "responses": {
  1844. "200": {
  1845. "description": "{\"success\":true,\"data\":{},\"msg\":\"查询成功\"}",
  1846. "schema": {
  1847. "type": "string"
  1848. }
  1849. }
  1850. }
  1851. }
  1852. },
  1853. "/sysDictionaryDetail/getSysDictionaryDetailList": {
  1854. "get": {
  1855. "security": [
  1856. {
  1857. "ApiKeyAuth": []
  1858. }
  1859. ],
  1860. "consumes": [
  1861. "application/json"
  1862. ],
  1863. "produces": [
  1864. "application/json"
  1865. ],
  1866. "tags": [
  1867. "SysDictionaryDetail"
  1868. ],
  1869. "summary": "分页获取SysDictionaryDetail列表",
  1870. "parameters": [
  1871. {
  1872. "description": "分页获取SysDictionaryDetail列表",
  1873. "name": "data",
  1874. "in": "body",
  1875. "required": true,
  1876. "schema": {
  1877. "$ref": "#/definitions/request.SysDictionaryDetailSearch"
  1878. }
  1879. }
  1880. ],
  1881. "responses": {
  1882. "200": {
  1883. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  1884. "schema": {
  1885. "type": "string"
  1886. }
  1887. }
  1888. }
  1889. }
  1890. },
  1891. "/sysDictionaryDetail/updateSysDictionaryDetail": {
  1892. "put": {
  1893. "security": [
  1894. {
  1895. "ApiKeyAuth": []
  1896. }
  1897. ],
  1898. "consumes": [
  1899. "application/json"
  1900. ],
  1901. "produces": [
  1902. "application/json"
  1903. ],
  1904. "tags": [
  1905. "SysDictionaryDetail"
  1906. ],
  1907. "summary": "更新SysDictionaryDetail",
  1908. "parameters": [
  1909. {
  1910. "description": "更新SysDictionaryDetail",
  1911. "name": "data",
  1912. "in": "body",
  1913. "required": true,
  1914. "schema": {
  1915. "$ref": "#/definitions/model.SysDictionaryDetail"
  1916. }
  1917. }
  1918. ],
  1919. "responses": {
  1920. "200": {
  1921. "description": "{\"success\":true,\"data\":{},\"msg\":\"更新成功\"}",
  1922. "schema": {
  1923. "type": "string"
  1924. }
  1925. }
  1926. }
  1927. }
  1928. },
  1929. "/sysOperationRecord/createSysOperationRecord": {
  1930. "post": {
  1931. "security": [
  1932. {
  1933. "ApiKeyAuth": []
  1934. }
  1935. ],
  1936. "consumes": [
  1937. "application/json"
  1938. ],
  1939. "produces": [
  1940. "application/json"
  1941. ],
  1942. "tags": [
  1943. "SysOperationRecord"
  1944. ],
  1945. "summary": "创建SysOperationRecord",
  1946. "parameters": [
  1947. {
  1948. "description": "创建SysOperationRecord",
  1949. "name": "data",
  1950. "in": "body",
  1951. "required": true,
  1952. "schema": {
  1953. "$ref": "#/definitions/model.SysOperationRecord"
  1954. }
  1955. }
  1956. ],
  1957. "responses": {
  1958. "200": {
  1959. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  1960. "schema": {
  1961. "type": "string"
  1962. }
  1963. }
  1964. }
  1965. }
  1966. },
  1967. "/sysOperationRecord/deleteSysOperationRecord": {
  1968. "delete": {
  1969. "security": [
  1970. {
  1971. "ApiKeyAuth": []
  1972. }
  1973. ],
  1974. "consumes": [
  1975. "application/json"
  1976. ],
  1977. "produces": [
  1978. "application/json"
  1979. ],
  1980. "tags": [
  1981. "SysOperationRecord"
  1982. ],
  1983. "summary": "删除SysOperationRecord",
  1984. "parameters": [
  1985. {
  1986. "description": "删除SysOperationRecord",
  1987. "name": "data",
  1988. "in": "body",
  1989. "required": true,
  1990. "schema": {
  1991. "$ref": "#/definitions/model.SysOperationRecord"
  1992. }
  1993. }
  1994. ],
  1995. "responses": {
  1996. "200": {
  1997. "description": "{\"success\":true,\"data\":{},\"msg\":\"删除成功\"}",
  1998. "schema": {
  1999. "type": "string"
  2000. }
  2001. }
  2002. }
  2003. }
  2004. },
  2005. "/sysOperationRecord/deleteSysOperationRecordByIds": {
  2006. "delete": {
  2007. "security": [
  2008. {
  2009. "ApiKeyAuth": []
  2010. }
  2011. ],
  2012. "consumes": [
  2013. "application/json"
  2014. ],
  2015. "produces": [
  2016. "application/json"
  2017. ],
  2018. "tags": [
  2019. "SysOperationRecord"
  2020. ],
  2021. "summary": "批量删除SysOperationRecord",
  2022. "parameters": [
  2023. {
  2024. "description": "批量删除SysOperationRecord",
  2025. "name": "data",
  2026. "in": "body",
  2027. "required": true,
  2028. "schema": {
  2029. "$ref": "#/definitions/request.IdsReq"
  2030. }
  2031. }
  2032. ],
  2033. "responses": {
  2034. "200": {
  2035. "description": "{\"success\":true,\"data\":{},\"msg\":\"删除成功\"}",
  2036. "schema": {
  2037. "type": "string"
  2038. }
  2039. }
  2040. }
  2041. }
  2042. },
  2043. "/sysOperationRecord/findSysOperationRecord": {
  2044. "get": {
  2045. "security": [
  2046. {
  2047. "ApiKeyAuth": []
  2048. }
  2049. ],
  2050. "consumes": [
  2051. "application/json"
  2052. ],
  2053. "produces": [
  2054. "application/json"
  2055. ],
  2056. "tags": [
  2057. "SysOperationRecord"
  2058. ],
  2059. "summary": "用id查询SysOperationRecord",
  2060. "parameters": [
  2061. {
  2062. "description": "用id查询SysOperationRecord",
  2063. "name": "data",
  2064. "in": "body",
  2065. "required": true,
  2066. "schema": {
  2067. "$ref": "#/definitions/model.SysOperationRecord"
  2068. }
  2069. }
  2070. ],
  2071. "responses": {
  2072. "200": {
  2073. "description": "{\"success\":true,\"data\":{},\"msg\":\"查询成功\"}",
  2074. "schema": {
  2075. "type": "string"
  2076. }
  2077. }
  2078. }
  2079. }
  2080. },
  2081. "/sysOperationRecord/getSysOperationRecordList": {
  2082. "get": {
  2083. "security": [
  2084. {
  2085. "ApiKeyAuth": []
  2086. }
  2087. ],
  2088. "consumes": [
  2089. "application/json"
  2090. ],
  2091. "produces": [
  2092. "application/json"
  2093. ],
  2094. "tags": [
  2095. "SysOperationRecord"
  2096. ],
  2097. "summary": "分页获取SysOperationRecord列表",
  2098. "parameters": [
  2099. {
  2100. "description": "分页获取SysOperationRecord列表",
  2101. "name": "data",
  2102. "in": "body",
  2103. "required": true,
  2104. "schema": {
  2105. "$ref": "#/definitions/request.SysOperationRecordSearch"
  2106. }
  2107. }
  2108. ],
  2109. "responses": {
  2110. "200": {
  2111. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  2112. "schema": {
  2113. "type": "string"
  2114. }
  2115. }
  2116. }
  2117. }
  2118. },
  2119. "/system/ReloadSystem": {
  2120. "post": {
  2121. "security": [
  2122. {
  2123. "ApiKeyAuth": []
  2124. }
  2125. ],
  2126. "produces": [
  2127. "application/json"
  2128. ],
  2129. "tags": [
  2130. "system"
  2131. ],
  2132. "summary": "设置配置文件内容",
  2133. "parameters": [
  2134. {
  2135. "description": "设置配置文件内容",
  2136. "name": "data",
  2137. "in": "body",
  2138. "required": true,
  2139. "schema": {
  2140. "$ref": "#/definitions/model.System"
  2141. }
  2142. }
  2143. ],
  2144. "responses": {
  2145. "200": {
  2146. "description": "{\"success\":true,\"data\":{},\"msg\":\"返回成功\"}",
  2147. "schema": {
  2148. "type": "string"
  2149. }
  2150. }
  2151. }
  2152. }
  2153. },
  2154. "/system/getServerInfo": {
  2155. "post": {
  2156. "security": [
  2157. {
  2158. "ApiKeyAuth": []
  2159. }
  2160. ],
  2161. "produces": [
  2162. "application/json"
  2163. ],
  2164. "tags": [
  2165. "system"
  2166. ],
  2167. "summary": "获取服务器信息",
  2168. "responses": {
  2169. "200": {
  2170. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  2171. "schema": {
  2172. "type": "string"
  2173. }
  2174. }
  2175. }
  2176. }
  2177. },
  2178. "/system/getSystemConfig": {
  2179. "post": {
  2180. "security": [
  2181. {
  2182. "ApiKeyAuth": []
  2183. }
  2184. ],
  2185. "produces": [
  2186. "application/json"
  2187. ],
  2188. "tags": [
  2189. "system"
  2190. ],
  2191. "summary": "获取配置文件内容",
  2192. "responses": {
  2193. "200": {
  2194. "description": "{\"success\":true,\"data\":{},\"msg\":\"返回成功\"}",
  2195. "schema": {
  2196. "type": "string"
  2197. }
  2198. }
  2199. }
  2200. }
  2201. },
  2202. "/system/setSystemConfig": {
  2203. "post": {
  2204. "security": [
  2205. {
  2206. "ApiKeyAuth": []
  2207. }
  2208. ],
  2209. "produces": [
  2210. "application/json"
  2211. ],
  2212. "tags": [
  2213. "system"
  2214. ],
  2215. "summary": "设置配置文件内容",
  2216. "parameters": [
  2217. {
  2218. "description": "设置配置文件内容",
  2219. "name": "data",
  2220. "in": "body",
  2221. "required": true,
  2222. "schema": {
  2223. "$ref": "#/definitions/model.System"
  2224. }
  2225. }
  2226. ],
  2227. "responses": {
  2228. "200": {
  2229. "description": "{\"success\":true,\"data\":{},\"msg\":\"返回成功\"}",
  2230. "schema": {
  2231. "type": "string"
  2232. }
  2233. }
  2234. }
  2235. }
  2236. },
  2237. "/user/changePassword": {
  2238. "put": {
  2239. "security": [
  2240. {
  2241. "ApiKeyAuth": []
  2242. }
  2243. ],
  2244. "produces": [
  2245. "application/json"
  2246. ],
  2247. "tags": [
  2248. "SysUser"
  2249. ],
  2250. "summary": "用户修改密码",
  2251. "parameters": [
  2252. {
  2253. "description": "用户修改密码",
  2254. "name": "data",
  2255. "in": "body",
  2256. "required": true,
  2257. "schema": {
  2258. "$ref": "#/definitions/request.ChangePasswordStruct"
  2259. }
  2260. }
  2261. ],
  2262. "responses": {
  2263. "200": {
  2264. "description": "{\"success\":true,\"data\":{},\"msg\":\"修改成功\"}",
  2265. "schema": {
  2266. "type": "string"
  2267. }
  2268. }
  2269. }
  2270. }
  2271. },
  2272. "/user/deleteUser": {
  2273. "delete": {
  2274. "security": [
  2275. {
  2276. "ApiKeyAuth": []
  2277. }
  2278. ],
  2279. "consumes": [
  2280. "application/json"
  2281. ],
  2282. "produces": [
  2283. "application/json"
  2284. ],
  2285. "tags": [
  2286. "SysUser"
  2287. ],
  2288. "summary": "删除用户",
  2289. "parameters": [
  2290. {
  2291. "description": "删除用户",
  2292. "name": "data",
  2293. "in": "body",
  2294. "required": true,
  2295. "schema": {
  2296. "$ref": "#/definitions/request.GetById"
  2297. }
  2298. }
  2299. ],
  2300. "responses": {
  2301. "200": {
  2302. "description": "{\"success\":true,\"data\":{},\"msg\":\"修改成功\"}",
  2303. "schema": {
  2304. "type": "string"
  2305. }
  2306. }
  2307. }
  2308. }
  2309. },
  2310. "/user/getUserList": {
  2311. "post": {
  2312. "security": [
  2313. {
  2314. "ApiKeyAuth": []
  2315. }
  2316. ],
  2317. "consumes": [
  2318. "application/json"
  2319. ],
  2320. "produces": [
  2321. "application/json"
  2322. ],
  2323. "tags": [
  2324. "SysUser"
  2325. ],
  2326. "summary": "分页获取用户列表",
  2327. "parameters": [
  2328. {
  2329. "description": "分页获取用户列表",
  2330. "name": "data",
  2331. "in": "body",
  2332. "required": true,
  2333. "schema": {
  2334. "$ref": "#/definitions/request.PageInfo"
  2335. }
  2336. }
  2337. ],
  2338. "responses": {
  2339. "200": {
  2340. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  2341. "schema": {
  2342. "type": "string"
  2343. }
  2344. }
  2345. }
  2346. }
  2347. },
  2348. "/user/register": {
  2349. "post": {
  2350. "produces": [
  2351. "application/json"
  2352. ],
  2353. "tags": [
  2354. "Base"
  2355. ],
  2356. "summary": "用户注册账号",
  2357. "parameters": [
  2358. {
  2359. "description": "用户注册接口",
  2360. "name": "data",
  2361. "in": "body",
  2362. "required": true,
  2363. "schema": {
  2364. "$ref": "#/definitions/model.SysUser"
  2365. }
  2366. }
  2367. ],
  2368. "responses": {
  2369. "200": {
  2370. "description": "{\"success\":true,\"data\":{},\"msg\":\"注册成功\"}",
  2371. "schema": {
  2372. "type": "string"
  2373. }
  2374. }
  2375. }
  2376. }
  2377. },
  2378. "/user/setUserAuthority": {
  2379. "post": {
  2380. "security": [
  2381. {
  2382. "ApiKeyAuth": []
  2383. }
  2384. ],
  2385. "consumes": [
  2386. "application/json"
  2387. ],
  2388. "produces": [
  2389. "application/json"
  2390. ],
  2391. "tags": [
  2392. "SysUser"
  2393. ],
  2394. "summary": "设置用户权限",
  2395. "parameters": [
  2396. {
  2397. "description": "设置用户权限",
  2398. "name": "data",
  2399. "in": "body",
  2400. "required": true,
  2401. "schema": {
  2402. "$ref": "#/definitions/request.SetUserAuth"
  2403. }
  2404. }
  2405. ],
  2406. "responses": {
  2407. "200": {
  2408. "description": "{\"success\":true,\"data\":{},\"msg\":\"修改成功\"}",
  2409. "schema": {
  2410. "type": "string"
  2411. }
  2412. }
  2413. }
  2414. }
  2415. },
  2416. "/user/setUserInfo": {
  2417. "put": {
  2418. "security": [
  2419. {
  2420. "ApiKeyAuth": []
  2421. }
  2422. ],
  2423. "consumes": [
  2424. "application/json"
  2425. ],
  2426. "produces": [
  2427. "application/json"
  2428. ],
  2429. "tags": [
  2430. "SysUser"
  2431. ],
  2432. "summary": "删除用户",
  2433. "parameters": [
  2434. {
  2435. "description": "删除用户",
  2436. "name": "data",
  2437. "in": "body",
  2438. "required": true,
  2439. "schema": {
  2440. "$ref": "#/definitions/model.SysUser"
  2441. }
  2442. }
  2443. ],
  2444. "responses": {
  2445. "200": {
  2446. "description": "{\"success\":true,\"data\":{},\"msg\":\"修改成功\"}",
  2447. "schema": {
  2448. "type": "string"
  2449. }
  2450. }
  2451. }
  2452. }
  2453. },
  2454. "/workflow/createWorkFlow": {
  2455. "post": {
  2456. "produces": [
  2457. "application/json"
  2458. ],
  2459. "tags": [
  2460. "workflow"
  2461. ],
  2462. "summary": "注册工作流",
  2463. "parameters": [
  2464. {
  2465. "description": "注册工作流接口",
  2466. "name": "data",
  2467. "in": "body",
  2468. "required": true,
  2469. "schema": {
  2470. "$ref": "#/definitions/model.SysWorkflow"
  2471. }
  2472. }
  2473. ],
  2474. "responses": {
  2475. "200": {
  2476. "description": "{\"success\":true,\"data\":{},\"msg\":\"注册成功\"}",
  2477. "schema": {
  2478. "type": "string"
  2479. }
  2480. }
  2481. }
  2482. }
  2483. }
  2484. },
  2485. "definitions": {
  2486. "config.Captcha": {
  2487. "type": "object",
  2488. "properties": {
  2489. "imgHeight": {
  2490. "type": "integer"
  2491. },
  2492. "imgWidth": {
  2493. "type": "integer"
  2494. },
  2495. "keyLong": {
  2496. "type": "integer"
  2497. }
  2498. }
  2499. },
  2500. "config.Casbin": {
  2501. "type": "object",
  2502. "properties": {
  2503. "modelPath": {
  2504. "type": "string"
  2505. }
  2506. }
  2507. },
  2508. "config.Email": {
  2509. "type": "object",
  2510. "properties": {
  2511. "from": {
  2512. "type": "string"
  2513. },
  2514. "host": {
  2515. "type": "string"
  2516. },
  2517. "isSSL": {
  2518. "type": "boolean"
  2519. },
  2520. "nickname": {
  2521. "type": "string"
  2522. },
  2523. "port": {
  2524. "type": "integer"
  2525. },
  2526. "secret": {
  2527. "type": "string"
  2528. },
  2529. "to": {
  2530. "type": "string"
  2531. }
  2532. }
  2533. },
  2534. "config.JWT": {
  2535. "type": "object",
  2536. "properties": {
  2537. "signingKey": {
  2538. "type": "string"
  2539. }
  2540. }
  2541. },
  2542. "config.Local": {
  2543. "type": "object",
  2544. "properties": {
  2545. "path": {
  2546. "type": "string"
  2547. }
  2548. }
  2549. },
  2550. "config.Mysql": {
  2551. "type": "object",
  2552. "properties": {
  2553. "config": {
  2554. "type": "string"
  2555. },
  2556. "dbname": {
  2557. "type": "string"
  2558. },
  2559. "logMode": {
  2560. "type": "boolean"
  2561. },
  2562. "maxIdleConns": {
  2563. "type": "integer"
  2564. },
  2565. "maxOpenConns": {
  2566. "type": "integer"
  2567. },
  2568. "password": {
  2569. "type": "string"
  2570. },
  2571. "path": {
  2572. "type": "string"
  2573. },
  2574. "username": {
  2575. "type": "string"
  2576. }
  2577. }
  2578. },
  2579. "config.Postgresql": {
  2580. "type": "object",
  2581. "properties": {
  2582. "config": {
  2583. "type": "string"
  2584. },
  2585. "dbname": {
  2586. "type": "string"
  2587. },
  2588. "host": {
  2589. "type": "string"
  2590. },
  2591. "logger": {
  2592. "type": "boolean"
  2593. },
  2594. "maxIdleConns": {
  2595. "type": "integer"
  2596. },
  2597. "maxOpenConns": {
  2598. "type": "integer"
  2599. },
  2600. "password": {
  2601. "type": "string"
  2602. },
  2603. "port": {
  2604. "type": "string"
  2605. },
  2606. "preferSimpleProtocol": {
  2607. "type": "boolean"
  2608. },
  2609. "username": {
  2610. "type": "string"
  2611. }
  2612. }
  2613. },
  2614. "config.Qiniu": {
  2615. "type": "object",
  2616. "properties": {
  2617. "accessKey": {
  2618. "type": "string"
  2619. },
  2620. "bucket": {
  2621. "type": "string"
  2622. },
  2623. "imgPath": {
  2624. "type": "string"
  2625. },
  2626. "secretKey": {
  2627. "type": "string"
  2628. },
  2629. "useCdnDomains": {
  2630. "type": "boolean"
  2631. },
  2632. "useHttps": {
  2633. "type": "boolean"
  2634. },
  2635. "zone": {
  2636. "type": "string"
  2637. }
  2638. }
  2639. },
  2640. "config.Redis": {
  2641. "type": "object",
  2642. "properties": {
  2643. "addr": {
  2644. "type": "string"
  2645. },
  2646. "db": {
  2647. "type": "integer"
  2648. },
  2649. "password": {
  2650. "type": "string"
  2651. }
  2652. }
  2653. },
  2654. "config.Server": {
  2655. "type": "object",
  2656. "properties": {
  2657. "captcha": {
  2658. "type": "object",
  2659. "$ref": "#/definitions/config.Captcha"
  2660. },
  2661. "casbin": {
  2662. "type": "object",
  2663. "$ref": "#/definitions/config.Casbin"
  2664. },
  2665. "email": {
  2666. "type": "object",
  2667. "$ref": "#/definitions/config.Email"
  2668. },
  2669. "jwt": {
  2670. "type": "object",
  2671. "$ref": "#/definitions/config.JWT"
  2672. },
  2673. "local": {
  2674. "description": "oss",
  2675. "type": "object",
  2676. "$ref": "#/definitions/config.Local"
  2677. },
  2678. "mysql": {
  2679. "description": "gorm",
  2680. "type": "object",
  2681. "$ref": "#/definitions/config.Mysql"
  2682. },
  2683. "postgresql": {
  2684. "type": "object",
  2685. "$ref": "#/definitions/config.Postgresql"
  2686. },
  2687. "qiniu": {
  2688. "type": "object",
  2689. "$ref": "#/definitions/config.Qiniu"
  2690. },
  2691. "redis": {
  2692. "type": "object",
  2693. "$ref": "#/definitions/config.Redis"
  2694. },
  2695. "sqlite": {
  2696. "type": "object",
  2697. "$ref": "#/definitions/config.Sqlite"
  2698. },
  2699. "sqlserver": {
  2700. "type": "object",
  2701. "$ref": "#/definitions/config.Sqlserver"
  2702. },
  2703. "system": {
  2704. "type": "object",
  2705. "$ref": "#/definitions/config.System"
  2706. },
  2707. "zap": {
  2708. "type": "object",
  2709. "$ref": "#/definitions/config.Zap"
  2710. }
  2711. }
  2712. },
  2713. "config.Sqlite": {
  2714. "type": "object",
  2715. "properties": {
  2716. "logger": {
  2717. "type": "boolean"
  2718. },
  2719. "maxIdleConns": {
  2720. "type": "integer"
  2721. },
  2722. "maxOpenConns": {
  2723. "type": "integer"
  2724. },
  2725. "path": {
  2726. "type": "string"
  2727. }
  2728. }
  2729. },
  2730. "config.Sqlserver": {
  2731. "type": "object",
  2732. "properties": {
  2733. "dbname": {
  2734. "type": "string"
  2735. },
  2736. "logger": {
  2737. "type": "boolean"
  2738. },
  2739. "maxIdleConns": {
  2740. "type": "integer"
  2741. },
  2742. "maxOpenConns": {
  2743. "type": "integer"
  2744. },
  2745. "password": {
  2746. "type": "string"
  2747. },
  2748. "path": {
  2749. "type": "string"
  2750. },
  2751. "username": {
  2752. "type": "string"
  2753. }
  2754. }
  2755. },
  2756. "config.System": {
  2757. "type": "object",
  2758. "properties": {
  2759. "addr": {
  2760. "type": "integer"
  2761. },
  2762. "dbType": {
  2763. "type": "string"
  2764. },
  2765. "env": {
  2766. "type": "string"
  2767. },
  2768. "needInitData": {
  2769. "type": "boolean"
  2770. },
  2771. "ossType": {
  2772. "type": "string"
  2773. },
  2774. "useMultipoint": {
  2775. "type": "boolean"
  2776. }
  2777. }
  2778. },
  2779. "config.Zap": {
  2780. "type": "object",
  2781. "properties": {
  2782. "director": {
  2783. "type": "string"
  2784. },
  2785. "encodeLevel": {
  2786. "type": "string"
  2787. },
  2788. "format": {
  2789. "type": "string"
  2790. },
  2791. "level": {
  2792. "type": "string"
  2793. },
  2794. "linkName": {
  2795. "type": "string"
  2796. },
  2797. "logInConsole": {
  2798. "type": "boolean"
  2799. },
  2800. "prefix": {
  2801. "type": "string"
  2802. },
  2803. "showLine": {
  2804. "type": "boolean"
  2805. },
  2806. "stacktraceKey": {
  2807. "type": "string"
  2808. }
  2809. }
  2810. },
  2811. "model.AutoCodeStruct": {
  2812. "type": "object",
  2813. "properties": {
  2814. "abbreviation": {
  2815. "type": "string"
  2816. },
  2817. "autoCreateApiToSql": {
  2818. "type": "boolean"
  2819. },
  2820. "description": {
  2821. "type": "string"
  2822. },
  2823. "fields": {
  2824. "type": "array",
  2825. "items": {
  2826. "$ref": "#/definitions/model.Field"
  2827. }
  2828. },
  2829. "packageName": {
  2830. "type": "string"
  2831. },
  2832. "structName": {
  2833. "type": "string"
  2834. },
  2835. "tableName": {
  2836. "type": "string"
  2837. }
  2838. }
  2839. },
  2840. "model.ExaCustomer": {
  2841. "type": "object",
  2842. "properties": {
  2843. "customerName": {
  2844. "type": "string"
  2845. },
  2846. "customerPhoneData": {
  2847. "type": "string"
  2848. },
  2849. "sysUser": {
  2850. "type": "object",
  2851. "$ref": "#/definitions/model.SysUser"
  2852. },
  2853. "sysUserAuthorityID": {
  2854. "type": "string"
  2855. },
  2856. "sysUserId": {
  2857. "type": "integer"
  2858. }
  2859. }
  2860. },
  2861. "model.ExaFileUploadAndDownload": {
  2862. "type": "object",
  2863. "properties": {
  2864. "key": {
  2865. "type": "string"
  2866. },
  2867. "name": {
  2868. "type": "string"
  2869. },
  2870. "tag": {
  2871. "type": "string"
  2872. },
  2873. "url": {
  2874. "type": "string"
  2875. }
  2876. }
  2877. },
  2878. "model.Field": {
  2879. "type": "object",
  2880. "properties": {
  2881. "columnName": {
  2882. "type": "string"
  2883. },
  2884. "comment": {
  2885. "type": "string"
  2886. },
  2887. "dataType": {
  2888. "type": "string"
  2889. },
  2890. "dataTypeLong": {
  2891. "type": "string"
  2892. },
  2893. "dictType": {
  2894. "type": "string"
  2895. },
  2896. "fieldDesc": {
  2897. "type": "string"
  2898. },
  2899. "fieldJson": {
  2900. "type": "string"
  2901. },
  2902. "fieldName": {
  2903. "type": "string"
  2904. },
  2905. "fieldSearchType": {
  2906. "type": "string"
  2907. },
  2908. "fieldType": {
  2909. "type": "string"
  2910. }
  2911. }
  2912. },
  2913. "model.SysApi": {
  2914. "type": "object",
  2915. "properties": {
  2916. "apiGroup": {
  2917. "type": "string"
  2918. },
  2919. "description": {
  2920. "type": "string"
  2921. },
  2922. "method": {
  2923. "type": "string"
  2924. },
  2925. "path": {
  2926. "type": "string"
  2927. }
  2928. }
  2929. },
  2930. "model.SysAuthority": {
  2931. "type": "object",
  2932. "properties": {
  2933. "authorityId": {
  2934. "type": "string"
  2935. },
  2936. "authorityName": {
  2937. "type": "string"
  2938. },
  2939. "children": {
  2940. "type": "array",
  2941. "items": {
  2942. "$ref": "#/definitions/model.SysAuthority"
  2943. }
  2944. },
  2945. "createdAt": {
  2946. "type": "string"
  2947. },
  2948. "dataAuthorityId": {
  2949. "type": "array",
  2950. "items": {
  2951. "$ref": "#/definitions/model.SysAuthority"
  2952. }
  2953. },
  2954. "deletedAt": {
  2955. "type": "string"
  2956. },
  2957. "menus": {
  2958. "type": "array",
  2959. "items": {
  2960. "$ref": "#/definitions/model.SysBaseMenu"
  2961. }
  2962. },
  2963. "parentId": {
  2964. "type": "string"
  2965. },
  2966. "updatedAt": {
  2967. "type": "string"
  2968. }
  2969. }
  2970. },
  2971. "model.SysBaseMenu": {
  2972. "type": "object",
  2973. "properties": {
  2974. "authoritys": {
  2975. "type": "array",
  2976. "items": {
  2977. "$ref": "#/definitions/model.SysAuthority"
  2978. }
  2979. },
  2980. "children": {
  2981. "type": "array",
  2982. "items": {
  2983. "$ref": "#/definitions/model.SysBaseMenu"
  2984. }
  2985. },
  2986. "component": {
  2987. "type": "string"
  2988. },
  2989. "defaultMenu": {
  2990. "type": "boolean"
  2991. },
  2992. "hidden": {
  2993. "type": "boolean"
  2994. },
  2995. "icon": {
  2996. "type": "string"
  2997. },
  2998. "keepAlive": {
  2999. "type": "boolean"
  3000. },
  3001. "name": {
  3002. "type": "string"
  3003. },
  3004. "parameters": {
  3005. "type": "array",
  3006. "items": {
  3007. "$ref": "#/definitions/model.SysBaseMenuParameter"
  3008. }
  3009. },
  3010. "parentId": {
  3011. "type": "string"
  3012. },
  3013. "path": {
  3014. "type": "string"
  3015. },
  3016. "sort": {
  3017. "type": "integer"
  3018. },
  3019. "title": {
  3020. "type": "string"
  3021. }
  3022. }
  3023. },
  3024. "model.SysBaseMenuParameter": {
  3025. "type": "object",
  3026. "properties": {
  3027. "key": {
  3028. "type": "string"
  3029. },
  3030. "sysBaseMenuID": {
  3031. "type": "integer"
  3032. },
  3033. "type": {
  3034. "type": "string"
  3035. },
  3036. "value": {
  3037. "type": "string"
  3038. }
  3039. }
  3040. },
  3041. "model.SysDictionary": {
  3042. "type": "object",
  3043. "properties": {
  3044. "desc": {
  3045. "type": "string"
  3046. },
  3047. "name": {
  3048. "type": "string"
  3049. },
  3050. "status": {
  3051. "type": "boolean"
  3052. },
  3053. "sysDictionaryDetails": {
  3054. "type": "array",
  3055. "items": {
  3056. "$ref": "#/definitions/model.SysDictionaryDetail"
  3057. }
  3058. },
  3059. "type": {
  3060. "type": "string"
  3061. }
  3062. }
  3063. },
  3064. "model.SysDictionaryDetail": {
  3065. "type": "object",
  3066. "properties": {
  3067. "label": {
  3068. "type": "string"
  3069. },
  3070. "sort": {
  3071. "type": "integer"
  3072. },
  3073. "status": {
  3074. "type": "boolean"
  3075. },
  3076. "sysDictionaryID": {
  3077. "type": "integer"
  3078. },
  3079. "value": {
  3080. "type": "integer"
  3081. }
  3082. }
  3083. },
  3084. "model.SysOperationRecord": {
  3085. "type": "object",
  3086. "properties": {
  3087. "agent": {
  3088. "type": "string"
  3089. },
  3090. "body": {
  3091. "type": "string"
  3092. },
  3093. "error_message": {
  3094. "type": "string"
  3095. },
  3096. "ip": {
  3097. "type": "string"
  3098. },
  3099. "latency": {
  3100. "type": "string"
  3101. },
  3102. "method": {
  3103. "type": "string"
  3104. },
  3105. "path": {
  3106. "type": "string"
  3107. },
  3108. "resp": {
  3109. "type": "string"
  3110. },
  3111. "status": {
  3112. "type": "integer"
  3113. },
  3114. "user": {
  3115. "type": "object",
  3116. "$ref": "#/definitions/model.SysUser"
  3117. },
  3118. "user_id": {
  3119. "type": "integer"
  3120. }
  3121. }
  3122. },
  3123. "model.SysUser": {
  3124. "type": "object",
  3125. "properties": {
  3126. "authority": {
  3127. "type": "object",
  3128. "$ref": "#/definitions/model.SysAuthority"
  3129. },
  3130. "authorityId": {
  3131. "type": "string"
  3132. },
  3133. "headerImg": {
  3134. "type": "string"
  3135. },
  3136. "nickName": {
  3137. "type": "string"
  3138. },
  3139. "userName": {
  3140. "type": "string"
  3141. },
  3142. "uuid": {
  3143. "type": "string"
  3144. }
  3145. }
  3146. },
  3147. "model.SysWorkflow": {
  3148. "type": "object",
  3149. "properties": {
  3150. "workflowDescription": {
  3151. "description": "工作流描述",
  3152. "type": "string"
  3153. },
  3154. "workflowName": {
  3155. "description": "工作流英文id",
  3156. "type": "string"
  3157. },
  3158. "workflowNickName": {
  3159. "description": "工作流名称",
  3160. "type": "string"
  3161. },
  3162. "workflowStep": {
  3163. "description": "工作流步骤",
  3164. "type": "array",
  3165. "items": {
  3166. "$ref": "#/definitions/model.SysWorkflowStepInfo"
  3167. }
  3168. }
  3169. }
  3170. },
  3171. "model.SysWorkflowStepInfo": {
  3172. "type": "object",
  3173. "properties": {
  3174. "isEnd": {
  3175. "description": "是否是完结流节点",
  3176. "type": "boolean"
  3177. },
  3178. "isStart": {
  3179. "description": "是否是开始流节点",
  3180. "type": "boolean"
  3181. },
  3182. "stepAuthorityID": {
  3183. "description": "操作者级别id",
  3184. "type": "string"
  3185. },
  3186. "stepName": {
  3187. "description": "工作流名称",
  3188. "type": "string"
  3189. },
  3190. "stepNo": {
  3191. "description": "步骤id (第几步)",
  3192. "type": "number"
  3193. },
  3194. "workflowID": {
  3195. "description": "所属工作流ID",
  3196. "type": "integer"
  3197. }
  3198. }
  3199. },
  3200. "model.System": {
  3201. "type": "object",
  3202. "properties": {
  3203. "config": {
  3204. "type": "object",
  3205. "$ref": "#/definitions/config.Server"
  3206. }
  3207. }
  3208. },
  3209. "request.AddMenuAuthorityInfo": {
  3210. "type": "object",
  3211. "properties": {
  3212. "authorityId": {
  3213. "type": "string"
  3214. },
  3215. "menus": {
  3216. "type": "array",
  3217. "items": {
  3218. "$ref": "#/definitions/model.SysBaseMenu"
  3219. }
  3220. }
  3221. }
  3222. },
  3223. "request.AuthorityIdInfo": {
  3224. "type": "object",
  3225. "properties": {
  3226. "authorityId": {
  3227. "type": "string"
  3228. }
  3229. }
  3230. },
  3231. "request.CasbinInReceive": {
  3232. "type": "object",
  3233. "properties": {
  3234. "authorityId": {
  3235. "type": "string"
  3236. },
  3237. "casbinInfos": {
  3238. "type": "array",
  3239. "items": {
  3240. "$ref": "#/definitions/request.CasbinInfo"
  3241. }
  3242. }
  3243. }
  3244. },
  3245. "request.CasbinInfo": {
  3246. "type": "object",
  3247. "properties": {
  3248. "method": {
  3249. "type": "string"
  3250. },
  3251. "path": {
  3252. "type": "string"
  3253. }
  3254. }
  3255. },
  3256. "request.ChangePasswordStruct": {
  3257. "type": "object",
  3258. "properties": {
  3259. "newPassword": {
  3260. "type": "string"
  3261. },
  3262. "password": {
  3263. "type": "string"
  3264. },
  3265. "username": {
  3266. "type": "string"
  3267. }
  3268. }
  3269. },
  3270. "request.GetById": {
  3271. "type": "object",
  3272. "properties": {
  3273. "id": {
  3274. "type": "number"
  3275. }
  3276. }
  3277. },
  3278. "request.IdsReq": {
  3279. "type": "object",
  3280. "properties": {
  3281. "ids": {
  3282. "type": "array",
  3283. "items": {
  3284. "type": "integer"
  3285. }
  3286. }
  3287. }
  3288. },
  3289. "request.PageInfo": {
  3290. "type": "object",
  3291. "properties": {
  3292. "page": {
  3293. "type": "integer"
  3294. },
  3295. "pageSize": {
  3296. "type": "integer"
  3297. }
  3298. }
  3299. },
  3300. "request.RegisterAndLoginStruct": {
  3301. "type": "object",
  3302. "properties": {
  3303. "captcha": {
  3304. "type": "string"
  3305. },
  3306. "captchaId": {
  3307. "type": "string"
  3308. },
  3309. "password": {
  3310. "type": "string"
  3311. },
  3312. "username": {
  3313. "type": "string"
  3314. }
  3315. }
  3316. },
  3317. "request.SearchApiParams": {
  3318. "type": "object",
  3319. "properties": {
  3320. "apiGroup": {
  3321. "type": "string"
  3322. },
  3323. "desc": {
  3324. "type": "boolean"
  3325. },
  3326. "description": {
  3327. "type": "string"
  3328. },
  3329. "method": {
  3330. "type": "string"
  3331. },
  3332. "orderKey": {
  3333. "type": "string"
  3334. },
  3335. "page": {
  3336. "type": "integer"
  3337. },
  3338. "pageSize": {
  3339. "type": "integer"
  3340. },
  3341. "path": {
  3342. "type": "string"
  3343. }
  3344. }
  3345. },
  3346. "request.SetUserAuth": {
  3347. "type": "object",
  3348. "properties": {
  3349. "authorityId": {
  3350. "type": "string"
  3351. },
  3352. "uuid": {
  3353. "type": "string"
  3354. }
  3355. }
  3356. },
  3357. "request.SysDictionaryDetailSearch": {
  3358. "type": "object",
  3359. "properties": {
  3360. "label": {
  3361. "type": "string"
  3362. },
  3363. "page": {
  3364. "type": "integer"
  3365. },
  3366. "pageSize": {
  3367. "type": "integer"
  3368. },
  3369. "sort": {
  3370. "type": "integer"
  3371. },
  3372. "status": {
  3373. "type": "boolean"
  3374. },
  3375. "sysDictionaryID": {
  3376. "type": "integer"
  3377. },
  3378. "value": {
  3379. "type": "integer"
  3380. }
  3381. }
  3382. },
  3383. "request.SysDictionarySearch": {
  3384. "type": "object",
  3385. "properties": {
  3386. "desc": {
  3387. "type": "string"
  3388. },
  3389. "name": {
  3390. "type": "string"
  3391. },
  3392. "page": {
  3393. "type": "integer"
  3394. },
  3395. "pageSize": {
  3396. "type": "integer"
  3397. },
  3398. "status": {
  3399. "type": "boolean"
  3400. },
  3401. "sysDictionaryDetails": {
  3402. "type": "array",
  3403. "items": {
  3404. "$ref": "#/definitions/model.SysDictionaryDetail"
  3405. }
  3406. },
  3407. "type": {
  3408. "type": "string"
  3409. }
  3410. }
  3411. },
  3412. "request.SysOperationRecordSearch": {
  3413. "type": "object",
  3414. "properties": {
  3415. "agent": {
  3416. "type": "string"
  3417. },
  3418. "body": {
  3419. "type": "string"
  3420. },
  3421. "error_message": {
  3422. "type": "string"
  3423. },
  3424. "ip": {
  3425. "type": "string"
  3426. },
  3427. "latency": {
  3428. "type": "string"
  3429. },
  3430. "method": {
  3431. "type": "string"
  3432. },
  3433. "page": {
  3434. "type": "integer"
  3435. },
  3436. "pageSize": {
  3437. "type": "integer"
  3438. },
  3439. "path": {
  3440. "type": "string"
  3441. },
  3442. "resp": {
  3443. "type": "string"
  3444. },
  3445. "status": {
  3446. "type": "integer"
  3447. },
  3448. "user": {
  3449. "type": "object",
  3450. "$ref": "#/definitions/model.SysUser"
  3451. },
  3452. "user_id": {
  3453. "type": "integer"
  3454. }
  3455. }
  3456. },
  3457. "response.SysAuthorityCopyResponse": {
  3458. "type": "object",
  3459. "properties": {
  3460. "authority": {
  3461. "type": "object",
  3462. "$ref": "#/definitions/model.SysAuthority"
  3463. },
  3464. "oldAuthorityId": {
  3465. "type": "string"
  3466. }
  3467. }
  3468. }
  3469. },
  3470. "securityDefinitions": {
  3471. "ApiKeyAuth": {
  3472. "type": "apiKey",
  3473. "name": "x-token",
  3474. "in": "header"
  3475. }
  3476. }
  3477. }`
  3478. type swaggerInfo struct {
  3479. Version string
  3480. Host string
  3481. BasePath string
  3482. Schemes []string
  3483. Title string
  3484. Description string
  3485. }
  3486. // SwaggerInfo holds exported Swagger Info so clients can modify it
  3487. var SwaggerInfo = swaggerInfo{
  3488. Version: "0.0.1",
  3489. Host: "",
  3490. BasePath: "/",
  3491. Schemes: []string{},
  3492. Title: "Swagger Example API",
  3493. Description: "This is a sample Server pets",
  3494. }
  3495. type s struct{}
  3496. func (s *s) ReadDoc() string {
  3497. sInfo := SwaggerInfo
  3498. sInfo.Description = strings.Replace(sInfo.Description, "\n", "\\n", -1)
  3499. t, err := template.New("swagger_info").Funcs(template.FuncMap{
  3500. "marshal": func(v interface{}) string {
  3501. a, _ := json.Marshal(v)
  3502. return string(a)
  3503. },
  3504. }).Parse(doc)
  3505. if err != nil {
  3506. return doc
  3507. }
  3508. var tpl bytes.Buffer
  3509. if err := t.Execute(&tpl, sInfo); err != nil {
  3510. return doc
  3511. }
  3512. return tpl.String()
  3513. }
  3514. func init() {
  3515. swag.Register(swag.Name, &s{})
  3516. }