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.

3320 lines
102 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
5 years ago
5 years ago
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
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-08-31 21:50:05.0136259 +0800 CST m=+0.193314401
  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. "/base/register": {
  593. "post": {
  594. "produces": [
  595. "application/json"
  596. ],
  597. "tags": [
  598. "Base"
  599. ],
  600. "summary": "用户注册账号",
  601. "parameters": [
  602. {
  603. "description": "用户注册接口",
  604. "name": "data",
  605. "in": "body",
  606. "required": true,
  607. "schema": {
  608. "$ref": "#/definitions/model.SysUser"
  609. }
  610. }
  611. ],
  612. "responses": {
  613. "200": {
  614. "description": "{\"success\":true,\"data\":{},\"msg\":\"注册成功\"}",
  615. "schema": {
  616. "type": "string"
  617. }
  618. }
  619. }
  620. }
  621. },
  622. "/casbin/UpdateCasbin": {
  623. "post": {
  624. "security": [
  625. {
  626. "ApiKeyAuth": []
  627. }
  628. ],
  629. "consumes": [
  630. "application/json"
  631. ],
  632. "produces": [
  633. "application/json"
  634. ],
  635. "tags": [
  636. "casbin"
  637. ],
  638. "summary": "更改角色api权限",
  639. "parameters": [
  640. {
  641. "description": "更改角色api权限",
  642. "name": "data",
  643. "in": "body",
  644. "required": true,
  645. "schema": {
  646. "$ref": "#/definitions/request.CasbinInReceive"
  647. }
  648. }
  649. ],
  650. "responses": {
  651. "200": {
  652. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  653. "schema": {
  654. "type": "string"
  655. }
  656. }
  657. }
  658. }
  659. },
  660. "/casbin/getPolicyPathByAuthorityId": {
  661. "post": {
  662. "security": [
  663. {
  664. "ApiKeyAuth": []
  665. }
  666. ],
  667. "consumes": [
  668. "application/json"
  669. ],
  670. "produces": [
  671. "application/json"
  672. ],
  673. "tags": [
  674. "casbin"
  675. ],
  676. "summary": "获取权限列表",
  677. "parameters": [
  678. {
  679. "description": "获取权限列表",
  680. "name": "data",
  681. "in": "body",
  682. "required": true,
  683. "schema": {
  684. "$ref": "#/definitions/request.CasbinInReceive"
  685. }
  686. }
  687. ],
  688. "responses": {
  689. "200": {
  690. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  691. "schema": {
  692. "type": "string"
  693. }
  694. }
  695. }
  696. }
  697. },
  698. "/customer/customer": {
  699. "get": {
  700. "security": [
  701. {
  702. "ApiKeyAuth": []
  703. }
  704. ],
  705. "consumes": [
  706. "application/json"
  707. ],
  708. "produces": [
  709. "application/json"
  710. ],
  711. "tags": [
  712. "SysApi"
  713. ],
  714. "summary": "获取单一客户信息",
  715. "parameters": [
  716. {
  717. "description": "获取单一客户信息",
  718. "name": "data",
  719. "in": "body",
  720. "required": true,
  721. "schema": {
  722. "$ref": "#/definitions/model.ExaCustomer"
  723. }
  724. }
  725. ],
  726. "responses": {
  727. "200": {
  728. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  729. "schema": {
  730. "type": "string"
  731. }
  732. }
  733. }
  734. },
  735. "put": {
  736. "security": [
  737. {
  738. "ApiKeyAuth": []
  739. }
  740. ],
  741. "consumes": [
  742. "application/json"
  743. ],
  744. "produces": [
  745. "application/json"
  746. ],
  747. "tags": [
  748. "SysApi"
  749. ],
  750. "summary": "更新客户信息",
  751. "parameters": [
  752. {
  753. "description": "创建客户",
  754. "name": "data",
  755. "in": "body",
  756. "required": true,
  757. "schema": {
  758. "$ref": "#/definitions/model.ExaCustomer"
  759. }
  760. }
  761. ],
  762. "responses": {
  763. "200": {
  764. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  765. "schema": {
  766. "type": "string"
  767. }
  768. }
  769. }
  770. },
  771. "post": {
  772. "security": [
  773. {
  774. "ApiKeyAuth": []
  775. }
  776. ],
  777. "consumes": [
  778. "application/json"
  779. ],
  780. "produces": [
  781. "application/json"
  782. ],
  783. "tags": [
  784. "SysApi"
  785. ],
  786. "summary": "创建客户",
  787. "parameters": [
  788. {
  789. "description": "创建客户",
  790. "name": "data",
  791. "in": "body",
  792. "required": true,
  793. "schema": {
  794. "$ref": "#/definitions/model.ExaCustomer"
  795. }
  796. }
  797. ],
  798. "responses": {
  799. "200": {
  800. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  801. "schema": {
  802. "type": "string"
  803. }
  804. }
  805. }
  806. },
  807. "delete": {
  808. "security": [
  809. {
  810. "ApiKeyAuth": []
  811. }
  812. ],
  813. "consumes": [
  814. "application/json"
  815. ],
  816. "produces": [
  817. "application/json"
  818. ],
  819. "tags": [
  820. "SysApi"
  821. ],
  822. "summary": "删除客户",
  823. "parameters": [
  824. {
  825. "description": "删除客户",
  826. "name": "data",
  827. "in": "body",
  828. "required": true,
  829. "schema": {
  830. "$ref": "#/definitions/model.ExaCustomer"
  831. }
  832. }
  833. ],
  834. "responses": {
  835. "200": {
  836. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  837. "schema": {
  838. "type": "string"
  839. }
  840. }
  841. }
  842. }
  843. },
  844. "/customer/customerList": {
  845. "get": {
  846. "security": [
  847. {
  848. "ApiKeyAuth": []
  849. }
  850. ],
  851. "consumes": [
  852. "application/json"
  853. ],
  854. "produces": [
  855. "application/json"
  856. ],
  857. "tags": [
  858. "SysApi"
  859. ],
  860. "summary": "获取权限客户列表",
  861. "parameters": [
  862. {
  863. "description": "获取权限客户列表",
  864. "name": "data",
  865. "in": "body",
  866. "required": true,
  867. "schema": {
  868. "$ref": "#/definitions/request.PageInfo"
  869. }
  870. }
  871. ],
  872. "responses": {
  873. "200": {
  874. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  875. "schema": {
  876. "type": "string"
  877. }
  878. }
  879. }
  880. }
  881. },
  882. "/fileUploadAndDownload/breakpointContinue": {
  883. "post": {
  884. "security": [
  885. {
  886. "ApiKeyAuth": []
  887. }
  888. ],
  889. "consumes": [
  890. "multipart/form-data"
  891. ],
  892. "produces": [
  893. "application/json"
  894. ],
  895. "tags": [
  896. "ExaFileUploadAndDownload"
  897. ],
  898. "summary": "断点续传到服务器",
  899. "parameters": [
  900. {
  901. "type": "file",
  902. "description": "an example for breakpoint resume, 断点续传示例",
  903. "name": "file",
  904. "in": "formData",
  905. "required": true
  906. }
  907. ],
  908. "responses": {
  909. "200": {
  910. "description": "{\"success\":true,\"data\":{},\"msg\":\"上传成功\"}",
  911. "schema": {
  912. "type": "string"
  913. }
  914. }
  915. }
  916. }
  917. },
  918. "/fileUploadAndDownload/deleteFile": {
  919. "post": {
  920. "security": [
  921. {
  922. "ApiKeyAuth": []
  923. }
  924. ],
  925. "produces": [
  926. "application/json"
  927. ],
  928. "tags": [
  929. "ExaFileUploadAndDownload"
  930. ],
  931. "summary": "删除文件",
  932. "parameters": [
  933. {
  934. "description": "传入文件里面id即可",
  935. "name": "data",
  936. "in": "body",
  937. "required": true,
  938. "schema": {
  939. "$ref": "#/definitions/model.ExaFileUploadAndDownload"
  940. }
  941. }
  942. ],
  943. "responses": {
  944. "200": {
  945. "description": "{\"success\":true,\"data\":{},\"msg\":\"返回成功\"}",
  946. "schema": {
  947. "type": "string"
  948. }
  949. }
  950. }
  951. }
  952. },
  953. "/fileUploadAndDownload/findFile": {
  954. "post": {
  955. "security": [
  956. {
  957. "ApiKeyAuth": []
  958. }
  959. ],
  960. "consumes": [
  961. "multipart/form-data"
  962. ],
  963. "produces": [
  964. "application/json"
  965. ],
  966. "tags": [
  967. "ExaFileUploadAndDownload"
  968. ],
  969. "summary": "查找文件",
  970. "parameters": [
  971. {
  972. "type": "file",
  973. "description": "上传文件完成",
  974. "name": "file",
  975. "in": "formData",
  976. "required": true
  977. }
  978. ],
  979. "responses": {
  980. "200": {
  981. "description": "{\"success\":true,\"data\":{},\"msg\":\"file uploaded, 文件创建成功\"}",
  982. "schema": {
  983. "type": "string"
  984. }
  985. }
  986. }
  987. }
  988. },
  989. "/fileUploadAndDownload/getFileList": {
  990. "post": {
  991. "security": [
  992. {
  993. "ApiKeyAuth": []
  994. }
  995. ],
  996. "consumes": [
  997. "application/json"
  998. ],
  999. "produces": [
  1000. "application/json"
  1001. ],
  1002. "tags": [
  1003. "ExaFileUploadAndDownload"
  1004. ],
  1005. "summary": "分页文件列表",
  1006. "parameters": [
  1007. {
  1008. "description": "分页获取文件户列表",
  1009. "name": "data",
  1010. "in": "body",
  1011. "required": true,
  1012. "schema": {
  1013. "$ref": "#/definitions/request.PageInfo"
  1014. }
  1015. }
  1016. ],
  1017. "responses": {
  1018. "200": {
  1019. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  1020. "schema": {
  1021. "type": "string"
  1022. }
  1023. }
  1024. }
  1025. }
  1026. },
  1027. "/fileUploadAndDownload/removeChunk": {
  1028. "post": {
  1029. "security": [
  1030. {
  1031. "ApiKeyAuth": []
  1032. }
  1033. ],
  1034. "consumes": [
  1035. "multipart/form-data"
  1036. ],
  1037. "produces": [
  1038. "application/json"
  1039. ],
  1040. "tags": [
  1041. "ExaFileUploadAndDownload"
  1042. ],
  1043. "summary": "删除切片",
  1044. "parameters": [
  1045. {
  1046. "type": "file",
  1047. "description": "删除缓存切片",
  1048. "name": "file",
  1049. "in": "formData",
  1050. "required": true
  1051. }
  1052. ],
  1053. "responses": {
  1054. "200": {
  1055. "description": "{\"success\":true,\"data\":{},\"msg\":\"查找成功\"}",
  1056. "schema": {
  1057. "type": "string"
  1058. }
  1059. }
  1060. }
  1061. }
  1062. },
  1063. "/fileUploadAndDownload/upload": {
  1064. "post": {
  1065. "security": [
  1066. {
  1067. "ApiKeyAuth": []
  1068. }
  1069. ],
  1070. "consumes": [
  1071. "multipart/form-data"
  1072. ],
  1073. "produces": [
  1074. "application/json"
  1075. ],
  1076. "tags": [
  1077. "ExaFileUploadAndDownload"
  1078. ],
  1079. "summary": "上传文件示例",
  1080. "parameters": [
  1081. {
  1082. "type": "file",
  1083. "description": "上传文件示例",
  1084. "name": "file",
  1085. "in": "formData",
  1086. "required": true
  1087. }
  1088. ],
  1089. "responses": {
  1090. "200": {
  1091. "description": "{\"success\":true,\"data\":{},\"msg\":\"上传成功\"}",
  1092. "schema": {
  1093. "type": "string"
  1094. }
  1095. }
  1096. }
  1097. }
  1098. },
  1099. "/jwt/jsonInBlacklist": {
  1100. "post": {
  1101. "security": [
  1102. {
  1103. "ApiKeyAuth": []
  1104. }
  1105. ],
  1106. "consumes": [
  1107. "application/json"
  1108. ],
  1109. "produces": [
  1110. "application/json"
  1111. ],
  1112. "tags": [
  1113. "jwt"
  1114. ],
  1115. "summary": "jwt加入黑名单",
  1116. "responses": {
  1117. "200": {
  1118. "description": "{\"success\":true,\"data\":{},\"msg\":\"拉黑成功\"}",
  1119. "schema": {
  1120. "type": "string"
  1121. }
  1122. }
  1123. }
  1124. }
  1125. },
  1126. "/menu/GetMenuAuthority": {
  1127. "post": {
  1128. "security": [
  1129. {
  1130. "ApiKeyAuth": []
  1131. }
  1132. ],
  1133. "consumes": [
  1134. "application/json"
  1135. ],
  1136. "produces": [
  1137. "application/json"
  1138. ],
  1139. "tags": [
  1140. "authorityAndMenu"
  1141. ],
  1142. "summary": "获取指定角色menu",
  1143. "parameters": [
  1144. {
  1145. "description": "增加menu和角色关联关系",
  1146. "name": "data",
  1147. "in": "body",
  1148. "required": true,
  1149. "schema": {
  1150. "$ref": "#/definitions/request.AuthorityIdInfo"
  1151. }
  1152. }
  1153. ],
  1154. "responses": {
  1155. "200": {
  1156. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  1157. "schema": {
  1158. "type": "string"
  1159. }
  1160. }
  1161. }
  1162. }
  1163. },
  1164. "/menu/addBaseMenu": {
  1165. "post": {
  1166. "security": [
  1167. {
  1168. "ApiKeyAuth": []
  1169. }
  1170. ],
  1171. "consumes": [
  1172. "application/json"
  1173. ],
  1174. "produces": [
  1175. "application/json"
  1176. ],
  1177. "tags": [
  1178. "menu"
  1179. ],
  1180. "summary": "新增菜单",
  1181. "parameters": [
  1182. {
  1183. "description": "新增菜单",
  1184. "name": "data",
  1185. "in": "body",
  1186. "required": true,
  1187. "schema": {
  1188. "$ref": "#/definitions/model.SysBaseMenu"
  1189. }
  1190. }
  1191. ],
  1192. "responses": {
  1193. "200": {
  1194. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  1195. "schema": {
  1196. "type": "string"
  1197. }
  1198. }
  1199. }
  1200. }
  1201. },
  1202. "/menu/addMenuAuthority": {
  1203. "post": {
  1204. "security": [
  1205. {
  1206. "ApiKeyAuth": []
  1207. }
  1208. ],
  1209. "consumes": [
  1210. "application/json"
  1211. ],
  1212. "produces": [
  1213. "application/json"
  1214. ],
  1215. "tags": [
  1216. "authorityAndMenu"
  1217. ],
  1218. "summary": "增加menu和角色关联关系",
  1219. "parameters": [
  1220. {
  1221. "description": "增加menu和角色关联关系",
  1222. "name": "data",
  1223. "in": "body",
  1224. "required": true,
  1225. "schema": {
  1226. "$ref": "#/definitions/request.AddMenuAuthorityInfo"
  1227. }
  1228. }
  1229. ],
  1230. "responses": {
  1231. "200": {
  1232. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  1233. "schema": {
  1234. "type": "string"
  1235. }
  1236. }
  1237. }
  1238. }
  1239. },
  1240. "/menu/deleteBaseMenu": {
  1241. "post": {
  1242. "security": [
  1243. {
  1244. "ApiKeyAuth": []
  1245. }
  1246. ],
  1247. "consumes": [
  1248. "application/json"
  1249. ],
  1250. "produces": [
  1251. "application/json"
  1252. ],
  1253. "tags": [
  1254. "menu"
  1255. ],
  1256. "summary": "删除菜单",
  1257. "parameters": [
  1258. {
  1259. "description": "删除菜单",
  1260. "name": "data",
  1261. "in": "body",
  1262. "required": true,
  1263. "schema": {
  1264. "$ref": "#/definitions/request.GetById"
  1265. }
  1266. }
  1267. ],
  1268. "responses": {
  1269. "200": {
  1270. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  1271. "schema": {
  1272. "type": "string"
  1273. }
  1274. }
  1275. }
  1276. }
  1277. },
  1278. "/menu/getBaseMenuById": {
  1279. "post": {
  1280. "security": [
  1281. {
  1282. "ApiKeyAuth": []
  1283. }
  1284. ],
  1285. "consumes": [
  1286. "application/json"
  1287. ],
  1288. "produces": [
  1289. "application/json"
  1290. ],
  1291. "tags": [
  1292. "menu"
  1293. ],
  1294. "summary": "根据id获取菜单",
  1295. "parameters": [
  1296. {
  1297. "description": "根据id获取菜单",
  1298. "name": "data",
  1299. "in": "body",
  1300. "required": true,
  1301. "schema": {
  1302. "$ref": "#/definitions/request.GetById"
  1303. }
  1304. }
  1305. ],
  1306. "responses": {
  1307. "200": {
  1308. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  1309. "schema": {
  1310. "type": "string"
  1311. }
  1312. }
  1313. }
  1314. }
  1315. },
  1316. "/menu/getBaseMenuTree": {
  1317. "post": {
  1318. "security": [
  1319. {
  1320. "ApiKeyAuth": []
  1321. }
  1322. ],
  1323. "produces": [
  1324. "application/json"
  1325. ],
  1326. "tags": [
  1327. "authorityAndMenu"
  1328. ],
  1329. "summary": "获取用户动态路由",
  1330. "parameters": [
  1331. {
  1332. "description": "可以什么都不填",
  1333. "name": "data",
  1334. "in": "body",
  1335. "required": true,
  1336. "schema": {
  1337. "$ref": "#/definitions/request.RegisterAndLoginStruct"
  1338. }
  1339. }
  1340. ],
  1341. "responses": {
  1342. "200": {
  1343. "description": "{\"success\":true,\"data\":{},\"msg\":\"返回成功\"}",
  1344. "schema": {
  1345. "type": "string"
  1346. }
  1347. }
  1348. }
  1349. }
  1350. },
  1351. "/menu/getMenu": {
  1352. "post": {
  1353. "security": [
  1354. {
  1355. "ApiKeyAuth": []
  1356. }
  1357. ],
  1358. "produces": [
  1359. "application/json"
  1360. ],
  1361. "tags": [
  1362. "authorityAndMenu"
  1363. ],
  1364. "summary": "获取用户动态路由",
  1365. "parameters": [
  1366. {
  1367. "description": "可以什么都不填",
  1368. "name": "data",
  1369. "in": "body",
  1370. "required": true,
  1371. "schema": {
  1372. "$ref": "#/definitions/request.RegisterAndLoginStruct"
  1373. }
  1374. }
  1375. ],
  1376. "responses": {
  1377. "200": {
  1378. "description": "{\"success\":true,\"data\":{},\"msg\":\"返回成功\"}",
  1379. "schema": {
  1380. "type": "string"
  1381. }
  1382. }
  1383. }
  1384. }
  1385. },
  1386. "/menu/getMenuList": {
  1387. "post": {
  1388. "security": [
  1389. {
  1390. "ApiKeyAuth": []
  1391. }
  1392. ],
  1393. "consumes": [
  1394. "application/json"
  1395. ],
  1396. "produces": [
  1397. "application/json"
  1398. ],
  1399. "tags": [
  1400. "menu"
  1401. ],
  1402. "summary": "分页获取基础menu列表",
  1403. "parameters": [
  1404. {
  1405. "description": "分页获取基础menu列表",
  1406. "name": "data",
  1407. "in": "body",
  1408. "required": true,
  1409. "schema": {
  1410. "$ref": "#/definitions/request.PageInfo"
  1411. }
  1412. }
  1413. ],
  1414. "responses": {
  1415. "200": {
  1416. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  1417. "schema": {
  1418. "type": "string"
  1419. }
  1420. }
  1421. }
  1422. }
  1423. },
  1424. "/menu/updateBaseMenu": {
  1425. "post": {
  1426. "security": [
  1427. {
  1428. "ApiKeyAuth": []
  1429. }
  1430. ],
  1431. "consumes": [
  1432. "application/json"
  1433. ],
  1434. "produces": [
  1435. "application/json"
  1436. ],
  1437. "tags": [
  1438. "menu"
  1439. ],
  1440. "summary": "更新菜单",
  1441. "parameters": [
  1442. {
  1443. "description": "更新菜单",
  1444. "name": "data",
  1445. "in": "body",
  1446. "required": true,
  1447. "schema": {
  1448. "$ref": "#/definitions/model.SysBaseMenu"
  1449. }
  1450. }
  1451. ],
  1452. "responses": {
  1453. "200": {
  1454. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  1455. "schema": {
  1456. "type": "string"
  1457. }
  1458. }
  1459. }
  1460. }
  1461. },
  1462. "/simpleUploader/checkFileMd5": {
  1463. "get": {
  1464. "produces": [
  1465. "application/json"
  1466. ],
  1467. "parameters": [
  1468. {
  1469. "type": "string",
  1470. "description": "测试文件是否已经存在和判断已经上传过的切片",
  1471. "name": "md5",
  1472. "in": "query",
  1473. "required": true
  1474. }
  1475. ],
  1476. "responses": {
  1477. "200": {
  1478. "description": "{\"success\":true,\"data\":{},\"msg\":\"查询成功\"}",
  1479. "schema": {
  1480. "type": "string"
  1481. }
  1482. }
  1483. }
  1484. }
  1485. },
  1486. "/simpleUploader/mergeFileMd5": {
  1487. "get": {
  1488. "security": [
  1489. {
  1490. "ApiKeyAuth": []
  1491. }
  1492. ],
  1493. "produces": [
  1494. "application/json"
  1495. ],
  1496. "tags": [
  1497. "SimpleUploader"
  1498. ],
  1499. "summary": "合并文件",
  1500. "parameters": [
  1501. {
  1502. "type": "string",
  1503. "description": "合并文件",
  1504. "name": "md5",
  1505. "in": "query",
  1506. "required": true
  1507. }
  1508. ],
  1509. "responses": {
  1510. "200": {
  1511. "description": "{\"success\":true,\"data\":{},\"msg\":\"合并成功\"}",
  1512. "schema": {
  1513. "type": "string"
  1514. }
  1515. }
  1516. }
  1517. }
  1518. },
  1519. "/simpleUploader/upload": {
  1520. "post": {
  1521. "security": [
  1522. {
  1523. "ApiKeyAuth": []
  1524. }
  1525. ],
  1526. "consumes": [
  1527. "multipart/form-data"
  1528. ],
  1529. "produces": [
  1530. "application/json"
  1531. ],
  1532. "tags": [
  1533. "SimpleUploader"
  1534. ],
  1535. "summary": "断点续传插件版示例",
  1536. "parameters": [
  1537. {
  1538. "type": "file",
  1539. "description": "断点续传插件版示例",
  1540. "name": "file",
  1541. "in": "formData",
  1542. "required": true
  1543. }
  1544. ],
  1545. "responses": {
  1546. "200": {
  1547. "description": "{\"success\":true,\"data\":{},\"msg\":\"上传成功\"}",
  1548. "schema": {
  1549. "type": "string"
  1550. }
  1551. }
  1552. }
  1553. }
  1554. },
  1555. "/sysDictionary/createSysDictionary": {
  1556. "post": {
  1557. "security": [
  1558. {
  1559. "ApiKeyAuth": []
  1560. }
  1561. ],
  1562. "consumes": [
  1563. "application/json"
  1564. ],
  1565. "produces": [
  1566. "application/json"
  1567. ],
  1568. "tags": [
  1569. "SysDictionary"
  1570. ],
  1571. "summary": "创建SysDictionary",
  1572. "parameters": [
  1573. {
  1574. "description": "创建SysDictionary",
  1575. "name": "data",
  1576. "in": "body",
  1577. "required": true,
  1578. "schema": {
  1579. "$ref": "#/definitions/model.SysDictionary"
  1580. }
  1581. }
  1582. ],
  1583. "responses": {
  1584. "200": {
  1585. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  1586. "schema": {
  1587. "type": "string"
  1588. }
  1589. }
  1590. }
  1591. }
  1592. },
  1593. "/sysDictionary/deleteSysDictionary": {
  1594. "delete": {
  1595. "security": [
  1596. {
  1597. "ApiKeyAuth": []
  1598. }
  1599. ],
  1600. "consumes": [
  1601. "application/json"
  1602. ],
  1603. "produces": [
  1604. "application/json"
  1605. ],
  1606. "tags": [
  1607. "SysDictionary"
  1608. ],
  1609. "summary": "删除SysDictionary",
  1610. "parameters": [
  1611. {
  1612. "description": "删除SysDictionary",
  1613. "name": "data",
  1614. "in": "body",
  1615. "required": true,
  1616. "schema": {
  1617. "$ref": "#/definitions/model.SysDictionary"
  1618. }
  1619. }
  1620. ],
  1621. "responses": {
  1622. "200": {
  1623. "description": "{\"success\":true,\"data\":{},\"msg\":\"删除成功\"}",
  1624. "schema": {
  1625. "type": "string"
  1626. }
  1627. }
  1628. }
  1629. }
  1630. },
  1631. "/sysDictionary/findSysDictionary": {
  1632. "get": {
  1633. "security": [
  1634. {
  1635. "ApiKeyAuth": []
  1636. }
  1637. ],
  1638. "consumes": [
  1639. "application/json"
  1640. ],
  1641. "produces": [
  1642. "application/json"
  1643. ],
  1644. "tags": [
  1645. "SysDictionary"
  1646. ],
  1647. "summary": "用id查询SysDictionary",
  1648. "parameters": [
  1649. {
  1650. "description": "用id查询SysDictionary",
  1651. "name": "data",
  1652. "in": "body",
  1653. "required": true,
  1654. "schema": {
  1655. "$ref": "#/definitions/model.SysDictionary"
  1656. }
  1657. }
  1658. ],
  1659. "responses": {
  1660. "200": {
  1661. "description": "{\"success\":true,\"data\":{},\"msg\":\"查询成功\"}",
  1662. "schema": {
  1663. "type": "string"
  1664. }
  1665. }
  1666. }
  1667. }
  1668. },
  1669. "/sysDictionary/getSysDictionaryList": {
  1670. "get": {
  1671. "security": [
  1672. {
  1673. "ApiKeyAuth": []
  1674. }
  1675. ],
  1676. "consumes": [
  1677. "application/json"
  1678. ],
  1679. "produces": [
  1680. "application/json"
  1681. ],
  1682. "tags": [
  1683. "SysDictionary"
  1684. ],
  1685. "summary": "分页获取SysDictionary列表",
  1686. "parameters": [
  1687. {
  1688. "description": "分页获取SysDictionary列表",
  1689. "name": "data",
  1690. "in": "body",
  1691. "required": true,
  1692. "schema": {
  1693. "$ref": "#/definitions/request.SysDictionarySearch"
  1694. }
  1695. }
  1696. ],
  1697. "responses": {
  1698. "200": {
  1699. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  1700. "schema": {
  1701. "type": "string"
  1702. }
  1703. }
  1704. }
  1705. }
  1706. },
  1707. "/sysDictionary/updateSysDictionary": {
  1708. "put": {
  1709. "security": [
  1710. {
  1711. "ApiKeyAuth": []
  1712. }
  1713. ],
  1714. "consumes": [
  1715. "application/json"
  1716. ],
  1717. "produces": [
  1718. "application/json"
  1719. ],
  1720. "tags": [
  1721. "SysDictionary"
  1722. ],
  1723. "summary": "更新SysDictionary",
  1724. "parameters": [
  1725. {
  1726. "description": "更新SysDictionary",
  1727. "name": "data",
  1728. "in": "body",
  1729. "required": true,
  1730. "schema": {
  1731. "$ref": "#/definitions/model.SysDictionary"
  1732. }
  1733. }
  1734. ],
  1735. "responses": {
  1736. "200": {
  1737. "description": "{\"success\":true,\"data\":{},\"msg\":\"更新成功\"}",
  1738. "schema": {
  1739. "type": "string"
  1740. }
  1741. }
  1742. }
  1743. }
  1744. },
  1745. "/sysDictionaryDetail/createSysDictionaryDetail": {
  1746. "post": {
  1747. "security": [
  1748. {
  1749. "ApiKeyAuth": []
  1750. }
  1751. ],
  1752. "consumes": [
  1753. "application/json"
  1754. ],
  1755. "produces": [
  1756. "application/json"
  1757. ],
  1758. "tags": [
  1759. "SysDictionaryDetail"
  1760. ],
  1761. "summary": "创建SysDictionaryDetail",
  1762. "parameters": [
  1763. {
  1764. "description": "创建SysDictionaryDetail",
  1765. "name": "data",
  1766. "in": "body",
  1767. "required": true,
  1768. "schema": {
  1769. "$ref": "#/definitions/model.SysDictionaryDetail"
  1770. }
  1771. }
  1772. ],
  1773. "responses": {
  1774. "200": {
  1775. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  1776. "schema": {
  1777. "type": "string"
  1778. }
  1779. }
  1780. }
  1781. }
  1782. },
  1783. "/sysDictionaryDetail/deleteSysDictionaryDetail": {
  1784. "delete": {
  1785. "security": [
  1786. {
  1787. "ApiKeyAuth": []
  1788. }
  1789. ],
  1790. "consumes": [
  1791. "application/json"
  1792. ],
  1793. "produces": [
  1794. "application/json"
  1795. ],
  1796. "tags": [
  1797. "SysDictionaryDetail"
  1798. ],
  1799. "summary": "删除SysDictionaryDetail",
  1800. "parameters": [
  1801. {
  1802. "description": "删除SysDictionaryDetail",
  1803. "name": "data",
  1804. "in": "body",
  1805. "required": true,
  1806. "schema": {
  1807. "$ref": "#/definitions/model.SysDictionaryDetail"
  1808. }
  1809. }
  1810. ],
  1811. "responses": {
  1812. "200": {
  1813. "description": "{\"success\":true,\"data\":{},\"msg\":\"删除成功\"}",
  1814. "schema": {
  1815. "type": "string"
  1816. }
  1817. }
  1818. }
  1819. }
  1820. },
  1821. "/sysDictionaryDetail/findSysDictionaryDetail": {
  1822. "get": {
  1823. "security": [
  1824. {
  1825. "ApiKeyAuth": []
  1826. }
  1827. ],
  1828. "consumes": [
  1829. "application/json"
  1830. ],
  1831. "produces": [
  1832. "application/json"
  1833. ],
  1834. "tags": [
  1835. "SysDictionaryDetail"
  1836. ],
  1837. "summary": "用id查询SysDictionaryDetail",
  1838. "parameters": [
  1839. {
  1840. "description": "用id查询SysDictionaryDetail",
  1841. "name": "data",
  1842. "in": "body",
  1843. "required": true,
  1844. "schema": {
  1845. "$ref": "#/definitions/model.SysDictionaryDetail"
  1846. }
  1847. }
  1848. ],
  1849. "responses": {
  1850. "200": {
  1851. "description": "{\"success\":true,\"data\":{},\"msg\":\"查询成功\"}",
  1852. "schema": {
  1853. "type": "string"
  1854. }
  1855. }
  1856. }
  1857. }
  1858. },
  1859. "/sysDictionaryDetail/getSysDictionaryDetailList": {
  1860. "get": {
  1861. "security": [
  1862. {
  1863. "ApiKeyAuth": []
  1864. }
  1865. ],
  1866. "consumes": [
  1867. "application/json"
  1868. ],
  1869. "produces": [
  1870. "application/json"
  1871. ],
  1872. "tags": [
  1873. "SysDictionaryDetail"
  1874. ],
  1875. "summary": "分页获取SysDictionaryDetail列表",
  1876. "parameters": [
  1877. {
  1878. "description": "分页获取SysDictionaryDetail列表",
  1879. "name": "data",
  1880. "in": "body",
  1881. "required": true,
  1882. "schema": {
  1883. "$ref": "#/definitions/request.SysDictionaryDetailSearch"
  1884. }
  1885. }
  1886. ],
  1887. "responses": {
  1888. "200": {
  1889. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  1890. "schema": {
  1891. "type": "string"
  1892. }
  1893. }
  1894. }
  1895. }
  1896. },
  1897. "/sysDictionaryDetail/updateSysDictionaryDetail": {
  1898. "put": {
  1899. "security": [
  1900. {
  1901. "ApiKeyAuth": []
  1902. }
  1903. ],
  1904. "consumes": [
  1905. "application/json"
  1906. ],
  1907. "produces": [
  1908. "application/json"
  1909. ],
  1910. "tags": [
  1911. "SysDictionaryDetail"
  1912. ],
  1913. "summary": "更新SysDictionaryDetail",
  1914. "parameters": [
  1915. {
  1916. "description": "更新SysDictionaryDetail",
  1917. "name": "data",
  1918. "in": "body",
  1919. "required": true,
  1920. "schema": {
  1921. "$ref": "#/definitions/model.SysDictionaryDetail"
  1922. }
  1923. }
  1924. ],
  1925. "responses": {
  1926. "200": {
  1927. "description": "{\"success\":true,\"data\":{},\"msg\":\"更新成功\"}",
  1928. "schema": {
  1929. "type": "string"
  1930. }
  1931. }
  1932. }
  1933. }
  1934. },
  1935. "/sysOperationRecord/createSysOperationRecord": {
  1936. "post": {
  1937. "security": [
  1938. {
  1939. "ApiKeyAuth": []
  1940. }
  1941. ],
  1942. "consumes": [
  1943. "application/json"
  1944. ],
  1945. "produces": [
  1946. "application/json"
  1947. ],
  1948. "tags": [
  1949. "SysOperationRecord"
  1950. ],
  1951. "summary": "创建SysOperationRecord",
  1952. "parameters": [
  1953. {
  1954. "description": "创建SysOperationRecord",
  1955. "name": "data",
  1956. "in": "body",
  1957. "required": true,
  1958. "schema": {
  1959. "$ref": "#/definitions/model.SysOperationRecord"
  1960. }
  1961. }
  1962. ],
  1963. "responses": {
  1964. "200": {
  1965. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  1966. "schema": {
  1967. "type": "string"
  1968. }
  1969. }
  1970. }
  1971. }
  1972. },
  1973. "/sysOperationRecord/deleteSysOperationRecord": {
  1974. "delete": {
  1975. "security": [
  1976. {
  1977. "ApiKeyAuth": []
  1978. }
  1979. ],
  1980. "consumes": [
  1981. "application/json"
  1982. ],
  1983. "produces": [
  1984. "application/json"
  1985. ],
  1986. "tags": [
  1987. "SysOperationRecord"
  1988. ],
  1989. "summary": "删除SysOperationRecord",
  1990. "parameters": [
  1991. {
  1992. "description": "删除SysOperationRecord",
  1993. "name": "data",
  1994. "in": "body",
  1995. "required": true,
  1996. "schema": {
  1997. "$ref": "#/definitions/model.SysOperationRecord"
  1998. }
  1999. }
  2000. ],
  2001. "responses": {
  2002. "200": {
  2003. "description": "{\"success\":true,\"data\":{},\"msg\":\"删除成功\"}",
  2004. "schema": {
  2005. "type": "string"
  2006. }
  2007. }
  2008. }
  2009. }
  2010. },
  2011. "/sysOperationRecord/deleteSysOperationRecordByIds": {
  2012. "delete": {
  2013. "security": [
  2014. {
  2015. "ApiKeyAuth": []
  2016. }
  2017. ],
  2018. "consumes": [
  2019. "application/json"
  2020. ],
  2021. "produces": [
  2022. "application/json"
  2023. ],
  2024. "tags": [
  2025. "SysOperationRecord"
  2026. ],
  2027. "summary": "批量删除SysOperationRecord",
  2028. "parameters": [
  2029. {
  2030. "description": "批量删除SysOperationRecord",
  2031. "name": "data",
  2032. "in": "body",
  2033. "required": true,
  2034. "schema": {
  2035. "$ref": "#/definitions/request.IdsReq"
  2036. }
  2037. }
  2038. ],
  2039. "responses": {
  2040. "200": {
  2041. "description": "{\"success\":true,\"data\":{},\"msg\":\"删除成功\"}",
  2042. "schema": {
  2043. "type": "string"
  2044. }
  2045. }
  2046. }
  2047. }
  2048. },
  2049. "/sysOperationRecord/findSysOperationRecord": {
  2050. "get": {
  2051. "security": [
  2052. {
  2053. "ApiKeyAuth": []
  2054. }
  2055. ],
  2056. "consumes": [
  2057. "application/json"
  2058. ],
  2059. "produces": [
  2060. "application/json"
  2061. ],
  2062. "tags": [
  2063. "SysOperationRecord"
  2064. ],
  2065. "summary": "用id查询SysOperationRecord",
  2066. "parameters": [
  2067. {
  2068. "description": "用id查询SysOperationRecord",
  2069. "name": "data",
  2070. "in": "body",
  2071. "required": true,
  2072. "schema": {
  2073. "$ref": "#/definitions/model.SysOperationRecord"
  2074. }
  2075. }
  2076. ],
  2077. "responses": {
  2078. "200": {
  2079. "description": "{\"success\":true,\"data\":{},\"msg\":\"查询成功\"}",
  2080. "schema": {
  2081. "type": "string"
  2082. }
  2083. }
  2084. }
  2085. }
  2086. },
  2087. "/sysOperationRecord/getSysOperationRecordList": {
  2088. "get": {
  2089. "security": [
  2090. {
  2091. "ApiKeyAuth": []
  2092. }
  2093. ],
  2094. "consumes": [
  2095. "application/json"
  2096. ],
  2097. "produces": [
  2098. "application/json"
  2099. ],
  2100. "tags": [
  2101. "SysOperationRecord"
  2102. ],
  2103. "summary": "分页获取SysOperationRecord列表",
  2104. "parameters": [
  2105. {
  2106. "description": "分页获取SysOperationRecord列表",
  2107. "name": "data",
  2108. "in": "body",
  2109. "required": true,
  2110. "schema": {
  2111. "$ref": "#/definitions/request.SysOperationRecordSearch"
  2112. }
  2113. }
  2114. ],
  2115. "responses": {
  2116. "200": {
  2117. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  2118. "schema": {
  2119. "type": "string"
  2120. }
  2121. }
  2122. }
  2123. }
  2124. },
  2125. "/system/ReloadSystem": {
  2126. "post": {
  2127. "security": [
  2128. {
  2129. "ApiKeyAuth": []
  2130. }
  2131. ],
  2132. "produces": [
  2133. "application/json"
  2134. ],
  2135. "tags": [
  2136. "system"
  2137. ],
  2138. "summary": "设置配置文件内容",
  2139. "parameters": [
  2140. {
  2141. "description": "设置配置文件内容",
  2142. "name": "data",
  2143. "in": "body",
  2144. "required": true,
  2145. "schema": {
  2146. "$ref": "#/definitions/model.System"
  2147. }
  2148. }
  2149. ],
  2150. "responses": {
  2151. "200": {
  2152. "description": "{\"success\":true,\"data\":{},\"msg\":\"返回成功\"}",
  2153. "schema": {
  2154. "type": "string"
  2155. }
  2156. }
  2157. }
  2158. }
  2159. },
  2160. "/system/getSystemConfig": {
  2161. "post": {
  2162. "security": [
  2163. {
  2164. "ApiKeyAuth": []
  2165. }
  2166. ],
  2167. "produces": [
  2168. "application/json"
  2169. ],
  2170. "tags": [
  2171. "system"
  2172. ],
  2173. "summary": "获取配置文件内容",
  2174. "responses": {
  2175. "200": {
  2176. "description": "{\"success\":true,\"data\":{},\"msg\":\"返回成功\"}",
  2177. "schema": {
  2178. "type": "string"
  2179. }
  2180. }
  2181. }
  2182. }
  2183. },
  2184. "/system/setSystemConfig": {
  2185. "post": {
  2186. "security": [
  2187. {
  2188. "ApiKeyAuth": []
  2189. }
  2190. ],
  2191. "produces": [
  2192. "application/json"
  2193. ],
  2194. "tags": [
  2195. "system"
  2196. ],
  2197. "summary": "设置配置文件内容",
  2198. "parameters": [
  2199. {
  2200. "description": "设置配置文件内容",
  2201. "name": "data",
  2202. "in": "body",
  2203. "required": true,
  2204. "schema": {
  2205. "$ref": "#/definitions/model.System"
  2206. }
  2207. }
  2208. ],
  2209. "responses": {
  2210. "200": {
  2211. "description": "{\"success\":true,\"data\":{},\"msg\":\"返回成功\"}",
  2212. "schema": {
  2213. "type": "string"
  2214. }
  2215. }
  2216. }
  2217. }
  2218. },
  2219. "/user/changePassword": {
  2220. "put": {
  2221. "security": [
  2222. {
  2223. "ApiKeyAuth": []
  2224. }
  2225. ],
  2226. "produces": [
  2227. "application/json"
  2228. ],
  2229. "tags": [
  2230. "SysUser"
  2231. ],
  2232. "summary": "用户修改密码",
  2233. "parameters": [
  2234. {
  2235. "description": "用户修改密码",
  2236. "name": "data",
  2237. "in": "body",
  2238. "required": true,
  2239. "schema": {
  2240. "$ref": "#/definitions/request.ChangePasswordStruct"
  2241. }
  2242. }
  2243. ],
  2244. "responses": {
  2245. "200": {
  2246. "description": "{\"success\":true,\"data\":{},\"msg\":\"修改成功\"}",
  2247. "schema": {
  2248. "type": "string"
  2249. }
  2250. }
  2251. }
  2252. }
  2253. },
  2254. "/user/deleteUser": {
  2255. "delete": {
  2256. "security": [
  2257. {
  2258. "ApiKeyAuth": []
  2259. }
  2260. ],
  2261. "consumes": [
  2262. "application/json"
  2263. ],
  2264. "produces": [
  2265. "application/json"
  2266. ],
  2267. "tags": [
  2268. "SysUser"
  2269. ],
  2270. "summary": "删除用户",
  2271. "parameters": [
  2272. {
  2273. "description": "删除用户",
  2274. "name": "data",
  2275. "in": "body",
  2276. "required": true,
  2277. "schema": {
  2278. "$ref": "#/definitions/request.GetById"
  2279. }
  2280. }
  2281. ],
  2282. "responses": {
  2283. "200": {
  2284. "description": "{\"success\":true,\"data\":{},\"msg\":\"修改成功\"}",
  2285. "schema": {
  2286. "type": "string"
  2287. }
  2288. }
  2289. }
  2290. }
  2291. },
  2292. "/user/getUserList": {
  2293. "post": {
  2294. "security": [
  2295. {
  2296. "ApiKeyAuth": []
  2297. }
  2298. ],
  2299. "consumes": [
  2300. "application/json"
  2301. ],
  2302. "produces": [
  2303. "application/json"
  2304. ],
  2305. "tags": [
  2306. "SysUser"
  2307. ],
  2308. "summary": "分页获取用户列表",
  2309. "parameters": [
  2310. {
  2311. "description": "分页获取用户列表",
  2312. "name": "data",
  2313. "in": "body",
  2314. "required": true,
  2315. "schema": {
  2316. "$ref": "#/definitions/request.PageInfo"
  2317. }
  2318. }
  2319. ],
  2320. "responses": {
  2321. "200": {
  2322. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  2323. "schema": {
  2324. "type": "string"
  2325. }
  2326. }
  2327. }
  2328. }
  2329. },
  2330. "/user/setUserAuthority": {
  2331. "post": {
  2332. "security": [
  2333. {
  2334. "ApiKeyAuth": []
  2335. }
  2336. ],
  2337. "consumes": [
  2338. "application/json"
  2339. ],
  2340. "produces": [
  2341. "application/json"
  2342. ],
  2343. "tags": [
  2344. "SysUser"
  2345. ],
  2346. "summary": "设置用户权限",
  2347. "parameters": [
  2348. {
  2349. "description": "设置用户权限",
  2350. "name": "data",
  2351. "in": "body",
  2352. "required": true,
  2353. "schema": {
  2354. "$ref": "#/definitions/request.SetUserAuth"
  2355. }
  2356. }
  2357. ],
  2358. "responses": {
  2359. "200": {
  2360. "description": "{\"success\":true,\"data\":{},\"msg\":\"修改成功\"}",
  2361. "schema": {
  2362. "type": "string"
  2363. }
  2364. }
  2365. }
  2366. }
  2367. },
  2368. "/workflow/createWorkFlow": {
  2369. "post": {
  2370. "produces": [
  2371. "application/json"
  2372. ],
  2373. "tags": [
  2374. "workflow"
  2375. ],
  2376. "summary": "注册工作流",
  2377. "parameters": [
  2378. {
  2379. "description": "注册工作流接口",
  2380. "name": "data",
  2381. "in": "body",
  2382. "required": true,
  2383. "schema": {
  2384. "$ref": "#/definitions/model.SysWorkflow"
  2385. }
  2386. }
  2387. ],
  2388. "responses": {
  2389. "200": {
  2390. "description": "{\"success\":true,\"data\":{},\"msg\":\"注册成功\"}",
  2391. "schema": {
  2392. "type": "string"
  2393. }
  2394. }
  2395. }
  2396. }
  2397. }
  2398. },
  2399. "definitions": {
  2400. "config.Captcha": {
  2401. "type": "object",
  2402. "properties": {
  2403. "imgHeight": {
  2404. "type": "integer"
  2405. },
  2406. "imgWidth": {
  2407. "type": "integer"
  2408. },
  2409. "keyLong": {
  2410. "type": "integer"
  2411. }
  2412. }
  2413. },
  2414. "config.Casbin": {
  2415. "type": "object",
  2416. "properties": {
  2417. "modelPath": {
  2418. "type": "string"
  2419. }
  2420. }
  2421. },
  2422. "config.JWT": {
  2423. "type": "object",
  2424. "properties": {
  2425. "signingKey": {
  2426. "type": "string"
  2427. }
  2428. }
  2429. },
  2430. "config.LocalUpload": {
  2431. "type": "object",
  2432. "properties": {
  2433. "avatarPath": {
  2434. "type": "string"
  2435. },
  2436. "filePath": {
  2437. "type": "string"
  2438. },
  2439. "local": {
  2440. "type": "boolean"
  2441. }
  2442. }
  2443. },
  2444. "config.Log": {
  2445. "type": "object",
  2446. "properties": {
  2447. "file": {
  2448. "type": "string"
  2449. },
  2450. "logFile": {
  2451. "type": "boolean"
  2452. },
  2453. "prefix": {
  2454. "type": "string"
  2455. },
  2456. "stdout": {
  2457. "type": "string"
  2458. }
  2459. }
  2460. },
  2461. "config.Mysql": {
  2462. "type": "object",
  2463. "properties": {
  2464. "config": {
  2465. "type": "string"
  2466. },
  2467. "dbname": {
  2468. "type": "string"
  2469. },
  2470. "logMode": {
  2471. "type": "boolean"
  2472. },
  2473. "maxIdleConns": {
  2474. "type": "integer"
  2475. },
  2476. "maxOpenConns": {
  2477. "type": "integer"
  2478. },
  2479. "password": {
  2480. "type": "string"
  2481. },
  2482. "path": {
  2483. "type": "string"
  2484. },
  2485. "username": {
  2486. "type": "string"
  2487. }
  2488. }
  2489. },
  2490. "config.Qiniu": {
  2491. "type": "object",
  2492. "properties": {
  2493. "accessKey": {
  2494. "type": "string"
  2495. },
  2496. "bucket": {
  2497. "type": "string"
  2498. },
  2499. "imgPath": {
  2500. "type": "string"
  2501. },
  2502. "secretKey": {
  2503. "type": "string"
  2504. }
  2505. }
  2506. },
  2507. "config.Redis": {
  2508. "type": "object",
  2509. "properties": {
  2510. "addr": {
  2511. "type": "string"
  2512. },
  2513. "db": {
  2514. "type": "integer"
  2515. },
  2516. "password": {
  2517. "type": "string"
  2518. }
  2519. }
  2520. },
  2521. "config.Server": {
  2522. "type": "object",
  2523. "properties": {
  2524. "captcha": {
  2525. "type": "object",
  2526. "$ref": "#/definitions/config.Captcha"
  2527. },
  2528. "casbin": {
  2529. "type": "object",
  2530. "$ref": "#/definitions/config.Casbin"
  2531. },
  2532. "jwt": {
  2533. "type": "object",
  2534. "$ref": "#/definitions/config.JWT"
  2535. },
  2536. "localUpload": {
  2537. "type": "object",
  2538. "$ref": "#/definitions/config.LocalUpload"
  2539. },
  2540. "log": {
  2541. "type": "object",
  2542. "$ref": "#/definitions/config.Log"
  2543. },
  2544. "mysql": {
  2545. "type": "object",
  2546. "$ref": "#/definitions/config.Mysql"
  2547. },
  2548. "qiniu": {
  2549. "type": "object",
  2550. "$ref": "#/definitions/config.Qiniu"
  2551. },
  2552. "redis": {
  2553. "type": "object",
  2554. "$ref": "#/definitions/config.Redis"
  2555. },
  2556. "sqlite": {
  2557. "type": "object",
  2558. "$ref": "#/definitions/config.Sqlite"
  2559. },
  2560. "system": {
  2561. "type": "object",
  2562. "$ref": "#/definitions/config.System"
  2563. }
  2564. }
  2565. },
  2566. "config.Sqlite": {
  2567. "type": "object",
  2568. "properties": {
  2569. "config": {
  2570. "type": "string"
  2571. },
  2572. "logMode": {
  2573. "type": "boolean"
  2574. },
  2575. "password": {
  2576. "type": "string"
  2577. },
  2578. "path": {
  2579. "type": "string"
  2580. },
  2581. "username": {
  2582. "type": "string"
  2583. }
  2584. }
  2585. },
  2586. "config.System": {
  2587. "type": "object",
  2588. "properties": {
  2589. "addr": {
  2590. "type": "integer"
  2591. },
  2592. "dbType": {
  2593. "type": "string"
  2594. },
  2595. "env": {
  2596. "type": "string"
  2597. },
  2598. "useMultipoint": {
  2599. "type": "boolean"
  2600. }
  2601. }
  2602. },
  2603. "model.AutoCodeStruct": {
  2604. "type": "object",
  2605. "properties": {
  2606. "abbreviation": {
  2607. "type": "string"
  2608. },
  2609. "autoCreateApiToSql": {
  2610. "type": "boolean"
  2611. },
  2612. "description": {
  2613. "type": "string"
  2614. },
  2615. "fields": {
  2616. "type": "array",
  2617. "items": {
  2618. "$ref": "#/definitions/model.Field"
  2619. }
  2620. },
  2621. "packageName": {
  2622. "type": "string"
  2623. },
  2624. "structName": {
  2625. "type": "string"
  2626. },
  2627. "tableName": {
  2628. "type": "string"
  2629. }
  2630. }
  2631. },
  2632. "model.ExaCustomer": {
  2633. "type": "object",
  2634. "properties": {
  2635. "customerName": {
  2636. "type": "string"
  2637. },
  2638. "customerPhoneData": {
  2639. "type": "string"
  2640. },
  2641. "sysUser": {
  2642. "type": "object",
  2643. "$ref": "#/definitions/model.SysUser"
  2644. },
  2645. "sysUserAuthorityID": {
  2646. "type": "string"
  2647. },
  2648. "sysUserId": {
  2649. "type": "integer"
  2650. }
  2651. }
  2652. },
  2653. "model.ExaFileUploadAndDownload": {
  2654. "type": "object",
  2655. "properties": {
  2656. "key": {
  2657. "type": "string"
  2658. },
  2659. "name": {
  2660. "type": "string"
  2661. },
  2662. "tag": {
  2663. "type": "string"
  2664. },
  2665. "url": {
  2666. "type": "string"
  2667. }
  2668. }
  2669. },
  2670. "model.Field": {
  2671. "type": "object",
  2672. "properties": {
  2673. "columnName": {
  2674. "type": "string"
  2675. },
  2676. "comment": {
  2677. "type": "string"
  2678. },
  2679. "dataType": {
  2680. "type": "string"
  2681. },
  2682. "dataTypeLong": {
  2683. "type": "string"
  2684. },
  2685. "dictType": {
  2686. "type": "string"
  2687. },
  2688. "fieldDesc": {
  2689. "type": "string"
  2690. },
  2691. "fieldJson": {
  2692. "type": "string"
  2693. },
  2694. "fieldName": {
  2695. "type": "string"
  2696. },
  2697. "fieldSearchType": {
  2698. "type": "string"
  2699. },
  2700. "fieldType": {
  2701. "type": "string"
  2702. }
  2703. }
  2704. },
  2705. "model.SysApi": {
  2706. "type": "object",
  2707. "properties": {
  2708. "apiGroup": {
  2709. "type": "string"
  2710. },
  2711. "description": {
  2712. "type": "string"
  2713. },
  2714. "method": {
  2715. "type": "string"
  2716. },
  2717. "path": {
  2718. "type": "string"
  2719. }
  2720. }
  2721. },
  2722. "model.SysAuthority": {
  2723. "type": "object",
  2724. "properties": {
  2725. "authorityId": {
  2726. "type": "string"
  2727. },
  2728. "authorityName": {
  2729. "type": "string"
  2730. },
  2731. "children": {
  2732. "type": "array",
  2733. "items": {
  2734. "$ref": "#/definitions/model.SysAuthority"
  2735. }
  2736. },
  2737. "createdAt": {
  2738. "type": "string"
  2739. },
  2740. "dataAuthorityId": {
  2741. "type": "array",
  2742. "items": {
  2743. "$ref": "#/definitions/model.SysAuthority"
  2744. }
  2745. },
  2746. "deletedAt": {
  2747. "type": "string"
  2748. },
  2749. "menus": {
  2750. "type": "array",
  2751. "items": {
  2752. "$ref": "#/definitions/model.SysBaseMenu"
  2753. }
  2754. },
  2755. "parentId": {
  2756. "type": "string"
  2757. },
  2758. "updatedAt": {
  2759. "type": "string"
  2760. }
  2761. }
  2762. },
  2763. "model.SysBaseMenu": {
  2764. "type": "object",
  2765. "properties": {
  2766. "authoritys": {
  2767. "type": "array",
  2768. "items": {
  2769. "$ref": "#/definitions/model.SysAuthority"
  2770. }
  2771. },
  2772. "children": {
  2773. "type": "array",
  2774. "items": {
  2775. "$ref": "#/definitions/model.SysBaseMenu"
  2776. }
  2777. },
  2778. "component": {
  2779. "type": "string"
  2780. },
  2781. "defaultMenu": {
  2782. "type": "boolean"
  2783. },
  2784. "hidden": {
  2785. "type": "boolean"
  2786. },
  2787. "icon": {
  2788. "type": "string"
  2789. },
  2790. "keepAlive": {
  2791. "type": "boolean"
  2792. },
  2793. "name": {
  2794. "type": "string"
  2795. },
  2796. "parameters": {
  2797. "type": "array",
  2798. "items": {
  2799. "$ref": "#/definitions/model.SysBaseMenuParameter"
  2800. }
  2801. },
  2802. "parentId": {
  2803. "type": "string"
  2804. },
  2805. "path": {
  2806. "type": "string"
  2807. },
  2808. "sort": {
  2809. "type": "integer"
  2810. },
  2811. "title": {
  2812. "type": "string"
  2813. }
  2814. }
  2815. },
  2816. "model.SysBaseMenuParameter": {
  2817. "type": "object",
  2818. "properties": {
  2819. "key": {
  2820. "type": "string"
  2821. },
  2822. "sysBaseMenuID": {
  2823. "type": "integer"
  2824. },
  2825. "type": {
  2826. "type": "string"
  2827. },
  2828. "value": {
  2829. "type": "string"
  2830. }
  2831. }
  2832. },
  2833. "model.SysDictionary": {
  2834. "type": "object",
  2835. "properties": {
  2836. "desc": {
  2837. "type": "string"
  2838. },
  2839. "name": {
  2840. "type": "string"
  2841. },
  2842. "status": {
  2843. "type": "boolean"
  2844. },
  2845. "sysDictionaryDetails": {
  2846. "type": "array",
  2847. "items": {
  2848. "$ref": "#/definitions/model.SysDictionaryDetail"
  2849. }
  2850. },
  2851. "type": {
  2852. "type": "string"
  2853. }
  2854. }
  2855. },
  2856. "model.SysDictionaryDetail": {
  2857. "type": "object",
  2858. "properties": {
  2859. "label": {
  2860. "type": "string"
  2861. },
  2862. "sort": {
  2863. "type": "integer"
  2864. },
  2865. "status": {
  2866. "type": "boolean"
  2867. },
  2868. "sysDictionaryID": {
  2869. "type": "integer"
  2870. },
  2871. "value": {
  2872. "type": "integer"
  2873. }
  2874. }
  2875. },
  2876. "model.SysOperationRecord": {
  2877. "type": "object",
  2878. "properties": {
  2879. "agent": {
  2880. "type": "string"
  2881. },
  2882. "body": {
  2883. "type": "string"
  2884. },
  2885. "error_message": {
  2886. "type": "string"
  2887. },
  2888. "ip": {
  2889. "type": "string"
  2890. },
  2891. "latency": {
  2892. "type": "string"
  2893. },
  2894. "method": {
  2895. "type": "string"
  2896. },
  2897. "path": {
  2898. "type": "string"
  2899. },
  2900. "resp": {
  2901. "type": "string"
  2902. },
  2903. "status": {
  2904. "type": "integer"
  2905. },
  2906. "user": {
  2907. "type": "object",
  2908. "$ref": "#/definitions/model.SysUser"
  2909. },
  2910. "user_id": {
  2911. "type": "integer"
  2912. }
  2913. }
  2914. },
  2915. "model.SysUser": {
  2916. "type": "object",
  2917. "properties": {
  2918. "authority": {
  2919. "type": "object",
  2920. "$ref": "#/definitions/model.SysAuthority"
  2921. },
  2922. "authorityId": {
  2923. "type": "string"
  2924. },
  2925. "headerImg": {
  2926. "type": "string"
  2927. },
  2928. "nickName": {
  2929. "type": "string"
  2930. },
  2931. "userName": {
  2932. "type": "string"
  2933. },
  2934. "uuid": {
  2935. "type": "string"
  2936. }
  2937. }
  2938. },
  2939. "model.SysWorkflow": {
  2940. "type": "object",
  2941. "properties": {
  2942. "workflowDescription": {
  2943. "description": "工作流描述",
  2944. "type": "string"
  2945. },
  2946. "workflowName": {
  2947. "description": "工作流英文id",
  2948. "type": "string"
  2949. },
  2950. "workflowNickName": {
  2951. "description": "工作流名称",
  2952. "type": "string"
  2953. },
  2954. "workflowStep": {
  2955. "description": "工作流步骤",
  2956. "type": "array",
  2957. "items": {
  2958. "$ref": "#/definitions/model.SysWorkflowStepInfo"
  2959. }
  2960. }
  2961. }
  2962. },
  2963. "model.SysWorkflowStepInfo": {
  2964. "type": "object",
  2965. "properties": {
  2966. "isEnd": {
  2967. "description": "是否是完结流节点",
  2968. "type": "boolean"
  2969. },
  2970. "isStrat": {
  2971. "description": "是否是开始流节点",
  2972. "type": "boolean"
  2973. },
  2974. "stepAuthorityID": {
  2975. "description": "操作者级别id",
  2976. "type": "string"
  2977. },
  2978. "stepName": {
  2979. "description": "工作流名称",
  2980. "type": "string"
  2981. },
  2982. "stepNo": {
  2983. "description": "步骤id (第几步)",
  2984. "type": "number"
  2985. },
  2986. "workflowID": {
  2987. "description": "所属工作流ID",
  2988. "type": "integer"
  2989. }
  2990. }
  2991. },
  2992. "model.System": {
  2993. "type": "object",
  2994. "properties": {
  2995. "config": {
  2996. "type": "object",
  2997. "$ref": "#/definitions/config.Server"
  2998. }
  2999. }
  3000. },
  3001. "request.AddMenuAuthorityInfo": {
  3002. "type": "object",
  3003. "properties": {
  3004. "authorityId": {
  3005. "type": "string"
  3006. },
  3007. "menus": {
  3008. "type": "array",
  3009. "items": {
  3010. "$ref": "#/definitions/model.SysBaseMenu"
  3011. }
  3012. }
  3013. }
  3014. },
  3015. "request.AuthorityIdInfo": {
  3016. "type": "object",
  3017. "properties": {
  3018. "authorityId": {
  3019. "type": "string"
  3020. }
  3021. }
  3022. },
  3023. "request.CasbinInReceive": {
  3024. "type": "object",
  3025. "properties": {
  3026. "authorityId": {
  3027. "type": "string"
  3028. },
  3029. "casbinInfos": {
  3030. "type": "array",
  3031. "items": {
  3032. "$ref": "#/definitions/request.CasbinInfo"
  3033. }
  3034. }
  3035. }
  3036. },
  3037. "request.CasbinInfo": {
  3038. "type": "object",
  3039. "properties": {
  3040. "method": {
  3041. "type": "string"
  3042. },
  3043. "path": {
  3044. "type": "string"
  3045. }
  3046. }
  3047. },
  3048. "request.ChangePasswordStruct": {
  3049. "type": "object",
  3050. "properties": {
  3051. "newPassword": {
  3052. "type": "string"
  3053. },
  3054. "password": {
  3055. "type": "string"
  3056. },
  3057. "username": {
  3058. "type": "string"
  3059. }
  3060. }
  3061. },
  3062. "request.GetById": {
  3063. "type": "object",
  3064. "properties": {
  3065. "id": {
  3066. "type": "number"
  3067. }
  3068. }
  3069. },
  3070. "request.IdsReq": {
  3071. "type": "object",
  3072. "properties": {
  3073. "ids": {
  3074. "type": "array",
  3075. "items": {
  3076. "type": "integer"
  3077. }
  3078. }
  3079. }
  3080. },
  3081. "request.PageInfo": {
  3082. "type": "object",
  3083. "properties": {
  3084. "page": {
  3085. "type": "integer"
  3086. },
  3087. "pageSize": {
  3088. "type": "integer"
  3089. }
  3090. }
  3091. },
  3092. "request.RegisterAndLoginStruct": {
  3093. "type": "object",
  3094. "properties": {
  3095. "captcha": {
  3096. "type": "string"
  3097. },
  3098. "captchaId": {
  3099. "type": "string"
  3100. },
  3101. "password": {
  3102. "type": "string"
  3103. },
  3104. "username": {
  3105. "type": "string"
  3106. }
  3107. }
  3108. },
  3109. "request.SearchApiParams": {
  3110. "type": "object",
  3111. "properties": {
  3112. "apiGroup": {
  3113. "type": "string"
  3114. },
  3115. "desc": {
  3116. "type": "boolean"
  3117. },
  3118. "description": {
  3119. "type": "string"
  3120. },
  3121. "method": {
  3122. "type": "string"
  3123. },
  3124. "orderKey": {
  3125. "type": "string"
  3126. },
  3127. "page": {
  3128. "type": "integer"
  3129. },
  3130. "pageSize": {
  3131. "type": "integer"
  3132. },
  3133. "path": {
  3134. "type": "string"
  3135. }
  3136. }
  3137. },
  3138. "request.SetUserAuth": {
  3139. "type": "object",
  3140. "properties": {
  3141. "authorityId": {
  3142. "type": "string"
  3143. },
  3144. "uuid": {
  3145. "type": "string"
  3146. }
  3147. }
  3148. },
  3149. "request.SysDictionaryDetailSearch": {
  3150. "type": "object",
  3151. "properties": {
  3152. "label": {
  3153. "type": "string"
  3154. },
  3155. "page": {
  3156. "type": "integer"
  3157. },
  3158. "pageSize": {
  3159. "type": "integer"
  3160. },
  3161. "sort": {
  3162. "type": "integer"
  3163. },
  3164. "status": {
  3165. "type": "boolean"
  3166. },
  3167. "sysDictionaryID": {
  3168. "type": "integer"
  3169. },
  3170. "value": {
  3171. "type": "integer"
  3172. }
  3173. }
  3174. },
  3175. "request.SysDictionarySearch": {
  3176. "type": "object",
  3177. "properties": {
  3178. "desc": {
  3179. "type": "string"
  3180. },
  3181. "name": {
  3182. "type": "string"
  3183. },
  3184. "page": {
  3185. "type": "integer"
  3186. },
  3187. "pageSize": {
  3188. "type": "integer"
  3189. },
  3190. "status": {
  3191. "type": "boolean"
  3192. },
  3193. "sysDictionaryDetails": {
  3194. "type": "array",
  3195. "items": {
  3196. "$ref": "#/definitions/model.SysDictionaryDetail"
  3197. }
  3198. },
  3199. "type": {
  3200. "type": "string"
  3201. }
  3202. }
  3203. },
  3204. "request.SysOperationRecordSearch": {
  3205. "type": "object",
  3206. "properties": {
  3207. "agent": {
  3208. "type": "string"
  3209. },
  3210. "body": {
  3211. "type": "string"
  3212. },
  3213. "error_message": {
  3214. "type": "string"
  3215. },
  3216. "ip": {
  3217. "type": "string"
  3218. },
  3219. "latency": {
  3220. "type": "string"
  3221. },
  3222. "method": {
  3223. "type": "string"
  3224. },
  3225. "page": {
  3226. "type": "integer"
  3227. },
  3228. "pageSize": {
  3229. "type": "integer"
  3230. },
  3231. "path": {
  3232. "type": "string"
  3233. },
  3234. "resp": {
  3235. "type": "string"
  3236. },
  3237. "status": {
  3238. "type": "integer"
  3239. },
  3240. "user": {
  3241. "type": "object",
  3242. "$ref": "#/definitions/model.SysUser"
  3243. },
  3244. "user_id": {
  3245. "type": "integer"
  3246. }
  3247. }
  3248. },
  3249. "response.SysAuthorityCopyResponse": {
  3250. "type": "object",
  3251. "properties": {
  3252. "authority": {
  3253. "type": "object",
  3254. "$ref": "#/definitions/model.SysAuthority"
  3255. },
  3256. "oldAuthorityId": {
  3257. "type": "string"
  3258. }
  3259. }
  3260. }
  3261. },
  3262. "securityDefinitions": {
  3263. "ApiKeyAuth": {
  3264. "type": "apiKey",
  3265. "name": "x-token",
  3266. "in": "header"
  3267. }
  3268. }
  3269. }`
  3270. type swaggerInfo struct {
  3271. Version string
  3272. Host string
  3273. BasePath string
  3274. Schemes []string
  3275. Title string
  3276. Description string
  3277. }
  3278. // SwaggerInfo holds exported Swagger Info so clients can modify it
  3279. var SwaggerInfo = swaggerInfo{
  3280. Version: "0.0.1",
  3281. Host: "",
  3282. BasePath: "/",
  3283. Schemes: []string{},
  3284. Title: "Swagger Example API",
  3285. Description: "This is a sample Server pets",
  3286. }
  3287. type s struct{}
  3288. func (s *s) ReadDoc() string {
  3289. sInfo := SwaggerInfo
  3290. sInfo.Description = strings.Replace(sInfo.Description, "\n", "\\n", -1)
  3291. t, err := template.New("swagger_info").Funcs(template.FuncMap{
  3292. "marshal": func(v interface{}) string {
  3293. a, _ := json.Marshal(v)
  3294. return string(a)
  3295. },
  3296. }).Parse(doc)
  3297. if err != nil {
  3298. return doc
  3299. }
  3300. var tpl bytes.Buffer
  3301. if err := t.Execute(&tpl, sInfo); err != nil {
  3302. return doc
  3303. }
  3304. return tpl.String()
  3305. }
  3306. func init() {
  3307. swag.Register(swag.Name, &s{})
  3308. }