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.

4170 lines
131 KiB

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