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.

3998 lines
122 KiB

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