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.

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