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.

3487 lines
107 KiB

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