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.

4102 lines
129 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": "Model路径",
  2833. "type": "string"
  2834. }
  2835. }
  2836. },
  2837. "config.Detail": {
  2838. "type": "object",
  2839. "properties": {
  2840. "compareField": {
  2841. "type": "string"
  2842. },
  2843. "interval": {
  2844. "type": "string"
  2845. },
  2846. "tableName": {
  2847. "type": "string"
  2848. }
  2849. }
  2850. },
  2851. "config.Email": {
  2852. "type": "object",
  2853. "properties": {
  2854. "from": {
  2855. "description": "收件人",
  2856. "type": "string"
  2857. },
  2858. "host": {
  2859. "description": "服务器地址",
  2860. "type": "string"
  2861. },
  2862. "isSSL": {
  2863. "description": "是否SSL",
  2864. "type": "boolean"
  2865. },
  2866. "nickname": {
  2867. "description": "昵称",
  2868. "type": "string"
  2869. },
  2870. "port": {
  2871. "description": "端口",
  2872. "type": "integer"
  2873. },
  2874. "secret": {
  2875. "description": "密钥",
  2876. "type": "string"
  2877. },
  2878. "to": {
  2879. "description": "收件人",
  2880. "type": "string"
  2881. }
  2882. }
  2883. },
  2884. "config.Excel": {
  2885. "type": "object",
  2886. "properties": {
  2887. "dir": {
  2888. "type": "string"
  2889. }
  2890. }
  2891. },
  2892. "config.JWT": {
  2893. "type": "object",
  2894. "properties": {
  2895. "bufferTime": {
  2896. "description": "缓冲时间",
  2897. "type": "integer"
  2898. },
  2899. "expiresTime": {
  2900. "description": "过期时间",
  2901. "type": "integer"
  2902. },
  2903. "signingKey": {
  2904. "description": "jwt签名",
  2905. "type": "string"
  2906. }
  2907. }
  2908. },
  2909. "config.Local": {
  2910. "type": "object",
  2911. "properties": {
  2912. "path": {
  2913. "description": "本地文件路径",
  2914. "type": "string"
  2915. }
  2916. }
  2917. },
  2918. "config.Mysql": {
  2919. "type": "object",
  2920. "properties": {
  2921. "config": {
  2922. "type": "string"
  2923. },
  2924. "dbname": {
  2925. "description": "数据库名",
  2926. "type": "string"
  2927. },
  2928. "logMode": {
  2929. "type": "boolean"
  2930. },
  2931. "logZap": {
  2932. "type": "string"
  2933. },
  2934. "maxIdleConns": {
  2935. "type": "integer"
  2936. },
  2937. "maxOpenConns": {
  2938. "type": "integer"
  2939. },
  2940. "password": {
  2941. "description": "数据库密码",
  2942. "type": "string"
  2943. },
  2944. "path": {
  2945. "description": "服务器地址:端口",
  2946. "type": "string"
  2947. },
  2948. "username": {
  2949. "description": "数据库用户名",
  2950. "type": "string"
  2951. }
  2952. }
  2953. },
  2954. "config.Qiniu": {
  2955. "type": "object",
  2956. "properties": {
  2957. "accessKey": {
  2958. "description": "accessKey",
  2959. "type": "string"
  2960. },
  2961. "bucket": {
  2962. "description": "空间名称",
  2963. "type": "string"
  2964. },
  2965. "imgPath": {
  2966. "description": "CDN加速域名",
  2967. "type": "string"
  2968. },
  2969. "secretKey": {
  2970. "description": "secretKey",
  2971. "type": "string"
  2972. },
  2973. "useCdnDomains": {
  2974. "description": "上传是否使用CDN上传加速",
  2975. "type": "boolean"
  2976. },
  2977. "useHttps": {
  2978. "description": "是否使用https",
  2979. "type": "boolean"
  2980. },
  2981. "zone": {
  2982. "description": "存储区域",
  2983. "type": "string"
  2984. }
  2985. }
  2986. },
  2987. "config.Redis": {
  2988. "type": "object",
  2989. "properties": {
  2990. "addr": {
  2991. "description": "服务器地址:端口",
  2992. "type": "string"
  2993. },
  2994. "db": {
  2995. "type": "integer"
  2996. },
  2997. "password": {
  2998. "description": "密码",
  2999. "type": "string"
  3000. }
  3001. }
  3002. },
  3003. "config.Server": {
  3004. "type": "object",
  3005. "properties": {
  3006. "aliyunOSS": {
  3007. "$ref": "#/definitions/config.AliyunOSS"
  3008. },
  3009. "autoCode": {
  3010. "description": "auto",
  3011. "$ref": "#/definitions/config.Autocode"
  3012. },
  3013. "captcha": {
  3014. "$ref": "#/definitions/config.Captcha"
  3015. },
  3016. "casbin": {
  3017. "$ref": "#/definitions/config.Casbin"
  3018. },
  3019. "email": {
  3020. "$ref": "#/definitions/config.Email"
  3021. },
  3022. "excel": {
  3023. "$ref": "#/definitions/config.Excel"
  3024. },
  3025. "jwt": {
  3026. "$ref": "#/definitions/config.JWT"
  3027. },
  3028. "local": {
  3029. "description": "oss",
  3030. "$ref": "#/definitions/config.Local"
  3031. },
  3032. "mysql": {
  3033. "description": "gorm",
  3034. "$ref": "#/definitions/config.Mysql"
  3035. },
  3036. "qiniu": {
  3037. "$ref": "#/definitions/config.Qiniu"
  3038. },
  3039. "redis": {
  3040. "$ref": "#/definitions/config.Redis"
  3041. },
  3042. "system": {
  3043. "$ref": "#/definitions/config.System"
  3044. },
  3045. "tencentCOS": {
  3046. "$ref": "#/definitions/config.TencentCOS"
  3047. },
  3048. "timer": {
  3049. "$ref": "#/definitions/config.Timer"
  3050. },
  3051. "zap": {
  3052. "$ref": "#/definitions/config.Zap"
  3053. }
  3054. }
  3055. },
  3056. "config.System": {
  3057. "type": "object",
  3058. "properties": {
  3059. "addr": {
  3060. "description": "端口值",
  3061. "type": "integer"
  3062. },
  3063. "dbType": {
  3064. "description": "数据库类型:mysql(默认)|sqlite|sqlserver|postgresql",
  3065. "type": "string"
  3066. },
  3067. "env": {
  3068. "description": "环境值",
  3069. "type": "string"
  3070. },
  3071. "ossType": {
  3072. "description": "Oss类型",
  3073. "type": "string"
  3074. },
  3075. "useMultipoint": {
  3076. "description": "多点登录拦截",
  3077. "type": "boolean"
  3078. }
  3079. }
  3080. },
  3081. "config.TencentCOS": {
  3082. "type": "object",
  3083. "properties": {
  3084. "baseURL": {
  3085. "type": "string"
  3086. },
  3087. "bucket": {
  3088. "type": "string"
  3089. },
  3090. "pathPrefix": {
  3091. "type": "string"
  3092. },
  3093. "region": {
  3094. "type": "string"
  3095. },
  3096. "secretID": {
  3097. "type": "string"
  3098. },
  3099. "secretKey": {
  3100. "type": "string"
  3101. }
  3102. }
  3103. },
  3104. "config.Timer": {
  3105. "type": "object",
  3106. "properties": {
  3107. "detail": {
  3108. "type": "array",
  3109. "items": {
  3110. "$ref": "#/definitions/config.Detail"
  3111. }
  3112. },
  3113. "spec": {
  3114. "type": "string"
  3115. },
  3116. "start": {
  3117. "type": "boolean"
  3118. }
  3119. }
  3120. },
  3121. "config.Zap": {
  3122. "type": "object",
  3123. "properties": {
  3124. "director": {
  3125. "description": "日志文件夹",
  3126. "type": "string"
  3127. },
  3128. "encodeLevel": {
  3129. "description": "编码级",
  3130. "type": "string"
  3131. },
  3132. "format": {
  3133. "description": "输出",
  3134. "type": "string"
  3135. },
  3136. "level": {
  3137. "description": "级别",
  3138. "type": "string"
  3139. },
  3140. "linkName": {
  3141. "description": "软链接名称",
  3142. "type": "string"
  3143. },
  3144. "logInConsole": {
  3145. "description": "输出控制台",
  3146. "type": "boolean"
  3147. },
  3148. "prefix": {
  3149. "description": "日志前缀",
  3150. "type": "string"
  3151. },
  3152. "showLine": {
  3153. "description": "显示行",
  3154. "type": "boolean"
  3155. },
  3156. "stacktraceKey": {
  3157. "description": "栈名",
  3158. "type": "string"
  3159. }
  3160. }
  3161. },
  3162. "model.AutoCodeStruct": {
  3163. "type": "object",
  3164. "properties": {
  3165. "abbreviation": {
  3166. "description": "Struct简称",
  3167. "type": "string"
  3168. },
  3169. "autoCreateApiToSql": {
  3170. "description": "是否自动创建api",
  3171. "type": "boolean"
  3172. },
  3173. "autoMoveFile": {
  3174. "description": "是否自动移动文件",
  3175. "type": "boolean"
  3176. },
  3177. "description": {
  3178. "description": "Struct中文名称",
  3179. "type": "string"
  3180. },
  3181. "fields": {
  3182. "type": "array",
  3183. "items": {
  3184. "$ref": "#/definitions/model.Field"
  3185. }
  3186. },
  3187. "packageName": {
  3188. "description": "文件名称",
  3189. "type": "string"
  3190. },
  3191. "structName": {
  3192. "description": "Struct名称",
  3193. "type": "string"
  3194. },
  3195. "tableName": {
  3196. "description": "表名",
  3197. "type": "string"
  3198. }
  3199. }
  3200. },
  3201. "model.ExaCustomer": {
  3202. "type": "object",
  3203. "properties": {
  3204. "createdAt": {
  3205. "description": "创建时间",
  3206. "type": "string"
  3207. },
  3208. "customerName": {
  3209. "description": "客户名",
  3210. "type": "string"
  3211. },
  3212. "customerPhoneData": {
  3213. "description": "客户手机号",
  3214. "type": "string"
  3215. },
  3216. "id": {
  3217. "description": "主键ID",
  3218. "type": "integer"
  3219. },
  3220. "sysUser": {
  3221. "description": "管理详情",
  3222. "$ref": "#/definitions/model.SysUser"
  3223. },
  3224. "sysUserAuthorityID": {
  3225. "description": "管理角色ID",
  3226. "type": "string"
  3227. },
  3228. "sysUserId": {
  3229. "description": "管理ID",
  3230. "type": "integer"
  3231. },
  3232. "updatedAt": {
  3233. "description": "更新时间",
  3234. "type": "string"
  3235. }
  3236. }
  3237. },
  3238. "model.ExaFileUploadAndDownload": {
  3239. "type": "object",
  3240. "properties": {
  3241. "createdAt": {
  3242. "description": "创建时间",
  3243. "type": "string"
  3244. },
  3245. "id": {
  3246. "description": "主键ID",
  3247. "type": "integer"
  3248. },
  3249. "key": {
  3250. "description": "编号",
  3251. "type": "string"
  3252. },
  3253. "name": {
  3254. "description": "文件名",
  3255. "type": "string"
  3256. },
  3257. "tag": {
  3258. "description": "文件标签",
  3259. "type": "string"
  3260. },
  3261. "updatedAt": {
  3262. "description": "更新时间",
  3263. "type": "string"
  3264. },
  3265. "url": {
  3266. "description": "文件地址",
  3267. "type": "string"
  3268. }
  3269. }
  3270. },
  3271. "model.ExcelInfo": {
  3272. "type": "object",
  3273. "properties": {
  3274. "fileName": {
  3275. "description": "文件名",
  3276. "type": "string"
  3277. },
  3278. "infoList": {
  3279. "type": "array",
  3280. "items": {
  3281. "$ref": "#/definitions/model.SysBaseMenu"
  3282. }
  3283. }
  3284. }
  3285. },
  3286. "model.Field": {
  3287. "type": "object",
  3288. "properties": {
  3289. "columnName": {
  3290. "description": "数据库字段",
  3291. "type": "string"
  3292. },
  3293. "comment": {
  3294. "description": "数据库字段描述",
  3295. "type": "string"
  3296. },
  3297. "dataType": {
  3298. "description": "数据库字段类型",
  3299. "type": "string"
  3300. },
  3301. "dataTypeLong": {
  3302. "description": "数据库字段长度",
  3303. "type": "string"
  3304. },
  3305. "dictType": {
  3306. "description": "字典",
  3307. "type": "string"
  3308. },
  3309. "fieldDesc": {
  3310. "description": "中文名",
  3311. "type": "string"
  3312. },
  3313. "fieldJson": {
  3314. "description": "FieldJson",
  3315. "type": "string"
  3316. },
  3317. "fieldName": {
  3318. "description": "Field名",
  3319. "type": "string"
  3320. },
  3321. "fieldSearchType": {
  3322. "description": "搜索条件",
  3323. "type": "string"
  3324. },
  3325. "fieldType": {
  3326. "description": "Field数据类型",
  3327. "type": "string"
  3328. }
  3329. }
  3330. },
  3331. "model.SysApi": {
  3332. "type": "object",
  3333. "properties": {
  3334. "apiGroup": {
  3335. "description": "api组",
  3336. "type": "string"
  3337. },
  3338. "createdAt": {
  3339. "description": "创建时间",
  3340. "type": "string"
  3341. },
  3342. "description": {
  3343. "description": "api中文描述",
  3344. "type": "string"
  3345. },
  3346. "id": {
  3347. "description": "主键ID",
  3348. "type": "integer"
  3349. },
  3350. "method": {
  3351. "description": "方法:创建POST(默认)|查看GET|更新PUT|删除DELETE",
  3352. "type": "string"
  3353. },
  3354. "path": {
  3355. "description": "api路径",
  3356. "type": "string"
  3357. },
  3358. "updatedAt": {
  3359. "description": "更新时间",
  3360. "type": "string"
  3361. }
  3362. }
  3363. },
  3364. "model.SysAuthority": {
  3365. "type": "object",
  3366. "properties": {
  3367. "authorityId": {
  3368. "description": "角色ID",
  3369. "type": "string"
  3370. },
  3371. "authorityName": {
  3372. "description": "角色名",
  3373. "type": "string"
  3374. },
  3375. "children": {
  3376. "type": "array",
  3377. "items": {
  3378. "$ref": "#/definitions/model.SysAuthority"
  3379. }
  3380. },
  3381. "createdAt": {
  3382. "type": "string"
  3383. },
  3384. "dataAuthorityId": {
  3385. "type": "array",
  3386. "items": {
  3387. "$ref": "#/definitions/model.SysAuthority"
  3388. }
  3389. },
  3390. "defaultRouter": {
  3391. "description": "默认菜单(默认dashboard)",
  3392. "type": "string"
  3393. },
  3394. "deletedAt": {
  3395. "type": "string"
  3396. },
  3397. "menus": {
  3398. "type": "array",
  3399. "items": {
  3400. "$ref": "#/definitions/model.SysBaseMenu"
  3401. }
  3402. },
  3403. "parentId": {
  3404. "description": "父角色ID",
  3405. "type": "string"
  3406. },
  3407. "updatedAt": {
  3408. "type": "string"
  3409. }
  3410. }
  3411. },
  3412. "model.SysBaseMenu": {
  3413. "type": "object",
  3414. "properties": {
  3415. "authoritys": {
  3416. "type": "array",
  3417. "items": {
  3418. "$ref": "#/definitions/model.SysAuthority"
  3419. }
  3420. },
  3421. "children": {
  3422. "type": "array",
  3423. "items": {
  3424. "$ref": "#/definitions/model.SysBaseMenu"
  3425. }
  3426. },
  3427. "closeTab": {
  3428. "description": "自动关闭tab",
  3429. "type": "boolean"
  3430. },
  3431. "component": {
  3432. "description": "对应前端文件路径",
  3433. "type": "string"
  3434. },
  3435. "createdAt": {
  3436. "description": "创建时间",
  3437. "type": "string"
  3438. },
  3439. "defaultMenu": {
  3440. "description": "是否是基础路由(开发中)",
  3441. "type": "boolean"
  3442. },
  3443. "hidden": {
  3444. "description": "是否在列表隐藏",
  3445. "type": "boolean"
  3446. },
  3447. "icon": {
  3448. "description": "菜单图标",
  3449. "type": "string"
  3450. },
  3451. "id": {
  3452. "description": "主键ID",
  3453. "type": "integer"
  3454. },
  3455. "keepAlive": {
  3456. "description": "是否缓存",
  3457. "type": "boolean"
  3458. },
  3459. "name": {
  3460. "description": "路由name",
  3461. "type": "string"
  3462. },
  3463. "parameters": {
  3464. "type": "array",
  3465. "items": {
  3466. "$ref": "#/definitions/model.SysBaseMenuParameter"
  3467. }
  3468. },
  3469. "parentId": {
  3470. "description": "父菜单ID",
  3471. "type": "string"
  3472. },
  3473. "path": {
  3474. "description": "路由path",
  3475. "type": "string"
  3476. },
  3477. "sort": {
  3478. "description": "排序标记",
  3479. "type": "integer"
  3480. },
  3481. "title": {
  3482. "description": "菜单名",
  3483. "type": "string"
  3484. },
  3485. "updatedAt": {
  3486. "description": "更新时间",
  3487. "type": "string"
  3488. }
  3489. }
  3490. },
  3491. "model.SysBaseMenuParameter": {
  3492. "type": "object",
  3493. "properties": {
  3494. "createdAt": {
  3495. "description": "创建时间",
  3496. "type": "string"
  3497. },
  3498. "id": {
  3499. "description": "主键ID",
  3500. "type": "integer"
  3501. },
  3502. "key": {
  3503. "description": "地址栏携带参数的key",
  3504. "type": "string"
  3505. },
  3506. "sysBaseMenuID": {
  3507. "type": "integer"
  3508. },
  3509. "type": {
  3510. "description": "地址栏携带参数为params还是query",
  3511. "type": "string"
  3512. },
  3513. "updatedAt": {
  3514. "description": "更新时间",
  3515. "type": "string"
  3516. },
  3517. "value": {
  3518. "description": "地址栏携带参数的值",
  3519. "type": "string"
  3520. }
  3521. }
  3522. },
  3523. "model.SysDictionary": {
  3524. "type": "object",
  3525. "properties": {
  3526. "createdAt": {
  3527. "description": "创建时间",
  3528. "type": "string"
  3529. },
  3530. "desc": {
  3531. "description": "描述",
  3532. "type": "string"
  3533. },
  3534. "id": {
  3535. "description": "主键ID",
  3536. "type": "integer"
  3537. },
  3538. "name": {
  3539. "description": "字典名(中)",
  3540. "type": "string"
  3541. },
  3542. "status": {
  3543. "description": "状态",
  3544. "type": "boolean"
  3545. },
  3546. "sysDictionaryDetails": {
  3547. "type": "array",
  3548. "items": {
  3549. "$ref": "#/definitions/model.SysDictionaryDetail"
  3550. }
  3551. },
  3552. "type": {
  3553. "description": "字典名(英)",
  3554. "type": "string"
  3555. },
  3556. "updatedAt": {
  3557. "description": "更新时间",
  3558. "type": "string"
  3559. }
  3560. }
  3561. },
  3562. "model.SysDictionaryDetail": {
  3563. "type": "object",
  3564. "properties": {
  3565. "createdAt": {
  3566. "description": "创建时间",
  3567. "type": "string"
  3568. },
  3569. "id": {
  3570. "description": "主键ID",
  3571. "type": "integer"
  3572. },
  3573. "label": {
  3574. "description": "展示值",
  3575. "type": "string"
  3576. },
  3577. "sort": {
  3578. "description": "排序标记",
  3579. "type": "integer"
  3580. },
  3581. "status": {
  3582. "description": "启用状态",
  3583. "type": "boolean"
  3584. },
  3585. "sysDictionaryID": {
  3586. "description": "关联标记",
  3587. "type": "integer"
  3588. },
  3589. "updatedAt": {
  3590. "description": "更新时间",
  3591. "type": "string"
  3592. },
  3593. "value": {
  3594. "description": "字典值",
  3595. "type": "integer"
  3596. }
  3597. }
  3598. },
  3599. "model.SysOperationRecord": {
  3600. "type": "object",
  3601. "properties": {
  3602. "agent": {
  3603. "description": "代理",
  3604. "type": "string"
  3605. },
  3606. "body": {
  3607. "description": "请求Body",
  3608. "type": "string"
  3609. },
  3610. "createdAt": {
  3611. "description": "创建时间",
  3612. "type": "string"
  3613. },
  3614. "error_message": {
  3615. "description": "错误信息",
  3616. "type": "string"
  3617. },
  3618. "id": {
  3619. "description": "主键ID",
  3620. "type": "integer"
  3621. },
  3622. "ip": {
  3623. "description": "请求ip",
  3624. "type": "string"
  3625. },
  3626. "latency": {
  3627. "description": "延迟",
  3628. "type": "string"
  3629. },
  3630. "method": {
  3631. "description": "请求方法",
  3632. "type": "string"
  3633. },
  3634. "path": {
  3635. "description": "请求路径",
  3636. "type": "string"
  3637. },
  3638. "resp": {
  3639. "description": "响应Body",
  3640. "type": "string"
  3641. },
  3642. "status": {
  3643. "description": "请求状态",
  3644. "type": "integer"
  3645. },
  3646. "updatedAt": {
  3647. "description": "更新时间",
  3648. "type": "string"
  3649. },
  3650. "user": {
  3651. "$ref": "#/definitions/model.SysUser"
  3652. },
  3653. "user_id": {
  3654. "description": "用户id",
  3655. "type": "integer"
  3656. }
  3657. }
  3658. },
  3659. "model.SysUser": {
  3660. "type": "object",
  3661. "properties": {
  3662. "authority": {
  3663. "$ref": "#/definitions/model.SysAuthority"
  3664. },
  3665. "authorityId": {
  3666. "description": "用户角色ID",
  3667. "type": "string"
  3668. },
  3669. "createdAt": {
  3670. "description": "创建时间",
  3671. "type": "string"
  3672. },
  3673. "headerImg": {
  3674. "description": "用户头像",
  3675. "type": "string"
  3676. },
  3677. "id": {
  3678. "description": "主键ID",
  3679. "type": "integer"
  3680. },
  3681. "nickName": {
  3682. "description": "用户昵称\"",
  3683. "type": "string"
  3684. },
  3685. "updatedAt": {
  3686. "description": "更新时间",
  3687. "type": "string"
  3688. },
  3689. "userName": {
  3690. "description": "用户登录名",
  3691. "type": "string"
  3692. },
  3693. "uuid": {
  3694. "description": "用户UUID",
  3695. "type": "string"
  3696. }
  3697. }
  3698. },
  3699. "model.System": {
  3700. "type": "object",
  3701. "properties": {
  3702. "config": {
  3703. "$ref": "#/definitions/config.Server"
  3704. }
  3705. }
  3706. },
  3707. "request.AddMenuAuthorityInfo": {
  3708. "type": "object",
  3709. "properties": {
  3710. "authorityId": {
  3711. "description": "角色ID",
  3712. "type": "string"
  3713. },
  3714. "menus": {
  3715. "type": "array",
  3716. "items": {
  3717. "$ref": "#/definitions/model.SysBaseMenu"
  3718. }
  3719. }
  3720. }
  3721. },
  3722. "request.CasbinInReceive": {
  3723. "type": "object",
  3724. "properties": {
  3725. "authorityId": {
  3726. "description": "权限id",
  3727. "type": "string"
  3728. },
  3729. "casbinInfos": {
  3730. "type": "array",
  3731. "items": {
  3732. "$ref": "#/definitions/request.CasbinInfo"
  3733. }
  3734. }
  3735. }
  3736. },
  3737. "request.CasbinInfo": {
  3738. "type": "object",
  3739. "properties": {
  3740. "method": {
  3741. "description": "方法",
  3742. "type": "string"
  3743. },
  3744. "path": {
  3745. "description": "路径",
  3746. "type": "string"
  3747. }
  3748. }
  3749. },
  3750. "request.ChangePasswordStruct": {
  3751. "type": "object",
  3752. "properties": {
  3753. "newPassword": {
  3754. "description": "新密码",
  3755. "type": "string"
  3756. },
  3757. "password": {
  3758. "description": "密码",
  3759. "type": "string"
  3760. },
  3761. "username": {
  3762. "description": "用户名",
  3763. "type": "string"
  3764. }
  3765. }
  3766. },
  3767. "request.Empty": {
  3768. "type": "object"
  3769. },
  3770. "request.GetAuthorityId": {
  3771. "type": "object",
  3772. "properties": {
  3773. "authorityId": {
  3774. "description": "角色ID",
  3775. "type": "string"
  3776. }
  3777. }
  3778. },
  3779. "request.GetById": {
  3780. "type": "object",
  3781. "properties": {
  3782. "id": {
  3783. "description": "主键ID",
  3784. "type": "number"
  3785. }
  3786. }
  3787. },
  3788. "request.IdsReq": {
  3789. "type": "object",
  3790. "properties": {
  3791. "ids": {
  3792. "type": "array",
  3793. "items": {
  3794. "type": "integer"
  3795. }
  3796. }
  3797. }
  3798. },
  3799. "request.InitDB": {
  3800. "type": "object",
  3801. "required": [
  3802. "dbName",
  3803. "userName"
  3804. ],
  3805. "properties": {
  3806. "dbName": {
  3807. "description": "数据库名",
  3808. "type": "string"
  3809. },
  3810. "host": {
  3811. "description": "服务器地址",
  3812. "type": "string"
  3813. },
  3814. "password": {
  3815. "description": "数据库密码",
  3816. "type": "string"
  3817. },
  3818. "port": {
  3819. "description": "数据库连接端口",
  3820. "type": "string"
  3821. },
  3822. "userName": {
  3823. "description": "数据库用户名",
  3824. "type": "string"
  3825. }
  3826. }
  3827. },
  3828. "request.Login": {
  3829. "type": "object",
  3830. "properties": {
  3831. "captcha": {
  3832. "description": "验证码",
  3833. "type": "string"
  3834. },
  3835. "captchaId": {
  3836. "description": "验证码ID",
  3837. "type": "string"
  3838. },
  3839. "password": {
  3840. "description": "密码",
  3841. "type": "string"
  3842. },
  3843. "username": {
  3844. "description": "用户名",
  3845. "type": "string"
  3846. }
  3847. }
  3848. },
  3849. "request.PageInfo": {
  3850. "type": "object",
  3851. "properties": {
  3852. "page": {
  3853. "description": "页码",
  3854. "type": "integer"
  3855. },
  3856. "pageSize": {
  3857. "description": "每页大小",
  3858. "type": "integer"
  3859. }
  3860. }
  3861. },
  3862. "request.SearchApiParams": {
  3863. "type": "object",
  3864. "properties": {
  3865. "apiGroup": {
  3866. "description": "api组",
  3867. "type": "string"
  3868. },
  3869. "createdAt": {
  3870. "description": "创建时间",
  3871. "type": "string"
  3872. },
  3873. "desc": {
  3874. "description": "排序方式:升序false(默认)|降序true",
  3875. "type": "boolean"
  3876. },
  3877. "description": {
  3878. "description": "api中文描述",
  3879. "type": "string"
  3880. },
  3881. "id": {
  3882. "description": "主键ID",
  3883. "type": "integer"
  3884. },
  3885. "method": {
  3886. "description": "方法:创建POST(默认)|查看GET|更新PUT|删除DELETE",
  3887. "type": "string"
  3888. },
  3889. "orderKey": {
  3890. "description": "排序",
  3891. "type": "string"
  3892. },
  3893. "page": {
  3894. "description": "页码",
  3895. "type": "integer"
  3896. },
  3897. "pageSize": {
  3898. "description": "每页大小",
  3899. "type": "integer"
  3900. },
  3901. "path": {
  3902. "description": "api路径",
  3903. "type": "string"
  3904. },
  3905. "updatedAt": {
  3906. "description": "更新时间",
  3907. "type": "string"
  3908. }
  3909. }
  3910. },
  3911. "request.SetUserAuth": {
  3912. "type": "object",
  3913. "properties": {
  3914. "authorityId": {
  3915. "description": "角色ID",
  3916. "type": "string"
  3917. },
  3918. "uuid": {
  3919. "description": "用户UUID",
  3920. "type": "string"
  3921. }
  3922. }
  3923. },
  3924. "request.SysDictionaryDetailSearch": {
  3925. "type": "object",
  3926. "properties": {
  3927. "createdAt": {
  3928. "description": "创建时间",
  3929. "type": "string"
  3930. },
  3931. "id": {
  3932. "description": "主键ID",
  3933. "type": "integer"
  3934. },
  3935. "label": {
  3936. "description": "展示值",
  3937. "type": "string"
  3938. },
  3939. "page": {
  3940. "description": "页码",
  3941. "type": "integer"
  3942. },
  3943. "pageSize": {
  3944. "description": "每页大小",
  3945. "type": "integer"
  3946. },
  3947. "sort": {
  3948. "description": "排序标记",
  3949. "type": "integer"
  3950. },
  3951. "status": {
  3952. "description": "启用状态",
  3953. "type": "boolean"
  3954. },
  3955. "sysDictionaryID": {
  3956. "description": "关联标记",
  3957. "type": "integer"
  3958. },
  3959. "updatedAt": {
  3960. "description": "更新时间",
  3961. "type": "string"
  3962. },
  3963. "value": {
  3964. "description": "字典值",
  3965. "type": "integer"
  3966. }
  3967. }
  3968. },
  3969. "request.SysDictionarySearch": {
  3970. "type": "object",
  3971. "properties": {
  3972. "createdAt": {
  3973. "description": "创建时间",
  3974. "type": "string"
  3975. },
  3976. "desc": {
  3977. "description": "描述",
  3978. "type": "string"
  3979. },
  3980. "id": {
  3981. "description": "主键ID",
  3982. "type": "integer"
  3983. },
  3984. "name": {
  3985. "description": "字典名(中)",
  3986. "type": "string"
  3987. },
  3988. "page": {
  3989. "description": "页码",
  3990. "type": "integer"
  3991. },
  3992. "pageSize": {
  3993. "description": "每页大小",
  3994. "type": "integer"
  3995. },
  3996. "status": {
  3997. "description": "状态",
  3998. "type": "boolean"
  3999. },
  4000. "sysDictionaryDetails": {
  4001. "type": "array",
  4002. "items": {
  4003. "$ref": "#/definitions/model.SysDictionaryDetail"
  4004. }
  4005. },
  4006. "type": {
  4007. "description": "字典名(英)",
  4008. "type": "string"
  4009. },
  4010. "updatedAt": {
  4011. "description": "更新时间",
  4012. "type": "string"
  4013. }
  4014. }
  4015. },
  4016. "request.SysOperationRecordSearch": {
  4017. "type": "object",
  4018. "properties": {
  4019. "agent": {
  4020. "description": "代理",
  4021. "type": "string"
  4022. },
  4023. "body": {
  4024. "description": "请求Body",
  4025. "type": "string"
  4026. },
  4027. "createdAt": {
  4028. "description": "创建时间",
  4029. "type": "string"
  4030. },
  4031. "error_message": {
  4032. "description": "错误信息",
  4033. "type": "string"
  4034. },
  4035. "id": {
  4036. "description": "主键ID",
  4037. "type": "integer"
  4038. },
  4039. "ip": {
  4040. "description": "请求ip",
  4041. "type": "string"
  4042. },
  4043. "latency": {
  4044. "description": "延迟",
  4045. "type": "string"
  4046. },
  4047. "method": {
  4048. "description": "请求方法",
  4049. "type": "string"
  4050. },
  4051. "page": {
  4052. "description": "页码",
  4053. "type": "integer"
  4054. },
  4055. "pageSize": {
  4056. "description": "每页大小",
  4057. "type": "integer"
  4058. },
  4059. "path": {
  4060. "description": "请求路径",
  4061. "type": "string"
  4062. },
  4063. "resp": {
  4064. "description": "响应Body",
  4065. "type": "string"
  4066. },
  4067. "status": {
  4068. "description": "请求状态",
  4069. "type": "integer"
  4070. },
  4071. "updatedAt": {
  4072. "description": "更新时间",
  4073. "type": "string"
  4074. },
  4075. "user": {
  4076. "$ref": "#/definitions/model.SysUser"
  4077. },
  4078. "user_id": {
  4079. "description": "用户id",
  4080. "type": "integer"
  4081. }
  4082. }
  4083. },
  4084. "response.SysAuthorityCopyResponse": {
  4085. "type": "object",
  4086. "properties": {
  4087. "authority": {
  4088. "$ref": "#/definitions/model.SysAuthority"
  4089. },
  4090. "oldAuthorityId": {
  4091. "type": "string"
  4092. }
  4093. }
  4094. }
  4095. },
  4096. "securityDefinitions": {
  4097. "ApiKeyAuth": {
  4098. "type": "apiKey",
  4099. "name": "x-token",
  4100. "in": "header"
  4101. }
  4102. }
  4103. }