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.

3308 lines
102 KiB

5 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
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
5 years ago
5 years ago
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-07-07 10:12:31.2264113 +0800 CST m=+0.088765101
  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. "/sysDictionary/createSysDictionary": {
  1534. "post": {
  1535. "security": [
  1536. {
  1537. "ApiKeyAuth": []
  1538. }
  1539. ],
  1540. "consumes": [
  1541. "application/json"
  1542. ],
  1543. "produces": [
  1544. "application/json"
  1545. ],
  1546. "tags": [
  1547. "SysDictionary"
  1548. ],
  1549. "summary": "创建SysDictionary",
  1550. "parameters": [
  1551. {
  1552. "description": "创建SysDictionary",
  1553. "name": "data",
  1554. "in": "body",
  1555. "required": true,
  1556. "schema": {
  1557. "type": "object",
  1558. "$ref": "#/definitions/model.SysDictionary"
  1559. }
  1560. }
  1561. ],
  1562. "responses": {
  1563. "200": {
  1564. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  1565. "schema": {
  1566. "type": "string"
  1567. }
  1568. }
  1569. }
  1570. }
  1571. },
  1572. "/sysDictionary/deleteSysDictionary": {
  1573. "delete": {
  1574. "security": [
  1575. {
  1576. "ApiKeyAuth": []
  1577. }
  1578. ],
  1579. "consumes": [
  1580. "application/json"
  1581. ],
  1582. "produces": [
  1583. "application/json"
  1584. ],
  1585. "tags": [
  1586. "SysDictionary"
  1587. ],
  1588. "summary": "删除SysDictionary",
  1589. "parameters": [
  1590. {
  1591. "description": "删除SysDictionary",
  1592. "name": "data",
  1593. "in": "body",
  1594. "required": true,
  1595. "schema": {
  1596. "type": "object",
  1597. "$ref": "#/definitions/model.SysDictionary"
  1598. }
  1599. }
  1600. ],
  1601. "responses": {
  1602. "200": {
  1603. "description": "{\"success\":true,\"data\":{},\"msg\":\"删除成功\"}",
  1604. "schema": {
  1605. "type": "string"
  1606. }
  1607. }
  1608. }
  1609. }
  1610. },
  1611. "/sysDictionary/findSysDictionary": {
  1612. "get": {
  1613. "security": [
  1614. {
  1615. "ApiKeyAuth": []
  1616. }
  1617. ],
  1618. "consumes": [
  1619. "application/json"
  1620. ],
  1621. "produces": [
  1622. "application/json"
  1623. ],
  1624. "tags": [
  1625. "SysDictionary"
  1626. ],
  1627. "summary": "用id查询SysDictionary",
  1628. "parameters": [
  1629. {
  1630. "description": "用id查询SysDictionary",
  1631. "name": "data",
  1632. "in": "body",
  1633. "required": true,
  1634. "schema": {
  1635. "type": "object",
  1636. "$ref": "#/definitions/model.SysDictionary"
  1637. }
  1638. }
  1639. ],
  1640. "responses": {
  1641. "200": {
  1642. "description": "{\"success\":true,\"data\":{},\"msg\":\"查询成功\"}",
  1643. "schema": {
  1644. "type": "string"
  1645. }
  1646. }
  1647. }
  1648. }
  1649. },
  1650. "/sysDictionary/getSysDictionaryList": {
  1651. "get": {
  1652. "security": [
  1653. {
  1654. "ApiKeyAuth": []
  1655. }
  1656. ],
  1657. "consumes": [
  1658. "application/json"
  1659. ],
  1660. "produces": [
  1661. "application/json"
  1662. ],
  1663. "tags": [
  1664. "SysDictionary"
  1665. ],
  1666. "summary": "分页获取SysDictionary列表",
  1667. "parameters": [
  1668. {
  1669. "description": "分页获取SysDictionary列表",
  1670. "name": "data",
  1671. "in": "body",
  1672. "required": true,
  1673. "schema": {
  1674. "type": "object",
  1675. "$ref": "#/definitions/request.SysDictionarySearch"
  1676. }
  1677. }
  1678. ],
  1679. "responses": {
  1680. "200": {
  1681. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  1682. "schema": {
  1683. "type": "string"
  1684. }
  1685. }
  1686. }
  1687. }
  1688. },
  1689. "/sysDictionary/updateSysDictionary": {
  1690. "put": {
  1691. "security": [
  1692. {
  1693. "ApiKeyAuth": []
  1694. }
  1695. ],
  1696. "consumes": [
  1697. "application/json"
  1698. ],
  1699. "produces": [
  1700. "application/json"
  1701. ],
  1702. "tags": [
  1703. "SysDictionary"
  1704. ],
  1705. "summary": "更新SysDictionary",
  1706. "parameters": [
  1707. {
  1708. "description": "更新SysDictionary",
  1709. "name": "data",
  1710. "in": "body",
  1711. "required": true,
  1712. "schema": {
  1713. "type": "object",
  1714. "$ref": "#/definitions/model.SysDictionary"
  1715. }
  1716. }
  1717. ],
  1718. "responses": {
  1719. "200": {
  1720. "description": "{\"success\":true,\"data\":{},\"msg\":\"更新成功\"}",
  1721. "schema": {
  1722. "type": "string"
  1723. }
  1724. }
  1725. }
  1726. }
  1727. },
  1728. "/sysDictionaryDetail/createSysDictionaryDetail": {
  1729. "post": {
  1730. "security": [
  1731. {
  1732. "ApiKeyAuth": []
  1733. }
  1734. ],
  1735. "consumes": [
  1736. "application/json"
  1737. ],
  1738. "produces": [
  1739. "application/json"
  1740. ],
  1741. "tags": [
  1742. "SysDictionaryDetail"
  1743. ],
  1744. "summary": "创建SysDictionaryDetail",
  1745. "parameters": [
  1746. {
  1747. "description": "创建SysDictionaryDetail",
  1748. "name": "data",
  1749. "in": "body",
  1750. "required": true,
  1751. "schema": {
  1752. "type": "object",
  1753. "$ref": "#/definitions/model.SysDictionaryDetail"
  1754. }
  1755. }
  1756. ],
  1757. "responses": {
  1758. "200": {
  1759. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  1760. "schema": {
  1761. "type": "string"
  1762. }
  1763. }
  1764. }
  1765. }
  1766. },
  1767. "/sysDictionaryDetail/deleteSysDictionaryDetail": {
  1768. "delete": {
  1769. "security": [
  1770. {
  1771. "ApiKeyAuth": []
  1772. }
  1773. ],
  1774. "consumes": [
  1775. "application/json"
  1776. ],
  1777. "produces": [
  1778. "application/json"
  1779. ],
  1780. "tags": [
  1781. "SysDictionaryDetail"
  1782. ],
  1783. "summary": "删除SysDictionaryDetail",
  1784. "parameters": [
  1785. {
  1786. "description": "删除SysDictionaryDetail",
  1787. "name": "data",
  1788. "in": "body",
  1789. "required": true,
  1790. "schema": {
  1791. "type": "object",
  1792. "$ref": "#/definitions/model.SysDictionaryDetail"
  1793. }
  1794. }
  1795. ],
  1796. "responses": {
  1797. "200": {
  1798. "description": "{\"success\":true,\"data\":{},\"msg\":\"删除成功\"}",
  1799. "schema": {
  1800. "type": "string"
  1801. }
  1802. }
  1803. }
  1804. }
  1805. },
  1806. "/sysDictionaryDetail/findSysDictionaryDetail": {
  1807. "get": {
  1808. "security": [
  1809. {
  1810. "ApiKeyAuth": []
  1811. }
  1812. ],
  1813. "consumes": [
  1814. "application/json"
  1815. ],
  1816. "produces": [
  1817. "application/json"
  1818. ],
  1819. "tags": [
  1820. "SysDictionaryDetail"
  1821. ],
  1822. "summary": "用id查询SysDictionaryDetail",
  1823. "parameters": [
  1824. {
  1825. "description": "用id查询SysDictionaryDetail",
  1826. "name": "data",
  1827. "in": "body",
  1828. "required": true,
  1829. "schema": {
  1830. "type": "object",
  1831. "$ref": "#/definitions/model.SysDictionaryDetail"
  1832. }
  1833. }
  1834. ],
  1835. "responses": {
  1836. "200": {
  1837. "description": "{\"success\":true,\"data\":{},\"msg\":\"查询成功\"}",
  1838. "schema": {
  1839. "type": "string"
  1840. }
  1841. }
  1842. }
  1843. }
  1844. },
  1845. "/sysDictionaryDetail/getSysDictionaryDetailList": {
  1846. "get": {
  1847. "security": [
  1848. {
  1849. "ApiKeyAuth": []
  1850. }
  1851. ],
  1852. "consumes": [
  1853. "application/json"
  1854. ],
  1855. "produces": [
  1856. "application/json"
  1857. ],
  1858. "tags": [
  1859. "SysDictionaryDetail"
  1860. ],
  1861. "summary": "分页获取SysDictionaryDetail列表",
  1862. "parameters": [
  1863. {
  1864. "description": "分页获取SysDictionaryDetail列表",
  1865. "name": "data",
  1866. "in": "body",
  1867. "required": true,
  1868. "schema": {
  1869. "type": "object",
  1870. "$ref": "#/definitions/request.SysDictionaryDetailSearch"
  1871. }
  1872. }
  1873. ],
  1874. "responses": {
  1875. "200": {
  1876. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  1877. "schema": {
  1878. "type": "string"
  1879. }
  1880. }
  1881. }
  1882. }
  1883. },
  1884. "/sysDictionaryDetail/updateSysDictionaryDetail": {
  1885. "put": {
  1886. "security": [
  1887. {
  1888. "ApiKeyAuth": []
  1889. }
  1890. ],
  1891. "consumes": [
  1892. "application/json"
  1893. ],
  1894. "produces": [
  1895. "application/json"
  1896. ],
  1897. "tags": [
  1898. "SysDictionaryDetail"
  1899. ],
  1900. "summary": "更新SysDictionaryDetail",
  1901. "parameters": [
  1902. {
  1903. "description": "更新SysDictionaryDetail",
  1904. "name": "data",
  1905. "in": "body",
  1906. "required": true,
  1907. "schema": {
  1908. "type": "object",
  1909. "$ref": "#/definitions/model.SysDictionaryDetail"
  1910. }
  1911. }
  1912. ],
  1913. "responses": {
  1914. "200": {
  1915. "description": "{\"success\":true,\"data\":{},\"msg\":\"更新成功\"}",
  1916. "schema": {
  1917. "type": "string"
  1918. }
  1919. }
  1920. }
  1921. }
  1922. },
  1923. "/sysOperationRecord/createSysOperationRecord": {
  1924. "post": {
  1925. "security": [
  1926. {
  1927. "ApiKeyAuth": []
  1928. }
  1929. ],
  1930. "consumes": [
  1931. "application/json"
  1932. ],
  1933. "produces": [
  1934. "application/json"
  1935. ],
  1936. "tags": [
  1937. "SysOperationRecord"
  1938. ],
  1939. "summary": "创建SysOperationRecord",
  1940. "parameters": [
  1941. {
  1942. "description": "创建SysOperationRecord",
  1943. "name": "data",
  1944. "in": "body",
  1945. "required": true,
  1946. "schema": {
  1947. "type": "object",
  1948. "$ref": "#/definitions/model.SysOperationRecord"
  1949. }
  1950. }
  1951. ],
  1952. "responses": {
  1953. "200": {
  1954. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  1955. "schema": {
  1956. "type": "string"
  1957. }
  1958. }
  1959. }
  1960. }
  1961. },
  1962. "/sysOperationRecord/deleteSysOperationRecord": {
  1963. "delete": {
  1964. "security": [
  1965. {
  1966. "ApiKeyAuth": []
  1967. }
  1968. ],
  1969. "consumes": [
  1970. "application/json"
  1971. ],
  1972. "produces": [
  1973. "application/json"
  1974. ],
  1975. "tags": [
  1976. "SysOperationRecord"
  1977. ],
  1978. "summary": "删除SysOperationRecord",
  1979. "parameters": [
  1980. {
  1981. "description": "删除SysOperationRecord",
  1982. "name": "data",
  1983. "in": "body",
  1984. "required": true,
  1985. "schema": {
  1986. "type": "object",
  1987. "$ref": "#/definitions/model.SysOperationRecord"
  1988. }
  1989. }
  1990. ],
  1991. "responses": {
  1992. "200": {
  1993. "description": "{\"success\":true,\"data\":{},\"msg\":\"删除成功\"}",
  1994. "schema": {
  1995. "type": "string"
  1996. }
  1997. }
  1998. }
  1999. }
  2000. },
  2001. "/sysOperationRecord/findSysOperationRecord": {
  2002. "get": {
  2003. "security": [
  2004. {
  2005. "ApiKeyAuth": []
  2006. }
  2007. ],
  2008. "consumes": [
  2009. "application/json"
  2010. ],
  2011. "produces": [
  2012. "application/json"
  2013. ],
  2014. "tags": [
  2015. "SysOperationRecord"
  2016. ],
  2017. "summary": "用id查询SysOperationRecord",
  2018. "parameters": [
  2019. {
  2020. "description": "用id查询SysOperationRecord",
  2021. "name": "data",
  2022. "in": "body",
  2023. "required": true,
  2024. "schema": {
  2025. "type": "object",
  2026. "$ref": "#/definitions/model.SysOperationRecord"
  2027. }
  2028. }
  2029. ],
  2030. "responses": {
  2031. "200": {
  2032. "description": "{\"success\":true,\"data\":{},\"msg\":\"查询成功\"}",
  2033. "schema": {
  2034. "type": "string"
  2035. }
  2036. }
  2037. }
  2038. }
  2039. },
  2040. "/sysOperationRecord/getSysOperationRecordList": {
  2041. "get": {
  2042. "security": [
  2043. {
  2044. "ApiKeyAuth": []
  2045. }
  2046. ],
  2047. "consumes": [
  2048. "application/json"
  2049. ],
  2050. "produces": [
  2051. "application/json"
  2052. ],
  2053. "tags": [
  2054. "SysOperationRecord"
  2055. ],
  2056. "summary": "分页获取SysOperationRecord列表",
  2057. "parameters": [
  2058. {
  2059. "description": "分页获取SysOperationRecord列表",
  2060. "name": "data",
  2061. "in": "body",
  2062. "required": true,
  2063. "schema": {
  2064. "type": "object",
  2065. "$ref": "#/definitions/request.SysOperationRecordSearch"
  2066. }
  2067. }
  2068. ],
  2069. "responses": {
  2070. "200": {
  2071. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  2072. "schema": {
  2073. "type": "string"
  2074. }
  2075. }
  2076. }
  2077. }
  2078. },
  2079. "/sysOperationRecord/updateSysOperationRecord": {
  2080. "put": {
  2081. "security": [
  2082. {
  2083. "ApiKeyAuth": []
  2084. }
  2085. ],
  2086. "consumes": [
  2087. "application/json"
  2088. ],
  2089. "produces": [
  2090. "application/json"
  2091. ],
  2092. "tags": [
  2093. "SysOperationRecord"
  2094. ],
  2095. "summary": "更新SysOperationRecord",
  2096. "parameters": [
  2097. {
  2098. "description": "更新SysOperationRecord",
  2099. "name": "data",
  2100. "in": "body",
  2101. "required": true,
  2102. "schema": {
  2103. "type": "object",
  2104. "$ref": "#/definitions/model.SysOperationRecord"
  2105. }
  2106. }
  2107. ],
  2108. "responses": {
  2109. "200": {
  2110. "description": "{\"success\":true,\"data\":{},\"msg\":\"更新成功\"}",
  2111. "schema": {
  2112. "type": "string"
  2113. }
  2114. }
  2115. }
  2116. }
  2117. },
  2118. "/system/ReloadSystem": {
  2119. "post": {
  2120. "security": [
  2121. {
  2122. "ApiKeyAuth": []
  2123. }
  2124. ],
  2125. "produces": [
  2126. "application/json"
  2127. ],
  2128. "tags": [
  2129. "system"
  2130. ],
  2131. "summary": "设置配置文件内容",
  2132. "parameters": [
  2133. {
  2134. "description": "设置配置文件内容",
  2135. "name": "data",
  2136. "in": "body",
  2137. "required": true,
  2138. "schema": {
  2139. "type": "object",
  2140. "$ref": "#/definitions/model.System"
  2141. }
  2142. }
  2143. ],
  2144. "responses": {
  2145. "200": {
  2146. "description": "{\"success\":true,\"data\":{},\"msg\":\"返回成功\"}",
  2147. "schema": {
  2148. "type": "string"
  2149. }
  2150. }
  2151. }
  2152. }
  2153. },
  2154. "/system/getSystemConfig": {
  2155. "post": {
  2156. "security": [
  2157. {
  2158. "ApiKeyAuth": []
  2159. }
  2160. ],
  2161. "produces": [
  2162. "application/json"
  2163. ],
  2164. "tags": [
  2165. "system"
  2166. ],
  2167. "summary": "获取配置文件内容",
  2168. "responses": {
  2169. "200": {
  2170. "description": "{\"success\":true,\"data\":{},\"msg\":\"返回成功\"}",
  2171. "schema": {
  2172. "type": "string"
  2173. }
  2174. }
  2175. }
  2176. }
  2177. },
  2178. "/system/setSystemConfig": {
  2179. "post": {
  2180. "security": [
  2181. {
  2182. "ApiKeyAuth": []
  2183. }
  2184. ],
  2185. "produces": [
  2186. "application/json"
  2187. ],
  2188. "tags": [
  2189. "system"
  2190. ],
  2191. "summary": "设置配置文件内容",
  2192. "parameters": [
  2193. {
  2194. "description": "设置配置文件内容",
  2195. "name": "data",
  2196. "in": "body",
  2197. "required": true,
  2198. "schema": {
  2199. "type": "object",
  2200. "$ref": "#/definitions/model.System"
  2201. }
  2202. }
  2203. ],
  2204. "responses": {
  2205. "200": {
  2206. "description": "{\"success\":true,\"data\":{},\"msg\":\"返回成功\"}",
  2207. "schema": {
  2208. "type": "string"
  2209. }
  2210. }
  2211. }
  2212. }
  2213. },
  2214. "/user/changePassword": {
  2215. "put": {
  2216. "security": [
  2217. {
  2218. "ApiKeyAuth": []
  2219. }
  2220. ],
  2221. "produces": [
  2222. "application/json"
  2223. ],
  2224. "tags": [
  2225. "SysUser"
  2226. ],
  2227. "summary": "用户修改密码",
  2228. "parameters": [
  2229. {
  2230. "description": "用户修改密码",
  2231. "name": "data",
  2232. "in": "body",
  2233. "required": true,
  2234. "schema": {
  2235. "type": "object",
  2236. "$ref": "#/definitions/request.ChangePasswordStruct"
  2237. }
  2238. }
  2239. ],
  2240. "responses": {
  2241. "200": {
  2242. "description": "{\"success\":true,\"data\":{},\"msg\":\"修改成功\"}",
  2243. "schema": {
  2244. "type": "string"
  2245. }
  2246. }
  2247. }
  2248. }
  2249. },
  2250. "/user/deleteUser": {
  2251. "delete": {
  2252. "security": [
  2253. {
  2254. "ApiKeyAuth": []
  2255. }
  2256. ],
  2257. "consumes": [
  2258. "application/json"
  2259. ],
  2260. "produces": [
  2261. "application/json"
  2262. ],
  2263. "tags": [
  2264. "SysUser"
  2265. ],
  2266. "summary": "删除用户",
  2267. "parameters": [
  2268. {
  2269. "description": "删除用户",
  2270. "name": "data",
  2271. "in": "body",
  2272. "required": true,
  2273. "schema": {
  2274. "type": "object",
  2275. "$ref": "#/definitions/request.GetById"
  2276. }
  2277. }
  2278. ],
  2279. "responses": {
  2280. "200": {
  2281. "description": "{\"success\":true,\"data\":{},\"msg\":\"修改成功\"}",
  2282. "schema": {
  2283. "type": "string"
  2284. }
  2285. }
  2286. }
  2287. }
  2288. },
  2289. "/user/getUserList": {
  2290. "post": {
  2291. "security": [
  2292. {
  2293. "ApiKeyAuth": []
  2294. }
  2295. ],
  2296. "consumes": [
  2297. "application/json"
  2298. ],
  2299. "produces": [
  2300. "application/json"
  2301. ],
  2302. "tags": [
  2303. "SysUser"
  2304. ],
  2305. "summary": "分页获取用户列表",
  2306. "parameters": [
  2307. {
  2308. "description": "分页获取用户列表",
  2309. "name": "data",
  2310. "in": "body",
  2311. "required": true,
  2312. "schema": {
  2313. "type": "object",
  2314. "$ref": "#/definitions/request.PageInfo"
  2315. }
  2316. }
  2317. ],
  2318. "responses": {
  2319. "200": {
  2320. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  2321. "schema": {
  2322. "type": "string"
  2323. }
  2324. }
  2325. }
  2326. }
  2327. },
  2328. "/user/setUserAuthority": {
  2329. "post": {
  2330. "security": [
  2331. {
  2332. "ApiKeyAuth": []
  2333. }
  2334. ],
  2335. "consumes": [
  2336. "application/json"
  2337. ],
  2338. "produces": [
  2339. "application/json"
  2340. ],
  2341. "tags": [
  2342. "SysUser"
  2343. ],
  2344. "summary": "设置用户权限",
  2345. "parameters": [
  2346. {
  2347. "description": "设置用户权限",
  2348. "name": "data",
  2349. "in": "body",
  2350. "required": true,
  2351. "schema": {
  2352. "type": "object",
  2353. "$ref": "#/definitions/request.SetUserAuth"
  2354. }
  2355. }
  2356. ],
  2357. "responses": {
  2358. "200": {
  2359. "description": "{\"success\":true,\"data\":{},\"msg\":\"修改成功\"}",
  2360. "schema": {
  2361. "type": "string"
  2362. }
  2363. }
  2364. }
  2365. }
  2366. },
  2367. "/user/uploadHeaderImg": {
  2368. "post": {
  2369. "security": [
  2370. {
  2371. "ApiKeyAuth": []
  2372. }
  2373. ],
  2374. "consumes": [
  2375. "multipart/form-data"
  2376. ],
  2377. "produces": [
  2378. "application/json"
  2379. ],
  2380. "tags": [
  2381. "SysUser"
  2382. ],
  2383. "summary": "用户上传头像",
  2384. "parameters": [
  2385. {
  2386. "type": "file",
  2387. "description": "用户上传头像",
  2388. "name": "headerImg",
  2389. "in": "formData",
  2390. "required": true
  2391. },
  2392. {
  2393. "type": "string",
  2394. "description": "用户上传头像",
  2395. "name": "username",
  2396. "in": "formData",
  2397. "required": true
  2398. }
  2399. ],
  2400. "responses": {
  2401. "200": {
  2402. "description": "{\"success\":true,\"data\":{},\"msg\":\"上传成功\"}",
  2403. "schema": {
  2404. "type": "string"
  2405. }
  2406. }
  2407. }
  2408. }
  2409. },
  2410. "/workflow/createWorkFlow": {
  2411. "post": {
  2412. "produces": [
  2413. "application/json"
  2414. ],
  2415. "tags": [
  2416. "workflow"
  2417. ],
  2418. "summary": "注册工作流",
  2419. "parameters": [
  2420. {
  2421. "description": "注册工作流接口",
  2422. "name": "data",
  2423. "in": "body",
  2424. "required": true,
  2425. "schema": {
  2426. "type": "object",
  2427. "$ref": "#/definitions/model.SysWorkflow"
  2428. }
  2429. }
  2430. ],
  2431. "responses": {
  2432. "200": {
  2433. "description": "{\"success\":true,\"data\":{},\"msg\":\"注册成功\"}",
  2434. "schema": {
  2435. "type": "string"
  2436. }
  2437. }
  2438. }
  2439. }
  2440. }
  2441. },
  2442. "definitions": {
  2443. "config.Captcha": {
  2444. "type": "object",
  2445. "properties": {
  2446. "imgHeight": {
  2447. "type": "integer"
  2448. },
  2449. "imgWidth": {
  2450. "type": "integer"
  2451. },
  2452. "keyLong": {
  2453. "type": "integer"
  2454. }
  2455. }
  2456. },
  2457. "config.Casbin": {
  2458. "type": "object",
  2459. "properties": {
  2460. "modelPath": {
  2461. "type": "string"
  2462. }
  2463. }
  2464. },
  2465. "config.JWT": {
  2466. "type": "object",
  2467. "properties": {
  2468. "signingKey": {
  2469. "type": "string"
  2470. }
  2471. }
  2472. },
  2473. "config.Log": {
  2474. "type": "object",
  2475. "properties": {
  2476. "file": {
  2477. "type": "string"
  2478. },
  2479. "logFile": {
  2480. "type": "boolean"
  2481. },
  2482. "prefix": {
  2483. "type": "string"
  2484. },
  2485. "stdout": {
  2486. "type": "string"
  2487. }
  2488. }
  2489. },
  2490. "config.Mysql": {
  2491. "type": "object",
  2492. "properties": {
  2493. "config": {
  2494. "type": "string"
  2495. },
  2496. "dbname": {
  2497. "type": "string"
  2498. },
  2499. "logMode": {
  2500. "type": "boolean"
  2501. },
  2502. "maxIdleConns": {
  2503. "type": "integer"
  2504. },
  2505. "maxOpenConns": {
  2506. "type": "integer"
  2507. },
  2508. "password": {
  2509. "type": "string"
  2510. },
  2511. "path": {
  2512. "type": "string"
  2513. },
  2514. "username": {
  2515. "type": "string"
  2516. }
  2517. }
  2518. },
  2519. "config.Qiniu": {
  2520. "type": "object",
  2521. "properties": {
  2522. "accessKey": {
  2523. "type": "string"
  2524. },
  2525. "bucket": {
  2526. "type": "string"
  2527. },
  2528. "imgPath": {
  2529. "type": "string"
  2530. },
  2531. "secretKey": {
  2532. "type": "string"
  2533. }
  2534. }
  2535. },
  2536. "config.Redis": {
  2537. "type": "object",
  2538. "properties": {
  2539. "addr": {
  2540. "type": "string"
  2541. },
  2542. "db": {
  2543. "type": "integer"
  2544. },
  2545. "password": {
  2546. "type": "string"
  2547. }
  2548. }
  2549. },
  2550. "config.Server": {
  2551. "type": "object",
  2552. "properties": {
  2553. "captcha": {
  2554. "type": "object",
  2555. "$ref": "#/definitions/config.Captcha"
  2556. },
  2557. "casbin": {
  2558. "type": "object",
  2559. "$ref": "#/definitions/config.Casbin"
  2560. },
  2561. "jwt": {
  2562. "type": "object",
  2563. "$ref": "#/definitions/config.JWT"
  2564. },
  2565. "log": {
  2566. "type": "object",
  2567. "$ref": "#/definitions/config.Log"
  2568. },
  2569. "mysql": {
  2570. "type": "object",
  2571. "$ref": "#/definitions/config.Mysql"
  2572. },
  2573. "qiniu": {
  2574. "type": "object",
  2575. "$ref": "#/definitions/config.Qiniu"
  2576. },
  2577. "redis": {
  2578. "type": "object",
  2579. "$ref": "#/definitions/config.Redis"
  2580. },
  2581. "sqlite": {
  2582. "type": "object",
  2583. "$ref": "#/definitions/config.Sqlite"
  2584. },
  2585. "system": {
  2586. "type": "object",
  2587. "$ref": "#/definitions/config.System"
  2588. }
  2589. }
  2590. },
  2591. "config.Sqlite": {
  2592. "type": "object",
  2593. "properties": {
  2594. "config": {
  2595. "type": "string"
  2596. },
  2597. "logMode": {
  2598. "type": "boolean"
  2599. },
  2600. "password": {
  2601. "type": "string"
  2602. },
  2603. "path": {
  2604. "type": "string"
  2605. },
  2606. "username": {
  2607. "type": "string"
  2608. }
  2609. }
  2610. },
  2611. "config.System": {
  2612. "type": "object",
  2613. "properties": {
  2614. "addr": {
  2615. "type": "integer"
  2616. },
  2617. "dbType": {
  2618. "type": "string"
  2619. },
  2620. "env": {
  2621. "type": "string"
  2622. },
  2623. "useMultipoint": {
  2624. "type": "boolean"
  2625. }
  2626. }
  2627. },
  2628. "model.AutoCodeStruct": {
  2629. "type": "object",
  2630. "properties": {
  2631. "abbreviation": {
  2632. "type": "string"
  2633. },
  2634. "autoCreateApiToSql": {
  2635. "type": "boolean"
  2636. },
  2637. "description": {
  2638. "type": "string"
  2639. },
  2640. "fields": {
  2641. "type": "array",
  2642. "items": {
  2643. "$ref": "#/definitions/model.Field"
  2644. }
  2645. },
  2646. "packageName": {
  2647. "type": "string"
  2648. },
  2649. "structName": {
  2650. "type": "string"
  2651. },
  2652. "tableName": {
  2653. "type": "string"
  2654. }
  2655. }
  2656. },
  2657. "model.ExaCustomer": {
  2658. "type": "object",
  2659. "properties": {
  2660. "customerName": {
  2661. "type": "string"
  2662. },
  2663. "customerPhoneData": {
  2664. "type": "string"
  2665. },
  2666. "sysUser": {
  2667. "type": "object",
  2668. "$ref": "#/definitions/model.SysUser"
  2669. },
  2670. "sysUserAuthorityID": {
  2671. "type": "string"
  2672. },
  2673. "sysUserId": {
  2674. "type": "integer"
  2675. }
  2676. }
  2677. },
  2678. "model.ExaFileUploadAndDownload": {
  2679. "type": "object",
  2680. "properties": {
  2681. "key": {
  2682. "type": "string"
  2683. },
  2684. "name": {
  2685. "type": "string"
  2686. },
  2687. "tag": {
  2688. "type": "string"
  2689. },
  2690. "url": {
  2691. "type": "string"
  2692. }
  2693. }
  2694. },
  2695. "model.Field": {
  2696. "type": "object",
  2697. "properties": {
  2698. "columnName": {
  2699. "type": "string"
  2700. },
  2701. "comment": {
  2702. "type": "string"
  2703. },
  2704. "dataType": {
  2705. "type": "string"
  2706. },
  2707. "dataTypeLong": {
  2708. "type": "string"
  2709. },
  2710. "fieldDesc": {
  2711. "type": "string"
  2712. },
  2713. "fieldJson": {
  2714. "type": "string"
  2715. },
  2716. "fieldName": {
  2717. "type": "string"
  2718. },
  2719. "fieldSearchType": {
  2720. "type": "string"
  2721. },
  2722. "fieldType": {
  2723. "type": "string"
  2724. }
  2725. }
  2726. },
  2727. "model.SysApi": {
  2728. "type": "object",
  2729. "properties": {
  2730. "apiGroup": {
  2731. "type": "string"
  2732. },
  2733. "description": {
  2734. "type": "string"
  2735. },
  2736. "method": {
  2737. "type": "string"
  2738. },
  2739. "path": {
  2740. "type": "string"
  2741. }
  2742. }
  2743. },
  2744. "model.SysAuthority": {
  2745. "type": "object",
  2746. "properties": {
  2747. "authorityId": {
  2748. "type": "string"
  2749. },
  2750. "authorityName": {
  2751. "type": "string"
  2752. },
  2753. "children": {
  2754. "type": "array",
  2755. "items": {
  2756. "$ref": "#/definitions/model.SysAuthority"
  2757. }
  2758. },
  2759. "createdAt": {
  2760. "type": "string"
  2761. },
  2762. "dataAuthorityId": {
  2763. "type": "array",
  2764. "items": {
  2765. "$ref": "#/definitions/model.SysAuthority"
  2766. }
  2767. },
  2768. "deletedAt": {
  2769. "type": "string"
  2770. },
  2771. "menus": {
  2772. "type": "array",
  2773. "items": {
  2774. "$ref": "#/definitions/model.SysBaseMenu"
  2775. }
  2776. },
  2777. "parentId": {
  2778. "type": "string"
  2779. },
  2780. "updatedAt": {
  2781. "type": "string"
  2782. }
  2783. }
  2784. },
  2785. "model.SysBaseMenu": {
  2786. "type": "object",
  2787. "properties": {
  2788. "authoritys": {
  2789. "type": "array",
  2790. "items": {
  2791. "$ref": "#/definitions/model.SysAuthority"
  2792. }
  2793. },
  2794. "children": {
  2795. "type": "array",
  2796. "items": {
  2797. "$ref": "#/definitions/model.SysBaseMenu"
  2798. }
  2799. },
  2800. "component": {
  2801. "type": "string"
  2802. },
  2803. "defaultMenu": {
  2804. "type": "boolean"
  2805. },
  2806. "hidden": {
  2807. "type": "boolean"
  2808. },
  2809. "icon": {
  2810. "type": "string"
  2811. },
  2812. "keepAlive": {
  2813. "type": "boolean"
  2814. },
  2815. "name": {
  2816. "type": "string"
  2817. },
  2818. "parentId": {
  2819. "type": "string"
  2820. },
  2821. "path": {
  2822. "type": "string"
  2823. },
  2824. "sort": {
  2825. "type": "integer"
  2826. },
  2827. "title": {
  2828. "type": "string"
  2829. }
  2830. }
  2831. },
  2832. "model.SysDictionary": {
  2833. "type": "object",
  2834. "properties": {
  2835. "desc": {
  2836. "type": "string"
  2837. },
  2838. "name": {
  2839. "type": "string"
  2840. },
  2841. "status": {
  2842. "type": "boolean"
  2843. },
  2844. "sysDictionaryDetails": {
  2845. "type": "array",
  2846. "items": {
  2847. "$ref": "#/definitions/model.SysDictionaryDetail"
  2848. }
  2849. },
  2850. "type": {
  2851. "type": "string"
  2852. }
  2853. }
  2854. },
  2855. "model.SysDictionaryDetail": {
  2856. "type": "object",
  2857. "properties": {
  2858. "label": {
  2859. "type": "string"
  2860. },
  2861. "sort": {
  2862. "type": "integer"
  2863. },
  2864. "status": {
  2865. "type": "boolean"
  2866. },
  2867. "sysDictionaryID": {
  2868. "type": "integer"
  2869. },
  2870. "value": {
  2871. "type": "integer"
  2872. }
  2873. }
  2874. },
  2875. "model.SysOperationRecord": {
  2876. "type": "object",
  2877. "properties": {
  2878. "agent": {
  2879. "type": "string"
  2880. },
  2881. "body": {
  2882. "type": "string"
  2883. },
  2884. "error_message": {
  2885. "type": "string"
  2886. },
  2887. "ip": {
  2888. "type": "string"
  2889. },
  2890. "latency": {
  2891. "type": "string"
  2892. },
  2893. "method": {
  2894. "type": "string"
  2895. },
  2896. "path": {
  2897. "type": "string"
  2898. },
  2899. "resp": {
  2900. "type": "string"
  2901. },
  2902. "status": {
  2903. "type": "integer"
  2904. },
  2905. "user": {
  2906. "type": "object",
  2907. "$ref": "#/definitions/model.SysUser"
  2908. },
  2909. "user_id": {
  2910. "type": "integer"
  2911. }
  2912. }
  2913. },
  2914. "model.SysUser": {
  2915. "type": "object",
  2916. "properties": {
  2917. "authority": {
  2918. "type": "object",
  2919. "$ref": "#/definitions/model.SysAuthority"
  2920. },
  2921. "authorityId": {
  2922. "type": "string"
  2923. },
  2924. "headerImg": {
  2925. "type": "string"
  2926. },
  2927. "nickName": {
  2928. "type": "string"
  2929. },
  2930. "userName": {
  2931. "type": "string"
  2932. },
  2933. "uuid": {
  2934. "type": "string"
  2935. }
  2936. }
  2937. },
  2938. "model.SysWorkflow": {
  2939. "type": "object",
  2940. "properties": {
  2941. "workflowDescription": {
  2942. "description": "工作流描述",
  2943. "type": "string"
  2944. },
  2945. "workflowName": {
  2946. "description": "工作流英文id",
  2947. "type": "string"
  2948. },
  2949. "workflowNickName": {
  2950. "description": "工作流名称",
  2951. "type": "string"
  2952. },
  2953. "workflowStep": {
  2954. "description": "工作流步骤",
  2955. "type": "array",
  2956. "items": {
  2957. "$ref": "#/definitions/model.SysWorkflowStepInfo"
  2958. }
  2959. }
  2960. }
  2961. },
  2962. "model.SysWorkflowStepInfo": {
  2963. "type": "object",
  2964. "properties": {
  2965. "isEnd": {
  2966. "description": "是否是完结流节点",
  2967. "type": "boolean"
  2968. },
  2969. "isStrat": {
  2970. "description": "是否是开始流节点",
  2971. "type": "boolean"
  2972. },
  2973. "stepAuthorityID": {
  2974. "description": "操作者级别id",
  2975. "type": "string"
  2976. },
  2977. "stepName": {
  2978. "description": "工作流名称",
  2979. "type": "string"
  2980. },
  2981. "stepNo": {
  2982. "description": "步骤id (第几步)",
  2983. "type": "number"
  2984. },
  2985. "workflowID": {
  2986. "description": "所属工作流ID",
  2987. "type": "integer"
  2988. }
  2989. }
  2990. },
  2991. "model.System": {
  2992. "type": "object",
  2993. "properties": {
  2994. "config": {
  2995. "type": "object",
  2996. "$ref": "#/definitions/config.Server"
  2997. }
  2998. }
  2999. },
  3000. "request.AddMenuAuthorityInfo": {
  3001. "type": "object",
  3002. "properties": {
  3003. "authorityId": {
  3004. "type": "string"
  3005. },
  3006. "menus": {
  3007. "type": "array",
  3008. "items": {
  3009. "$ref": "#/definitions/model.SysBaseMenu"
  3010. }
  3011. }
  3012. }
  3013. },
  3014. "request.AuthorityIdInfo": {
  3015. "type": "object",
  3016. "properties": {
  3017. "authorityId": {
  3018. "type": "string"
  3019. }
  3020. }
  3021. },
  3022. "request.CasbinInReceive": {
  3023. "type": "object",
  3024. "properties": {
  3025. "authorityId": {
  3026. "type": "string"
  3027. },
  3028. "casbinInfos": {
  3029. "type": "array",
  3030. "items": {
  3031. "$ref": "#/definitions/request.CasbinInfo"
  3032. }
  3033. }
  3034. }
  3035. },
  3036. "request.CasbinInfo": {
  3037. "type": "object",
  3038. "properties": {
  3039. "method": {
  3040. "type": "string"
  3041. },
  3042. "path": {
  3043. "type": "string"
  3044. }
  3045. }
  3046. },
  3047. "request.ChangePasswordStruct": {
  3048. "type": "object",
  3049. "properties": {
  3050. "newPassword": {
  3051. "type": "string"
  3052. },
  3053. "password": {
  3054. "type": "string"
  3055. },
  3056. "username": {
  3057. "type": "string"
  3058. }
  3059. }
  3060. },
  3061. "request.GetById": {
  3062. "type": "object",
  3063. "properties": {
  3064. "id": {
  3065. "type": "number"
  3066. }
  3067. }
  3068. },
  3069. "request.PageInfo": {
  3070. "type": "object",
  3071. "properties": {
  3072. "page": {
  3073. "type": "integer"
  3074. },
  3075. "pageSize": {
  3076. "type": "integer"
  3077. }
  3078. }
  3079. },
  3080. "request.RegisterAndLoginStruct": {
  3081. "type": "object",
  3082. "properties": {
  3083. "captcha": {
  3084. "type": "string"
  3085. },
  3086. "captchaId": {
  3087. "type": "string"
  3088. },
  3089. "password": {
  3090. "type": "string"
  3091. },
  3092. "username": {
  3093. "type": "string"
  3094. }
  3095. }
  3096. },
  3097. "request.SearchApiParams": {
  3098. "type": "object",
  3099. "properties": {
  3100. "apiGroup": {
  3101. "type": "string"
  3102. },
  3103. "desc": {
  3104. "type": "boolean"
  3105. },
  3106. "description": {
  3107. "type": "string"
  3108. },
  3109. "method": {
  3110. "type": "string"
  3111. },
  3112. "orderKey": {
  3113. "type": "string"
  3114. },
  3115. "page": {
  3116. "type": "integer"
  3117. },
  3118. "pageSize": {
  3119. "type": "integer"
  3120. },
  3121. "path": {
  3122. "type": "string"
  3123. }
  3124. }
  3125. },
  3126. "request.SetUserAuth": {
  3127. "type": "object",
  3128. "properties": {
  3129. "authorityId": {
  3130. "type": "string"
  3131. },
  3132. "uuid": {
  3133. "type": "string"
  3134. }
  3135. }
  3136. },
  3137. "request.SysDictionaryDetailSearch": {
  3138. "type": "object",
  3139. "properties": {
  3140. "label": {
  3141. "type": "string"
  3142. },
  3143. "page": {
  3144. "type": "integer"
  3145. },
  3146. "pageSize": {
  3147. "type": "integer"
  3148. },
  3149. "sort": {
  3150. "type": "integer"
  3151. },
  3152. "status": {
  3153. "type": "boolean"
  3154. },
  3155. "sysDictionaryID": {
  3156. "type": "integer"
  3157. },
  3158. "value": {
  3159. "type": "integer"
  3160. }
  3161. }
  3162. },
  3163. "request.SysDictionarySearch": {
  3164. "type": "object",
  3165. "properties": {
  3166. "desc": {
  3167. "type": "string"
  3168. },
  3169. "name": {
  3170. "type": "string"
  3171. },
  3172. "page": {
  3173. "type": "integer"
  3174. },
  3175. "pageSize": {
  3176. "type": "integer"
  3177. },
  3178. "status": {
  3179. "type": "boolean"
  3180. },
  3181. "sysDictionaryDetails": {
  3182. "type": "array",
  3183. "items": {
  3184. "$ref": "#/definitions/model.SysDictionaryDetail"
  3185. }
  3186. },
  3187. "type": {
  3188. "type": "string"
  3189. }
  3190. }
  3191. },
  3192. "request.SysOperationRecordSearch": {
  3193. "type": "object",
  3194. "properties": {
  3195. "agent": {
  3196. "type": "string"
  3197. },
  3198. "body": {
  3199. "type": "string"
  3200. },
  3201. "error_message": {
  3202. "type": "string"
  3203. },
  3204. "ip": {
  3205. "type": "string"
  3206. },
  3207. "latency": {
  3208. "type": "string"
  3209. },
  3210. "method": {
  3211. "type": "string"
  3212. },
  3213. "page": {
  3214. "type": "integer"
  3215. },
  3216. "pageSize": {
  3217. "type": "integer"
  3218. },
  3219. "path": {
  3220. "type": "string"
  3221. },
  3222. "resp": {
  3223. "type": "string"
  3224. },
  3225. "status": {
  3226. "type": "integer"
  3227. },
  3228. "user": {
  3229. "type": "object",
  3230. "$ref": "#/definitions/model.SysUser"
  3231. },
  3232. "user_id": {
  3233. "type": "integer"
  3234. }
  3235. }
  3236. },
  3237. "response.SysAuthorityCopyResponse": {
  3238. "type": "object",
  3239. "properties": {
  3240. "authority": {
  3241. "type": "object",
  3242. "$ref": "#/definitions/model.SysAuthority"
  3243. },
  3244. "oldAuthorityId": {
  3245. "type": "string"
  3246. }
  3247. }
  3248. }
  3249. },
  3250. "securityDefinitions": {
  3251. "ApiKeyAuth": {
  3252. "type": "apiKey",
  3253. "name": "x-token",
  3254. "in": "header"
  3255. }
  3256. }
  3257. }`
  3258. type swaggerInfo struct {
  3259. Version string
  3260. Host string
  3261. BasePath string
  3262. Schemes []string
  3263. Title string
  3264. Description string
  3265. }
  3266. // SwaggerInfo holds exported Swagger Info so clients can modify it
  3267. var SwaggerInfo = swaggerInfo{
  3268. Version: "0.0.1",
  3269. Host: "",
  3270. BasePath: "/",
  3271. Schemes: []string{},
  3272. Title: "Swagger Example API",
  3273. Description: "This is a sample Server pets",
  3274. }
  3275. type s struct{}
  3276. func (s *s) ReadDoc() string {
  3277. sInfo := SwaggerInfo
  3278. sInfo.Description = strings.Replace(sInfo.Description, "\n", "\\n", -1)
  3279. t, err := template.New("swagger_info").Funcs(template.FuncMap{
  3280. "marshal": func(v interface{}) string {
  3281. a, _ := json.Marshal(v)
  3282. return string(a)
  3283. },
  3284. }).Parse(doc)
  3285. if err != nil {
  3286. return doc
  3287. }
  3288. var tpl bytes.Buffer
  3289. if err := t.Execute(&tpl, sInfo); err != nil {
  3290. return doc
  3291. }
  3292. return tpl.String()
  3293. }
  3294. func init() {
  3295. swag.Register(swag.Name, &s{})
  3296. }