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.

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