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.

4562 lines
139 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
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
5 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
5 years ago
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. "parameters": [
  487. {
  488. "description": "创建自动代码",
  489. "name": "data",
  490. "in": "body",
  491. "required": true,
  492. "schema": {
  493. "$ref": "#/definitions/model.AutoCodeStruct"
  494. }
  495. }
  496. ],
  497. "responses": {
  498. "200": {
  499. "description": "{\"success\":true,\"data\":{},\"msg\":\"创建成功\"}",
  500. "schema": {
  501. "type": "string"
  502. }
  503. }
  504. }
  505. }
  506. },
  507. "/autoCode/getColumn": {
  508. "get": {
  509. "security": [
  510. {
  511. "ApiKeyAuth": []
  512. }
  513. ],
  514. "consumes": [
  515. "application/json"
  516. ],
  517. "produces": [
  518. "application/json"
  519. ],
  520. "tags": [
  521. "AutoCode"
  522. ],
  523. "summary": "获取当前表所有字段",
  524. "responses": {
  525. "200": {
  526. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  527. "schema": {
  528. "type": "string"
  529. }
  530. }
  531. }
  532. }
  533. },
  534. "/autoCode/getDatabase": {
  535. "get": {
  536. "security": [
  537. {
  538. "ApiKeyAuth": []
  539. }
  540. ],
  541. "consumes": [
  542. "application/json"
  543. ],
  544. "produces": [
  545. "application/json"
  546. ],
  547. "tags": [
  548. "AutoCode"
  549. ],
  550. "summary": "获取当前所有数据库",
  551. "responses": {
  552. "200": {
  553. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  554. "schema": {
  555. "type": "string"
  556. }
  557. }
  558. }
  559. }
  560. },
  561. "/autoCode/getTables": {
  562. "get": {
  563. "security": [
  564. {
  565. "ApiKeyAuth": []
  566. }
  567. ],
  568. "consumes": [
  569. "application/json"
  570. ],
  571. "produces": [
  572. "application/json"
  573. ],
  574. "tags": [
  575. "AutoCode"
  576. ],
  577. "summary": "获取当前数据库所有表",
  578. "responses": {
  579. "200": {
  580. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  581. "schema": {
  582. "type": "string"
  583. }
  584. }
  585. }
  586. }
  587. },
  588. "/autoCode/preview": {
  589. "post": {
  590. "security": [
  591. {
  592. "ApiKeyAuth": []
  593. }
  594. ],
  595. "consumes": [
  596. "application/json"
  597. ],
  598. "produces": [
  599. "application/json"
  600. ],
  601. "tags": [
  602. "AutoCode"
  603. ],
  604. "summary": "预览创建后的代码",
  605. "parameters": [
  606. {
  607. "description": "预览创建代码",
  608. "name": "data",
  609. "in": "body",
  610. "required": true,
  611. "schema": {
  612. "$ref": "#/definitions/model.AutoCodeStruct"
  613. }
  614. }
  615. ],
  616. "responses": {
  617. "200": {
  618. "description": "{\"success\":true,\"data\":{},\"msg\":\"创建成功\"}",
  619. "schema": {
  620. "type": "string"
  621. }
  622. }
  623. }
  624. }
  625. },
  626. "/base/captcha": {
  627. "post": {
  628. "security": [
  629. {
  630. "ApiKeyAuth": []
  631. }
  632. ],
  633. "consumes": [
  634. "application/json"
  635. ],
  636. "produces": [
  637. "application/json"
  638. ],
  639. "tags": [
  640. "Base"
  641. ],
  642. "summary": "生成验证码",
  643. "responses": {
  644. "200": {
  645. "description": "{\"success\":true,\"data\":{},\"msg\":\"验证码获取成功\"}",
  646. "schema": {
  647. "type": "string"
  648. }
  649. }
  650. }
  651. }
  652. },
  653. "/base/login": {
  654. "post": {
  655. "produces": [
  656. "application/json"
  657. ],
  658. "tags": [
  659. "Base"
  660. ],
  661. "summary": "用户登录",
  662. "parameters": [
  663. {
  664. "description": "用户名, 密码, 验证码",
  665. "name": "data",
  666. "in": "body",
  667. "required": true,
  668. "schema": {
  669. "$ref": "#/definitions/request.Login"
  670. }
  671. }
  672. ],
  673. "responses": {
  674. "200": {
  675. "description": "{\"success\":true,\"data\":{},\"msg\":\"登陆成功\"}",
  676. "schema": {
  677. "type": "string"
  678. }
  679. }
  680. }
  681. }
  682. },
  683. "/casbin/UpdateCasbin": {
  684. "post": {
  685. "security": [
  686. {
  687. "ApiKeyAuth": []
  688. }
  689. ],
  690. "consumes": [
  691. "application/json"
  692. ],
  693. "produces": [
  694. "application/json"
  695. ],
  696. "tags": [
  697. "Casbin"
  698. ],
  699. "summary": "更新角色api权限",
  700. "parameters": [
  701. {
  702. "description": "权限id, 权限模型列表",
  703. "name": "data",
  704. "in": "body",
  705. "required": true,
  706. "schema": {
  707. "$ref": "#/definitions/request.CasbinInReceive"
  708. }
  709. }
  710. ],
  711. "responses": {
  712. "200": {
  713. "description": "{\"success\":true,\"data\":{},\"msg\":\"更新成功\"}",
  714. "schema": {
  715. "type": "string"
  716. }
  717. }
  718. }
  719. }
  720. },
  721. "/casbin/getPolicyPathByAuthorityId": {
  722. "post": {
  723. "security": [
  724. {
  725. "ApiKeyAuth": []
  726. }
  727. ],
  728. "consumes": [
  729. "application/json"
  730. ],
  731. "produces": [
  732. "application/json"
  733. ],
  734. "tags": [
  735. "Casbin"
  736. ],
  737. "summary": "获取权限列表",
  738. "parameters": [
  739. {
  740. "description": "权限id, 权限模型列表",
  741. "name": "data",
  742. "in": "body",
  743. "required": true,
  744. "schema": {
  745. "$ref": "#/definitions/request.CasbinInReceive"
  746. }
  747. }
  748. ],
  749. "responses": {
  750. "200": {
  751. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  752. "schema": {
  753. "type": "string"
  754. }
  755. }
  756. }
  757. }
  758. },
  759. "/customer/customer": {
  760. "get": {
  761. "security": [
  762. {
  763. "ApiKeyAuth": []
  764. }
  765. ],
  766. "consumes": [
  767. "application/json"
  768. ],
  769. "produces": [
  770. "application/json"
  771. ],
  772. "tags": [
  773. "ExaCustomer"
  774. ],
  775. "summary": "获取单一客户信息",
  776. "parameters": [
  777. {
  778. "description": "客户ID",
  779. "name": "data",
  780. "in": "body",
  781. "required": true,
  782. "schema": {
  783. "$ref": "#/definitions/model.ExaCustomer"
  784. }
  785. }
  786. ],
  787. "responses": {
  788. "200": {
  789. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  790. "schema": {
  791. "type": "string"
  792. }
  793. }
  794. }
  795. },
  796. "put": {
  797. "security": [
  798. {
  799. "ApiKeyAuth": []
  800. }
  801. ],
  802. "consumes": [
  803. "application/json"
  804. ],
  805. "produces": [
  806. "application/json"
  807. ],
  808. "tags": [
  809. "ExaCustomer"
  810. ],
  811. "summary": "更新客户信息",
  812. "parameters": [
  813. {
  814. "description": "客户ID, 客户信息",
  815. "name": "data",
  816. "in": "body",
  817. "required": true,
  818. "schema": {
  819. "$ref": "#/definitions/model.ExaCustomer"
  820. }
  821. }
  822. ],
  823. "responses": {
  824. "200": {
  825. "description": "{\"success\":true,\"data\":{},\"msg\":\"更新成功\"}",
  826. "schema": {
  827. "type": "string"
  828. }
  829. }
  830. }
  831. },
  832. "post": {
  833. "security": [
  834. {
  835. "ApiKeyAuth": []
  836. }
  837. ],
  838. "consumes": [
  839. "application/json"
  840. ],
  841. "produces": [
  842. "application/json"
  843. ],
  844. "tags": [
  845. "ExaCustomer"
  846. ],
  847. "summary": "创建客户",
  848. "parameters": [
  849. {
  850. "description": "客户用户名, 客户手机号码",
  851. "name": "data",
  852. "in": "body",
  853. "required": true,
  854. "schema": {
  855. "$ref": "#/definitions/model.ExaCustomer"
  856. }
  857. }
  858. ],
  859. "responses": {
  860. "200": {
  861. "description": "{\"success\":true,\"data\":{},\"msg\":\"创建成功\"}",
  862. "schema": {
  863. "type": "string"
  864. }
  865. }
  866. }
  867. },
  868. "delete": {
  869. "security": [
  870. {
  871. "ApiKeyAuth": []
  872. }
  873. ],
  874. "consumes": [
  875. "application/json"
  876. ],
  877. "produces": [
  878. "application/json"
  879. ],
  880. "tags": [
  881. "ExaCustomer"
  882. ],
  883. "summary": "删除客户",
  884. "parameters": [
  885. {
  886. "description": "客户ID",
  887. "name": "data",
  888. "in": "body",
  889. "required": true,
  890. "schema": {
  891. "$ref": "#/definitions/model.ExaCustomer"
  892. }
  893. }
  894. ],
  895. "responses": {
  896. "200": {
  897. "description": "{\"success\":true,\"data\":{},\"msg\":\"删除成功\"}",
  898. "schema": {
  899. "type": "string"
  900. }
  901. }
  902. }
  903. }
  904. },
  905. "/customer/customerList": {
  906. "get": {
  907. "security": [
  908. {
  909. "ApiKeyAuth": []
  910. }
  911. ],
  912. "consumes": [
  913. "application/json"
  914. ],
  915. "produces": [
  916. "application/json"
  917. ],
  918. "tags": [
  919. "ExaCustomer"
  920. ],
  921. "summary": "分页获取权限客户列表",
  922. "parameters": [
  923. {
  924. "description": "页码, 每页大小",
  925. "name": "data",
  926. "in": "body",
  927. "required": true,
  928. "schema": {
  929. "$ref": "#/definitions/request.PageInfo"
  930. }
  931. }
  932. ],
  933. "responses": {
  934. "200": {
  935. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  936. "schema": {
  937. "type": "string"
  938. }
  939. }
  940. }
  941. }
  942. },
  943. "/email/emailTest": {
  944. "post": {
  945. "security": [
  946. {
  947. "ApiKeyAuth": []
  948. }
  949. ],
  950. "produces": [
  951. "application/json"
  952. ],
  953. "tags": [
  954. "System"
  955. ],
  956. "summary": "发送测试邮件",
  957. "responses": {
  958. "200": {
  959. "description": "{\"success\":true,\"data\":{},\"msg\":\"发送成功\"}",
  960. "schema": {
  961. "type": "string"
  962. }
  963. }
  964. }
  965. }
  966. },
  967. "/excel/downloadTemplate": {
  968. "get": {
  969. "security": [
  970. {
  971. "ApiKeyAuth": []
  972. }
  973. ],
  974. "consumes": [
  975. "multipart/form-data"
  976. ],
  977. "produces": [
  978. "application/json"
  979. ],
  980. "tags": [
  981. "excel"
  982. ],
  983. "summary": "下载模板",
  984. "parameters": [
  985. {
  986. "type": "string",
  987. "description": "模板名称",
  988. "name": "fileName",
  989. "in": "query",
  990. "required": true
  991. }
  992. ],
  993. "responses": {
  994. "200": {
  995. "description": ""
  996. }
  997. }
  998. }
  999. },
  1000. "/excel/exportExcel": {
  1001. "post": {
  1002. "security": [
  1003. {
  1004. "ApiKeyAuth": []
  1005. }
  1006. ],
  1007. "consumes": [
  1008. "application/json"
  1009. ],
  1010. "produces": [
  1011. "application/octet-stream"
  1012. ],
  1013. "tags": [
  1014. "excel"
  1015. ],
  1016. "summary": "导出Excel",
  1017. "parameters": [
  1018. {
  1019. "description": "导出Excel文件信息",
  1020. "name": "data",
  1021. "in": "body",
  1022. "required": true,
  1023. "schema": {
  1024. "$ref": "#/definitions/model.ExcelInfo"
  1025. }
  1026. }
  1027. ],
  1028. "responses": {
  1029. "200": {
  1030. "description": ""
  1031. }
  1032. }
  1033. }
  1034. },
  1035. "/excel/importExcel": {
  1036. "post": {
  1037. "security": [
  1038. {
  1039. "ApiKeyAuth": []
  1040. }
  1041. ],
  1042. "consumes": [
  1043. "multipart/form-data"
  1044. ],
  1045. "produces": [
  1046. "application/json"
  1047. ],
  1048. "tags": [
  1049. "excel"
  1050. ],
  1051. "summary": "导入Excel文件",
  1052. "parameters": [
  1053. {
  1054. "type": "file",
  1055. "description": "导入Excel文件",
  1056. "name": "file",
  1057. "in": "formData",
  1058. "required": true
  1059. }
  1060. ],
  1061. "responses": {
  1062. "200": {
  1063. "description": "{\"success\":true,\"data\":{},\"msg\":\"导入成功\"}",
  1064. "schema": {
  1065. "type": "string"
  1066. }
  1067. }
  1068. }
  1069. }
  1070. },
  1071. "/excel/loadExcel": {
  1072. "get": {
  1073. "security": [
  1074. {
  1075. "ApiKeyAuth": []
  1076. }
  1077. ],
  1078. "produces": [
  1079. "application/json"
  1080. ],
  1081. "tags": [
  1082. "excel"
  1083. ],
  1084. "summary": "加载Excel数据",
  1085. "responses": {
  1086. "200": {
  1087. "description": "{\"success\":true,\"data\":{},\"msg\":\"加载数据成功\"}",
  1088. "schema": {
  1089. "type": "string"
  1090. }
  1091. }
  1092. }
  1093. }
  1094. },
  1095. "/fileUploadAndDownload/breakpointContinue": {
  1096. "post": {
  1097. "security": [
  1098. {
  1099. "ApiKeyAuth": []
  1100. }
  1101. ],
  1102. "consumes": [
  1103. "multipart/form-data"
  1104. ],
  1105. "produces": [
  1106. "application/json"
  1107. ],
  1108. "tags": [
  1109. "ExaFileUploadAndDownload"
  1110. ],
  1111. "summary": "断点续传到服务器",
  1112. "parameters": [
  1113. {
  1114. "type": "file",
  1115. "description": "an example for breakpoint resume, 断点续传示例",
  1116. "name": "file",
  1117. "in": "formData",
  1118. "required": true
  1119. }
  1120. ],
  1121. "responses": {
  1122. "200": {
  1123. "description": "{\"success\":true,\"data\":{},\"msg\":\"切片创建成功\"}",
  1124. "schema": {
  1125. "type": "string"
  1126. }
  1127. }
  1128. }
  1129. }
  1130. },
  1131. "/fileUploadAndDownload/deleteFile": {
  1132. "post": {
  1133. "security": [
  1134. {
  1135. "ApiKeyAuth": []
  1136. }
  1137. ],
  1138. "produces": [
  1139. "application/json"
  1140. ],
  1141. "tags": [
  1142. "ExaFileUploadAndDownload"
  1143. ],
  1144. "summary": "删除文件",
  1145. "parameters": [
  1146. {
  1147. "description": "传入文件里面id即可",
  1148. "name": "data",
  1149. "in": "body",
  1150. "required": true,
  1151. "schema": {
  1152. "$ref": "#/definitions/model.ExaFileUploadAndDownload"
  1153. }
  1154. }
  1155. ],
  1156. "responses": {
  1157. "200": {
  1158. "description": "{\"success\":true,\"data\":{},\"msg\":\"删除成功\"}",
  1159. "schema": {
  1160. "type": "string"
  1161. }
  1162. }
  1163. }
  1164. }
  1165. },
  1166. "/fileUploadAndDownload/findFile": {
  1167. "post": {
  1168. "security": [
  1169. {
  1170. "ApiKeyAuth": []
  1171. }
  1172. ],
  1173. "consumes": [
  1174. "multipart/form-data"
  1175. ],
  1176. "produces": [
  1177. "application/json"
  1178. ],
  1179. "tags": [
  1180. "ExaFileUploadAndDownload"
  1181. ],
  1182. "summary": "创建文件",
  1183. "parameters": [
  1184. {
  1185. "type": "file",
  1186. "description": "上传文件完成",
  1187. "name": "file",
  1188. "in": "formData",
  1189. "required": true
  1190. }
  1191. ],
  1192. "responses": {
  1193. "200": {
  1194. "description": "{\"success\":true,\"data\":{},\"msg\":\"file uploaded, 文件创建成功\"}",
  1195. "schema": {
  1196. "type": "string"
  1197. }
  1198. }
  1199. }
  1200. }
  1201. },
  1202. "/fileUploadAndDownload/getFileList": {
  1203. "post": {
  1204. "security": [
  1205. {
  1206. "ApiKeyAuth": []
  1207. }
  1208. ],
  1209. "consumes": [
  1210. "application/json"
  1211. ],
  1212. "produces": [
  1213. "application/json"
  1214. ],
  1215. "tags": [
  1216. "ExaFileUploadAndDownload"
  1217. ],
  1218. "summary": "分页文件列表",
  1219. "parameters": [
  1220. {
  1221. "description": "页码, 每页大小",
  1222. "name": "data",
  1223. "in": "body",
  1224. "required": true,
  1225. "schema": {
  1226. "$ref": "#/definitions/request.PageInfo"
  1227. }
  1228. }
  1229. ],
  1230. "responses": {
  1231. "200": {
  1232. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  1233. "schema": {
  1234. "type": "string"
  1235. }
  1236. }
  1237. }
  1238. }
  1239. },
  1240. "/fileUploadAndDownload/removeChunk": {
  1241. "post": {
  1242. "security": [
  1243. {
  1244. "ApiKeyAuth": []
  1245. }
  1246. ],
  1247. "consumes": [
  1248. "multipart/form-data"
  1249. ],
  1250. "produces": [
  1251. "application/json"
  1252. ],
  1253. "tags": [
  1254. "ExaFileUploadAndDownload"
  1255. ],
  1256. "summary": "删除切片",
  1257. "parameters": [
  1258. {
  1259. "type": "file",
  1260. "description": "删除缓存切片",
  1261. "name": "file",
  1262. "in": "formData",
  1263. "required": true
  1264. }
  1265. ],
  1266. "responses": {
  1267. "200": {
  1268. "description": "{\"success\":true,\"data\":{},\"msg\":\"缓存切片删除成功\"}",
  1269. "schema": {
  1270. "type": "string"
  1271. }
  1272. }
  1273. }
  1274. }
  1275. },
  1276. "/fileUploadAndDownload/upload": {
  1277. "post": {
  1278. "security": [
  1279. {
  1280. "ApiKeyAuth": []
  1281. }
  1282. ],
  1283. "consumes": [
  1284. "multipart/form-data"
  1285. ],
  1286. "produces": [
  1287. "application/json"
  1288. ],
  1289. "tags": [
  1290. "ExaFileUploadAndDownload"
  1291. ],
  1292. "summary": "上传文件示例",
  1293. "parameters": [
  1294. {
  1295. "type": "file",
  1296. "description": "上传文件示例",
  1297. "name": "file",
  1298. "in": "formData",
  1299. "required": true
  1300. }
  1301. ],
  1302. "responses": {
  1303. "200": {
  1304. "description": "{\"success\":true,\"data\":{},\"msg\":\"上传成功\"}",
  1305. "schema": {
  1306. "type": "string"
  1307. }
  1308. }
  1309. }
  1310. }
  1311. },
  1312. "/init/checkdb": {
  1313. "post": {
  1314. "produces": [
  1315. "application/json"
  1316. ],
  1317. "tags": [
  1318. "CheckDB"
  1319. ],
  1320. "summary": "初始化用户数据库",
  1321. "responses": {
  1322. "200": {
  1323. "description": "{\"code\":0,\"data\":{},\"msg\":\"探测完成\"}",
  1324. "schema": {
  1325. "type": "string"
  1326. }
  1327. }
  1328. }
  1329. }
  1330. },
  1331. "/init/initdb": {
  1332. "post": {
  1333. "produces": [
  1334. "application/json"
  1335. ],
  1336. "tags": [
  1337. "InitDB"
  1338. ],
  1339. "summary": "初始化用户数据库",
  1340. "parameters": [
  1341. {
  1342. "description": "初始化数据库参数",
  1343. "name": "data",
  1344. "in": "body",
  1345. "required": true,
  1346. "schema": {
  1347. "$ref": "#/definitions/request.InitDB"
  1348. }
  1349. }
  1350. ],
  1351. "responses": {
  1352. "200": {
  1353. "description": "{\"code\":0,\"data\":{},\"msg\":\"自动创建数据库成功\"}",
  1354. "schema": {
  1355. "type": "string"
  1356. }
  1357. }
  1358. }
  1359. }
  1360. },
  1361. "/jwt/jsonInBlacklist": {
  1362. "post": {
  1363. "security": [
  1364. {
  1365. "ApiKeyAuth": []
  1366. }
  1367. ],
  1368. "consumes": [
  1369. "application/json"
  1370. ],
  1371. "produces": [
  1372. "application/json"
  1373. ],
  1374. "tags": [
  1375. "Jwt"
  1376. ],
  1377. "summary": "jwt加入黑名单",
  1378. "responses": {
  1379. "200": {
  1380. "description": "{\"success\":true,\"data\":{},\"msg\":\"拉黑成功\"}",
  1381. "schema": {
  1382. "type": "string"
  1383. }
  1384. }
  1385. }
  1386. }
  1387. },
  1388. "/menu/GetMenuAuthority": {
  1389. "post": {
  1390. "security": [
  1391. {
  1392. "ApiKeyAuth": []
  1393. }
  1394. ],
  1395. "consumes": [
  1396. "application/json"
  1397. ],
  1398. "produces": [
  1399. "application/json"
  1400. ],
  1401. "tags": [
  1402. "AuthorityMenu"
  1403. ],
  1404. "summary": "获取指定角色menu",
  1405. "parameters": [
  1406. {
  1407. "description": "角色ID",
  1408. "name": "data",
  1409. "in": "body",
  1410. "required": true,
  1411. "schema": {
  1412. "$ref": "#/definitions/request.GetAuthorityId"
  1413. }
  1414. }
  1415. ],
  1416. "responses": {
  1417. "200": {
  1418. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  1419. "schema": {
  1420. "type": "string"
  1421. }
  1422. }
  1423. }
  1424. }
  1425. },
  1426. "/menu/addBaseMenu": {
  1427. "post": {
  1428. "security": [
  1429. {
  1430. "ApiKeyAuth": []
  1431. }
  1432. ],
  1433. "consumes": [
  1434. "application/json"
  1435. ],
  1436. "produces": [
  1437. "application/json"
  1438. ],
  1439. "tags": [
  1440. "Menu"
  1441. ],
  1442. "summary": "新增菜单",
  1443. "parameters": [
  1444. {
  1445. "description": "路由path, 父菜单ID, 路由name, 对应前端文件路径, 排序标记",
  1446. "name": "data",
  1447. "in": "body",
  1448. "required": true,
  1449. "schema": {
  1450. "$ref": "#/definitions/model.SysBaseMenu"
  1451. }
  1452. }
  1453. ],
  1454. "responses": {
  1455. "200": {
  1456. "description": "{\"success\":true,\"data\":{},\"msg\":\"添加成功\"}",
  1457. "schema": {
  1458. "type": "string"
  1459. }
  1460. }
  1461. }
  1462. }
  1463. },
  1464. "/menu/addMenuAuthority": {
  1465. "post": {
  1466. "security": [
  1467. {
  1468. "ApiKeyAuth": []
  1469. }
  1470. ],
  1471. "consumes": [
  1472. "application/json"
  1473. ],
  1474. "produces": [
  1475. "application/json"
  1476. ],
  1477. "tags": [
  1478. "AuthorityMenu"
  1479. ],
  1480. "summary": "增加menu和角色关联关系",
  1481. "parameters": [
  1482. {
  1483. "description": "角色ID",
  1484. "name": "data",
  1485. "in": "body",
  1486. "required": true,
  1487. "schema": {
  1488. "$ref": "#/definitions/request.AddMenuAuthorityInfo"
  1489. }
  1490. }
  1491. ],
  1492. "responses": {
  1493. "200": {
  1494. "description": "{\"success\":true,\"data\":{},\"msg\":\"添加成功\"}",
  1495. "schema": {
  1496. "type": "string"
  1497. }
  1498. }
  1499. }
  1500. }
  1501. },
  1502. "/menu/deleteBaseMenu": {
  1503. "post": {
  1504. "security": [
  1505. {
  1506. "ApiKeyAuth": []
  1507. }
  1508. ],
  1509. "consumes": [
  1510. "application/json"
  1511. ],
  1512. "produces": [
  1513. "application/json"
  1514. ],
  1515. "tags": [
  1516. "Menu"
  1517. ],
  1518. "summary": "删除菜单",
  1519. "parameters": [
  1520. {
  1521. "description": "菜单id",
  1522. "name": "data",
  1523. "in": "body",
  1524. "required": true,
  1525. "schema": {
  1526. "$ref": "#/definitions/request.GetById"
  1527. }
  1528. }
  1529. ],
  1530. "responses": {
  1531. "200": {
  1532. "description": "{\"success\":true,\"data\":{},\"msg\":\"删除成功\"}",
  1533. "schema": {
  1534. "type": "string"
  1535. }
  1536. }
  1537. }
  1538. }
  1539. },
  1540. "/menu/getBaseMenuById": {
  1541. "post": {
  1542. "security": [
  1543. {
  1544. "ApiKeyAuth": []
  1545. }
  1546. ],
  1547. "consumes": [
  1548. "application/json"
  1549. ],
  1550. "produces": [
  1551. "application/json"
  1552. ],
  1553. "tags": [
  1554. "Menu"
  1555. ],
  1556. "summary": "根据id获取菜单",
  1557. "parameters": [
  1558. {
  1559. "description": "菜单id",
  1560. "name": "data",
  1561. "in": "body",
  1562. "required": true,
  1563. "schema": {
  1564. "$ref": "#/definitions/request.GetById"
  1565. }
  1566. }
  1567. ],
  1568. "responses": {
  1569. "200": {
  1570. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  1571. "schema": {
  1572. "type": "string"
  1573. }
  1574. }
  1575. }
  1576. }
  1577. },
  1578. "/menu/getBaseMenuTree": {
  1579. "post": {
  1580. "security": [
  1581. {
  1582. "ApiKeyAuth": []
  1583. }
  1584. ],
  1585. "produces": [
  1586. "application/json"
  1587. ],
  1588. "tags": [
  1589. "AuthorityMenu"
  1590. ],
  1591. "summary": "获取用户动态路由",
  1592. "parameters": [
  1593. {
  1594. "description": "空",
  1595. "name": "data",
  1596. "in": "body",
  1597. "required": true,
  1598. "schema": {
  1599. "$ref": "#/definitions/request.Empty"
  1600. }
  1601. }
  1602. ],
  1603. "responses": {
  1604. "200": {
  1605. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  1606. "schema": {
  1607. "type": "string"
  1608. }
  1609. }
  1610. }
  1611. }
  1612. },
  1613. "/menu/getMenu": {
  1614. "post": {
  1615. "security": [
  1616. {
  1617. "ApiKeyAuth": []
  1618. }
  1619. ],
  1620. "produces": [
  1621. "application/json"
  1622. ],
  1623. "tags": [
  1624. "AuthorityMenu"
  1625. ],
  1626. "summary": "获取用户动态路由",
  1627. "parameters": [
  1628. {
  1629. "description": "空",
  1630. "name": "data",
  1631. "in": "body",
  1632. "required": true,
  1633. "schema": {
  1634. "$ref": "#/definitions/request.Empty"
  1635. }
  1636. }
  1637. ],
  1638. "responses": {
  1639. "200": {
  1640. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  1641. "schema": {
  1642. "type": "string"
  1643. }
  1644. }
  1645. }
  1646. }
  1647. },
  1648. "/menu/getMenuList": {
  1649. "post": {
  1650. "security": [
  1651. {
  1652. "ApiKeyAuth": []
  1653. }
  1654. ],
  1655. "consumes": [
  1656. "application/json"
  1657. ],
  1658. "produces": [
  1659. "application/json"
  1660. ],
  1661. "tags": [
  1662. "Menu"
  1663. ],
  1664. "summary": "分页获取基础menu列表",
  1665. "parameters": [
  1666. {
  1667. "description": "页码, 每页大小",
  1668. "name": "data",
  1669. "in": "body",
  1670. "required": true,
  1671. "schema": {
  1672. "$ref": "#/definitions/request.PageInfo"
  1673. }
  1674. }
  1675. ],
  1676. "responses": {
  1677. "200": {
  1678. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  1679. "schema": {
  1680. "type": "string"
  1681. }
  1682. }
  1683. }
  1684. }
  1685. },
  1686. "/menu/updateBaseMenu": {
  1687. "post": {
  1688. "security": [
  1689. {
  1690. "ApiKeyAuth": []
  1691. }
  1692. ],
  1693. "consumes": [
  1694. "application/json"
  1695. ],
  1696. "produces": [
  1697. "application/json"
  1698. ],
  1699. "tags": [
  1700. "Menu"
  1701. ],
  1702. "summary": "更新菜单",
  1703. "parameters": [
  1704. {
  1705. "description": "路由path, 父菜单ID, 路由name, 对应前端文件路径, 排序标记",
  1706. "name": "data",
  1707. "in": "body",
  1708. "required": true,
  1709. "schema": {
  1710. "$ref": "#/definitions/model.SysBaseMenu"
  1711. }
  1712. }
  1713. ],
  1714. "responses": {
  1715. "200": {
  1716. "description": "{\"success\":true,\"data\":{},\"msg\":\"更新成功\"}",
  1717. "schema": {
  1718. "type": "string"
  1719. }
  1720. }
  1721. }
  1722. }
  1723. },
  1724. "/simpleUploader/checkFileMd5": {
  1725. "get": {
  1726. "security": [
  1727. {
  1728. "ApiKeyAuth": []
  1729. }
  1730. ],
  1731. "produces": [
  1732. "application/json"
  1733. ],
  1734. "tags": [
  1735. "SimpleUploader"
  1736. ],
  1737. "summary": "断点续传插件版示例",
  1738. "parameters": [
  1739. {
  1740. "type": "string",
  1741. "description": "md5",
  1742. "name": "md5",
  1743. "in": "query",
  1744. "required": true
  1745. }
  1746. ],
  1747. "responses": {
  1748. "200": {
  1749. "description": "{\"success\":true,\"data\":{},\"msg\":\"查询成功\"}",
  1750. "schema": {
  1751. "type": "string"
  1752. }
  1753. }
  1754. }
  1755. }
  1756. },
  1757. "/simpleUploader/mergeFileMd5": {
  1758. "get": {
  1759. "security": [
  1760. {
  1761. "ApiKeyAuth": []
  1762. }
  1763. ],
  1764. "produces": [
  1765. "application/json"
  1766. ],
  1767. "tags": [
  1768. "SimpleUploader"
  1769. ],
  1770. "summary": "合并文件",
  1771. "parameters": [
  1772. {
  1773. "type": "string",
  1774. "description": "md5",
  1775. "name": "md5",
  1776. "in": "query",
  1777. "required": true
  1778. }
  1779. ],
  1780. "responses": {
  1781. "200": {
  1782. "description": "{\"success\":true,\"data\":{},\"msg\":\"合并成功\"}",
  1783. "schema": {
  1784. "type": "string"
  1785. }
  1786. }
  1787. }
  1788. }
  1789. },
  1790. "/simpleUploader/upload": {
  1791. "post": {
  1792. "security": [
  1793. {
  1794. "ApiKeyAuth": []
  1795. }
  1796. ],
  1797. "consumes": [
  1798. "multipart/form-data"
  1799. ],
  1800. "produces": [
  1801. "application/json"
  1802. ],
  1803. "tags": [
  1804. "SimpleUploader"
  1805. ],
  1806. "summary": "断点续传插件版示例",
  1807. "parameters": [
  1808. {
  1809. "type": "file",
  1810. "description": "断点续传插件版示例",
  1811. "name": "file",
  1812. "in": "formData",
  1813. "required": true
  1814. }
  1815. ],
  1816. "responses": {
  1817. "200": {
  1818. "description": "{\"success\":true,\"data\":{},\"msg\":\"切片创建成功\"}",
  1819. "schema": {
  1820. "type": "string"
  1821. }
  1822. }
  1823. }
  1824. }
  1825. },
  1826. "/sysDictionary/createSysDictionary": {
  1827. "post": {
  1828. "security": [
  1829. {
  1830. "ApiKeyAuth": []
  1831. }
  1832. ],
  1833. "consumes": [
  1834. "application/json"
  1835. ],
  1836. "produces": [
  1837. "application/json"
  1838. ],
  1839. "tags": [
  1840. "SysDictionary"
  1841. ],
  1842. "summary": "创建SysDictionary",
  1843. "parameters": [
  1844. {
  1845. "description": "SysDictionary模型",
  1846. "name": "data",
  1847. "in": "body",
  1848. "required": true,
  1849. "schema": {
  1850. "$ref": "#/definitions/model.SysDictionary"
  1851. }
  1852. }
  1853. ],
  1854. "responses": {
  1855. "200": {
  1856. "description": "{\"success\":true,\"data\":{},\"msg\":\"创建成功\"}",
  1857. "schema": {
  1858. "type": "string"
  1859. }
  1860. }
  1861. }
  1862. }
  1863. },
  1864. "/sysDictionary/deleteSysDictionary": {
  1865. "delete": {
  1866. "security": [
  1867. {
  1868. "ApiKeyAuth": []
  1869. }
  1870. ],
  1871. "consumes": [
  1872. "application/json"
  1873. ],
  1874. "produces": [
  1875. "application/json"
  1876. ],
  1877. "tags": [
  1878. "SysDictionary"
  1879. ],
  1880. "summary": "删除SysDictionary",
  1881. "parameters": [
  1882. {
  1883. "description": "SysDictionary模型",
  1884. "name": "data",
  1885. "in": "body",
  1886. "required": true,
  1887. "schema": {
  1888. "$ref": "#/definitions/model.SysDictionary"
  1889. }
  1890. }
  1891. ],
  1892. "responses": {
  1893. "200": {
  1894. "description": "{\"success\":true,\"data\":{},\"msg\":\"删除成功\"}",
  1895. "schema": {
  1896. "type": "string"
  1897. }
  1898. }
  1899. }
  1900. }
  1901. },
  1902. "/sysDictionary/findSysDictionary": {
  1903. "get": {
  1904. "security": [
  1905. {
  1906. "ApiKeyAuth": []
  1907. }
  1908. ],
  1909. "consumes": [
  1910. "application/json"
  1911. ],
  1912. "produces": [
  1913. "application/json"
  1914. ],
  1915. "tags": [
  1916. "SysDictionary"
  1917. ],
  1918. "summary": "用id查询SysDictionary",
  1919. "parameters": [
  1920. {
  1921. "description": "ID或字典英名",
  1922. "name": "data",
  1923. "in": "body",
  1924. "required": true,
  1925. "schema": {
  1926. "$ref": "#/definitions/model.SysDictionary"
  1927. }
  1928. }
  1929. ],
  1930. "responses": {
  1931. "200": {
  1932. "description": "{\"success\":true,\"data\":{},\"msg\":\"查询成功\"}",
  1933. "schema": {
  1934. "type": "string"
  1935. }
  1936. }
  1937. }
  1938. }
  1939. },
  1940. "/sysDictionary/getSysDictionaryList": {
  1941. "get": {
  1942. "security": [
  1943. {
  1944. "ApiKeyAuth": []
  1945. }
  1946. ],
  1947. "consumes": [
  1948. "application/json"
  1949. ],
  1950. "produces": [
  1951. "application/json"
  1952. ],
  1953. "tags": [
  1954. "SysDictionary"
  1955. ],
  1956. "summary": "分页获取SysDictionary列表",
  1957. "parameters": [
  1958. {
  1959. "description": "页码, 每页大小, 搜索条件",
  1960. "name": "data",
  1961. "in": "body",
  1962. "required": true,
  1963. "schema": {
  1964. "$ref": "#/definitions/request.SysDictionarySearch"
  1965. }
  1966. }
  1967. ],
  1968. "responses": {
  1969. "200": {
  1970. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  1971. "schema": {
  1972. "type": "string"
  1973. }
  1974. }
  1975. }
  1976. }
  1977. },
  1978. "/sysDictionary/updateSysDictionary": {
  1979. "put": {
  1980. "security": [
  1981. {
  1982. "ApiKeyAuth": []
  1983. }
  1984. ],
  1985. "consumes": [
  1986. "application/json"
  1987. ],
  1988. "produces": [
  1989. "application/json"
  1990. ],
  1991. "tags": [
  1992. "SysDictionary"
  1993. ],
  1994. "summary": "更新SysDictionary",
  1995. "parameters": [
  1996. {
  1997. "description": "SysDictionary模型",
  1998. "name": "data",
  1999. "in": "body",
  2000. "required": true,
  2001. "schema": {
  2002. "$ref": "#/definitions/model.SysDictionary"
  2003. }
  2004. }
  2005. ],
  2006. "responses": {
  2007. "200": {
  2008. "description": "{\"success\":true,\"data\":{},\"msg\":\"更新成功\"}",
  2009. "schema": {
  2010. "type": "string"
  2011. }
  2012. }
  2013. }
  2014. }
  2015. },
  2016. "/sysDictionaryDetail/createSysDictionaryDetail": {
  2017. "post": {
  2018. "security": [
  2019. {
  2020. "ApiKeyAuth": []
  2021. }
  2022. ],
  2023. "consumes": [
  2024. "application/json"
  2025. ],
  2026. "produces": [
  2027. "application/json"
  2028. ],
  2029. "tags": [
  2030. "SysDictionaryDetail"
  2031. ],
  2032. "summary": "创建SysDictionaryDetail",
  2033. "parameters": [
  2034. {
  2035. "description": "SysDictionaryDetail模型",
  2036. "name": "data",
  2037. "in": "body",
  2038. "required": true,
  2039. "schema": {
  2040. "$ref": "#/definitions/model.SysDictionaryDetail"
  2041. }
  2042. }
  2043. ],
  2044. "responses": {
  2045. "200": {
  2046. "description": "{\"success\":true,\"data\":{},\"msg\":\"创建成功\"}",
  2047. "schema": {
  2048. "type": "string"
  2049. }
  2050. }
  2051. }
  2052. }
  2053. },
  2054. "/sysDictionaryDetail/deleteSysDictionaryDetail": {
  2055. "delete": {
  2056. "security": [
  2057. {
  2058. "ApiKeyAuth": []
  2059. }
  2060. ],
  2061. "consumes": [
  2062. "application/json"
  2063. ],
  2064. "produces": [
  2065. "application/json"
  2066. ],
  2067. "tags": [
  2068. "SysDictionaryDetail"
  2069. ],
  2070. "summary": "删除SysDictionaryDetail",
  2071. "parameters": [
  2072. {
  2073. "description": "SysDictionaryDetail模型",
  2074. "name": "data",
  2075. "in": "body",
  2076. "required": true,
  2077. "schema": {
  2078. "$ref": "#/definitions/model.SysDictionaryDetail"
  2079. }
  2080. }
  2081. ],
  2082. "responses": {
  2083. "200": {
  2084. "description": "{\"success\":true,\"data\":{},\"msg\":\"删除成功\"}",
  2085. "schema": {
  2086. "type": "string"
  2087. }
  2088. }
  2089. }
  2090. }
  2091. },
  2092. "/sysDictionaryDetail/findSysDictionaryDetail": {
  2093. "get": {
  2094. "security": [
  2095. {
  2096. "ApiKeyAuth": []
  2097. }
  2098. ],
  2099. "consumes": [
  2100. "application/json"
  2101. ],
  2102. "produces": [
  2103. "application/json"
  2104. ],
  2105. "tags": [
  2106. "SysDictionaryDetail"
  2107. ],
  2108. "summary": "用id查询SysDictionaryDetail",
  2109. "parameters": [
  2110. {
  2111. "description": "用id查询SysDictionaryDetail",
  2112. "name": "data",
  2113. "in": "body",
  2114. "required": true,
  2115. "schema": {
  2116. "$ref": "#/definitions/model.SysDictionaryDetail"
  2117. }
  2118. }
  2119. ],
  2120. "responses": {
  2121. "200": {
  2122. "description": "{\"success\":true,\"data\":{},\"msg\":\"查询成功\"}",
  2123. "schema": {
  2124. "type": "string"
  2125. }
  2126. }
  2127. }
  2128. }
  2129. },
  2130. "/sysDictionaryDetail/getSysDictionaryDetailList": {
  2131. "get": {
  2132. "security": [
  2133. {
  2134. "ApiKeyAuth": []
  2135. }
  2136. ],
  2137. "consumes": [
  2138. "application/json"
  2139. ],
  2140. "produces": [
  2141. "application/json"
  2142. ],
  2143. "tags": [
  2144. "SysDictionaryDetail"
  2145. ],
  2146. "summary": "分页获取SysDictionaryDetail列表",
  2147. "parameters": [
  2148. {
  2149. "description": "页码, 每页大小, 搜索条件",
  2150. "name": "data",
  2151. "in": "body",
  2152. "required": true,
  2153. "schema": {
  2154. "$ref": "#/definitions/request.SysDictionaryDetailSearch"
  2155. }
  2156. }
  2157. ],
  2158. "responses": {
  2159. "200": {
  2160. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  2161. "schema": {
  2162. "type": "string"
  2163. }
  2164. }
  2165. }
  2166. }
  2167. },
  2168. "/sysDictionaryDetail/updateSysDictionaryDetail": {
  2169. "put": {
  2170. "security": [
  2171. {
  2172. "ApiKeyAuth": []
  2173. }
  2174. ],
  2175. "consumes": [
  2176. "application/json"
  2177. ],
  2178. "produces": [
  2179. "application/json"
  2180. ],
  2181. "tags": [
  2182. "SysDictionaryDetail"
  2183. ],
  2184. "summary": "更新SysDictionaryDetail",
  2185. "parameters": [
  2186. {
  2187. "description": "更新SysDictionaryDetail",
  2188. "name": "data",
  2189. "in": "body",
  2190. "required": true,
  2191. "schema": {
  2192. "$ref": "#/definitions/model.SysDictionaryDetail"
  2193. }
  2194. }
  2195. ],
  2196. "responses": {
  2197. "200": {
  2198. "description": "{\"success\":true,\"data\":{},\"msg\":\"更新成功\"}",
  2199. "schema": {
  2200. "type": "string"
  2201. }
  2202. }
  2203. }
  2204. }
  2205. },
  2206. "/sysOperationRecord/createSysOperationRecord": {
  2207. "post": {
  2208. "security": [
  2209. {
  2210. "ApiKeyAuth": []
  2211. }
  2212. ],
  2213. "consumes": [
  2214. "application/json"
  2215. ],
  2216. "produces": [
  2217. "application/json"
  2218. ],
  2219. "tags": [
  2220. "SysOperationRecord"
  2221. ],
  2222. "summary": "创建SysOperationRecord",
  2223. "parameters": [
  2224. {
  2225. "description": "创建SysOperationRecord",
  2226. "name": "data",
  2227. "in": "body",
  2228. "required": true,
  2229. "schema": {
  2230. "$ref": "#/definitions/model.SysOperationRecord"
  2231. }
  2232. }
  2233. ],
  2234. "responses": {
  2235. "200": {
  2236. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  2237. "schema": {
  2238. "type": "string"
  2239. }
  2240. }
  2241. }
  2242. }
  2243. },
  2244. "/sysOperationRecord/deleteSysOperationRecord": {
  2245. "delete": {
  2246. "security": [
  2247. {
  2248. "ApiKeyAuth": []
  2249. }
  2250. ],
  2251. "consumes": [
  2252. "application/json"
  2253. ],
  2254. "produces": [
  2255. "application/json"
  2256. ],
  2257. "tags": [
  2258. "SysOperationRecord"
  2259. ],
  2260. "summary": "删除SysOperationRecord",
  2261. "parameters": [
  2262. {
  2263. "description": "SysOperationRecord模型",
  2264. "name": "data",
  2265. "in": "body",
  2266. "required": true,
  2267. "schema": {
  2268. "$ref": "#/definitions/model.SysOperationRecord"
  2269. }
  2270. }
  2271. ],
  2272. "responses": {
  2273. "200": {
  2274. "description": "{\"success\":true,\"data\":{},\"msg\":\"删除成功\"}",
  2275. "schema": {
  2276. "type": "string"
  2277. }
  2278. }
  2279. }
  2280. }
  2281. },
  2282. "/sysOperationRecord/deleteSysOperationRecordByIds": {
  2283. "delete": {
  2284. "security": [
  2285. {
  2286. "ApiKeyAuth": []
  2287. }
  2288. ],
  2289. "consumes": [
  2290. "application/json"
  2291. ],
  2292. "produces": [
  2293. "application/json"
  2294. ],
  2295. "tags": [
  2296. "SysOperationRecord"
  2297. ],
  2298. "summary": "批量删除SysOperationRecord",
  2299. "parameters": [
  2300. {
  2301. "description": "批量删除SysOperationRecord",
  2302. "name": "data",
  2303. "in": "body",
  2304. "required": true,
  2305. "schema": {
  2306. "$ref": "#/definitions/request.IdsReq"
  2307. }
  2308. }
  2309. ],
  2310. "responses": {
  2311. "200": {
  2312. "description": "{\"success\":true,\"data\":{},\"msg\":\"批量删除成功\"}",
  2313. "schema": {
  2314. "type": "string"
  2315. }
  2316. }
  2317. }
  2318. }
  2319. },
  2320. "/sysOperationRecord/findSysOperationRecord": {
  2321. "get": {
  2322. "security": [
  2323. {
  2324. "ApiKeyAuth": []
  2325. }
  2326. ],
  2327. "consumes": [
  2328. "application/json"
  2329. ],
  2330. "produces": [
  2331. "application/json"
  2332. ],
  2333. "tags": [
  2334. "SysOperationRecord"
  2335. ],
  2336. "summary": "用id查询SysOperationRecord",
  2337. "parameters": [
  2338. {
  2339. "description": "Id",
  2340. "name": "data",
  2341. "in": "body",
  2342. "required": true,
  2343. "schema": {
  2344. "$ref": "#/definitions/model.SysOperationRecord"
  2345. }
  2346. }
  2347. ],
  2348. "responses": {
  2349. "200": {
  2350. "description": "{\"success\":true,\"data\":{},\"msg\":\"查询成功\"}",
  2351. "schema": {
  2352. "type": "string"
  2353. }
  2354. }
  2355. }
  2356. }
  2357. },
  2358. "/sysOperationRecord/getSysOperationRecordList": {
  2359. "get": {
  2360. "security": [
  2361. {
  2362. "ApiKeyAuth": []
  2363. }
  2364. ],
  2365. "consumes": [
  2366. "application/json"
  2367. ],
  2368. "produces": [
  2369. "application/json"
  2370. ],
  2371. "tags": [
  2372. "SysOperationRecord"
  2373. ],
  2374. "summary": "分页获取SysOperationRecord列表",
  2375. "parameters": [
  2376. {
  2377. "description": "页码, 每页大小, 搜索条件",
  2378. "name": "data",
  2379. "in": "body",
  2380. "required": true,
  2381. "schema": {
  2382. "$ref": "#/definitions/request.SysOperationRecordSearch"
  2383. }
  2384. }
  2385. ],
  2386. "responses": {
  2387. "200": {
  2388. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  2389. "schema": {
  2390. "type": "string"
  2391. }
  2392. }
  2393. }
  2394. }
  2395. },
  2396. "/system/getServerInfo": {
  2397. "post": {
  2398. "security": [
  2399. {
  2400. "ApiKeyAuth": []
  2401. }
  2402. ],
  2403. "produces": [
  2404. "application/json"
  2405. ],
  2406. "tags": [
  2407. "System"
  2408. ],
  2409. "summary": "获取服务器信息",
  2410. "responses": {
  2411. "200": {
  2412. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  2413. "schema": {
  2414. "type": "string"
  2415. }
  2416. }
  2417. }
  2418. }
  2419. },
  2420. "/system/getSystemConfig": {
  2421. "post": {
  2422. "security": [
  2423. {
  2424. "ApiKeyAuth": []
  2425. }
  2426. ],
  2427. "produces": [
  2428. "application/json"
  2429. ],
  2430. "tags": [
  2431. "System"
  2432. ],
  2433. "summary": "获取配置文件内容",
  2434. "responses": {
  2435. "200": {
  2436. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  2437. "schema": {
  2438. "type": "string"
  2439. }
  2440. }
  2441. }
  2442. }
  2443. },
  2444. "/system/reloadSystem": {
  2445. "post": {
  2446. "security": [
  2447. {
  2448. "ApiKeyAuth": []
  2449. }
  2450. ],
  2451. "produces": [
  2452. "application/json"
  2453. ],
  2454. "tags": [
  2455. "System"
  2456. ],
  2457. "summary": "重启系统",
  2458. "responses": {
  2459. "200": {
  2460. "description": "{\"code\":0,\"data\":{},\"msg\":\"重启系统成功\"}",
  2461. "schema": {
  2462. "type": "string"
  2463. }
  2464. }
  2465. }
  2466. }
  2467. },
  2468. "/system/setSystemConfig": {
  2469. "post": {
  2470. "security": [
  2471. {
  2472. "ApiKeyAuth": []
  2473. }
  2474. ],
  2475. "produces": [
  2476. "application/json"
  2477. ],
  2478. "tags": [
  2479. "System"
  2480. ],
  2481. "summary": "设置配置文件内容",
  2482. "parameters": [
  2483. {
  2484. "description": "设置配置文件内容",
  2485. "name": "data",
  2486. "in": "body",
  2487. "required": true,
  2488. "schema": {
  2489. "$ref": "#/definitions/model.System"
  2490. }
  2491. }
  2492. ],
  2493. "responses": {
  2494. "200": {
  2495. "description": "{\"success\":true,\"data\":{},\"msg\":\"设置成功\"}",
  2496. "schema": {
  2497. "type": "string"
  2498. }
  2499. }
  2500. }
  2501. }
  2502. },
  2503. "/user/changePassword": {
  2504. "put": {
  2505. "security": [
  2506. {
  2507. "ApiKeyAuth": []
  2508. }
  2509. ],
  2510. "produces": [
  2511. "application/json"
  2512. ],
  2513. "tags": [
  2514. "SysUser"
  2515. ],
  2516. "summary": "用户修改密码",
  2517. "parameters": [
  2518. {
  2519. "description": "用户名, 原密码, 新密码",
  2520. "name": "data",
  2521. "in": "body",
  2522. "required": true,
  2523. "schema": {
  2524. "$ref": "#/definitions/request.ChangePasswordStruct"
  2525. }
  2526. }
  2527. ],
  2528. "responses": {
  2529. "200": {
  2530. "description": "{\"success\":true,\"data\":{},\"msg\":\"修改成功\"}",
  2531. "schema": {
  2532. "type": "string"
  2533. }
  2534. }
  2535. }
  2536. }
  2537. },
  2538. "/user/deleteUser": {
  2539. "delete": {
  2540. "security": [
  2541. {
  2542. "ApiKeyAuth": []
  2543. }
  2544. ],
  2545. "consumes": [
  2546. "application/json"
  2547. ],
  2548. "produces": [
  2549. "application/json"
  2550. ],
  2551. "tags": [
  2552. "SysUser"
  2553. ],
  2554. "summary": "删除用户",
  2555. "parameters": [
  2556. {
  2557. "description": "用户ID",
  2558. "name": "data",
  2559. "in": "body",
  2560. "required": true,
  2561. "schema": {
  2562. "$ref": "#/definitions/request.GetById"
  2563. }
  2564. }
  2565. ],
  2566. "responses": {
  2567. "200": {
  2568. "description": "{\"success\":true,\"data\":{},\"msg\":\"删除成功\"}",
  2569. "schema": {
  2570. "type": "string"
  2571. }
  2572. }
  2573. }
  2574. }
  2575. },
  2576. "/user/getUserList": {
  2577. "post": {
  2578. "security": [
  2579. {
  2580. "ApiKeyAuth": []
  2581. }
  2582. ],
  2583. "consumes": [
  2584. "application/json"
  2585. ],
  2586. "produces": [
  2587. "application/json"
  2588. ],
  2589. "tags": [
  2590. "SysUser"
  2591. ],
  2592. "summary": "分页获取用户列表",
  2593. "parameters": [
  2594. {
  2595. "description": "页码, 每页大小",
  2596. "name": "data",
  2597. "in": "body",
  2598. "required": true,
  2599. "schema": {
  2600. "$ref": "#/definitions/request.PageInfo"
  2601. }
  2602. }
  2603. ],
  2604. "responses": {
  2605. "200": {
  2606. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  2607. "schema": {
  2608. "type": "string"
  2609. }
  2610. }
  2611. }
  2612. }
  2613. },
  2614. "/user/register": {
  2615. "post": {
  2616. "produces": [
  2617. "application/json"
  2618. ],
  2619. "tags": [
  2620. "SysUser"
  2621. ],
  2622. "summary": "用户注册账号",
  2623. "parameters": [
  2624. {
  2625. "description": "用户名, 昵称, 密码, 角色ID",
  2626. "name": "data",
  2627. "in": "body",
  2628. "required": true,
  2629. "schema": {
  2630. "$ref": "#/definitions/model.SysUser"
  2631. }
  2632. }
  2633. ],
  2634. "responses": {
  2635. "200": {
  2636. "description": "{\"success\":true,\"data\":{},\"msg\":\"注册成功\"}",
  2637. "schema": {
  2638. "type": "string"
  2639. }
  2640. }
  2641. }
  2642. }
  2643. },
  2644. "/user/setUserAuthority": {
  2645. "post": {
  2646. "security": [
  2647. {
  2648. "ApiKeyAuth": []
  2649. }
  2650. ],
  2651. "consumes": [
  2652. "application/json"
  2653. ],
  2654. "produces": [
  2655. "application/json"
  2656. ],
  2657. "tags": [
  2658. "SysUser"
  2659. ],
  2660. "summary": "设置用户权限",
  2661. "parameters": [
  2662. {
  2663. "description": "用户UUID, 角色ID",
  2664. "name": "data",
  2665. "in": "body",
  2666. "required": true,
  2667. "schema": {
  2668. "$ref": "#/definitions/request.SetUserAuth"
  2669. }
  2670. }
  2671. ],
  2672. "responses": {
  2673. "200": {
  2674. "description": "{\"success\":true,\"data\":{},\"msg\":\"修改成功\"}",
  2675. "schema": {
  2676. "type": "string"
  2677. }
  2678. }
  2679. }
  2680. }
  2681. },
  2682. "/user/setUserInfo": {
  2683. "put": {
  2684. "security": [
  2685. {
  2686. "ApiKeyAuth": []
  2687. }
  2688. ],
  2689. "consumes": [
  2690. "application/json"
  2691. ],
  2692. "produces": [
  2693. "application/json"
  2694. ],
  2695. "tags": [
  2696. "SysUser"
  2697. ],
  2698. "summary": "设置用户信息",
  2699. "parameters": [
  2700. {
  2701. "description": "ID, 用户名, 昵称, 头像链接",
  2702. "name": "data",
  2703. "in": "body",
  2704. "required": true,
  2705. "schema": {
  2706. "$ref": "#/definitions/model.SysUser"
  2707. }
  2708. }
  2709. ],
  2710. "responses": {
  2711. "200": {
  2712. "description": "{\"success\":true,\"data\":{},\"msg\":\"设置成功\"}",
  2713. "schema": {
  2714. "type": "string"
  2715. }
  2716. }
  2717. }
  2718. }
  2719. },
  2720. "/workflowProcess/completeWorkflowMove": {
  2721. "post": {
  2722. "security": [
  2723. {
  2724. "ApiKeyAuth": []
  2725. }
  2726. ],
  2727. "consumes": [
  2728. "application/json"
  2729. ],
  2730. "produces": [
  2731. "application/json"
  2732. ],
  2733. "tags": [
  2734. "WorkflowProcess"
  2735. ],
  2736. "summary": "提交工作流",
  2737. "responses": {
  2738. "200": {
  2739. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  2740. "schema": {
  2741. "type": "string"
  2742. }
  2743. }
  2744. }
  2745. }
  2746. },
  2747. "/workflowProcess/createWorkflowProcess": {
  2748. "post": {
  2749. "security": [
  2750. {
  2751. "ApiKeyAuth": []
  2752. }
  2753. ],
  2754. "consumes": [
  2755. "application/json"
  2756. ],
  2757. "produces": [
  2758. "application/json"
  2759. ],
  2760. "tags": [
  2761. "WorkflowProcess"
  2762. ],
  2763. "summary": "创建WorkflowProcess",
  2764. "parameters": [
  2765. {
  2766. "description": "创建WorkflowProcess",
  2767. "name": "data",
  2768. "in": "body",
  2769. "required": true,
  2770. "schema": {
  2771. "$ref": "#/definitions/model.WorkflowProcess"
  2772. }
  2773. }
  2774. ],
  2775. "responses": {
  2776. "200": {
  2777. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  2778. "schema": {
  2779. "type": "string"
  2780. }
  2781. }
  2782. }
  2783. }
  2784. },
  2785. "/workflowProcess/deleteWorkflowProcess": {
  2786. "delete": {
  2787. "security": [
  2788. {
  2789. "ApiKeyAuth": []
  2790. }
  2791. ],
  2792. "consumes": [
  2793. "application/json"
  2794. ],
  2795. "produces": [
  2796. "application/json"
  2797. ],
  2798. "tags": [
  2799. "WorkflowProcess"
  2800. ],
  2801. "summary": "删除WorkflowProcess",
  2802. "parameters": [
  2803. {
  2804. "description": "删除WorkflowProcess",
  2805. "name": "data",
  2806. "in": "body",
  2807. "required": true,
  2808. "schema": {
  2809. "$ref": "#/definitions/model.WorkflowProcess"
  2810. }
  2811. }
  2812. ],
  2813. "responses": {
  2814. "200": {
  2815. "description": "{\"success\":true,\"data\":{},\"msg\":\"删除成功\"}",
  2816. "schema": {
  2817. "type": "string"
  2818. }
  2819. }
  2820. }
  2821. }
  2822. },
  2823. "/workflowProcess/deleteWorkflowProcessByIds": {
  2824. "delete": {
  2825. "security": [
  2826. {
  2827. "ApiKeyAuth": []
  2828. }
  2829. ],
  2830. "consumes": [
  2831. "application/json"
  2832. ],
  2833. "produces": [
  2834. "application/json"
  2835. ],
  2836. "tags": [
  2837. "WorkflowProcess"
  2838. ],
  2839. "summary": "批量删除WorkflowProcess",
  2840. "parameters": [
  2841. {
  2842. "description": "批量删除WorkflowProcess",
  2843. "name": "data",
  2844. "in": "body",
  2845. "required": true,
  2846. "schema": {
  2847. "$ref": "#/definitions/request.IdsReq"
  2848. }
  2849. }
  2850. ],
  2851. "responses": {
  2852. "200": {
  2853. "description": "{\"success\":true,\"data\":{},\"msg\":\"删除成功\"}",
  2854. "schema": {
  2855. "type": "string"
  2856. }
  2857. }
  2858. }
  2859. }
  2860. },
  2861. "/workflowProcess/findWorkflowProcess": {
  2862. "get": {
  2863. "security": [
  2864. {
  2865. "ApiKeyAuth": []
  2866. }
  2867. ],
  2868. "consumes": [
  2869. "application/json"
  2870. ],
  2871. "produces": [
  2872. "application/json"
  2873. ],
  2874. "tags": [
  2875. "WorkflowProcess"
  2876. ],
  2877. "summary": "用id查询WorkflowProcess",
  2878. "parameters": [
  2879. {
  2880. "description": "用id查询WorkflowProcess",
  2881. "name": "data",
  2882. "in": "body",
  2883. "required": true,
  2884. "schema": {
  2885. "$ref": "#/definitions/model.WorkflowProcess"
  2886. }
  2887. }
  2888. ],
  2889. "responses": {
  2890. "200": {
  2891. "description": "{\"success\":true,\"data\":{},\"msg\":\"查询成功\"}",
  2892. "schema": {
  2893. "type": "string"
  2894. }
  2895. }
  2896. }
  2897. }
  2898. },
  2899. "/workflowProcess/findWorkflowStep": {
  2900. "get": {
  2901. "security": [
  2902. {
  2903. "ApiKeyAuth": []
  2904. }
  2905. ],
  2906. "consumes": [
  2907. "application/json"
  2908. ],
  2909. "produces": [
  2910. "application/json"
  2911. ],
  2912. "tags": [
  2913. "WorkflowProcess"
  2914. ],
  2915. "summary": "用id查询工作流步骤",
  2916. "parameters": [
  2917. {
  2918. "description": "用id查询WorkflowProcess",
  2919. "name": "data",
  2920. "in": "body",
  2921. "required": true,
  2922. "schema": {
  2923. "$ref": "#/definitions/model.WorkflowProcess"
  2924. }
  2925. }
  2926. ],
  2927. "responses": {
  2928. "200": {
  2929. "description": "{\"success\":true,\"data\":{},\"msg\":\"查询成功\"}",
  2930. "schema": {
  2931. "type": "string"
  2932. }
  2933. }
  2934. }
  2935. }
  2936. },
  2937. "/workflowProcess/getMyNeed": {
  2938. "get": {
  2939. "security": [
  2940. {
  2941. "ApiKeyAuth": []
  2942. }
  2943. ],
  2944. "consumes": [
  2945. "application/json"
  2946. ],
  2947. "produces": [
  2948. "application/json"
  2949. ],
  2950. "tags": [
  2951. "WorkflowProcess"
  2952. ],
  2953. "summary": "我的待办",
  2954. "responses": {
  2955. "200": {
  2956. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  2957. "schema": {
  2958. "type": "string"
  2959. }
  2960. }
  2961. }
  2962. }
  2963. },
  2964. "/workflowProcess/getMyStated": {
  2965. "get": {
  2966. "security": [
  2967. {
  2968. "ApiKeyAuth": []
  2969. }
  2970. ],
  2971. "consumes": [
  2972. "application/json"
  2973. ],
  2974. "produces": [
  2975. "application/json"
  2976. ],
  2977. "tags": [
  2978. "WorkflowProcess"
  2979. ],
  2980. "summary": "我发起的工作流",
  2981. "responses": {
  2982. "200": {
  2983. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  2984. "schema": {
  2985. "type": "string"
  2986. }
  2987. }
  2988. }
  2989. }
  2990. },
  2991. "/workflowProcess/getWorkflowMoveByID": {
  2992. "get": {
  2993. "security": [
  2994. {
  2995. "ApiKeyAuth": []
  2996. }
  2997. ],
  2998. "consumes": [
  2999. "application/json"
  3000. ],
  3001. "produces": [
  3002. "application/json"
  3003. ],
  3004. "tags": [
  3005. "WorkflowProcess"
  3006. ],
  3007. "summary": "根据id获取当前节点详情和历史",
  3008. "parameters": [
  3009. {
  3010. "description": "根据id获取当前节点详情和过往",
  3011. "name": "data",
  3012. "in": "body",
  3013. "required": true,
  3014. "schema": {
  3015. "$ref": "#/definitions/request.GetById"
  3016. }
  3017. }
  3018. ],
  3019. "responses": {
  3020. "200": {
  3021. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  3022. "schema": {
  3023. "type": "string"
  3024. }
  3025. }
  3026. }
  3027. }
  3028. },
  3029. "/workflowProcess/getWorkflowProcessList": {
  3030. "get": {
  3031. "security": [
  3032. {
  3033. "ApiKeyAuth": []
  3034. }
  3035. ],
  3036. "consumes": [
  3037. "application/json"
  3038. ],
  3039. "produces": [
  3040. "application/json"
  3041. ],
  3042. "tags": [
  3043. "WorkflowProcess"
  3044. ],
  3045. "summary": "分页获取WorkflowProcess列表",
  3046. "parameters": [
  3047. {
  3048. "description": "分页获取WorkflowProcess列表",
  3049. "name": "data",
  3050. "in": "body",
  3051. "required": true,
  3052. "schema": {
  3053. "$ref": "#/definitions/request.WorkflowProcessSearch"
  3054. }
  3055. }
  3056. ],
  3057. "responses": {
  3058. "200": {
  3059. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  3060. "schema": {
  3061. "type": "string"
  3062. }
  3063. }
  3064. }
  3065. }
  3066. },
  3067. "/workflowProcess/startWorkflow": {
  3068. "post": {
  3069. "security": [
  3070. {
  3071. "ApiKeyAuth": []
  3072. }
  3073. ],
  3074. "consumes": [
  3075. "application/json"
  3076. ],
  3077. "produces": [
  3078. "application/json"
  3079. ],
  3080. "tags": [
  3081. "WorkflowProcess"
  3082. ],
  3083. "summary": "开启工作流",
  3084. "responses": {
  3085. "200": {
  3086. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  3087. "schema": {
  3088. "type": "string"
  3089. }
  3090. }
  3091. }
  3092. }
  3093. },
  3094. "/workflowProcess/updateWorkflowProcess": {
  3095. "put": {
  3096. "security": [
  3097. {
  3098. "ApiKeyAuth": []
  3099. }
  3100. ],
  3101. "consumes": [
  3102. "application/json"
  3103. ],
  3104. "produces": [
  3105. "application/json"
  3106. ],
  3107. "tags": [
  3108. "WorkflowProcess"
  3109. ],
  3110. "summary": "更新WorkflowProcess",
  3111. "parameters": [
  3112. {
  3113. "description": "更新WorkflowProcess",
  3114. "name": "data",
  3115. "in": "body",
  3116. "required": true,
  3117. "schema": {
  3118. "$ref": "#/definitions/model.WorkflowProcess"
  3119. }
  3120. }
  3121. ],
  3122. "responses": {
  3123. "200": {
  3124. "description": "{\"success\":true,\"data\":{},\"msg\":\"更新成功\"}",
  3125. "schema": {
  3126. "type": "string"
  3127. }
  3128. }
  3129. }
  3130. }
  3131. }
  3132. },
  3133. "definitions": {
  3134. "config.AliyunOSS": {
  3135. "type": "object",
  3136. "properties": {
  3137. "accessKeyId": {
  3138. "type": "string"
  3139. },
  3140. "accessKeySecret": {
  3141. "type": "string"
  3142. },
  3143. "bucketName": {
  3144. "type": "string"
  3145. },
  3146. "bucketUrl": {
  3147. "type": "string"
  3148. },
  3149. "endpoint": {
  3150. "type": "string"
  3151. }
  3152. }
  3153. },
  3154. "config.Captcha": {
  3155. "type": "object",
  3156. "properties": {
  3157. "imgHeight": {
  3158. "type": "integer"
  3159. },
  3160. "imgWidth": {
  3161. "type": "integer"
  3162. },
  3163. "keyLong": {
  3164. "type": "integer"
  3165. }
  3166. }
  3167. },
  3168. "config.Casbin": {
  3169. "type": "object",
  3170. "properties": {
  3171. "modelPath": {
  3172. "type": "string"
  3173. }
  3174. }
  3175. },
  3176. "config.Email": {
  3177. "type": "object",
  3178. "properties": {
  3179. "from": {
  3180. "type": "string"
  3181. },
  3182. "host": {
  3183. "type": "string"
  3184. },
  3185. "isSSL": {
  3186. "type": "boolean"
  3187. },
  3188. "nickname": {
  3189. "type": "string"
  3190. },
  3191. "port": {
  3192. "type": "integer"
  3193. },
  3194. "secret": {
  3195. "type": "string"
  3196. },
  3197. "to": {
  3198. "type": "string"
  3199. }
  3200. }
  3201. },
  3202. "config.Excel": {
  3203. "type": "object",
  3204. "properties": {
  3205. "dir": {
  3206. "type": "string"
  3207. }
  3208. }
  3209. },
  3210. "config.JWT": {
  3211. "type": "object",
  3212. "properties": {
  3213. "bufferTime": {
  3214. "type": "integer"
  3215. },
  3216. "expiresTime": {
  3217. "type": "integer"
  3218. },
  3219. "signingKey": {
  3220. "type": "string"
  3221. }
  3222. }
  3223. },
  3224. "config.Local": {
  3225. "type": "object",
  3226. "properties": {
  3227. "path": {
  3228. "type": "string"
  3229. }
  3230. }
  3231. },
  3232. "config.Mysql": {
  3233. "type": "object",
  3234. "properties": {
  3235. "config": {
  3236. "type": "string"
  3237. },
  3238. "dbname": {
  3239. "type": "string"
  3240. },
  3241. "logMode": {
  3242. "type": "boolean"
  3243. },
  3244. "logZap": {
  3245. "type": "string"
  3246. },
  3247. "maxIdleConns": {
  3248. "type": "integer"
  3249. },
  3250. "maxOpenConns": {
  3251. "type": "integer"
  3252. },
  3253. "password": {
  3254. "type": "string"
  3255. },
  3256. "path": {
  3257. "type": "string"
  3258. },
  3259. "username": {
  3260. "type": "string"
  3261. }
  3262. }
  3263. },
  3264. "config.Qiniu": {
  3265. "type": "object",
  3266. "properties": {
  3267. "accessKey": {
  3268. "type": "string"
  3269. },
  3270. "bucket": {
  3271. "type": "string"
  3272. },
  3273. "imgPath": {
  3274. "type": "string"
  3275. },
  3276. "secretKey": {
  3277. "type": "string"
  3278. },
  3279. "useCdnDomains": {
  3280. "type": "boolean"
  3281. },
  3282. "useHttps": {
  3283. "type": "boolean"
  3284. },
  3285. "zone": {
  3286. "type": "string"
  3287. }
  3288. }
  3289. },
  3290. "config.Redis": {
  3291. "type": "object",
  3292. "properties": {
  3293. "addr": {
  3294. "type": "string"
  3295. },
  3296. "db": {
  3297. "type": "integer"
  3298. },
  3299. "password": {
  3300. "type": "string"
  3301. }
  3302. }
  3303. },
  3304. "config.Server": {
  3305. "type": "object",
  3306. "properties": {
  3307. "aliyunOSS": {
  3308. "type": "object",
  3309. "$ref": "#/definitions/config.AliyunOSS"
  3310. },
  3311. "captcha": {
  3312. "type": "object",
  3313. "$ref": "#/definitions/config.Captcha"
  3314. },
  3315. "casbin": {
  3316. "type": "object",
  3317. "$ref": "#/definitions/config.Casbin"
  3318. },
  3319. "email": {
  3320. "type": "object",
  3321. "$ref": "#/definitions/config.Email"
  3322. },
  3323. "excel": {
  3324. "type": "object",
  3325. "$ref": "#/definitions/config.Excel"
  3326. },
  3327. "jwt": {
  3328. "type": "object",
  3329. "$ref": "#/definitions/config.JWT"
  3330. },
  3331. "local": {
  3332. "description": "oss",
  3333. "type": "object",
  3334. "$ref": "#/definitions/config.Local"
  3335. },
  3336. "mysql": {
  3337. "description": "gorm",
  3338. "type": "object",
  3339. "$ref": "#/definitions/config.Mysql"
  3340. },
  3341. "qiniu": {
  3342. "type": "object",
  3343. "$ref": "#/definitions/config.Qiniu"
  3344. },
  3345. "redis": {
  3346. "type": "object",
  3347. "$ref": "#/definitions/config.Redis"
  3348. },
  3349. "system": {
  3350. "type": "object",
  3351. "$ref": "#/definitions/config.System"
  3352. },
  3353. "tencentCOS": {
  3354. "type": "object",
  3355. "$ref": "#/definitions/config.TencentCOS"
  3356. },
  3357. "zap": {
  3358. "type": "object",
  3359. "$ref": "#/definitions/config.Zap"
  3360. }
  3361. }
  3362. },
  3363. "config.System": {
  3364. "type": "object",
  3365. "properties": {
  3366. "addr": {
  3367. "type": "integer"
  3368. },
  3369. "dbType": {
  3370. "type": "string"
  3371. },
  3372. "env": {
  3373. "type": "string"
  3374. },
  3375. "ossType": {
  3376. "type": "string"
  3377. },
  3378. "useMultipoint": {
  3379. "type": "boolean"
  3380. }
  3381. }
  3382. },
  3383. "config.TencentCOS": {
  3384. "type": "object",
  3385. "properties": {
  3386. "baseURL": {
  3387. "type": "string"
  3388. },
  3389. "bucket": {
  3390. "type": "string"
  3391. },
  3392. "pathPrefix": {
  3393. "type": "string"
  3394. },
  3395. "region": {
  3396. "type": "string"
  3397. },
  3398. "secretID": {
  3399. "type": "string"
  3400. },
  3401. "secretKey": {
  3402. "type": "string"
  3403. }
  3404. }
  3405. },
  3406. "config.Zap": {
  3407. "type": "object",
  3408. "properties": {
  3409. "director": {
  3410. "type": "string"
  3411. },
  3412. "encodeLevel": {
  3413. "type": "string"
  3414. },
  3415. "format": {
  3416. "type": "string"
  3417. },
  3418. "level": {
  3419. "type": "string"
  3420. },
  3421. "linkName": {
  3422. "type": "string"
  3423. },
  3424. "logInConsole": {
  3425. "type": "boolean"
  3426. },
  3427. "prefix": {
  3428. "type": "string"
  3429. },
  3430. "showLine": {
  3431. "type": "boolean"
  3432. },
  3433. "stacktraceKey": {
  3434. "type": "string"
  3435. }
  3436. }
  3437. },
  3438. "model.AutoCodeStruct": {
  3439. "type": "object",
  3440. "properties": {
  3441. "abbreviation": {
  3442. "type": "string"
  3443. },
  3444. "autoCreateApiToSql": {
  3445. "type": "boolean"
  3446. },
  3447. "autoMoveFile": {
  3448. "type": "boolean"
  3449. },
  3450. "description": {
  3451. "type": "string"
  3452. },
  3453. "fields": {
  3454. "type": "array",
  3455. "items": {
  3456. "$ref": "#/definitions/model.Field"
  3457. }
  3458. },
  3459. "packageName": {
  3460. "type": "string"
  3461. },
  3462. "structName": {
  3463. "type": "string"
  3464. },
  3465. "tableName": {
  3466. "type": "string"
  3467. }
  3468. }
  3469. },
  3470. "model.ExaCustomer": {
  3471. "type": "object",
  3472. "properties": {
  3473. "createdAt": {
  3474. "type": "string"
  3475. },
  3476. "customerName": {
  3477. "type": "string"
  3478. },
  3479. "customerPhoneData": {
  3480. "type": "string"
  3481. },
  3482. "id": {
  3483. "type": "integer"
  3484. },
  3485. "sysUser": {
  3486. "type": "object",
  3487. "$ref": "#/definitions/model.SysUser"
  3488. },
  3489. "sysUserAuthorityID": {
  3490. "type": "string"
  3491. },
  3492. "sysUserId": {
  3493. "type": "integer"
  3494. },
  3495. "updatedAt": {
  3496. "type": "string"
  3497. }
  3498. }
  3499. },
  3500. "model.ExaFileUploadAndDownload": {
  3501. "type": "object",
  3502. "properties": {
  3503. "createdAt": {
  3504. "type": "string"
  3505. },
  3506. "id": {
  3507. "type": "integer"
  3508. },
  3509. "key": {
  3510. "type": "string"
  3511. },
  3512. "name": {
  3513. "type": "string"
  3514. },
  3515. "tag": {
  3516. "type": "string"
  3517. },
  3518. "updatedAt": {
  3519. "type": "string"
  3520. },
  3521. "url": {
  3522. "type": "string"
  3523. }
  3524. }
  3525. },
  3526. "model.ExcelInfo": {
  3527. "type": "object",
  3528. "properties": {
  3529. "fileName": {
  3530. "type": "string"
  3531. },
  3532. "infoList": {
  3533. "type": "array",
  3534. "items": {
  3535. "$ref": "#/definitions/model.SysBaseMenu"
  3536. }
  3537. }
  3538. }
  3539. },
  3540. "model.Field": {
  3541. "type": "object",
  3542. "properties": {
  3543. "columnName": {
  3544. "type": "string"
  3545. },
  3546. "comment": {
  3547. "type": "string"
  3548. },
  3549. "dataType": {
  3550. "type": "string"
  3551. },
  3552. "dataTypeLong": {
  3553. "type": "string"
  3554. },
  3555. "dictType": {
  3556. "type": "string"
  3557. },
  3558. "fieldDesc": {
  3559. "type": "string"
  3560. },
  3561. "fieldJson": {
  3562. "type": "string"
  3563. },
  3564. "fieldName": {
  3565. "type": "string"
  3566. },
  3567. "fieldSearchType": {
  3568. "type": "string"
  3569. },
  3570. "fieldType": {
  3571. "type": "string"
  3572. }
  3573. }
  3574. },
  3575. "model.SysApi": {
  3576. "type": "object",
  3577. "properties": {
  3578. "apiGroup": {
  3579. "type": "string"
  3580. },
  3581. "createdAt": {
  3582. "type": "string"
  3583. },
  3584. "description": {
  3585. "type": "string"
  3586. },
  3587. "id": {
  3588. "type": "integer"
  3589. },
  3590. "method": {
  3591. "type": "string"
  3592. },
  3593. "path": {
  3594. "type": "string"
  3595. },
  3596. "updatedAt": {
  3597. "type": "string"
  3598. }
  3599. }
  3600. },
  3601. "model.SysAuthority": {
  3602. "type": "object",
  3603. "properties": {
  3604. "authorityId": {
  3605. "type": "string"
  3606. },
  3607. "authorityName": {
  3608. "type": "string"
  3609. },
  3610. "children": {
  3611. "type": "array",
  3612. "items": {
  3613. "$ref": "#/definitions/model.SysAuthority"
  3614. }
  3615. },
  3616. "createdAt": {
  3617. "type": "string"
  3618. },
  3619. "dataAuthorityId": {
  3620. "type": "array",
  3621. "items": {
  3622. "$ref": "#/definitions/model.SysAuthority"
  3623. }
  3624. },
  3625. "defaultRouter": {
  3626. "type": "string"
  3627. },
  3628. "deletedAt": {
  3629. "type": "string"
  3630. },
  3631. "menus": {
  3632. "type": "array",
  3633. "items": {
  3634. "$ref": "#/definitions/model.SysBaseMenu"
  3635. }
  3636. },
  3637. "parentId": {
  3638. "type": "string"
  3639. },
  3640. "updatedAt": {
  3641. "type": "string"
  3642. }
  3643. }
  3644. },
  3645. "model.SysBaseMenu": {
  3646. "type": "object",
  3647. "properties": {
  3648. "authoritys": {
  3649. "type": "array",
  3650. "items": {
  3651. "$ref": "#/definitions/model.SysAuthority"
  3652. }
  3653. },
  3654. "children": {
  3655. "type": "array",
  3656. "items": {
  3657. "$ref": "#/definitions/model.SysBaseMenu"
  3658. }
  3659. },
  3660. "closeTab": {
  3661. "type": "boolean"
  3662. },
  3663. "component": {
  3664. "type": "string"
  3665. },
  3666. "createdAt": {
  3667. "type": "string"
  3668. },
  3669. "defaultMenu": {
  3670. "type": "boolean"
  3671. },
  3672. "hidden": {
  3673. "type": "boolean"
  3674. },
  3675. "icon": {
  3676. "type": "string"
  3677. },
  3678. "id": {
  3679. "type": "integer"
  3680. },
  3681. "keepAlive": {
  3682. "type": "boolean"
  3683. },
  3684. "name": {
  3685. "type": "string"
  3686. },
  3687. "parameters": {
  3688. "type": "array",
  3689. "items": {
  3690. "$ref": "#/definitions/model.SysBaseMenuParameter"
  3691. }
  3692. },
  3693. "parentId": {
  3694. "type": "string"
  3695. },
  3696. "path": {
  3697. "type": "string"
  3698. },
  3699. "sort": {
  3700. "type": "integer"
  3701. },
  3702. "title": {
  3703. "type": "string"
  3704. },
  3705. "updatedAt": {
  3706. "type": "string"
  3707. }
  3708. }
  3709. },
  3710. "model.SysBaseMenuParameter": {
  3711. "type": "object",
  3712. "properties": {
  3713. "createdAt": {
  3714. "type": "string"
  3715. },
  3716. "id": {
  3717. "type": "integer"
  3718. },
  3719. "key": {
  3720. "type": "string"
  3721. },
  3722. "sysBaseMenuID": {
  3723. "type": "integer"
  3724. },
  3725. "type": {
  3726. "type": "string"
  3727. },
  3728. "updatedAt": {
  3729. "type": "string"
  3730. },
  3731. "value": {
  3732. "type": "string"
  3733. }
  3734. }
  3735. },
  3736. "model.SysDictionary": {
  3737. "type": "object",
  3738. "properties": {
  3739. "createdAt": {
  3740. "type": "string"
  3741. },
  3742. "desc": {
  3743. "type": "string"
  3744. },
  3745. "id": {
  3746. "type": "integer"
  3747. },
  3748. "name": {
  3749. "type": "string"
  3750. },
  3751. "status": {
  3752. "type": "boolean"
  3753. },
  3754. "sysDictionaryDetails": {
  3755. "type": "array",
  3756. "items": {
  3757. "$ref": "#/definitions/model.SysDictionaryDetail"
  3758. }
  3759. },
  3760. "type": {
  3761. "type": "string"
  3762. },
  3763. "updatedAt": {
  3764. "type": "string"
  3765. }
  3766. }
  3767. },
  3768. "model.SysDictionaryDetail": {
  3769. "type": "object",
  3770. "properties": {
  3771. "createdAt": {
  3772. "type": "string"
  3773. },
  3774. "id": {
  3775. "type": "integer"
  3776. },
  3777. "label": {
  3778. "type": "string"
  3779. },
  3780. "sort": {
  3781. "type": "integer"
  3782. },
  3783. "status": {
  3784. "type": "boolean"
  3785. },
  3786. "sysDictionaryID": {
  3787. "type": "integer"
  3788. },
  3789. "updatedAt": {
  3790. "type": "string"
  3791. },
  3792. "value": {
  3793. "type": "integer"
  3794. }
  3795. }
  3796. },
  3797. "model.SysOperationRecord": {
  3798. "type": "object",
  3799. "properties": {
  3800. "agent": {
  3801. "type": "string"
  3802. },
  3803. "body": {
  3804. "type": "string"
  3805. },
  3806. "createdAt": {
  3807. "type": "string"
  3808. },
  3809. "error_message": {
  3810. "type": "string"
  3811. },
  3812. "id": {
  3813. "type": "integer"
  3814. },
  3815. "ip": {
  3816. "type": "string"
  3817. },
  3818. "latency": {
  3819. "type": "string"
  3820. },
  3821. "method": {
  3822. "type": "string"
  3823. },
  3824. "path": {
  3825. "type": "string"
  3826. },
  3827. "resp": {
  3828. "type": "string"
  3829. },
  3830. "status": {
  3831. "type": "integer"
  3832. },
  3833. "updatedAt": {
  3834. "type": "string"
  3835. },
  3836. "user": {
  3837. "type": "object",
  3838. "$ref": "#/definitions/model.SysUser"
  3839. },
  3840. "user_id": {
  3841. "type": "integer"
  3842. }
  3843. }
  3844. },
  3845. "model.SysUser": {
  3846. "type": "object",
  3847. "properties": {
  3848. "authority": {
  3849. "type": "object",
  3850. "$ref": "#/definitions/model.SysAuthority"
  3851. },
  3852. "authorityId": {
  3853. "type": "string"
  3854. },
  3855. "createdAt": {
  3856. "type": "string"
  3857. },
  3858. "headerImg": {
  3859. "type": "string"
  3860. },
  3861. "id": {
  3862. "type": "integer"
  3863. },
  3864. "nickName": {
  3865. "type": "string"
  3866. },
  3867. "updatedAt": {
  3868. "type": "string"
  3869. },
  3870. "userName": {
  3871. "type": "string"
  3872. },
  3873. "uuid": {
  3874. "type": "string"
  3875. }
  3876. }
  3877. },
  3878. "model.System": {
  3879. "type": "object",
  3880. "properties": {
  3881. "config": {
  3882. "type": "object",
  3883. "$ref": "#/definitions/config.Server"
  3884. }
  3885. }
  3886. },
  3887. "model.WorkflowEdge": {
  3888. "type": "object",
  3889. "properties": {
  3890. "clazz": {
  3891. "type": "string"
  3892. },
  3893. "conditionExpression": {
  3894. "type": "string"
  3895. },
  3896. "createdAt": {
  3897. "type": "string"
  3898. },
  3899. "description": {
  3900. "type": "string"
  3901. },
  3902. "endPoint": {
  3903. "description": "终点信息",
  3904. "type": "object",
  3905. "$ref": "#/definitions/model.WorkflowEndPoint"
  3906. },
  3907. "hideIcon": {
  3908. "type": "boolean"
  3909. },
  3910. "id": {
  3911. "type": "string"
  3912. },
  3913. "label": {
  3914. "type": "string"
  3915. },
  3916. "reverse": {
  3917. "type": "boolean"
  3918. },
  3919. "seq": {
  3920. "type": "string"
  3921. },
  3922. "shape": {
  3923. "type": "string"
  3924. },
  3925. "source": {
  3926. "type": "string"
  3927. },
  3928. "sourceAnchor": {
  3929. "type": "integer"
  3930. },
  3931. "startPoint": {
  3932. "description": "起点信息",
  3933. "type": "object",
  3934. "$ref": "#/definitions/model.WorkflowStartPoint"
  3935. },
  3936. "target": {
  3937. "type": "string"
  3938. },
  3939. "targetAnchor": {
  3940. "type": "integer"
  3941. },
  3942. "updatedAt": {
  3943. "type": "string"
  3944. }
  3945. }
  3946. },
  3947. "model.WorkflowEndPoint": {
  3948. "type": "object",
  3949. "properties": {
  3950. "createdAt": {
  3951. "type": "string"
  3952. },
  3953. "id": {
  3954. "type": "integer"
  3955. },
  3956. "index": {
  3957. "type": "integer"
  3958. },
  3959. "updatedAt": {
  3960. "type": "string"
  3961. },
  3962. "workflowEdgeID": {
  3963. "type": "string"
  3964. },
  3965. "x": {
  3966. "type": "number"
  3967. },
  3968. "y": {
  3969. "type": "number"
  3970. }
  3971. }
  3972. },
  3973. "model.WorkflowNode": {
  3974. "type": "object",
  3975. "properties": {
  3976. "assignType": {
  3977. "type": "string"
  3978. },
  3979. "assignValue": {
  3980. "type": "string"
  3981. },
  3982. "clazz": {
  3983. "type": "string"
  3984. },
  3985. "content": {
  3986. "type": "string"
  3987. },
  3988. "createdAt": {
  3989. "type": "string"
  3990. },
  3991. "cycle": {
  3992. "type": "string"
  3993. },
  3994. "description": {
  3995. "type": "string"
  3996. },
  3997. "dueDate": {
  3998. "type": "string"
  3999. },
  4000. "duration": {
  4001. "type": "string"
  4002. },
  4003. "hideIcon": {
  4004. "type": "boolean"
  4005. },
  4006. "id": {
  4007. "type": "string"
  4008. },
  4009. "label": {
  4010. "type": "string"
  4011. },
  4012. "shape": {
  4013. "type": "string"
  4014. },
  4015. "stateValue": {
  4016. "type": "string"
  4017. },
  4018. "subject": {
  4019. "type": "string"
  4020. },
  4021. "success": {
  4022. "type": "boolean"
  4023. },
  4024. "to": {
  4025. "type": "string"
  4026. },
  4027. "type": {
  4028. "type": "string"
  4029. },
  4030. "updatedAt": {
  4031. "type": "string"
  4032. },
  4033. "view": {
  4034. "type": "string"
  4035. },
  4036. "waitState": {
  4037. "type": "string"
  4038. },
  4039. "workflowProcessID": {
  4040. "type": "string"
  4041. },
  4042. "x": {
  4043. "type": "number"
  4044. },
  4045. "y": {
  4046. "type": "number"
  4047. }
  4048. }
  4049. },
  4050. "model.WorkflowProcess": {
  4051. "type": "object",
  4052. "properties": {
  4053. "category": {
  4054. "type": "string"
  4055. },
  4056. "clazz": {
  4057. "type": "string"
  4058. },
  4059. "createdAt": {
  4060. "type": "string"
  4061. },
  4062. "description": {
  4063. "type": "string"
  4064. },
  4065. "edges": {
  4066. "description": "流程链接数据",
  4067. "type": "array",
  4068. "items": {
  4069. "$ref": "#/definitions/model.WorkflowEdge"
  4070. }
  4071. },
  4072. "hideIcon": {
  4073. "type": "boolean"
  4074. },
  4075. "id": {
  4076. "type": "string"
  4077. },
  4078. "label": {
  4079. "type": "string"
  4080. },
  4081. "name": {
  4082. "type": "string"
  4083. },
  4084. "nodes": {
  4085. "description": "流程节点数据",
  4086. "type": "array",
  4087. "items": {
  4088. "$ref": "#/definitions/model.WorkflowNode"
  4089. }
  4090. },
  4091. "updatedAt": {
  4092. "type": "string"
  4093. },
  4094. "view": {
  4095. "type": "string"
  4096. }
  4097. }
  4098. },
  4099. "model.WorkflowStartPoint": {
  4100. "type": "object",
  4101. "properties": {
  4102. "createdAt": {
  4103. "type": "string"
  4104. },
  4105. "id": {
  4106. "type": "integer"
  4107. },
  4108. "index": {
  4109. "type": "integer"
  4110. },
  4111. "updatedAt": {
  4112. "type": "string"
  4113. },
  4114. "workflowEdgeID": {
  4115. "type": "string"
  4116. },
  4117. "x": {
  4118. "type": "number"
  4119. },
  4120. "y": {
  4121. "type": "number"
  4122. }
  4123. }
  4124. },
  4125. "request.AddMenuAuthorityInfo": {
  4126. "type": "object",
  4127. "properties": {
  4128. "authorityId": {
  4129. "type": "string"
  4130. },
  4131. "menus": {
  4132. "type": "array",
  4133. "items": {
  4134. "$ref": "#/definitions/model.SysBaseMenu"
  4135. }
  4136. }
  4137. }
  4138. },
  4139. "request.CasbinInReceive": {
  4140. "type": "object",
  4141. "properties": {
  4142. "authorityId": {
  4143. "type": "string"
  4144. },
  4145. "casbinInfos": {
  4146. "type": "array",
  4147. "items": {
  4148. "$ref": "#/definitions/request.CasbinInfo"
  4149. }
  4150. }
  4151. }
  4152. },
  4153. "request.CasbinInfo": {
  4154. "type": "object",
  4155. "properties": {
  4156. "method": {
  4157. "type": "string"
  4158. },
  4159. "path": {
  4160. "type": "string"
  4161. }
  4162. }
  4163. },
  4164. "request.ChangePasswordStruct": {
  4165. "type": "object",
  4166. "properties": {
  4167. "newPassword": {
  4168. "type": "string"
  4169. },
  4170. "password": {
  4171. "type": "string"
  4172. },
  4173. "username": {
  4174. "type": "string"
  4175. }
  4176. }
  4177. },
  4178. "request.Empty": {
  4179. "type": "object"
  4180. },
  4181. "request.GetAuthorityId": {
  4182. "type": "object",
  4183. "properties": {
  4184. "authorityId": {
  4185. "type": "string"
  4186. }
  4187. }
  4188. },
  4189. "request.GetById": {
  4190. "type": "object",
  4191. "properties": {
  4192. "id": {
  4193. "type": "number"
  4194. }
  4195. }
  4196. },
  4197. "request.IdsReq": {
  4198. "type": "object",
  4199. "properties": {
  4200. "ids": {
  4201. "type": "array",
  4202. "items": {
  4203. "type": "integer"
  4204. }
  4205. }
  4206. }
  4207. },
  4208. "request.InitDB": {
  4209. "type": "object",
  4210. "required": [
  4211. "dbName",
  4212. "userName"
  4213. ],
  4214. "properties": {
  4215. "dbName": {
  4216. "type": "string"
  4217. },
  4218. "host": {
  4219. "type": "string"
  4220. },
  4221. "password": {
  4222. "type": "string"
  4223. },
  4224. "port": {
  4225. "type": "string"
  4226. },
  4227. "userName": {
  4228. "type": "string"
  4229. }
  4230. }
  4231. },
  4232. "request.Login": {
  4233. "type": "object",
  4234. "properties": {
  4235. "captcha": {
  4236. "type": "string"
  4237. },
  4238. "captchaId": {
  4239. "type": "string"
  4240. },
  4241. "password": {
  4242. "type": "string"
  4243. },
  4244. "username": {
  4245. "type": "string"
  4246. }
  4247. }
  4248. },
  4249. "request.PageInfo": {
  4250. "type": "object",
  4251. "properties": {
  4252. "page": {
  4253. "type": "integer"
  4254. },
  4255. "pageSize": {
  4256. "type": "integer"
  4257. }
  4258. }
  4259. },
  4260. "request.SearchApiParams": {
  4261. "type": "object",
  4262. "properties": {
  4263. "apiGroup": {
  4264. "type": "string"
  4265. },
  4266. "createdAt": {
  4267. "type": "string"
  4268. },
  4269. "desc": {
  4270. "type": "boolean"
  4271. },
  4272. "description": {
  4273. "type": "string"
  4274. },
  4275. "id": {
  4276. "type": "integer"
  4277. },
  4278. "method": {
  4279. "type": "string"
  4280. },
  4281. "orderKey": {
  4282. "type": "string"
  4283. },
  4284. "page": {
  4285. "type": "integer"
  4286. },
  4287. "pageSize": {
  4288. "type": "integer"
  4289. },
  4290. "path": {
  4291. "type": "string"
  4292. },
  4293. "updatedAt": {
  4294. "type": "string"
  4295. }
  4296. }
  4297. },
  4298. "request.SetUserAuth": {
  4299. "type": "object",
  4300. "properties": {
  4301. "authorityId": {
  4302. "type": "string"
  4303. },
  4304. "uuid": {
  4305. "type": "string"
  4306. }
  4307. }
  4308. },
  4309. "request.SysDictionaryDetailSearch": {
  4310. "type": "object",
  4311. "properties": {
  4312. "createdAt": {
  4313. "type": "string"
  4314. },
  4315. "id": {
  4316. "type": "integer"
  4317. },
  4318. "label": {
  4319. "type": "string"
  4320. },
  4321. "page": {
  4322. "type": "integer"
  4323. },
  4324. "pageSize": {
  4325. "type": "integer"
  4326. },
  4327. "sort": {
  4328. "type": "integer"
  4329. },
  4330. "status": {
  4331. "type": "boolean"
  4332. },
  4333. "sysDictionaryID": {
  4334. "type": "integer"
  4335. },
  4336. "updatedAt": {
  4337. "type": "string"
  4338. },
  4339. "value": {
  4340. "type": "integer"
  4341. }
  4342. }
  4343. },
  4344. "request.SysDictionarySearch": {
  4345. "type": "object",
  4346. "properties": {
  4347. "createdAt": {
  4348. "type": "string"
  4349. },
  4350. "desc": {
  4351. "type": "string"
  4352. },
  4353. "id": {
  4354. "type": "integer"
  4355. },
  4356. "name": {
  4357. "type": "string"
  4358. },
  4359. "page": {
  4360. "type": "integer"
  4361. },
  4362. "pageSize": {
  4363. "type": "integer"
  4364. },
  4365. "status": {
  4366. "type": "boolean"
  4367. },
  4368. "sysDictionaryDetails": {
  4369. "type": "array",
  4370. "items": {
  4371. "$ref": "#/definitions/model.SysDictionaryDetail"
  4372. }
  4373. },
  4374. "type": {
  4375. "type": "string"
  4376. },
  4377. "updatedAt": {
  4378. "type": "string"
  4379. }
  4380. }
  4381. },
  4382. "request.SysOperationRecordSearch": {
  4383. "type": "object",
  4384. "properties": {
  4385. "agent": {
  4386. "type": "string"
  4387. },
  4388. "body": {
  4389. "type": "string"
  4390. },
  4391. "createdAt": {
  4392. "type": "string"
  4393. },
  4394. "error_message": {
  4395. "type": "string"
  4396. },
  4397. "id": {
  4398. "type": "integer"
  4399. },
  4400. "ip": {
  4401. "type": "string"
  4402. },
  4403. "latency": {
  4404. "type": "string"
  4405. },
  4406. "method": {
  4407. "type": "string"
  4408. },
  4409. "page": {
  4410. "type": "integer"
  4411. },
  4412. "pageSize": {
  4413. "type": "integer"
  4414. },
  4415. "path": {
  4416. "type": "string"
  4417. },
  4418. "resp": {
  4419. "type": "string"
  4420. },
  4421. "status": {
  4422. "type": "integer"
  4423. },
  4424. "updatedAt": {
  4425. "type": "string"
  4426. },
  4427. "user": {
  4428. "type": "object",
  4429. "$ref": "#/definitions/model.SysUser"
  4430. },
  4431. "user_id": {
  4432. "type": "integer"
  4433. }
  4434. }
  4435. },
  4436. "request.WorkflowProcessSearch": {
  4437. "type": "object",
  4438. "properties": {
  4439. "category": {
  4440. "type": "string"
  4441. },
  4442. "clazz": {
  4443. "type": "string"
  4444. },
  4445. "createdAt": {
  4446. "type": "string"
  4447. },
  4448. "description": {
  4449. "type": "string"
  4450. },
  4451. "edges": {
  4452. "description": "流程链接数据",
  4453. "type": "array",
  4454. "items": {
  4455. "$ref": "#/definitions/model.WorkflowEdge"
  4456. }
  4457. },
  4458. "hideIcon": {
  4459. "type": "boolean"
  4460. },
  4461. "id": {
  4462. "type": "string"
  4463. },
  4464. "label": {
  4465. "type": "string"
  4466. },
  4467. "name": {
  4468. "type": "string"
  4469. },
  4470. "nodes": {
  4471. "description": "流程节点数据",
  4472. "type": "array",
  4473. "items": {
  4474. "$ref": "#/definitions/model.WorkflowNode"
  4475. }
  4476. },
  4477. "page": {
  4478. "type": "integer"
  4479. },
  4480. "pageSize": {
  4481. "type": "integer"
  4482. },
  4483. "updatedAt": {
  4484. "type": "string"
  4485. },
  4486. "view": {
  4487. "type": "string"
  4488. }
  4489. }
  4490. },
  4491. "response.SysAuthorityCopyResponse": {
  4492. "type": "object",
  4493. "properties": {
  4494. "authority": {
  4495. "type": "object",
  4496. "$ref": "#/definitions/model.SysAuthority"
  4497. },
  4498. "oldAuthorityId": {
  4499. "type": "string"
  4500. }
  4501. }
  4502. }
  4503. },
  4504. "securityDefinitions": {
  4505. "ApiKeyAuth": {
  4506. "type": "apiKey",
  4507. "name": "x-token",
  4508. "in": "header"
  4509. }
  4510. }
  4511. }`
  4512. type swaggerInfo struct {
  4513. Version string
  4514. Host string
  4515. BasePath string
  4516. Schemes []string
  4517. Title string
  4518. Description string
  4519. }
  4520. // SwaggerInfo holds exported Swagger Info so clients can modify it
  4521. var SwaggerInfo = swaggerInfo{
  4522. Version: "0.0.1",
  4523. Host: "",
  4524. BasePath: "/",
  4525. Schemes: []string{},
  4526. Title: "Swagger Example API",
  4527. Description: "This is a sample Server pets",
  4528. }
  4529. type s struct{}
  4530. func (s *s) ReadDoc() string {
  4531. sInfo := SwaggerInfo
  4532. sInfo.Description = strings.Replace(sInfo.Description, "\n", "\\n", -1)
  4533. t, err := template.New("swagger_info").Funcs(template.FuncMap{
  4534. "marshal": func(v interface{}) string {
  4535. a, _ := json.Marshal(v)
  4536. return string(a)
  4537. },
  4538. }).Parse(doc)
  4539. if err != nil {
  4540. return doc
  4541. }
  4542. var tpl bytes.Buffer
  4543. if err := t.Execute(&tpl, sInfo); err != nil {
  4544. return doc
  4545. }
  4546. return tpl.String()
  4547. }
  4548. func init() {
  4549. swag.Register(swag.Name, &s{})
  4550. }