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.

4635 lines
146 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
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
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
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
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
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
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
3 years ago
4 years ago
3 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
3 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
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
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
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
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
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
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
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
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
3 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
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. "description": "用id查询AutoCodeExample",
  1013. "name": "data",
  1014. "in": "body",
  1015. "required": true,
  1016. "schema": {
  1017. "$ref": "#/definitions/autocode.AutoCodeExample"
  1018. }
  1019. }
  1020. ],
  1021. "responses": {
  1022. "200": {
  1023. "description": "{\"success\":true,\"data\":{},\"msg\":\"查询成功\"}",
  1024. "schema": {
  1025. "type": "string"
  1026. }
  1027. }
  1028. }
  1029. }
  1030. },
  1031. "/autoCodeExample/getAutoCodeExampleList": {
  1032. "get": {
  1033. "security": [
  1034. {
  1035. "ApiKeyAuth": []
  1036. }
  1037. ],
  1038. "consumes": [
  1039. "application/json"
  1040. ],
  1041. "produces": [
  1042. "application/json"
  1043. ],
  1044. "tags": [
  1045. "AutoCodeExample"
  1046. ],
  1047. "summary": "分页获取AutoCodeExample列表",
  1048. "parameters": [
  1049. {
  1050. "description": "页码, 每页大小, 搜索条件",
  1051. "name": "data",
  1052. "in": "body",
  1053. "required": true,
  1054. "schema": {
  1055. "$ref": "#/definitions/request.AutoCodeExampleSearch"
  1056. }
  1057. }
  1058. ],
  1059. "responses": {
  1060. "200": {
  1061. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  1062. "schema": {
  1063. "type": "string"
  1064. }
  1065. }
  1066. }
  1067. }
  1068. },
  1069. "/autoCodeExample/updateAutoCodeExample": {
  1070. "put": {
  1071. "security": [
  1072. {
  1073. "ApiKeyAuth": []
  1074. }
  1075. ],
  1076. "consumes": [
  1077. "application/json"
  1078. ],
  1079. "produces": [
  1080. "application/json"
  1081. ],
  1082. "tags": [
  1083. "AutoCodeExample"
  1084. ],
  1085. "summary": "更新AutoCodeExample",
  1086. "parameters": [
  1087. {
  1088. "description": "更新AutoCodeExample",
  1089. "name": "data",
  1090. "in": "body",
  1091. "required": true,
  1092. "schema": {
  1093. "$ref": "#/definitions/autocode.AutoCodeExample"
  1094. }
  1095. }
  1096. ],
  1097. "responses": {
  1098. "200": {
  1099. "description": "{\"success\":true,\"data\":{},\"msg\":\"更新成功\"}",
  1100. "schema": {
  1101. "type": "string"
  1102. }
  1103. }
  1104. }
  1105. }
  1106. },
  1107. "/base/captcha": {
  1108. "post": {
  1109. "security": [
  1110. {
  1111. "ApiKeyAuth": []
  1112. }
  1113. ],
  1114. "consumes": [
  1115. "application/json"
  1116. ],
  1117. "produces": [
  1118. "application/json"
  1119. ],
  1120. "tags": [
  1121. "Base"
  1122. ],
  1123. "summary": "生成验证码",
  1124. "responses": {
  1125. "200": {
  1126. "description": "{\"success\":true,\"data\":{},\"msg\":\"验证码获取成功\"}",
  1127. "schema": {
  1128. "type": "string"
  1129. }
  1130. }
  1131. }
  1132. }
  1133. },
  1134. "/base/login": {
  1135. "post": {
  1136. "produces": [
  1137. "application/json"
  1138. ],
  1139. "tags": [
  1140. "Base"
  1141. ],
  1142. "summary": "用户登录",
  1143. "parameters": [
  1144. {
  1145. "description": "用户名, 密码, 验证码",
  1146. "name": "data",
  1147. "in": "body",
  1148. "required": true,
  1149. "schema": {
  1150. "$ref": "#/definitions/request.Login"
  1151. }
  1152. }
  1153. ],
  1154. "responses": {
  1155. "200": {
  1156. "description": "{\"success\":true,\"data\":{},\"msg\":\"登陆成功\"}",
  1157. "schema": {
  1158. "type": "string"
  1159. }
  1160. }
  1161. }
  1162. }
  1163. },
  1164. "/casbin/UpdateCasbin": {
  1165. "post": {
  1166. "security": [
  1167. {
  1168. "ApiKeyAuth": []
  1169. }
  1170. ],
  1171. "consumes": [
  1172. "application/json"
  1173. ],
  1174. "produces": [
  1175. "application/json"
  1176. ],
  1177. "tags": [
  1178. "Casbin"
  1179. ],
  1180. "summary": "更新角色api权限",
  1181. "parameters": [
  1182. {
  1183. "description": "权限id, 权限模型列表",
  1184. "name": "data",
  1185. "in": "body",
  1186. "required": true,
  1187. "schema": {
  1188. "$ref": "#/definitions/request.CasbinInReceive"
  1189. }
  1190. }
  1191. ],
  1192. "responses": {
  1193. "200": {
  1194. "description": "{\"success\":true,\"data\":{},\"msg\":\"更新成功\"}",
  1195. "schema": {
  1196. "type": "string"
  1197. }
  1198. }
  1199. }
  1200. }
  1201. },
  1202. "/casbin/getPolicyPathByAuthorityId": {
  1203. "post": {
  1204. "security": [
  1205. {
  1206. "ApiKeyAuth": []
  1207. }
  1208. ],
  1209. "consumes": [
  1210. "application/json"
  1211. ],
  1212. "produces": [
  1213. "application/json"
  1214. ],
  1215. "tags": [
  1216. "Casbin"
  1217. ],
  1218. "summary": "获取权限列表",
  1219. "parameters": [
  1220. {
  1221. "description": "权限id, 权限模型列表",
  1222. "name": "data",
  1223. "in": "body",
  1224. "required": true,
  1225. "schema": {
  1226. "$ref": "#/definitions/request.CasbinInReceive"
  1227. }
  1228. }
  1229. ],
  1230. "responses": {
  1231. "200": {
  1232. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  1233. "schema": {
  1234. "type": "string"
  1235. }
  1236. }
  1237. }
  1238. }
  1239. },
  1240. "/customer/customer": {
  1241. "get": {
  1242. "security": [
  1243. {
  1244. "ApiKeyAuth": []
  1245. }
  1246. ],
  1247. "consumes": [
  1248. "application/json"
  1249. ],
  1250. "produces": [
  1251. "application/json"
  1252. ],
  1253. "tags": [
  1254. "ExaCustomer"
  1255. ],
  1256. "summary": "获取单一客户信息",
  1257. "parameters": [
  1258. {
  1259. "description": "客户ID",
  1260. "name": "data",
  1261. "in": "body",
  1262. "required": true,
  1263. "schema": {
  1264. "$ref": "#/definitions/example.ExaCustomer"
  1265. }
  1266. }
  1267. ],
  1268. "responses": {
  1269. "200": {
  1270. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  1271. "schema": {
  1272. "type": "string"
  1273. }
  1274. }
  1275. }
  1276. },
  1277. "put": {
  1278. "security": [
  1279. {
  1280. "ApiKeyAuth": []
  1281. }
  1282. ],
  1283. "consumes": [
  1284. "application/json"
  1285. ],
  1286. "produces": [
  1287. "application/json"
  1288. ],
  1289. "tags": [
  1290. "ExaCustomer"
  1291. ],
  1292. "summary": "更新客户信息",
  1293. "parameters": [
  1294. {
  1295. "description": "客户ID, 客户信息",
  1296. "name": "data",
  1297. "in": "body",
  1298. "required": true,
  1299. "schema": {
  1300. "$ref": "#/definitions/example.ExaCustomer"
  1301. }
  1302. }
  1303. ],
  1304. "responses": {
  1305. "200": {
  1306. "description": "{\"success\":true,\"data\":{},\"msg\":\"更新成功\"}",
  1307. "schema": {
  1308. "type": "string"
  1309. }
  1310. }
  1311. }
  1312. },
  1313. "post": {
  1314. "security": [
  1315. {
  1316. "ApiKeyAuth": []
  1317. }
  1318. ],
  1319. "consumes": [
  1320. "application/json"
  1321. ],
  1322. "produces": [
  1323. "application/json"
  1324. ],
  1325. "tags": [
  1326. "ExaCustomer"
  1327. ],
  1328. "summary": "创建客户",
  1329. "parameters": [
  1330. {
  1331. "description": "客户用户名, 客户手机号码",
  1332. "name": "data",
  1333. "in": "body",
  1334. "required": true,
  1335. "schema": {
  1336. "$ref": "#/definitions/example.ExaCustomer"
  1337. }
  1338. }
  1339. ],
  1340. "responses": {
  1341. "200": {
  1342. "description": "{\"success\":true,\"data\":{},\"msg\":\"创建成功\"}",
  1343. "schema": {
  1344. "type": "string"
  1345. }
  1346. }
  1347. }
  1348. },
  1349. "delete": {
  1350. "security": [
  1351. {
  1352. "ApiKeyAuth": []
  1353. }
  1354. ],
  1355. "consumes": [
  1356. "application/json"
  1357. ],
  1358. "produces": [
  1359. "application/json"
  1360. ],
  1361. "tags": [
  1362. "ExaCustomer"
  1363. ],
  1364. "summary": "删除客户",
  1365. "parameters": [
  1366. {
  1367. "description": "客户ID",
  1368. "name": "data",
  1369. "in": "body",
  1370. "required": true,
  1371. "schema": {
  1372. "$ref": "#/definitions/example.ExaCustomer"
  1373. }
  1374. }
  1375. ],
  1376. "responses": {
  1377. "200": {
  1378. "description": "{\"success\":true,\"data\":{},\"msg\":\"删除成功\"}",
  1379. "schema": {
  1380. "type": "string"
  1381. }
  1382. }
  1383. }
  1384. }
  1385. },
  1386. "/customer/customerList": {
  1387. "get": {
  1388. "security": [
  1389. {
  1390. "ApiKeyAuth": []
  1391. }
  1392. ],
  1393. "consumes": [
  1394. "application/json"
  1395. ],
  1396. "produces": [
  1397. "application/json"
  1398. ],
  1399. "tags": [
  1400. "ExaCustomer"
  1401. ],
  1402. "summary": "分页获取权限客户列表",
  1403. "parameters": [
  1404. {
  1405. "description": "页码, 每页大小",
  1406. "name": "data",
  1407. "in": "body",
  1408. "required": true,
  1409. "schema": {
  1410. "$ref": "#/definitions/request.PageInfo"
  1411. }
  1412. }
  1413. ],
  1414. "responses": {
  1415. "200": {
  1416. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  1417. "schema": {
  1418. "type": "string"
  1419. }
  1420. }
  1421. }
  1422. }
  1423. },
  1424. "/email/emailTest": {
  1425. "post": {
  1426. "security": [
  1427. {
  1428. "ApiKeyAuth": []
  1429. }
  1430. ],
  1431. "produces": [
  1432. "application/json"
  1433. ],
  1434. "tags": [
  1435. "System"
  1436. ],
  1437. "summary": "发送测试邮件",
  1438. "responses": {
  1439. "200": {
  1440. "description": "{\"success\":true,\"data\":{},\"msg\":\"发送成功\"}",
  1441. "schema": {
  1442. "type": "string"
  1443. }
  1444. }
  1445. }
  1446. }
  1447. },
  1448. "/excel/downloadTemplate": {
  1449. "get": {
  1450. "security": [
  1451. {
  1452. "ApiKeyAuth": []
  1453. }
  1454. ],
  1455. "consumes": [
  1456. "multipart/form-data"
  1457. ],
  1458. "produces": [
  1459. "application/json"
  1460. ],
  1461. "tags": [
  1462. "excel"
  1463. ],
  1464. "summary": "下载模板",
  1465. "parameters": [
  1466. {
  1467. "type": "string",
  1468. "description": "模板名称",
  1469. "name": "fileName",
  1470. "in": "query",
  1471. "required": true
  1472. }
  1473. ],
  1474. "responses": {
  1475. "200": {
  1476. "description": ""
  1477. }
  1478. }
  1479. }
  1480. },
  1481. "/excel/exportExcel": {
  1482. "post": {
  1483. "security": [
  1484. {
  1485. "ApiKeyAuth": []
  1486. }
  1487. ],
  1488. "consumes": [
  1489. "application/json"
  1490. ],
  1491. "produces": [
  1492. "application/octet-stream"
  1493. ],
  1494. "tags": [
  1495. "excel"
  1496. ],
  1497. "summary": "导出Excel",
  1498. "parameters": [
  1499. {
  1500. "description": "导出Excel文件信息",
  1501. "name": "data",
  1502. "in": "body",
  1503. "required": true,
  1504. "schema": {
  1505. "$ref": "#/definitions/example.ExcelInfo"
  1506. }
  1507. }
  1508. ],
  1509. "responses": {
  1510. "200": {
  1511. "description": ""
  1512. }
  1513. }
  1514. }
  1515. },
  1516. "/excel/importExcel": {
  1517. "post": {
  1518. "security": [
  1519. {
  1520. "ApiKeyAuth": []
  1521. }
  1522. ],
  1523. "consumes": [
  1524. "multipart/form-data"
  1525. ],
  1526. "produces": [
  1527. "application/json"
  1528. ],
  1529. "tags": [
  1530. "excel"
  1531. ],
  1532. "summary": "导入Excel文件",
  1533. "parameters": [
  1534. {
  1535. "type": "file",
  1536. "description": "导入Excel文件",
  1537. "name": "file",
  1538. "in": "formData",
  1539. "required": true
  1540. }
  1541. ],
  1542. "responses": {
  1543. "200": {
  1544. "description": "{\"success\":true,\"data\":{},\"msg\":\"导入成功\"}",
  1545. "schema": {
  1546. "type": "string"
  1547. }
  1548. }
  1549. }
  1550. }
  1551. },
  1552. "/excel/loadExcel": {
  1553. "get": {
  1554. "security": [
  1555. {
  1556. "ApiKeyAuth": []
  1557. }
  1558. ],
  1559. "produces": [
  1560. "application/json"
  1561. ],
  1562. "tags": [
  1563. "excel"
  1564. ],
  1565. "summary": "加载Excel数据",
  1566. "responses": {
  1567. "200": {
  1568. "description": "{\"success\":true,\"data\":{},\"msg\":\"加载数据成功\"}",
  1569. "schema": {
  1570. "type": "string"
  1571. }
  1572. }
  1573. }
  1574. }
  1575. },
  1576. "/fileUploadAndDownload/breakpointContinue": {
  1577. "post": {
  1578. "security": [
  1579. {
  1580. "ApiKeyAuth": []
  1581. }
  1582. ],
  1583. "consumes": [
  1584. "multipart/form-data"
  1585. ],
  1586. "produces": [
  1587. "application/json"
  1588. ],
  1589. "tags": [
  1590. "ExaFileUploadAndDownload"
  1591. ],
  1592. "summary": "断点续传到服务器",
  1593. "parameters": [
  1594. {
  1595. "type": "file",
  1596. "description": "an example for breakpoint resume, 断点续传示例",
  1597. "name": "file",
  1598. "in": "formData",
  1599. "required": true
  1600. }
  1601. ],
  1602. "responses": {
  1603. "200": {
  1604. "description": "{\"success\":true,\"data\":{},\"msg\":\"切片创建成功\"}",
  1605. "schema": {
  1606. "type": "string"
  1607. }
  1608. }
  1609. }
  1610. }
  1611. },
  1612. "/fileUploadAndDownload/deleteFile": {
  1613. "post": {
  1614. "security": [
  1615. {
  1616. "ApiKeyAuth": []
  1617. }
  1618. ],
  1619. "produces": [
  1620. "application/json"
  1621. ],
  1622. "tags": [
  1623. "ExaFileUploadAndDownload"
  1624. ],
  1625. "summary": "删除文件",
  1626. "parameters": [
  1627. {
  1628. "description": "传入文件里面id即可",
  1629. "name": "data",
  1630. "in": "body",
  1631. "required": true,
  1632. "schema": {
  1633. "$ref": "#/definitions/example.ExaFileUploadAndDownload"
  1634. }
  1635. }
  1636. ],
  1637. "responses": {
  1638. "200": {
  1639. "description": "{\"success\":true,\"data\":{},\"msg\":\"删除成功\"}",
  1640. "schema": {
  1641. "type": "string"
  1642. }
  1643. }
  1644. }
  1645. }
  1646. },
  1647. "/fileUploadAndDownload/findFile": {
  1648. "post": {
  1649. "security": [
  1650. {
  1651. "ApiKeyAuth": []
  1652. }
  1653. ],
  1654. "consumes": [
  1655. "multipart/form-data"
  1656. ],
  1657. "produces": [
  1658. "application/json"
  1659. ],
  1660. "tags": [
  1661. "ExaFileUploadAndDownload"
  1662. ],
  1663. "summary": "创建文件",
  1664. "parameters": [
  1665. {
  1666. "type": "file",
  1667. "description": "上传文件完成",
  1668. "name": "file",
  1669. "in": "formData",
  1670. "required": true
  1671. }
  1672. ],
  1673. "responses": {
  1674. "200": {
  1675. "description": "{\"success\":true,\"data\":{},\"msg\":\"file uploaded, 文件创建成功\"}",
  1676. "schema": {
  1677. "type": "string"
  1678. }
  1679. }
  1680. }
  1681. }
  1682. },
  1683. "/fileUploadAndDownload/getFileList": {
  1684. "post": {
  1685. "security": [
  1686. {
  1687. "ApiKeyAuth": []
  1688. }
  1689. ],
  1690. "consumes": [
  1691. "application/json"
  1692. ],
  1693. "produces": [
  1694. "application/json"
  1695. ],
  1696. "tags": [
  1697. "ExaFileUploadAndDownload"
  1698. ],
  1699. "summary": "分页文件列表",
  1700. "parameters": [
  1701. {
  1702. "description": "页码, 每页大小",
  1703. "name": "data",
  1704. "in": "body",
  1705. "required": true,
  1706. "schema": {
  1707. "$ref": "#/definitions/request.PageInfo"
  1708. }
  1709. }
  1710. ],
  1711. "responses": {
  1712. "200": {
  1713. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  1714. "schema": {
  1715. "type": "string"
  1716. }
  1717. }
  1718. }
  1719. }
  1720. },
  1721. "/fileUploadAndDownload/removeChunk": {
  1722. "post": {
  1723. "security": [
  1724. {
  1725. "ApiKeyAuth": []
  1726. }
  1727. ],
  1728. "consumes": [
  1729. "multipart/form-data"
  1730. ],
  1731. "produces": [
  1732. "application/json"
  1733. ],
  1734. "tags": [
  1735. "ExaFileUploadAndDownload"
  1736. ],
  1737. "summary": "删除切片",
  1738. "parameters": [
  1739. {
  1740. "type": "file",
  1741. "description": "删除缓存切片",
  1742. "name": "file",
  1743. "in": "formData",
  1744. "required": true
  1745. }
  1746. ],
  1747. "responses": {
  1748. "200": {
  1749. "description": "{\"success\":true,\"data\":{},\"msg\":\"缓存切片删除成功\"}",
  1750. "schema": {
  1751. "type": "string"
  1752. }
  1753. }
  1754. }
  1755. }
  1756. },
  1757. "/fileUploadAndDownload/upload": {
  1758. "post": {
  1759. "security": [
  1760. {
  1761. "ApiKeyAuth": []
  1762. }
  1763. ],
  1764. "consumes": [
  1765. "multipart/form-data"
  1766. ],
  1767. "produces": [
  1768. "application/json"
  1769. ],
  1770. "tags": [
  1771. "ExaFileUploadAndDownload"
  1772. ],
  1773. "summary": "上传文件示例",
  1774. "parameters": [
  1775. {
  1776. "type": "file",
  1777. "description": "上传文件示例",
  1778. "name": "file",
  1779. "in": "formData",
  1780. "required": true
  1781. }
  1782. ],
  1783. "responses": {
  1784. "200": {
  1785. "description": "{\"success\":true,\"data\":{},\"msg\":\"上传成功\"}",
  1786. "schema": {
  1787. "type": "string"
  1788. }
  1789. }
  1790. }
  1791. }
  1792. },
  1793. "/init/checkdb": {
  1794. "post": {
  1795. "produces": [
  1796. "application/json"
  1797. ],
  1798. "tags": [
  1799. "CheckDB"
  1800. ],
  1801. "summary": "初始化用户数据库",
  1802. "responses": {
  1803. "200": {
  1804. "description": "{\"code\":0,\"data\":{},\"msg\":\"探测完成\"}",
  1805. "schema": {
  1806. "type": "string"
  1807. }
  1808. }
  1809. }
  1810. }
  1811. },
  1812. "/init/initdb": {
  1813. "post": {
  1814. "produces": [
  1815. "application/json"
  1816. ],
  1817. "tags": [
  1818. "InitDB"
  1819. ],
  1820. "summary": "初始化用户数据库",
  1821. "parameters": [
  1822. {
  1823. "description": "初始化数据库参数",
  1824. "name": "data",
  1825. "in": "body",
  1826. "required": true,
  1827. "schema": {
  1828. "$ref": "#/definitions/request.InitDB"
  1829. }
  1830. }
  1831. ],
  1832. "responses": {
  1833. "200": {
  1834. "description": "{\"code\":0,\"data\":{},\"msg\":\"自动创建数据库成功\"}",
  1835. "schema": {
  1836. "type": "string"
  1837. }
  1838. }
  1839. }
  1840. }
  1841. },
  1842. "/jwt/jsonInBlacklist": {
  1843. "post": {
  1844. "security": [
  1845. {
  1846. "ApiKeyAuth": []
  1847. }
  1848. ],
  1849. "consumes": [
  1850. "application/json"
  1851. ],
  1852. "produces": [
  1853. "application/json"
  1854. ],
  1855. "tags": [
  1856. "Jwt"
  1857. ],
  1858. "summary": "jwt加入黑名单",
  1859. "responses": {
  1860. "200": {
  1861. "description": "{\"success\":true,\"data\":{},\"msg\":\"拉黑成功\"}",
  1862. "schema": {
  1863. "type": "string"
  1864. }
  1865. }
  1866. }
  1867. }
  1868. },
  1869. "/menu/GetMenuAuthority": {
  1870. "post": {
  1871. "security": [
  1872. {
  1873. "ApiKeyAuth": []
  1874. }
  1875. ],
  1876. "consumes": [
  1877. "application/json"
  1878. ],
  1879. "produces": [
  1880. "application/json"
  1881. ],
  1882. "tags": [
  1883. "AuthorityMenu"
  1884. ],
  1885. "summary": "获取指定角色menu",
  1886. "parameters": [
  1887. {
  1888. "description": "角色ID",
  1889. "name": "data",
  1890. "in": "body",
  1891. "required": true,
  1892. "schema": {
  1893. "$ref": "#/definitions/request.GetAuthorityId"
  1894. }
  1895. }
  1896. ],
  1897. "responses": {
  1898. "200": {
  1899. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  1900. "schema": {
  1901. "type": "string"
  1902. }
  1903. }
  1904. }
  1905. }
  1906. },
  1907. "/menu/addBaseMenu": {
  1908. "post": {
  1909. "security": [
  1910. {
  1911. "ApiKeyAuth": []
  1912. }
  1913. ],
  1914. "consumes": [
  1915. "application/json"
  1916. ],
  1917. "produces": [
  1918. "application/json"
  1919. ],
  1920. "tags": [
  1921. "Menu"
  1922. ],
  1923. "summary": "新增菜单",
  1924. "parameters": [
  1925. {
  1926. "description": "路由path, 父菜单ID, 路由name, 对应前端文件路径, 排序标记",
  1927. "name": "data",
  1928. "in": "body",
  1929. "required": true,
  1930. "schema": {
  1931. "$ref": "#/definitions/system.SysBaseMenu"
  1932. }
  1933. }
  1934. ],
  1935. "responses": {
  1936. "200": {
  1937. "description": "{\"success\":true,\"data\":{},\"msg\":\"添加成功\"}",
  1938. "schema": {
  1939. "type": "string"
  1940. }
  1941. }
  1942. }
  1943. }
  1944. },
  1945. "/menu/addMenuAuthority": {
  1946. "post": {
  1947. "security": [
  1948. {
  1949. "ApiKeyAuth": []
  1950. }
  1951. ],
  1952. "consumes": [
  1953. "application/json"
  1954. ],
  1955. "produces": [
  1956. "application/json"
  1957. ],
  1958. "tags": [
  1959. "AuthorityMenu"
  1960. ],
  1961. "summary": "增加menu和角色关联关系",
  1962. "parameters": [
  1963. {
  1964. "description": "角色ID",
  1965. "name": "data",
  1966. "in": "body",
  1967. "required": true,
  1968. "schema": {
  1969. "$ref": "#/definitions/request.AddMenuAuthorityInfo"
  1970. }
  1971. }
  1972. ],
  1973. "responses": {
  1974. "200": {
  1975. "description": "{\"success\":true,\"data\":{},\"msg\":\"添加成功\"}",
  1976. "schema": {
  1977. "type": "string"
  1978. }
  1979. }
  1980. }
  1981. }
  1982. },
  1983. "/menu/deleteBaseMenu": {
  1984. "post": {
  1985. "security": [
  1986. {
  1987. "ApiKeyAuth": []
  1988. }
  1989. ],
  1990. "consumes": [
  1991. "application/json"
  1992. ],
  1993. "produces": [
  1994. "application/json"
  1995. ],
  1996. "tags": [
  1997. "Menu"
  1998. ],
  1999. "summary": "删除菜单",
  2000. "parameters": [
  2001. {
  2002. "description": "菜单id",
  2003. "name": "data",
  2004. "in": "body",
  2005. "required": true,
  2006. "schema": {
  2007. "$ref": "#/definitions/request.GetById"
  2008. }
  2009. }
  2010. ],
  2011. "responses": {
  2012. "200": {
  2013. "description": "{\"success\":true,\"data\":{},\"msg\":\"删除成功\"}",
  2014. "schema": {
  2015. "type": "string"
  2016. }
  2017. }
  2018. }
  2019. }
  2020. },
  2021. "/menu/getBaseMenuById": {
  2022. "post": {
  2023. "security": [
  2024. {
  2025. "ApiKeyAuth": []
  2026. }
  2027. ],
  2028. "consumes": [
  2029. "application/json"
  2030. ],
  2031. "produces": [
  2032. "application/json"
  2033. ],
  2034. "tags": [
  2035. "Menu"
  2036. ],
  2037. "summary": "根据id获取菜单",
  2038. "parameters": [
  2039. {
  2040. "description": "菜单id",
  2041. "name": "data",
  2042. "in": "body",
  2043. "required": true,
  2044. "schema": {
  2045. "$ref": "#/definitions/request.GetById"
  2046. }
  2047. }
  2048. ],
  2049. "responses": {
  2050. "200": {
  2051. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  2052. "schema": {
  2053. "type": "string"
  2054. }
  2055. }
  2056. }
  2057. }
  2058. },
  2059. "/menu/getBaseMenuTree": {
  2060. "post": {
  2061. "security": [
  2062. {
  2063. "ApiKeyAuth": []
  2064. }
  2065. ],
  2066. "produces": [
  2067. "application/json"
  2068. ],
  2069. "tags": [
  2070. "AuthorityMenu"
  2071. ],
  2072. "summary": "获取用户动态路由",
  2073. "parameters": [
  2074. {
  2075. "description": "空",
  2076. "name": "data",
  2077. "in": "body",
  2078. "required": true,
  2079. "schema": {
  2080. "$ref": "#/definitions/request.Empty"
  2081. }
  2082. }
  2083. ],
  2084. "responses": {
  2085. "200": {
  2086. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  2087. "schema": {
  2088. "type": "string"
  2089. }
  2090. }
  2091. }
  2092. }
  2093. },
  2094. "/menu/getMenu": {
  2095. "post": {
  2096. "security": [
  2097. {
  2098. "ApiKeyAuth": []
  2099. }
  2100. ],
  2101. "produces": [
  2102. "application/json"
  2103. ],
  2104. "tags": [
  2105. "AuthorityMenu"
  2106. ],
  2107. "summary": "获取用户动态路由",
  2108. "parameters": [
  2109. {
  2110. "description": "空",
  2111. "name": "data",
  2112. "in": "body",
  2113. "required": true,
  2114. "schema": {
  2115. "$ref": "#/definitions/request.Empty"
  2116. }
  2117. }
  2118. ],
  2119. "responses": {
  2120. "200": {
  2121. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  2122. "schema": {
  2123. "type": "string"
  2124. }
  2125. }
  2126. }
  2127. }
  2128. },
  2129. "/menu/getMenuList": {
  2130. "post": {
  2131. "security": [
  2132. {
  2133. "ApiKeyAuth": []
  2134. }
  2135. ],
  2136. "consumes": [
  2137. "application/json"
  2138. ],
  2139. "produces": [
  2140. "application/json"
  2141. ],
  2142. "tags": [
  2143. "Menu"
  2144. ],
  2145. "summary": "分页获取基础menu列表",
  2146. "parameters": [
  2147. {
  2148. "description": "页码, 每页大小",
  2149. "name": "data",
  2150. "in": "body",
  2151. "required": true,
  2152. "schema": {
  2153. "$ref": "#/definitions/request.PageInfo"
  2154. }
  2155. }
  2156. ],
  2157. "responses": {
  2158. "200": {
  2159. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  2160. "schema": {
  2161. "type": "string"
  2162. }
  2163. }
  2164. }
  2165. }
  2166. },
  2167. "/menu/updateBaseMenu": {
  2168. "post": {
  2169. "security": [
  2170. {
  2171. "ApiKeyAuth": []
  2172. }
  2173. ],
  2174. "consumes": [
  2175. "application/json"
  2176. ],
  2177. "produces": [
  2178. "application/json"
  2179. ],
  2180. "tags": [
  2181. "Menu"
  2182. ],
  2183. "summary": "更新菜单",
  2184. "parameters": [
  2185. {
  2186. "description": "路由path, 父菜单ID, 路由name, 对应前端文件路径, 排序标记",
  2187. "name": "data",
  2188. "in": "body",
  2189. "required": true,
  2190. "schema": {
  2191. "$ref": "#/definitions/system.SysBaseMenu"
  2192. }
  2193. }
  2194. ],
  2195. "responses": {
  2196. "200": {
  2197. "description": "{\"success\":true,\"data\":{},\"msg\":\"更新成功\"}",
  2198. "schema": {
  2199. "type": "string"
  2200. }
  2201. }
  2202. }
  2203. }
  2204. },
  2205. "/sysDictionary/createSysDictionary": {
  2206. "post": {
  2207. "security": [
  2208. {
  2209. "ApiKeyAuth": []
  2210. }
  2211. ],
  2212. "consumes": [
  2213. "application/json"
  2214. ],
  2215. "produces": [
  2216. "application/json"
  2217. ],
  2218. "tags": [
  2219. "SysDictionary"
  2220. ],
  2221. "summary": "创建SysDictionary",
  2222. "parameters": [
  2223. {
  2224. "description": "SysDictionary模型",
  2225. "name": "data",
  2226. "in": "body",
  2227. "required": true,
  2228. "schema": {
  2229. "$ref": "#/definitions/system.SysDictionary"
  2230. }
  2231. }
  2232. ],
  2233. "responses": {
  2234. "200": {
  2235. "description": "{\"success\":true,\"data\":{},\"msg\":\"创建成功\"}",
  2236. "schema": {
  2237. "type": "string"
  2238. }
  2239. }
  2240. }
  2241. }
  2242. },
  2243. "/sysDictionary/deleteSysDictionary": {
  2244. "delete": {
  2245. "security": [
  2246. {
  2247. "ApiKeyAuth": []
  2248. }
  2249. ],
  2250. "consumes": [
  2251. "application/json"
  2252. ],
  2253. "produces": [
  2254. "application/json"
  2255. ],
  2256. "tags": [
  2257. "SysDictionary"
  2258. ],
  2259. "summary": "删除SysDictionary",
  2260. "parameters": [
  2261. {
  2262. "description": "SysDictionary模型",
  2263. "name": "data",
  2264. "in": "body",
  2265. "required": true,
  2266. "schema": {
  2267. "$ref": "#/definitions/system.SysDictionary"
  2268. }
  2269. }
  2270. ],
  2271. "responses": {
  2272. "200": {
  2273. "description": "{\"success\":true,\"data\":{},\"msg\":\"删除成功\"}",
  2274. "schema": {
  2275. "type": "string"
  2276. }
  2277. }
  2278. }
  2279. }
  2280. },
  2281. "/sysDictionary/findSysDictionary": {
  2282. "get": {
  2283. "security": [
  2284. {
  2285. "ApiKeyAuth": []
  2286. }
  2287. ],
  2288. "consumes": [
  2289. "application/json"
  2290. ],
  2291. "produces": [
  2292. "application/json"
  2293. ],
  2294. "tags": [
  2295. "SysDictionary"
  2296. ],
  2297. "summary": "用id查询SysDictionary",
  2298. "parameters": [
  2299. {
  2300. "description": "ID或字典英名",
  2301. "name": "data",
  2302. "in": "body",
  2303. "required": true,
  2304. "schema": {
  2305. "$ref": "#/definitions/system.SysDictionary"
  2306. }
  2307. }
  2308. ],
  2309. "responses": {
  2310. "200": {
  2311. "description": "{\"success\":true,\"data\":{},\"msg\":\"查询成功\"}",
  2312. "schema": {
  2313. "type": "string"
  2314. }
  2315. }
  2316. }
  2317. }
  2318. },
  2319. "/sysDictionary/getSysDictionaryList": {
  2320. "get": {
  2321. "security": [
  2322. {
  2323. "ApiKeyAuth": []
  2324. }
  2325. ],
  2326. "consumes": [
  2327. "application/json"
  2328. ],
  2329. "produces": [
  2330. "application/json"
  2331. ],
  2332. "tags": [
  2333. "SysDictionary"
  2334. ],
  2335. "summary": "分页获取SysDictionary列表",
  2336. "parameters": [
  2337. {
  2338. "description": "页码, 每页大小, 搜索条件",
  2339. "name": "data",
  2340. "in": "body",
  2341. "required": true,
  2342. "schema": {
  2343. "$ref": "#/definitions/request.SysDictionarySearch"
  2344. }
  2345. }
  2346. ],
  2347. "responses": {
  2348. "200": {
  2349. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  2350. "schema": {
  2351. "type": "string"
  2352. }
  2353. }
  2354. }
  2355. }
  2356. },
  2357. "/sysDictionary/updateSysDictionary": {
  2358. "put": {
  2359. "security": [
  2360. {
  2361. "ApiKeyAuth": []
  2362. }
  2363. ],
  2364. "consumes": [
  2365. "application/json"
  2366. ],
  2367. "produces": [
  2368. "application/json"
  2369. ],
  2370. "tags": [
  2371. "SysDictionary"
  2372. ],
  2373. "summary": "更新SysDictionary",
  2374. "parameters": [
  2375. {
  2376. "description": "SysDictionary模型",
  2377. "name": "data",
  2378. "in": "body",
  2379. "required": true,
  2380. "schema": {
  2381. "$ref": "#/definitions/system.SysDictionary"
  2382. }
  2383. }
  2384. ],
  2385. "responses": {
  2386. "200": {
  2387. "description": "{\"success\":true,\"data\":{},\"msg\":\"更新成功\"}",
  2388. "schema": {
  2389. "type": "string"
  2390. }
  2391. }
  2392. }
  2393. }
  2394. },
  2395. "/sysDictionaryDetail/createSysDictionaryDetail": {
  2396. "post": {
  2397. "security": [
  2398. {
  2399. "ApiKeyAuth": []
  2400. }
  2401. ],
  2402. "consumes": [
  2403. "application/json"
  2404. ],
  2405. "produces": [
  2406. "application/json"
  2407. ],
  2408. "tags": [
  2409. "SysDictionaryDetail"
  2410. ],
  2411. "summary": "创建SysDictionaryDetail",
  2412. "parameters": [
  2413. {
  2414. "description": "SysDictionaryDetail模型",
  2415. "name": "data",
  2416. "in": "body",
  2417. "required": true,
  2418. "schema": {
  2419. "$ref": "#/definitions/system.SysDictionaryDetail"
  2420. }
  2421. }
  2422. ],
  2423. "responses": {
  2424. "200": {
  2425. "description": "{\"success\":true,\"data\":{},\"msg\":\"创建成功\"}",
  2426. "schema": {
  2427. "type": "string"
  2428. }
  2429. }
  2430. }
  2431. }
  2432. },
  2433. "/sysDictionaryDetail/deleteSysDictionaryDetail": {
  2434. "delete": {
  2435. "security": [
  2436. {
  2437. "ApiKeyAuth": []
  2438. }
  2439. ],
  2440. "consumes": [
  2441. "application/json"
  2442. ],
  2443. "produces": [
  2444. "application/json"
  2445. ],
  2446. "tags": [
  2447. "SysDictionaryDetail"
  2448. ],
  2449. "summary": "删除SysDictionaryDetail",
  2450. "parameters": [
  2451. {
  2452. "description": "SysDictionaryDetail模型",
  2453. "name": "data",
  2454. "in": "body",
  2455. "required": true,
  2456. "schema": {
  2457. "$ref": "#/definitions/system.SysDictionaryDetail"
  2458. }
  2459. }
  2460. ],
  2461. "responses": {
  2462. "200": {
  2463. "description": "{\"success\":true,\"data\":{},\"msg\":\"删除成功\"}",
  2464. "schema": {
  2465. "type": "string"
  2466. }
  2467. }
  2468. }
  2469. }
  2470. },
  2471. "/sysDictionaryDetail/findSysDictionaryDetail": {
  2472. "get": {
  2473. "security": [
  2474. {
  2475. "ApiKeyAuth": []
  2476. }
  2477. ],
  2478. "consumes": [
  2479. "application/json"
  2480. ],
  2481. "produces": [
  2482. "application/json"
  2483. ],
  2484. "tags": [
  2485. "SysDictionaryDetail"
  2486. ],
  2487. "summary": "用id查询SysDictionaryDetail",
  2488. "parameters": [
  2489. {
  2490. "description": "用id查询SysDictionaryDetail",
  2491. "name": "data",
  2492. "in": "body",
  2493. "required": true,
  2494. "schema": {
  2495. "$ref": "#/definitions/system.SysDictionaryDetail"
  2496. }
  2497. }
  2498. ],
  2499. "responses": {
  2500. "200": {
  2501. "description": "{\"success\":true,\"data\":{},\"msg\":\"查询成功\"}",
  2502. "schema": {
  2503. "type": "string"
  2504. }
  2505. }
  2506. }
  2507. }
  2508. },
  2509. "/sysDictionaryDetail/getSysDictionaryDetailList": {
  2510. "get": {
  2511. "security": [
  2512. {
  2513. "ApiKeyAuth": []
  2514. }
  2515. ],
  2516. "consumes": [
  2517. "application/json"
  2518. ],
  2519. "produces": [
  2520. "application/json"
  2521. ],
  2522. "tags": [
  2523. "SysDictionaryDetail"
  2524. ],
  2525. "summary": "分页获取SysDictionaryDetail列表",
  2526. "parameters": [
  2527. {
  2528. "description": "页码, 每页大小, 搜索条件",
  2529. "name": "data",
  2530. "in": "body",
  2531. "required": true,
  2532. "schema": {
  2533. "$ref": "#/definitions/request.SysDictionaryDetailSearch"
  2534. }
  2535. }
  2536. ],
  2537. "responses": {
  2538. "200": {
  2539. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  2540. "schema": {
  2541. "type": "string"
  2542. }
  2543. }
  2544. }
  2545. }
  2546. },
  2547. "/sysDictionaryDetail/updateSysDictionaryDetail": {
  2548. "put": {
  2549. "security": [
  2550. {
  2551. "ApiKeyAuth": []
  2552. }
  2553. ],
  2554. "consumes": [
  2555. "application/json"
  2556. ],
  2557. "produces": [
  2558. "application/json"
  2559. ],
  2560. "tags": [
  2561. "SysDictionaryDetail"
  2562. ],
  2563. "summary": "更新SysDictionaryDetail",
  2564. "parameters": [
  2565. {
  2566. "description": "更新SysDictionaryDetail",
  2567. "name": "data",
  2568. "in": "body",
  2569. "required": true,
  2570. "schema": {
  2571. "$ref": "#/definitions/system.SysDictionaryDetail"
  2572. }
  2573. }
  2574. ],
  2575. "responses": {
  2576. "200": {
  2577. "description": "{\"success\":true,\"data\":{},\"msg\":\"更新成功\"}",
  2578. "schema": {
  2579. "type": "string"
  2580. }
  2581. }
  2582. }
  2583. }
  2584. },
  2585. "/sysOperationRecord/createSysOperationRecord": {
  2586. "post": {
  2587. "security": [
  2588. {
  2589. "ApiKeyAuth": []
  2590. }
  2591. ],
  2592. "consumes": [
  2593. "application/json"
  2594. ],
  2595. "produces": [
  2596. "application/json"
  2597. ],
  2598. "tags": [
  2599. "SysOperationRecord"
  2600. ],
  2601. "summary": "创建SysOperationRecord",
  2602. "parameters": [
  2603. {
  2604. "description": "创建SysOperationRecord",
  2605. "name": "data",
  2606. "in": "body",
  2607. "required": true,
  2608. "schema": {
  2609. "$ref": "#/definitions/system.SysOperationRecord"
  2610. }
  2611. }
  2612. ],
  2613. "responses": {
  2614. "200": {
  2615. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  2616. "schema": {
  2617. "type": "string"
  2618. }
  2619. }
  2620. }
  2621. }
  2622. },
  2623. "/sysOperationRecord/deleteSysOperationRecord": {
  2624. "delete": {
  2625. "security": [
  2626. {
  2627. "ApiKeyAuth": []
  2628. }
  2629. ],
  2630. "consumes": [
  2631. "application/json"
  2632. ],
  2633. "produces": [
  2634. "application/json"
  2635. ],
  2636. "tags": [
  2637. "SysOperationRecord"
  2638. ],
  2639. "summary": "删除SysOperationRecord",
  2640. "parameters": [
  2641. {
  2642. "description": "SysOperationRecord模型",
  2643. "name": "data",
  2644. "in": "body",
  2645. "required": true,
  2646. "schema": {
  2647. "$ref": "#/definitions/system.SysOperationRecord"
  2648. }
  2649. }
  2650. ],
  2651. "responses": {
  2652. "200": {
  2653. "description": "{\"success\":true,\"data\":{},\"msg\":\"删除成功\"}",
  2654. "schema": {
  2655. "type": "string"
  2656. }
  2657. }
  2658. }
  2659. }
  2660. },
  2661. "/sysOperationRecord/deleteSysOperationRecordByIds": {
  2662. "delete": {
  2663. "security": [
  2664. {
  2665. "ApiKeyAuth": []
  2666. }
  2667. ],
  2668. "consumes": [
  2669. "application/json"
  2670. ],
  2671. "produces": [
  2672. "application/json"
  2673. ],
  2674. "tags": [
  2675. "SysOperationRecord"
  2676. ],
  2677. "summary": "批量删除SysOperationRecord",
  2678. "parameters": [
  2679. {
  2680. "description": "批量删除SysOperationRecord",
  2681. "name": "data",
  2682. "in": "body",
  2683. "required": true,
  2684. "schema": {
  2685. "$ref": "#/definitions/request.IdsReq"
  2686. }
  2687. }
  2688. ],
  2689. "responses": {
  2690. "200": {
  2691. "description": "{\"success\":true,\"data\":{},\"msg\":\"批量删除成功\"}",
  2692. "schema": {
  2693. "type": "string"
  2694. }
  2695. }
  2696. }
  2697. }
  2698. },
  2699. "/sysOperationRecord/findSysOperationRecord": {
  2700. "get": {
  2701. "security": [
  2702. {
  2703. "ApiKeyAuth": []
  2704. }
  2705. ],
  2706. "consumes": [
  2707. "application/json"
  2708. ],
  2709. "produces": [
  2710. "application/json"
  2711. ],
  2712. "tags": [
  2713. "SysOperationRecord"
  2714. ],
  2715. "summary": "用id查询SysOperationRecord",
  2716. "parameters": [
  2717. {
  2718. "description": "Id",
  2719. "name": "data",
  2720. "in": "body",
  2721. "required": true,
  2722. "schema": {
  2723. "$ref": "#/definitions/system.SysOperationRecord"
  2724. }
  2725. }
  2726. ],
  2727. "responses": {
  2728. "200": {
  2729. "description": "{\"success\":true,\"data\":{},\"msg\":\"查询成功\"}",
  2730. "schema": {
  2731. "type": "string"
  2732. }
  2733. }
  2734. }
  2735. }
  2736. },
  2737. "/sysOperationRecord/getSysOperationRecordList": {
  2738. "get": {
  2739. "security": [
  2740. {
  2741. "ApiKeyAuth": []
  2742. }
  2743. ],
  2744. "consumes": [
  2745. "application/json"
  2746. ],
  2747. "produces": [
  2748. "application/json"
  2749. ],
  2750. "tags": [
  2751. "SysOperationRecord"
  2752. ],
  2753. "summary": "分页获取SysOperationRecord列表",
  2754. "parameters": [
  2755. {
  2756. "description": "页码, 每页大小, 搜索条件",
  2757. "name": "data",
  2758. "in": "body",
  2759. "required": true,
  2760. "schema": {
  2761. "$ref": "#/definitions/request.SysOperationRecordSearch"
  2762. }
  2763. }
  2764. ],
  2765. "responses": {
  2766. "200": {
  2767. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  2768. "schema": {
  2769. "type": "string"
  2770. }
  2771. }
  2772. }
  2773. }
  2774. },
  2775. "/system/getServerInfo": {
  2776. "post": {
  2777. "security": [
  2778. {
  2779. "ApiKeyAuth": []
  2780. }
  2781. ],
  2782. "produces": [
  2783. "application/json"
  2784. ],
  2785. "tags": [
  2786. "System"
  2787. ],
  2788. "summary": "获取服务器信息",
  2789. "responses": {
  2790. "200": {
  2791. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  2792. "schema": {
  2793. "type": "string"
  2794. }
  2795. }
  2796. }
  2797. }
  2798. },
  2799. "/system/getSystemConfig": {
  2800. "post": {
  2801. "security": [
  2802. {
  2803. "ApiKeyAuth": []
  2804. }
  2805. ],
  2806. "produces": [
  2807. "application/json"
  2808. ],
  2809. "tags": [
  2810. "System"
  2811. ],
  2812. "summary": "获取配置文件内容",
  2813. "responses": {
  2814. "200": {
  2815. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  2816. "schema": {
  2817. "type": "string"
  2818. }
  2819. }
  2820. }
  2821. }
  2822. },
  2823. "/system/reloadSystem": {
  2824. "post": {
  2825. "security": [
  2826. {
  2827. "ApiKeyAuth": []
  2828. }
  2829. ],
  2830. "produces": [
  2831. "application/json"
  2832. ],
  2833. "tags": [
  2834. "System"
  2835. ],
  2836. "summary": "重启系统",
  2837. "responses": {
  2838. "200": {
  2839. "description": "{\"code\":0,\"data\":{},\"msg\":\"重启系统成功\"}",
  2840. "schema": {
  2841. "type": "string"
  2842. }
  2843. }
  2844. }
  2845. }
  2846. },
  2847. "/system/setSystemConfig": {
  2848. "post": {
  2849. "security": [
  2850. {
  2851. "ApiKeyAuth": []
  2852. }
  2853. ],
  2854. "produces": [
  2855. "application/json"
  2856. ],
  2857. "tags": [
  2858. "System"
  2859. ],
  2860. "summary": "设置配置文件内容",
  2861. "parameters": [
  2862. {
  2863. "description": "设置配置文件内容",
  2864. "name": "data",
  2865. "in": "body",
  2866. "required": true,
  2867. "schema": {
  2868. "$ref": "#/definitions/system.System"
  2869. }
  2870. }
  2871. ],
  2872. "responses": {
  2873. "200": {
  2874. "description": "{\"success\":true,\"data\":{},\"msg\":\"设置成功\"}",
  2875. "schema": {
  2876. "type": "string"
  2877. }
  2878. }
  2879. }
  2880. }
  2881. },
  2882. "/user/changePassword": {
  2883. "put": {
  2884. "security": [
  2885. {
  2886. "ApiKeyAuth": []
  2887. }
  2888. ],
  2889. "produces": [
  2890. "application/json"
  2891. ],
  2892. "tags": [
  2893. "SysUser"
  2894. ],
  2895. "summary": "用户修改密码",
  2896. "parameters": [
  2897. {
  2898. "description": "用户名, 原密码, 新密码",
  2899. "name": "data",
  2900. "in": "body",
  2901. "required": true,
  2902. "schema": {
  2903. "$ref": "#/definitions/request.ChangePasswordStruct"
  2904. }
  2905. }
  2906. ],
  2907. "responses": {
  2908. "200": {
  2909. "description": "{\"success\":true,\"data\":{},\"msg\":\"修改成功\"}",
  2910. "schema": {
  2911. "type": "string"
  2912. }
  2913. }
  2914. }
  2915. }
  2916. },
  2917. "/user/deleteUser": {
  2918. "delete": {
  2919. "security": [
  2920. {
  2921. "ApiKeyAuth": []
  2922. }
  2923. ],
  2924. "consumes": [
  2925. "application/json"
  2926. ],
  2927. "produces": [
  2928. "application/json"
  2929. ],
  2930. "tags": [
  2931. "SysUser"
  2932. ],
  2933. "summary": "删除用户",
  2934. "parameters": [
  2935. {
  2936. "description": "用户ID",
  2937. "name": "data",
  2938. "in": "body",
  2939. "required": true,
  2940. "schema": {
  2941. "$ref": "#/definitions/request.GetById"
  2942. }
  2943. }
  2944. ],
  2945. "responses": {
  2946. "200": {
  2947. "description": "{\"success\":true,\"data\":{},\"msg\":\"删除成功\"}",
  2948. "schema": {
  2949. "type": "string"
  2950. }
  2951. }
  2952. }
  2953. }
  2954. },
  2955. "/user/getUserList": {
  2956. "post": {
  2957. "security": [
  2958. {
  2959. "ApiKeyAuth": []
  2960. }
  2961. ],
  2962. "consumes": [
  2963. "application/json"
  2964. ],
  2965. "produces": [
  2966. "application/json"
  2967. ],
  2968. "tags": [
  2969. "SysUser"
  2970. ],
  2971. "summary": "分页获取用户列表",
  2972. "parameters": [
  2973. {
  2974. "description": "页码, 每页大小",
  2975. "name": "data",
  2976. "in": "body",
  2977. "required": true,
  2978. "schema": {
  2979. "$ref": "#/definitions/request.PageInfo"
  2980. }
  2981. }
  2982. ],
  2983. "responses": {
  2984. "200": {
  2985. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  2986. "schema": {
  2987. "type": "string"
  2988. }
  2989. }
  2990. }
  2991. }
  2992. },
  2993. "/user/register": {
  2994. "post": {
  2995. "produces": [
  2996. "application/json"
  2997. ],
  2998. "tags": [
  2999. "SysUser"
  3000. ],
  3001. "summary": "用户注册账号",
  3002. "parameters": [
  3003. {
  3004. "description": "用户名, 昵称, 密码, 角色ID",
  3005. "name": "data",
  3006. "in": "body",
  3007. "required": true,
  3008. "schema": {
  3009. "$ref": "#/definitions/request.Register"
  3010. }
  3011. }
  3012. ],
  3013. "responses": {
  3014. "200": {
  3015. "description": "{\"success\":true,\"data\":{},\"msg\":\"注册成功\"}",
  3016. "schema": {
  3017. "type": "string"
  3018. }
  3019. }
  3020. }
  3021. }
  3022. },
  3023. "/user/setUserAuthority": {
  3024. "post": {
  3025. "security": [
  3026. {
  3027. "ApiKeyAuth": []
  3028. }
  3029. ],
  3030. "consumes": [
  3031. "application/json"
  3032. ],
  3033. "produces": [
  3034. "application/json"
  3035. ],
  3036. "tags": [
  3037. "SysUser"
  3038. ],
  3039. "summary": "设置用户权限",
  3040. "parameters": [
  3041. {
  3042. "description": "用户UUID, 角色ID",
  3043. "name": "data",
  3044. "in": "body",
  3045. "required": true,
  3046. "schema": {
  3047. "$ref": "#/definitions/request.SetUserAuth"
  3048. }
  3049. }
  3050. ],
  3051. "responses": {
  3052. "200": {
  3053. "description": "{\"success\":true,\"data\":{},\"msg\":\"修改成功\"}",
  3054. "schema": {
  3055. "type": "string"
  3056. }
  3057. }
  3058. }
  3059. }
  3060. },
  3061. "/user/setUserInfo": {
  3062. "put": {
  3063. "security": [
  3064. {
  3065. "ApiKeyAuth": []
  3066. }
  3067. ],
  3068. "consumes": [
  3069. "application/json"
  3070. ],
  3071. "produces": [
  3072. "application/json"
  3073. ],
  3074. "tags": [
  3075. "SysUser"
  3076. ],
  3077. "summary": "设置用户信息",
  3078. "parameters": [
  3079. {
  3080. "description": "ID, 用户名, 昵称, 头像链接",
  3081. "name": "data",
  3082. "in": "body",
  3083. "required": true,
  3084. "schema": {
  3085. "$ref": "#/definitions/system.SysUser"
  3086. }
  3087. }
  3088. ],
  3089. "responses": {
  3090. "200": {
  3091. "description": "{\"success\":true,\"data\":{},\"msg\":\"设置成功\"}",
  3092. "schema": {
  3093. "type": "string"
  3094. }
  3095. }
  3096. }
  3097. }
  3098. }
  3099. },
  3100. "definitions": {
  3101. "autocode.AutoCodeExample": {
  3102. "type": "object",
  3103. "properties": {
  3104. "autoCodeExampleField": {
  3105. "description": "展示值",
  3106. "type": "string"
  3107. },
  3108. "createdAt": {
  3109. "description": "创建时间",
  3110. "type": "string"
  3111. },
  3112. "id": {
  3113. "description": "主键ID",
  3114. "type": "integer"
  3115. },
  3116. "updatedAt": {
  3117. "description": "更新时间",
  3118. "type": "string"
  3119. }
  3120. }
  3121. },
  3122. "config.AliyunOSS": {
  3123. "type": "object",
  3124. "properties": {
  3125. "accessKeyId": {
  3126. "type": "string"
  3127. },
  3128. "accessKeySecret": {
  3129. "type": "string"
  3130. },
  3131. "basePath": {
  3132. "type": "string"
  3133. },
  3134. "bucketName": {
  3135. "type": "string"
  3136. },
  3137. "bucketUrl": {
  3138. "type": "string"
  3139. },
  3140. "endpoint": {
  3141. "type": "string"
  3142. }
  3143. }
  3144. },
  3145. "config.Autocode": {
  3146. "type": "object",
  3147. "properties": {
  3148. "root": {
  3149. "type": "string"
  3150. },
  3151. "server": {
  3152. "type": "string"
  3153. },
  3154. "serverApi": {
  3155. "type": "string"
  3156. },
  3157. "serverInitialize": {
  3158. "type": "string"
  3159. },
  3160. "serverModel": {
  3161. "type": "string"
  3162. },
  3163. "serverRequest": {
  3164. "type": "string"
  3165. },
  3166. "serverRouter": {
  3167. "type": "string"
  3168. },
  3169. "serverService": {
  3170. "type": "string"
  3171. },
  3172. "transferRestart": {
  3173. "type": "boolean"
  3174. },
  3175. "web": {
  3176. "type": "string"
  3177. },
  3178. "webApi": {
  3179. "type": "string"
  3180. },
  3181. "webFlow": {
  3182. "type": "string"
  3183. },
  3184. "webForm": {
  3185. "type": "string"
  3186. },
  3187. "webTable": {
  3188. "type": "string"
  3189. }
  3190. }
  3191. },
  3192. "config.Captcha": {
  3193. "type": "object",
  3194. "properties": {
  3195. "imgHeight": {
  3196. "description": "验证码高度",
  3197. "type": "integer"
  3198. },
  3199. "imgWidth": {
  3200. "description": "验证码宽度",
  3201. "type": "integer"
  3202. },
  3203. "keyLong": {
  3204. "description": "验证码长度",
  3205. "type": "integer"
  3206. }
  3207. }
  3208. },
  3209. "config.Casbin": {
  3210. "type": "object",
  3211. "properties": {
  3212. "modelPath": {
  3213. "description": "存放casbin模型的相对路径",
  3214. "type": "string"
  3215. }
  3216. }
  3217. },
  3218. "config.Detail": {
  3219. "type": "object",
  3220. "properties": {
  3221. "compareField": {
  3222. "description": "需要比较时间的字段",
  3223. "type": "string"
  3224. },
  3225. "interval": {
  3226. "description": "时间间隔",
  3227. "type": "string"
  3228. },
  3229. "tableName": {
  3230. "description": "需要清理的表名",
  3231. "type": "string"
  3232. }
  3233. }
  3234. },
  3235. "config.Email": {
  3236. "type": "object",
  3237. "properties": {
  3238. "from": {
  3239. "description": "收件人",
  3240. "type": "string"
  3241. },
  3242. "host": {
  3243. "description": "服务器地址",
  3244. "type": "string"
  3245. },
  3246. "isSSL": {
  3247. "description": "是否SSL",
  3248. "type": "boolean"
  3249. },
  3250. "nickname": {
  3251. "description": "昵称",
  3252. "type": "string"
  3253. },
  3254. "port": {
  3255. "description": "端口",
  3256. "type": "integer"
  3257. },
  3258. "secret": {
  3259. "description": "密钥",
  3260. "type": "string"
  3261. },
  3262. "to": {
  3263. "description": "收件人:多个以英文逗号分隔",
  3264. "type": "string"
  3265. }
  3266. }
  3267. },
  3268. "config.Excel": {
  3269. "type": "object",
  3270. "properties": {
  3271. "dir": {
  3272. "type": "string"
  3273. }
  3274. }
  3275. },
  3276. "config.JWT": {
  3277. "type": "object",
  3278. "properties": {
  3279. "bufferTime": {
  3280. "description": "缓冲时间",
  3281. "type": "integer"
  3282. },
  3283. "expiresTime": {
  3284. "description": "过期时间",
  3285. "type": "integer"
  3286. },
  3287. "signingKey": {
  3288. "description": "jwt签名",
  3289. "type": "string"
  3290. }
  3291. }
  3292. },
  3293. "config.Local": {
  3294. "type": "object",
  3295. "properties": {
  3296. "path": {
  3297. "description": "本地文件路径",
  3298. "type": "string"
  3299. }
  3300. }
  3301. },
  3302. "config.Mysql": {
  3303. "type": "object",
  3304. "properties": {
  3305. "config": {
  3306. "description": "高级配置",
  3307. "type": "string"
  3308. },
  3309. "dbname": {
  3310. "description": "数据库名",
  3311. "type": "string"
  3312. },
  3313. "logMode": {
  3314. "description": "是否开启Gorm全局日志",
  3315. "type": "string"
  3316. },
  3317. "logZap": {
  3318. "description": "是否通过zap写入日志文件",
  3319. "type": "boolean"
  3320. },
  3321. "maxIdleConns": {
  3322. "description": "空闲中的最大连接数",
  3323. "type": "integer"
  3324. },
  3325. "maxOpenConns": {
  3326. "description": "打开到数据库的最大连接数",
  3327. "type": "integer"
  3328. },
  3329. "password": {
  3330. "description": "数据库密码",
  3331. "type": "string"
  3332. },
  3333. "path": {
  3334. "description": "服务器地址:端口",
  3335. "type": "string"
  3336. },
  3337. "username": {
  3338. "description": "数据库用户名",
  3339. "type": "string"
  3340. }
  3341. }
  3342. },
  3343. "config.Qiniu": {
  3344. "type": "object",
  3345. "properties": {
  3346. "accessKey": {
  3347. "description": "秘钥AK",
  3348. "type": "string"
  3349. },
  3350. "bucket": {
  3351. "description": "空间名称",
  3352. "type": "string"
  3353. },
  3354. "imgPath": {
  3355. "description": "CDN加速域名",
  3356. "type": "string"
  3357. },
  3358. "secretKey": {
  3359. "description": "秘钥SK",
  3360. "type": "string"
  3361. },
  3362. "useCdnDomains": {
  3363. "description": "上传是否使用CDN上传加速",
  3364. "type": "boolean"
  3365. },
  3366. "useHttps": {
  3367. "description": "是否使用https",
  3368. "type": "boolean"
  3369. },
  3370. "zone": {
  3371. "description": "存储区域",
  3372. "type": "string"
  3373. }
  3374. }
  3375. },
  3376. "config.Redis": {
  3377. "type": "object",
  3378. "properties": {
  3379. "addr": {
  3380. "description": "服务器地址:端口",
  3381. "type": "string"
  3382. },
  3383. "db": {
  3384. "description": "redis的哪个数据库",
  3385. "type": "integer"
  3386. },
  3387. "password": {
  3388. "description": "密码",
  3389. "type": "string"
  3390. }
  3391. }
  3392. },
  3393. "config.Server": {
  3394. "type": "object",
  3395. "properties": {
  3396. "aliyunOSS": {
  3397. "$ref": "#/definitions/config.AliyunOSS"
  3398. },
  3399. "autoCode": {
  3400. "description": "auto",
  3401. "$ref": "#/definitions/config.Autocode"
  3402. },
  3403. "captcha": {
  3404. "$ref": "#/definitions/config.Captcha"
  3405. },
  3406. "casbin": {
  3407. "$ref": "#/definitions/config.Casbin"
  3408. },
  3409. "email": {
  3410. "$ref": "#/definitions/config.Email"
  3411. },
  3412. "excel": {
  3413. "$ref": "#/definitions/config.Excel"
  3414. },
  3415. "jwt": {
  3416. "$ref": "#/definitions/config.JWT"
  3417. },
  3418. "local": {
  3419. "description": "oss",
  3420. "$ref": "#/definitions/config.Local"
  3421. },
  3422. "mysql": {
  3423. "description": "gorm",
  3424. "$ref": "#/definitions/config.Mysql"
  3425. },
  3426. "qiniu": {
  3427. "$ref": "#/definitions/config.Qiniu"
  3428. },
  3429. "redis": {
  3430. "$ref": "#/definitions/config.Redis"
  3431. },
  3432. "system": {
  3433. "$ref": "#/definitions/config.System"
  3434. },
  3435. "tencentCOS": {
  3436. "$ref": "#/definitions/config.TencentCOS"
  3437. },
  3438. "timer": {
  3439. "$ref": "#/definitions/config.Timer"
  3440. },
  3441. "zap": {
  3442. "$ref": "#/definitions/config.Zap"
  3443. }
  3444. }
  3445. },
  3446. "config.System": {
  3447. "type": "object",
  3448. "properties": {
  3449. "addr": {
  3450. "description": "端口值",
  3451. "type": "integer"
  3452. },
  3453. "dbType": {
  3454. "description": "数据库类型:mysql(默认)|sqlite|sqlserver|postgresql",
  3455. "type": "string"
  3456. },
  3457. "env": {
  3458. "description": "环境值",
  3459. "type": "string"
  3460. },
  3461. "ossType": {
  3462. "description": "Oss类型",
  3463. "type": "string"
  3464. },
  3465. "useMultipoint": {
  3466. "description": "多点登录拦截",
  3467. "type": "boolean"
  3468. }
  3469. }
  3470. },
  3471. "config.TencentCOS": {
  3472. "type": "object",
  3473. "properties": {
  3474. "baseURL": {
  3475. "type": "string"
  3476. },
  3477. "bucket": {
  3478. "type": "string"
  3479. },
  3480. "pathPrefix": {
  3481. "type": "string"
  3482. },
  3483. "region": {
  3484. "type": "string"
  3485. },
  3486. "secretID": {
  3487. "type": "string"
  3488. },
  3489. "secretKey": {
  3490. "type": "string"
  3491. }
  3492. }
  3493. },
  3494. "config.Timer": {
  3495. "type": "object",
  3496. "properties": {
  3497. "detail": {
  3498. "type": "array",
  3499. "items": {
  3500. "$ref": "#/definitions/config.Detail"
  3501. }
  3502. },
  3503. "spec": {
  3504. "description": "CRON表达式",
  3505. "type": "string"
  3506. },
  3507. "start": {
  3508. "description": "是否启用",
  3509. "type": "boolean"
  3510. }
  3511. }
  3512. },
  3513. "config.Zap": {
  3514. "type": "object",
  3515. "properties": {
  3516. "director": {
  3517. "description": "日志文件夹",
  3518. "type": "string"
  3519. },
  3520. "encodeLevel": {
  3521. "description": "编码级",
  3522. "type": "string"
  3523. },
  3524. "format": {
  3525. "description": "输出",
  3526. "type": "string"
  3527. },
  3528. "level": {
  3529. "description": "级别",
  3530. "type": "string"
  3531. },
  3532. "linkName": {
  3533. "description": "软链接名称",
  3534. "type": "string"
  3535. },
  3536. "logInConsole": {
  3537. "description": "输出控制台",
  3538. "type": "boolean"
  3539. },
  3540. "prefix": {
  3541. "description": "日志前缀",
  3542. "type": "string"
  3543. },
  3544. "showLine": {
  3545. "description": "显示行",
  3546. "type": "boolean"
  3547. },
  3548. "stacktraceKey": {
  3549. "description": "栈名",
  3550. "type": "string"
  3551. }
  3552. }
  3553. },
  3554. "example.ExaCustomer": {
  3555. "type": "object",
  3556. "properties": {
  3557. "createdAt": {
  3558. "description": "创建时间",
  3559. "type": "string"
  3560. },
  3561. "customerName": {
  3562. "description": "客户名",
  3563. "type": "string"
  3564. },
  3565. "customerPhoneData": {
  3566. "description": "客户手机号",
  3567. "type": "string"
  3568. },
  3569. "id": {
  3570. "description": "主键ID",
  3571. "type": "integer"
  3572. },
  3573. "sysUser": {
  3574. "description": "管理详情",
  3575. "$ref": "#/definitions/system.SysUser"
  3576. },
  3577. "sysUserAuthorityID": {
  3578. "description": "管理角色ID",
  3579. "type": "string"
  3580. },
  3581. "sysUserId": {
  3582. "description": "管理ID",
  3583. "type": "integer"
  3584. },
  3585. "updatedAt": {
  3586. "description": "更新时间",
  3587. "type": "string"
  3588. }
  3589. }
  3590. },
  3591. "example.ExaFileUploadAndDownload": {
  3592. "type": "object",
  3593. "properties": {
  3594. "createdAt": {
  3595. "description": "创建时间",
  3596. "type": "string"
  3597. },
  3598. "id": {
  3599. "description": "主键ID",
  3600. "type": "integer"
  3601. },
  3602. "key": {
  3603. "description": "编号",
  3604. "type": "string"
  3605. },
  3606. "name": {
  3607. "description": "文件名",
  3608. "type": "string"
  3609. },
  3610. "tag": {
  3611. "description": "文件标签",
  3612. "type": "string"
  3613. },
  3614. "updatedAt": {
  3615. "description": "更新时间",
  3616. "type": "string"
  3617. },
  3618. "url": {
  3619. "description": "文件地址",
  3620. "type": "string"
  3621. }
  3622. }
  3623. },
  3624. "example.ExcelInfo": {
  3625. "type": "object",
  3626. "properties": {
  3627. "fileName": {
  3628. "description": "文件名",
  3629. "type": "string"
  3630. },
  3631. "infoList": {
  3632. "type": "array",
  3633. "items": {
  3634. "$ref": "#/definitions/system.SysBaseMenu"
  3635. }
  3636. }
  3637. }
  3638. },
  3639. "request.AddMenuAuthorityInfo": {
  3640. "type": "object",
  3641. "properties": {
  3642. "authorityId": {
  3643. "description": "角色ID",
  3644. "type": "string"
  3645. },
  3646. "menus": {
  3647. "type": "array",
  3648. "items": {
  3649. "$ref": "#/definitions/system.SysBaseMenu"
  3650. }
  3651. }
  3652. }
  3653. },
  3654. "request.AutoCodeExampleSearch": {
  3655. "type": "object",
  3656. "properties": {
  3657. "autoCodeExampleField": {
  3658. "description": "展示值",
  3659. "type": "string"
  3660. },
  3661. "createdAt": {
  3662. "description": "创建时间",
  3663. "type": "string"
  3664. },
  3665. "id": {
  3666. "description": "主键ID",
  3667. "type": "integer"
  3668. },
  3669. "page": {
  3670. "description": "页码",
  3671. "type": "integer"
  3672. },
  3673. "pageSize": {
  3674. "description": "每页大小",
  3675. "type": "integer"
  3676. },
  3677. "updatedAt": {
  3678. "description": "更新时间",
  3679. "type": "string"
  3680. }
  3681. }
  3682. },
  3683. "request.AutoHistoryByID": {
  3684. "type": "object",
  3685. "properties": {
  3686. "id": {
  3687. "type": "integer"
  3688. }
  3689. }
  3690. },
  3691. "request.CasbinInReceive": {
  3692. "type": "object",
  3693. "properties": {
  3694. "authorityId": {
  3695. "description": "权限id",
  3696. "type": "string"
  3697. },
  3698. "casbinInfos": {
  3699. "type": "array",
  3700. "items": {
  3701. "$ref": "#/definitions/request.CasbinInfo"
  3702. }
  3703. }
  3704. }
  3705. },
  3706. "request.CasbinInfo": {
  3707. "type": "object",
  3708. "properties": {
  3709. "method": {
  3710. "description": "方法",
  3711. "type": "string"
  3712. },
  3713. "path": {
  3714. "description": "路径",
  3715. "type": "string"
  3716. }
  3717. }
  3718. },
  3719. "request.ChangePasswordStruct": {
  3720. "type": "object",
  3721. "properties": {
  3722. "newPassword": {
  3723. "description": "新密码",
  3724. "type": "string"
  3725. },
  3726. "password": {
  3727. "description": "密码",
  3728. "type": "string"
  3729. },
  3730. "username": {
  3731. "description": "用户名",
  3732. "type": "string"
  3733. }
  3734. }
  3735. },
  3736. "request.Empty": {
  3737. "type": "object"
  3738. },
  3739. "request.GetAuthorityId": {
  3740. "type": "object",
  3741. "properties": {
  3742. "authorityId": {
  3743. "description": "角色ID",
  3744. "type": "string"
  3745. }
  3746. }
  3747. },
  3748. "request.GetById": {
  3749. "type": "object",
  3750. "properties": {
  3751. "id": {
  3752. "description": "主键ID",
  3753. "type": "number"
  3754. }
  3755. }
  3756. },
  3757. "request.IdsReq": {
  3758. "type": "object",
  3759. "properties": {
  3760. "ids": {
  3761. "type": "array",
  3762. "items": {
  3763. "type": "integer"
  3764. }
  3765. }
  3766. }
  3767. },
  3768. "request.InitDB": {
  3769. "type": "object",
  3770. "required": [
  3771. "dbName",
  3772. "userName"
  3773. ],
  3774. "properties": {
  3775. "dbName": {
  3776. "description": "数据库名",
  3777. "type": "string"
  3778. },
  3779. "host": {
  3780. "description": "服务器地址",
  3781. "type": "string"
  3782. },
  3783. "password": {
  3784. "description": "数据库密码",
  3785. "type": "string"
  3786. },
  3787. "port": {
  3788. "description": "数据库连接端口",
  3789. "type": "string"
  3790. },
  3791. "userName": {
  3792. "description": "数据库用户名",
  3793. "type": "string"
  3794. }
  3795. }
  3796. },
  3797. "request.Login": {
  3798. "type": "object",
  3799. "properties": {
  3800. "captcha": {
  3801. "description": "验证码",
  3802. "type": "string"
  3803. },
  3804. "captchaId": {
  3805. "description": "验证码ID",
  3806. "type": "string"
  3807. },
  3808. "password": {
  3809. "description": "密码",
  3810. "type": "string"
  3811. },
  3812. "username": {
  3813. "description": "用户名",
  3814. "type": "string"
  3815. }
  3816. }
  3817. },
  3818. "request.PageInfo": {
  3819. "type": "object",
  3820. "properties": {
  3821. "page": {
  3822. "description": "页码",
  3823. "type": "integer"
  3824. },
  3825. "pageSize": {
  3826. "description": "每页大小",
  3827. "type": "integer"
  3828. }
  3829. }
  3830. },
  3831. "request.Register": {
  3832. "type": "object",
  3833. "properties": {
  3834. "authorityId": {
  3835. "type": "string"
  3836. },
  3837. "headerImg": {
  3838. "type": "string"
  3839. },
  3840. "nickName": {
  3841. "type": "string"
  3842. },
  3843. "passWord": {
  3844. "type": "string"
  3845. },
  3846. "userName": {
  3847. "type": "string"
  3848. }
  3849. }
  3850. },
  3851. "request.SearchApiParams": {
  3852. "type": "object",
  3853. "properties": {
  3854. "apiGroup": {
  3855. "description": "api组",
  3856. "type": "string"
  3857. },
  3858. "createdAt": {
  3859. "description": "创建时间",
  3860. "type": "string"
  3861. },
  3862. "desc": {
  3863. "description": "排序方式:升序false(默认)|降序true",
  3864. "type": "boolean"
  3865. },
  3866. "description": {
  3867. "description": "api中文描述",
  3868. "type": "string"
  3869. },
  3870. "id": {
  3871. "description": "主键ID",
  3872. "type": "integer"
  3873. },
  3874. "method": {
  3875. "description": "方法:创建POST(默认)|查看GET|更新PUT|删除DELETE",
  3876. "type": "string"
  3877. },
  3878. "orderKey": {
  3879. "description": "排序",
  3880. "type": "string"
  3881. },
  3882. "page": {
  3883. "description": "页码",
  3884. "type": "integer"
  3885. },
  3886. "pageSize": {
  3887. "description": "每页大小",
  3888. "type": "integer"
  3889. },
  3890. "path": {
  3891. "description": "api路径",
  3892. "type": "string"
  3893. },
  3894. "updatedAt": {
  3895. "description": "更新时间",
  3896. "type": "string"
  3897. }
  3898. }
  3899. },
  3900. "request.SetUserAuth": {
  3901. "type": "object",
  3902. "properties": {
  3903. "authorityId": {
  3904. "description": "角色ID",
  3905. "type": "string"
  3906. },
  3907. "uuid": {
  3908. "description": "用户UUID",
  3909. "type": "string"
  3910. }
  3911. }
  3912. },
  3913. "request.SysAutoHistory": {
  3914. "type": "object",
  3915. "properties": {
  3916. "page": {
  3917. "description": "页码",
  3918. "type": "integer"
  3919. },
  3920. "pageSize": {
  3921. "description": "每页大小",
  3922. "type": "integer"
  3923. }
  3924. }
  3925. },
  3926. "request.SysDictionaryDetailSearch": {
  3927. "type": "object",
  3928. "properties": {
  3929. "createdAt": {
  3930. "description": "创建时间",
  3931. "type": "string"
  3932. },
  3933. "id": {
  3934. "description": "主键ID",
  3935. "type": "integer"
  3936. },
  3937. "label": {
  3938. "description": "展示值",
  3939. "type": "string"
  3940. },
  3941. "page": {
  3942. "description": "页码",
  3943. "type": "integer"
  3944. },
  3945. "pageSize": {
  3946. "description": "每页大小",
  3947. "type": "integer"
  3948. },
  3949. "sort": {
  3950. "description": "排序标记",
  3951. "type": "integer"
  3952. },
  3953. "status": {
  3954. "description": "启用状态",
  3955. "type": "boolean"
  3956. },
  3957. "sysDictionaryID": {
  3958. "description": "关联标记",
  3959. "type": "integer"
  3960. },
  3961. "updatedAt": {
  3962. "description": "更新时间",
  3963. "type": "string"
  3964. },
  3965. "value": {
  3966. "description": "字典值",
  3967. "type": "integer"
  3968. }
  3969. }
  3970. },
  3971. "request.SysDictionarySearch": {
  3972. "type": "object",
  3973. "properties": {
  3974. "createdAt": {
  3975. "description": "创建时间",
  3976. "type": "string"
  3977. },
  3978. "desc": {
  3979. "description": "描述",
  3980. "type": "string"
  3981. },
  3982. "id": {
  3983. "description": "主键ID",
  3984. "type": "integer"
  3985. },
  3986. "name": {
  3987. "description": "字典名(中)",
  3988. "type": "string"
  3989. },
  3990. "page": {
  3991. "description": "页码",
  3992. "type": "integer"
  3993. },
  3994. "pageSize": {
  3995. "description": "每页大小",
  3996. "type": "integer"
  3997. },
  3998. "status": {
  3999. "description": "状态",
  4000. "type": "boolean"
  4001. },
  4002. "sysDictionaryDetails": {
  4003. "type": "array",
  4004. "items": {
  4005. "$ref": "#/definitions/system.SysDictionaryDetail"
  4006. }
  4007. },
  4008. "type": {
  4009. "description": "字典名(英)",
  4010. "type": "string"
  4011. },
  4012. "updatedAt": {
  4013. "description": "更新时间",
  4014. "type": "string"
  4015. }
  4016. }
  4017. },
  4018. "request.SysOperationRecordSearch": {
  4019. "type": "object",
  4020. "properties": {
  4021. "agent": {
  4022. "description": "代理",
  4023. "type": "string"
  4024. },
  4025. "body": {
  4026. "description": "请求Body",
  4027. "type": "string"
  4028. },
  4029. "createdAt": {
  4030. "description": "创建时间",
  4031. "type": "string"
  4032. },
  4033. "error_message": {
  4034. "description": "错误信息",
  4035. "type": "string"
  4036. },
  4037. "id": {
  4038. "description": "主键ID",
  4039. "type": "integer"
  4040. },
  4041. "ip": {
  4042. "description": "请求ip",
  4043. "type": "string"
  4044. },
  4045. "latency": {
  4046. "description": "延迟",
  4047. "type": "string"
  4048. },
  4049. "method": {
  4050. "description": "请求方法",
  4051. "type": "string"
  4052. },
  4053. "page": {
  4054. "description": "页码",
  4055. "type": "integer"
  4056. },
  4057. "pageSize": {
  4058. "description": "每页大小",
  4059. "type": "integer"
  4060. },
  4061. "path": {
  4062. "description": "请求路径",
  4063. "type": "string"
  4064. },
  4065. "resp": {
  4066. "description": "响应Body",
  4067. "type": "string"
  4068. },
  4069. "status": {
  4070. "description": "请求状态",
  4071. "type": "integer"
  4072. },
  4073. "updatedAt": {
  4074. "description": "更新时间",
  4075. "type": "string"
  4076. },
  4077. "user": {
  4078. "$ref": "#/definitions/system.SysUser"
  4079. },
  4080. "user_id": {
  4081. "description": "用户id",
  4082. "type": "integer"
  4083. }
  4084. }
  4085. },
  4086. "response.SysAuthorityCopyResponse": {
  4087. "type": "object",
  4088. "properties": {
  4089. "authority": {
  4090. "$ref": "#/definitions/system.SysAuthority"
  4091. },
  4092. "oldAuthorityId": {
  4093. "description": "旧角色ID",
  4094. "type": "string"
  4095. }
  4096. }
  4097. },
  4098. "system.AutoCodeStruct": {
  4099. "type": "object",
  4100. "properties": {
  4101. "abbreviation": {
  4102. "description": "Struct简称",
  4103. "type": "string"
  4104. },
  4105. "autoCreateApiToSql": {
  4106. "description": "是否自动创建api",
  4107. "type": "boolean"
  4108. },
  4109. "autoMoveFile": {
  4110. "description": "是否自动移动文件",
  4111. "type": "boolean"
  4112. },
  4113. "description": {
  4114. "description": "Struct中文名称",
  4115. "type": "string"
  4116. },
  4117. "fields": {
  4118. "type": "array",
  4119. "items": {
  4120. "$ref": "#/definitions/system.Field"
  4121. }
  4122. },
  4123. "humpPackageName": {
  4124. "description": "go文件名称",
  4125. "type": "string"
  4126. },
  4127. "packageName": {
  4128. "description": "文件名称",
  4129. "type": "string"
  4130. },
  4131. "structName": {
  4132. "description": "Struct名称",
  4133. "type": "string"
  4134. },
  4135. "tableName": {
  4136. "description": "表名",
  4137. "type": "string"
  4138. }
  4139. }
  4140. },
  4141. "system.Field": {
  4142. "type": "object",
  4143. "properties": {
  4144. "columnName": {
  4145. "description": "数据库字段",
  4146. "type": "string"
  4147. },
  4148. "comment": {
  4149. "description": "数据库字段描述",
  4150. "type": "string"
  4151. },
  4152. "dataType": {
  4153. "description": "数据库字段类型",
  4154. "type": "string"
  4155. },
  4156. "dataTypeLong": {
  4157. "description": "数据库字段长度",
  4158. "type": "string"
  4159. },
  4160. "dictType": {
  4161. "description": "字典",
  4162. "type": "string"
  4163. },
  4164. "fieldDesc": {
  4165. "description": "中文名",
  4166. "type": "string"
  4167. },
  4168. "fieldJson": {
  4169. "description": "FieldJson",
  4170. "type": "string"
  4171. },
  4172. "fieldName": {
  4173. "description": "Field名",
  4174. "type": "string"
  4175. },
  4176. "fieldSearchType": {
  4177. "description": "搜索条件",
  4178. "type": "string"
  4179. },
  4180. "fieldType": {
  4181. "description": "Field数据类型",
  4182. "type": "string"
  4183. }
  4184. }
  4185. },
  4186. "system.SysApi": {
  4187. "type": "object",
  4188. "properties": {
  4189. "apiGroup": {
  4190. "description": "api组",
  4191. "type": "string"
  4192. },
  4193. "createdAt": {
  4194. "description": "创建时间",
  4195. "type": "string"
  4196. },
  4197. "description": {
  4198. "description": "api中文描述",
  4199. "type": "string"
  4200. },
  4201. "id": {
  4202. "description": "主键ID",
  4203. "type": "integer"
  4204. },
  4205. "method": {
  4206. "description": "方法:创建POST(默认)|查看GET|更新PUT|删除DELETE",
  4207. "type": "string"
  4208. },
  4209. "path": {
  4210. "description": "api路径",
  4211. "type": "string"
  4212. },
  4213. "updatedAt": {
  4214. "description": "更新时间",
  4215. "type": "string"
  4216. }
  4217. }
  4218. },
  4219. "system.SysAuthority": {
  4220. "type": "object",
  4221. "properties": {
  4222. "authorityId": {
  4223. "description": "角色ID",
  4224. "type": "string"
  4225. },
  4226. "authorityName": {
  4227. "description": "角色名",
  4228. "type": "string"
  4229. },
  4230. "children": {
  4231. "type": "array",
  4232. "items": {
  4233. "$ref": "#/definitions/system.SysAuthority"
  4234. }
  4235. },
  4236. "createdAt": {
  4237. "description": "创建时间",
  4238. "type": "string"
  4239. },
  4240. "dataAuthorityId": {
  4241. "type": "array",
  4242. "items": {
  4243. "$ref": "#/definitions/system.SysAuthority"
  4244. }
  4245. },
  4246. "defaultRouter": {
  4247. "description": "默认菜单(默认dashboard)",
  4248. "type": "string"
  4249. },
  4250. "deletedAt": {
  4251. "type": "string"
  4252. },
  4253. "menus": {
  4254. "type": "array",
  4255. "items": {
  4256. "$ref": "#/definitions/system.SysBaseMenu"
  4257. }
  4258. },
  4259. "parentId": {
  4260. "description": "父角色ID",
  4261. "type": "string"
  4262. },
  4263. "updatedAt": {
  4264. "description": "更新时间",
  4265. "type": "string"
  4266. }
  4267. }
  4268. },
  4269. "system.SysBaseMenu": {
  4270. "type": "object",
  4271. "properties": {
  4272. "authoritys": {
  4273. "type": "array",
  4274. "items": {
  4275. "$ref": "#/definitions/system.SysAuthority"
  4276. }
  4277. },
  4278. "children": {
  4279. "type": "array",
  4280. "items": {
  4281. "$ref": "#/definitions/system.SysBaseMenu"
  4282. }
  4283. },
  4284. "closeTab": {
  4285. "description": "自动关闭tab",
  4286. "type": "boolean"
  4287. },
  4288. "component": {
  4289. "description": "对应前端文件路径",
  4290. "type": "string"
  4291. },
  4292. "createdAt": {
  4293. "description": "创建时间",
  4294. "type": "string"
  4295. },
  4296. "defaultMenu": {
  4297. "description": "是否是基础路由(开发中)",
  4298. "type": "boolean"
  4299. },
  4300. "hidden": {
  4301. "description": "是否在列表隐藏",
  4302. "type": "boolean"
  4303. },
  4304. "icon": {
  4305. "description": "菜单图标",
  4306. "type": "string"
  4307. },
  4308. "id": {
  4309. "description": "主键ID",
  4310. "type": "integer"
  4311. },
  4312. "keepAlive": {
  4313. "description": "是否缓存",
  4314. "type": "boolean"
  4315. },
  4316. "name": {
  4317. "description": "路由name",
  4318. "type": "string"
  4319. },
  4320. "parameters": {
  4321. "type": "array",
  4322. "items": {
  4323. "$ref": "#/definitions/system.SysBaseMenuParameter"
  4324. }
  4325. },
  4326. "parentId": {
  4327. "description": "父菜单ID",
  4328. "type": "string"
  4329. },
  4330. "path": {
  4331. "description": "路由path",
  4332. "type": "string"
  4333. },
  4334. "sort": {
  4335. "description": "排序标记",
  4336. "type": "integer"
  4337. },
  4338. "title": {
  4339. "description": "菜单名",
  4340. "type": "string"
  4341. },
  4342. "updatedAt": {
  4343. "description": "更新时间",
  4344. "type": "string"
  4345. }
  4346. }
  4347. },
  4348. "system.SysBaseMenuParameter": {
  4349. "type": "object",
  4350. "properties": {
  4351. "createdAt": {
  4352. "description": "创建时间",
  4353. "type": "string"
  4354. },
  4355. "id": {
  4356. "description": "主键ID",
  4357. "type": "integer"
  4358. },
  4359. "key": {
  4360. "description": "地址栏携带参数的key",
  4361. "type": "string"
  4362. },
  4363. "sysBaseMenuID": {
  4364. "type": "integer"
  4365. },
  4366. "type": {
  4367. "description": "地址栏携带参数为params还是query",
  4368. "type": "string"
  4369. },
  4370. "updatedAt": {
  4371. "description": "更新时间",
  4372. "type": "string"
  4373. },
  4374. "value": {
  4375. "description": "地址栏携带参数的值",
  4376. "type": "string"
  4377. }
  4378. }
  4379. },
  4380. "system.SysDictionary": {
  4381. "type": "object",
  4382. "properties": {
  4383. "createdAt": {
  4384. "description": "创建时间",
  4385. "type": "string"
  4386. },
  4387. "desc": {
  4388. "description": "描述",
  4389. "type": "string"
  4390. },
  4391. "id": {
  4392. "description": "主键ID",
  4393. "type": "integer"
  4394. },
  4395. "name": {
  4396. "description": "字典名(中)",
  4397. "type": "string"
  4398. },
  4399. "status": {
  4400. "description": "状态",
  4401. "type": "boolean"
  4402. },
  4403. "sysDictionaryDetails": {
  4404. "type": "array",
  4405. "items": {
  4406. "$ref": "#/definitions/system.SysDictionaryDetail"
  4407. }
  4408. },
  4409. "type": {
  4410. "description": "字典名(英)",
  4411. "type": "string"
  4412. },
  4413. "updatedAt": {
  4414. "description": "更新时间",
  4415. "type": "string"
  4416. }
  4417. }
  4418. },
  4419. "system.SysDictionaryDetail": {
  4420. "type": "object",
  4421. "properties": {
  4422. "createdAt": {
  4423. "description": "创建时间",
  4424. "type": "string"
  4425. },
  4426. "id": {
  4427. "description": "主键ID",
  4428. "type": "integer"
  4429. },
  4430. "label": {
  4431. "description": "展示值",
  4432. "type": "string"
  4433. },
  4434. "sort": {
  4435. "description": "排序标记",
  4436. "type": "integer"
  4437. },
  4438. "status": {
  4439. "description": "启用状态",
  4440. "type": "boolean"
  4441. },
  4442. "sysDictionaryID": {
  4443. "description": "关联标记",
  4444. "type": "integer"
  4445. },
  4446. "updatedAt": {
  4447. "description": "更新时间",
  4448. "type": "string"
  4449. },
  4450. "value": {
  4451. "description": "字典值",
  4452. "type": "integer"
  4453. }
  4454. }
  4455. },
  4456. "system.SysOperationRecord": {
  4457. "type": "object",
  4458. "properties": {
  4459. "agent": {
  4460. "description": "代理",
  4461. "type": "string"
  4462. },
  4463. "body": {
  4464. "description": "请求Body",
  4465. "type": "string"
  4466. },
  4467. "createdAt": {
  4468. "description": "创建时间",
  4469. "type": "string"
  4470. },
  4471. "error_message": {
  4472. "description": "错误信息",
  4473. "type": "string"
  4474. },
  4475. "id": {
  4476. "description": "主键ID",
  4477. "type": "integer"
  4478. },
  4479. "ip": {
  4480. "description": "请求ip",
  4481. "type": "string"
  4482. },
  4483. "latency": {
  4484. "description": "延迟",
  4485. "type": "string"
  4486. },
  4487. "method": {
  4488. "description": "请求方法",
  4489. "type": "string"
  4490. },
  4491. "path": {
  4492. "description": "请求路径",
  4493. "type": "string"
  4494. },
  4495. "resp": {
  4496. "description": "响应Body",
  4497. "type": "string"
  4498. },
  4499. "status": {
  4500. "description": "请求状态",
  4501. "type": "integer"
  4502. },
  4503. "updatedAt": {
  4504. "description": "更新时间",
  4505. "type": "string"
  4506. },
  4507. "user": {
  4508. "$ref": "#/definitions/system.SysUser"
  4509. },
  4510. "user_id": {
  4511. "description": "用户id",
  4512. "type": "integer"
  4513. }
  4514. }
  4515. },
  4516. "system.SysUser": {
  4517. "type": "object",
  4518. "properties": {
  4519. "activeColor": {
  4520. "description": "活跃颜色",
  4521. "type": "string"
  4522. },
  4523. "authority": {
  4524. "$ref": "#/definitions/system.SysAuthority"
  4525. },
  4526. "authorityId": {
  4527. "description": "用户角色ID",
  4528. "type": "string"
  4529. },
  4530. "baseColor": {
  4531. "description": "基础颜色",
  4532. "type": "string"
  4533. },
  4534. "createdAt": {
  4535. "description": "创建时间",
  4536. "type": "string"
  4537. },
  4538. "headerImg": {
  4539. "description": "用户头像",
  4540. "type": "string"
  4541. },
  4542. "id": {
  4543. "description": "主键ID",
  4544. "type": "integer"
  4545. },
  4546. "nickName": {
  4547. "description": "用户昵称",
  4548. "type": "string"
  4549. },
  4550. "sideMode": {
  4551. "description": "用户侧边主题",
  4552. "type": "string"
  4553. },
  4554. "updatedAt": {
  4555. "description": "更新时间",
  4556. "type": "string"
  4557. },
  4558. "userName": {
  4559. "description": "用户登录名",
  4560. "type": "string"
  4561. },
  4562. "uuid": {
  4563. "description": "用户UUID",
  4564. "type": "string"
  4565. }
  4566. }
  4567. },
  4568. "system.System": {
  4569. "type": "object",
  4570. "properties": {
  4571. "config": {
  4572. "$ref": "#/definitions/config.Server"
  4573. }
  4574. }
  4575. }
  4576. },
  4577. "securityDefinitions": {
  4578. "ApiKeyAuth": {
  4579. "type": "apiKey",
  4580. "name": "x-token",
  4581. "in": "header"
  4582. }
  4583. }
  4584. }`
  4585. type swaggerInfo struct {
  4586. Version string
  4587. Host string
  4588. BasePath string
  4589. Schemes []string
  4590. Title string
  4591. Description string
  4592. }
  4593. // SwaggerInfo holds exported Swagger Info so clients can modify it
  4594. var SwaggerInfo = swaggerInfo{
  4595. Version: "0.0.1",
  4596. Host: "",
  4597. BasePath: "/",
  4598. Schemes: []string{},
  4599. Title: "Swagger Example API",
  4600. Description: "This is a sample Server pets",
  4601. }
  4602. type s struct{}
  4603. func (s *s) ReadDoc() string {
  4604. sInfo := SwaggerInfo
  4605. sInfo.Description = strings.Replace(sInfo.Description, "\n", "\\n", -1)
  4606. t, err := template.New("swagger_info").Funcs(template.FuncMap{
  4607. "marshal": func(v interface{}) string {
  4608. a, _ := json.Marshal(v)
  4609. return string(a)
  4610. },
  4611. }).Parse(doc)
  4612. if err != nil {
  4613. return doc
  4614. }
  4615. var tpl bytes.Buffer
  4616. if err := t.Execute(&tpl, sInfo); err != nil {
  4617. return doc
  4618. }
  4619. return tpl.String()
  4620. }
  4621. func init() {
  4622. swag.Register(swag.Name, &s{})
  4623. }