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.

4930 lines
156 KiB

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