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.

4115 lines
130 KiB

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