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.

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