swagger.json 32 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006
  1. {
  2. "swagger": "2.0",
  3. "info": {
  4. "contact": {}
  5. },
  6. "paths": {
  7. "/dxp/database/connect": {
  8. "post": {
  9. "description": "测试数据库连接",
  10. "consumes": [
  11. "application/json"
  12. ],
  13. "produces": [
  14. "application/json"
  15. ],
  16. "tags": [
  17. "巨衍接口-数据库连接测试"
  18. ],
  19. "summary": "数据库连接测试",
  20. "parameters": [
  21. {
  22. "description": "json",
  23. "name": "connect",
  24. "in": "body",
  25. "required": true,
  26. "schema": {
  27. "$ref": "#/definitions/model.DbConnInfo"
  28. }
  29. }
  30. ],
  31. "responses": {
  32. "200": {
  33. "description": "{\"code\": 0, \"msg\": \"xxx\", data:{total:0,rows:[]}}",
  34. "schema": {
  35. "$ref": "#/definitions/model.NullObj"
  36. }
  37. }
  38. }
  39. }
  40. },
  41. "/dxp/database/databaseAddIndex": {
  42. "post": {
  43. "description": "动态添加索引",
  44. "consumes": [
  45. "application/json"
  46. ],
  47. "produces": [
  48. "application/json"
  49. ],
  50. "tags": [
  51. "巨衍接口-动态添加索引"
  52. ],
  53. "summary": "动态添加索引",
  54. "parameters": [
  55. {
  56. "description": "json",
  57. "name": "connect",
  58. "in": "body",
  59. "required": true,
  60. "schema": {
  61. "$ref": "#/definitions/model.TbIndex"
  62. }
  63. }
  64. ],
  65. "responses": {
  66. "200": {
  67. "description": "{\"code\": 0, \"msg\": \"xxx\", data:{total:0,rows:[]}}",
  68. "schema": {
  69. "$ref": "#/definitions/model.NullObj"
  70. }
  71. }
  72. }
  73. }
  74. },
  75. "/dxp/database/databaseCreateTable": {
  76. "post": {
  77. "description": "动态创建数据表",
  78. "consumes": [
  79. "application/json"
  80. ],
  81. "produces": [
  82. "application/json"
  83. ],
  84. "tags": [
  85. "巨衍接口-动态创建数据表"
  86. ],
  87. "summary": "动态创建数据表",
  88. "parameters": [
  89. {
  90. "description": "json",
  91. "name": "connect",
  92. "in": "body",
  93. "required": true,
  94. "schema": {
  95. "$ref": "#/definitions/model.DatabaseCreateRequest"
  96. }
  97. }
  98. ],
  99. "responses": {
  100. "200": {
  101. "description": "{\"code\": 0, \"msg\": \"xxx\", data:{total:0,rows:[]}}",
  102. "schema": {
  103. "$ref": "#/definitions/model.NullObj"
  104. }
  105. }
  106. }
  107. }
  108. },
  109. "/dxp/database/databaseDelete": {
  110. "post": {
  111. "description": "删除数据库",
  112. "consumes": [
  113. "application/json"
  114. ],
  115. "produces": [
  116. "application/json"
  117. ],
  118. "tags": [
  119. "巨衍接口-删除数据库"
  120. ],
  121. "summary": "删除数据库",
  122. "parameters": [
  123. {
  124. "description": "json",
  125. "name": "connect",
  126. "in": "body",
  127. "required": true,
  128. "schema": {
  129. "$ref": "#/definitions/model.QueryId"
  130. }
  131. }
  132. ],
  133. "responses": {
  134. "200": {
  135. "description": "{\"code\": 0, \"msg\": \"xxx\", data:{total:0,rows:[]}}",
  136. "schema": {
  137. "$ref": "#/definitions/model.NullObj"
  138. }
  139. }
  140. }
  141. }
  142. },
  143. "/dxp/database/databaseDeleteIndex": {
  144. "post": {
  145. "description": "动态删除索引",
  146. "consumes": [
  147. "application/json"
  148. ],
  149. "produces": [
  150. "application/json"
  151. ],
  152. "tags": [
  153. "巨衍接口-动态删除索引"
  154. ],
  155. "summary": "动态删除索引",
  156. "parameters": [
  157. {
  158. "description": "json",
  159. "name": "connect",
  160. "in": "body",
  161. "required": true,
  162. "schema": {
  163. "$ref": "#/definitions/model.TbIndex"
  164. }
  165. }
  166. ],
  167. "responses": {
  168. "200": {
  169. "description": "{\"code\": 0, \"msg\": \"xxx\", data:{total:0,rows:[]}}",
  170. "schema": {
  171. "$ref": "#/definitions/model.NullObj"
  172. }
  173. }
  174. }
  175. }
  176. },
  177. "/dxp/database/databaseDeleteTableData": {
  178. "post": {
  179. "description": "删除表数据",
  180. "consumes": [
  181. "application/json"
  182. ],
  183. "produces": [
  184. "application/json"
  185. ],
  186. "tags": [
  187. "巨衍接口-删除表数据"
  188. ],
  189. "summary": "删除表数据",
  190. "parameters": [
  191. {
  192. "description": "json",
  193. "name": "connect",
  194. "in": "body",
  195. "required": true,
  196. "schema": {
  197. "$ref": "#/definitions/model.TbDelete"
  198. }
  199. }
  200. ],
  201. "responses": {
  202. "200": {
  203. "description": "{\"code\": 0, \"msg\": \"xxx\", data:{total:0,rows:[]}}",
  204. "schema": {
  205. "$ref": "#/definitions/model.NullObj"
  206. }
  207. }
  208. }
  209. }
  210. },
  211. "/dxp/database/databaseDropTable": {
  212. "post": {
  213. "description": "删除数据表",
  214. "consumes": [
  215. "application/json"
  216. ],
  217. "produces": [
  218. "application/json"
  219. ],
  220. "tags": [
  221. "巨衍接口-删除数据表"
  222. ],
  223. "summary": "删除数据表",
  224. "parameters": [
  225. {
  226. "description": "json",
  227. "name": "connect",
  228. "in": "body",
  229. "required": true,
  230. "schema": {
  231. "$ref": "#/definitions/model.TbDelete"
  232. }
  233. }
  234. ],
  235. "responses": {
  236. "200": {
  237. "description": "{\"code\": 0, \"msg\": \"xxx\", data:{total:0,rows:[]}}",
  238. "schema": {
  239. "$ref": "#/definitions/model.NullObj"
  240. }
  241. }
  242. }
  243. }
  244. },
  245. "/dxp/database/databaseInsertData": {
  246. "post": {
  247. "description": "动态插入表数据",
  248. "consumes": [
  249. "application/json"
  250. ],
  251. "produces": [
  252. "application/json"
  253. ],
  254. "tags": [
  255. "巨衍接口-动态插入表数据"
  256. ],
  257. "summary": "动态插入表数据",
  258. "parameters": [
  259. {
  260. "description": "json",
  261. "name": "connect",
  262. "in": "body",
  263. "required": true,
  264. "schema": {
  265. "$ref": "#/definitions/model.ColnDataInsert"
  266. }
  267. }
  268. ],
  269. "responses": {
  270. "200": {
  271. "description": "{\"code\": 0, \"msg\": \"xxx\", data:{total:0,rows:[]}}",
  272. "schema": {
  273. "$ref": "#/definitions/model.NullObj"
  274. }
  275. }
  276. }
  277. }
  278. },
  279. "/dxp/database/databaseQueryStatus": {
  280. "post": {
  281. "description": "查询数据库连接状态",
  282. "consumes": [
  283. "application/json"
  284. ],
  285. "produces": [
  286. "application/json"
  287. ],
  288. "tags": [
  289. "巨衍接口-查询数据库连接状态"
  290. ],
  291. "summary": "查询数据库连接状态",
  292. "parameters": [
  293. {
  294. "description": "json",
  295. "name": "connect",
  296. "in": "body",
  297. "required": true,
  298. "schema": {
  299. "$ref": "#/definitions/model.Page"
  300. }
  301. }
  302. ],
  303. "responses": {
  304. "200": {
  305. "description": "{\"code\": 0, \"msg\": \"xxx\", data:{total:0,rows:[]}}",
  306. "schema": {
  307. "$ref": "#/definitions/model.CommonList"
  308. }
  309. }
  310. }
  311. }
  312. },
  313. "/dxp/database/databaseQueryTable": {
  314. "post": {
  315. "description": "查询表数据",
  316. "consumes": [
  317. "application/json"
  318. ],
  319. "produces": [
  320. "application/json"
  321. ],
  322. "tags": [
  323. "巨衍接口-查询表数据"
  324. ],
  325. "summary": "查询表数据",
  326. "parameters": [
  327. {
  328. "description": "json",
  329. "name": "connect",
  330. "in": "body",
  331. "required": true,
  332. "schema": {
  333. "$ref": "#/definitions/model.DbQuery"
  334. }
  335. }
  336. ],
  337. "responses": {
  338. "200": {
  339. "description": "{\"code\": 0, \"msg\": \"xxx\", data:{total:0,rows:[]}}",
  340. "schema": {
  341. "$ref": "#/definitions/model.CommonList"
  342. }
  343. }
  344. }
  345. }
  346. },
  347. "/dxp/database/databaseQueryTableColnList": {
  348. "post": {
  349. "description": "查询指定数据库指定表字段",
  350. "consumes": [
  351. "application/json"
  352. ],
  353. "produces": [
  354. "application/json"
  355. ],
  356. "tags": [
  357. "巨衍接口-查询指定数据库指定表字段"
  358. ],
  359. "summary": "查询指定数据库指定表字段",
  360. "parameters": [
  361. {
  362. "description": "json",
  363. "name": "connect",
  364. "in": "body",
  365. "required": true,
  366. "schema": {
  367. "$ref": "#/definitions/model.QueryTableColn"
  368. }
  369. }
  370. ],
  371. "responses": {
  372. "200": {
  373. "description": "{\"code\": 0, \"msg\": \"xxx\", data:{total:0,rows:[]}}",
  374. "schema": {
  375. "$ref": "#/definitions/model.CommonList"
  376. }
  377. }
  378. }
  379. }
  380. },
  381. "/dxp/database/databaseQueryTableList": {
  382. "post": {
  383. "description": "查询指定数据库表结构",
  384. "consumes": [
  385. "application/json"
  386. ],
  387. "produces": [
  388. "application/json"
  389. ],
  390. "tags": [
  391. "巨衍接口-查询指定数据库表结构"
  392. ],
  393. "summary": "查询指定数据库表结构",
  394. "parameters": [
  395. {
  396. "description": "json",
  397. "name": "connect",
  398. "in": "body",
  399. "required": true,
  400. "schema": {
  401. "$ref": "#/definitions/model.QueryId"
  402. }
  403. }
  404. ],
  405. "responses": {
  406. "200": {
  407. "description": "{\"code\": 0, \"msg\": \"xxx\", data:{total:0,rows:[]}}",
  408. "schema": {
  409. "$ref": "#/definitions/model.CommonList"
  410. }
  411. }
  412. }
  413. }
  414. },
  415. "/dxp/database/databaseUpdateNotify": {
  416. "post": {
  417. "description": "数据库更新通知",
  418. "consumes": [
  419. "application/json"
  420. ],
  421. "produces": [
  422. "application/json"
  423. ],
  424. "tags": [
  425. "巨衍接口-数据库更新通知"
  426. ],
  427. "summary": "数据库更新通知",
  428. "parameters": [
  429. {
  430. "description": "json",
  431. "name": "connect",
  432. "in": "body",
  433. "required": true,
  434. "schema": {
  435. "$ref": "#/definitions/model.NullObj"
  436. }
  437. }
  438. ],
  439. "responses": {
  440. "200": {
  441. "description": "{\"code\": 0, \"msg\": \"xxx\", data:{total:0,rows:[]}}",
  442. "schema": {
  443. "$ref": "#/definitions/model.NullObj"
  444. }
  445. }
  446. }
  447. }
  448. },
  449. "/dxp/outapi/any/:key": {
  450. "post": {
  451. "description": "数据库资源数据查询",
  452. "consumes": [
  453. "application/json"
  454. ],
  455. "produces": [
  456. "application/json"
  457. ],
  458. "tags": [
  459. "第三方接口服务-数据库资源数据查询"
  460. ],
  461. "summary": "数据库资源数据查询",
  462. "parameters": [
  463. {
  464. "description": "json",
  465. "name": "connect",
  466. "in": "body",
  467. "required": true,
  468. "schema": {
  469. "$ref": "#/definitions/model.RequestBody"
  470. }
  471. }
  472. ],
  473. "responses": {
  474. "200": {
  475. "description": "{\"code\": 0, \"msg\": \"xxx\", data:{}}",
  476. "schema": {
  477. "$ref": "#/definitions/model.CommonList"
  478. }
  479. }
  480. }
  481. }
  482. },
  483. "/dxp/outapi/authorize": {
  484. "post": {
  485. "description": "应用鉴权",
  486. "consumes": [
  487. "application/json"
  488. ],
  489. "produces": [
  490. "application/json"
  491. ],
  492. "tags": [
  493. "第三方接口服务-应用鉴权"
  494. ],
  495. "summary": "应用鉴权",
  496. "parameters": [
  497. {
  498. "description": "json",
  499. "name": "connect",
  500. "in": "body",
  501. "required": true,
  502. "schema": {
  503. "$ref": "#/definitions/model.LoginRequest"
  504. }
  505. }
  506. ],
  507. "responses": {
  508. "200": {
  509. "description": "{\"code\": 0, \"msg\": \"xxx\", data:{}}",
  510. "schema": {
  511. "$ref": "#/definitions/model.ResponseToken"
  512. }
  513. }
  514. }
  515. }
  516. },
  517. "/dxp/outapi/base/apiCall": {
  518. "post": {
  519. "description": "服务测试接口",
  520. "consumes": [
  521. "application/json"
  522. ],
  523. "produces": [
  524. "application/json"
  525. ],
  526. "tags": [
  527. "第三方接口服务-服务测试接口"
  528. ],
  529. "summary": "服务测试接口",
  530. "parameters": [
  531. {
  532. "description": "json",
  533. "name": "connect",
  534. "in": "body",
  535. "required": true,
  536. "schema": {
  537. "$ref": "#/definitions/model.ApiTranslateRequest"
  538. }
  539. }
  540. ],
  541. "responses": {
  542. "200": {
  543. "description": "{\"code\": 0, \"msg\": \"xxx\", data:{}}",
  544. "schema": {
  545. "type": "object",
  546. "additionalProperties": true
  547. }
  548. }
  549. }
  550. }
  551. },
  552. "/dxp/outapi/base/proxyToData/any/:key": {
  553. "post": {
  554. "description": "数据库资源数据查询",
  555. "consumes": [
  556. "application/json"
  557. ],
  558. "produces": [
  559. "application/json"
  560. ],
  561. "tags": [
  562. "巨衍接口-数据库资源数据查询"
  563. ],
  564. "summary": "数据库资源数据查询",
  565. "parameters": [
  566. {
  567. "description": "json",
  568. "name": "connect",
  569. "in": "body",
  570. "required": true,
  571. "schema": {
  572. "$ref": "#/definitions/model.RequestBody"
  573. }
  574. }
  575. ],
  576. "responses": {
  577. "200": {
  578. "description": "{\"code\": 0, \"msg\": \"xxx\", data:{}}",
  579. "schema": {
  580. "$ref": "#/definitions/model.CommonList"
  581. }
  582. }
  583. }
  584. }
  585. },
  586. "/dxp/outapi/base/proxyToService/any/:key": {
  587. "post": {
  588. "description": "接口服务资源数据查询",
  589. "consumes": [
  590. "application/json"
  591. ],
  592. "produces": [
  593. "application/json"
  594. ],
  595. "tags": [
  596. "巨衍接口-接口服务资源数据查询"
  597. ],
  598. "summary": "接口服务资源数据查询",
  599. "parameters": [
  600. {
  601. "description": "json",
  602. "name": "connect",
  603. "in": "body",
  604. "required": true,
  605. "schema": {
  606. "$ref": "#/definitions/model.RequestBody"
  607. }
  608. }
  609. ],
  610. "responses": {
  611. "200": {
  612. "description": "{\"code\": 0, \"msg\": \"xxx\", data:{}}",
  613. "schema": {
  614. "$ref": "#/definitions/model.CommonList"
  615. }
  616. }
  617. }
  618. }
  619. },
  620. "/dxp/outapi/refreshToken": {
  621. "post": {
  622. "description": "动态刷新token",
  623. "consumes": [
  624. "application/json"
  625. ],
  626. "produces": [
  627. "application/json"
  628. ],
  629. "tags": [
  630. "第三方接口服务-动态刷新token"
  631. ],
  632. "summary": "动态刷新token",
  633. "parameters": [
  634. {
  635. "description": "json",
  636. "name": "connect",
  637. "in": "body",
  638. "required": true,
  639. "schema": {
  640. "$ref": "#/definitions/model.RefreshTokenRequest"
  641. }
  642. }
  643. ],
  644. "responses": {
  645. "200": {
  646. "description": "{\"code\": 0, \"msg\": \"xxx\", data:{}}",
  647. "schema": {
  648. "$ref": "#/definitions/model.ResponseToken"
  649. }
  650. }
  651. }
  652. }
  653. }
  654. },
  655. "definitions": {
  656. "model.ApiTranslateRequest": {
  657. "type": "object",
  658. "properties": {
  659. "authWay": {
  660. "type": "string"
  661. },
  662. "paramForm": {
  663. "type": "string"
  664. },
  665. "requestMethod": {
  666. "type": "string"
  667. },
  668. "requestParam": {
  669. "type": "string"
  670. },
  671. "serviceUrl": {
  672. "type": "string"
  673. }
  674. }
  675. },
  676. "model.ColnDataInsert": {
  677. "type": "object",
  678. "properties": {
  679. "colNameArray": {
  680. "type": "array",
  681. "items": {
  682. "type": "string"
  683. }
  684. },
  685. "id": {
  686. "type": "integer"
  687. },
  688. "rows": {
  689. "type": "array",
  690. "items": {
  691. "$ref": "#/definitions/model.ColnItem"
  692. }
  693. },
  694. "tbName": {
  695. "type": "string"
  696. }
  697. }
  698. },
  699. "model.ColnInfo": {
  700. "type": "object",
  701. "properties": {
  702. "colName": {
  703. "type": "string"
  704. },
  705. "dataLength": {
  706. "type": "integer"
  707. },
  708. "dataType": {
  709. "type": "string"
  710. },
  711. "isIncrement": {
  712. "type": "integer"
  713. },
  714. "isPk": {
  715. "description": "是否是主键",
  716. "type": "integer"
  717. },
  718. "isRequired": {
  719. "type": "integer"
  720. }
  721. }
  722. },
  723. "model.ColnItem": {
  724. "type": "object",
  725. "properties": {
  726. "list": {
  727. "type": "array",
  728. "items": {
  729. "type": "string"
  730. }
  731. }
  732. }
  733. },
  734. "model.CommonList": {
  735. "type": "object",
  736. "properties": {
  737. "list": {
  738. "type": "array",
  739. "items": {
  740. "type": "object",
  741. "additionalProperties": true
  742. }
  743. },
  744. "total": {
  745. "type": "integer"
  746. }
  747. }
  748. },
  749. "model.DatabaseCreateRequest": {
  750. "type": "object",
  751. "properties": {
  752. "columns": {
  753. "type": "array",
  754. "items": {
  755. "$ref": "#/definitions/model.ColnInfo"
  756. }
  757. },
  758. "connection": {
  759. "type": "string"
  760. },
  761. "dbName": {
  762. "type": "string"
  763. },
  764. "dbType": {
  765. "type": "string"
  766. },
  767. "id": {
  768. "type": "integer"
  769. },
  770. "tbName": {
  771. "type": "string"
  772. }
  773. }
  774. },
  775. "model.DbConnInfo": {
  776. "type": "object",
  777. "required": [
  778. "connection",
  779. "dbName",
  780. "mode",
  781. "type"
  782. ],
  783. "properties": {
  784. "connection": {
  785. "type": "string"
  786. },
  787. "dbName": {
  788. "type": "string"
  789. },
  790. "id": {
  791. "type": "integer"
  792. },
  793. "mode": {
  794. "description": "连接模式:test:表示测试数据库是否连通,测试完成后自动断开,add表示添加数据库到管理队列。(add之前请先确保数据库已经添加到redis的database hash里面)",
  795. "type": "string"
  796. },
  797. "type": {
  798. "type": "string"
  799. }
  800. }
  801. },
  802. "model.DbQuery": {
  803. "type": "object",
  804. "required": [
  805. "id",
  806. "pageNo",
  807. "pageSize",
  808. "tbName"
  809. ],
  810. "properties": {
  811. "cols": {
  812. "type": "array",
  813. "items": {
  814. "type": "string"
  815. }
  816. },
  817. "id": {
  818. "type": "integer"
  819. },
  820. "pageNo": {
  821. "type": "integer"
  822. },
  823. "pageSize": {
  824. "type": "integer"
  825. },
  826. "query": {
  827. "type": "array",
  828. "items": {
  829. "$ref": "#/definitions/model.QueryCond"
  830. }
  831. },
  832. "sort": {
  833. "$ref": "#/definitions/model.SortCond"
  834. },
  835. "tbName": {
  836. "type": "string"
  837. }
  838. }
  839. },
  840. "model.KeyVal": {
  841. "type": "object",
  842. "properties": {
  843. "keyStr": {
  844. "type": "string"
  845. },
  846. "keyVal": {
  847. "type": "string"
  848. }
  849. }
  850. },
  851. "model.LoginRequest": {
  852. "type": "object",
  853. "properties": {
  854. "appId": {
  855. "type": "string"
  856. },
  857. "appSecret": {
  858. "type": "string"
  859. }
  860. }
  861. },
  862. "model.NullObj": {
  863. "type": "object"
  864. },
  865. "model.Page": {
  866. "type": "object",
  867. "properties": {
  868. "pageNo": {
  869. "type": "integer"
  870. },
  871. "pageSize": {
  872. "type": "integer"
  873. }
  874. }
  875. },
  876. "model.QueryCond": {
  877. "type": "object",
  878. "properties": {
  879. "colName": {
  880. "type": "string"
  881. },
  882. "colVal": {
  883. "type": "string"
  884. },
  885. "cond": {
  886. "description": "0-等于 1-大于 2-小于",
  887. "type": "integer"
  888. }
  889. }
  890. },
  891. "model.QueryId": {
  892. "type": "object",
  893. "properties": {
  894. "id": {
  895. "type": "integer"
  896. }
  897. }
  898. },
  899. "model.QueryTableColn": {
  900. "type": "object",
  901. "properties": {
  902. "id": {
  903. "type": "integer"
  904. },
  905. "tableName": {
  906. "type": "string"
  907. }
  908. }
  909. },
  910. "model.RefreshTokenRequest": {
  911. "type": "object",
  912. "properties": {
  913. "refreshToken": {
  914. "type": "string"
  915. }
  916. }
  917. },
  918. "model.RequestBody": {
  919. "type": "object",
  920. "properties": {
  921. "pageNo": {
  922. "type": "integer"
  923. },
  924. "pageSize": {
  925. "type": "integer"
  926. },
  927. "search": {
  928. "$ref": "#/definitions/model.SearchParam"
  929. }
  930. }
  931. },
  932. "model.ResponseToken": {
  933. "type": "object",
  934. "properties": {
  935. "accessToken": {
  936. "type": "string"
  937. },
  938. "expiresAt": {
  939. "type": "integer"
  940. },
  941. "refreshToken": {
  942. "type": "string"
  943. }
  944. }
  945. },
  946. "model.SearchParam": {
  947. "type": "object",
  948. "properties": {
  949. "and": {
  950. "description": "[{\"xml.like\":\"张%\"},{\"xml.eq\":\"张%\"}]",
  951. "type": "array",
  952. "items": {
  953. "$ref": "#/definitions/model.KeyVal"
  954. }
  955. },
  956. "or": {
  957. "description": "[{\"xml.like\":\"张%\"}]",
  958. "type": "array",
  959. "items": {
  960. "$ref": "#/definitions/model.KeyVal"
  961. }
  962. }
  963. }
  964. },
  965. "model.SortCond": {
  966. "type": "object",
  967. "properties": {
  968. "colName": {
  969. "type": "string"
  970. },
  971. "isDesc": {
  972. "description": "1-降序 0-升序",
  973. "type": "integer"
  974. }
  975. }
  976. },
  977. "model.TbDelete": {
  978. "type": "object",
  979. "properties": {
  980. "id": {
  981. "type": "integer"
  982. },
  983. "tbName": {
  984. "type": "string"
  985. }
  986. }
  987. },
  988. "model.TbIndex": {
  989. "type": "object",
  990. "properties": {
  991. "id": {
  992. "type": "integer"
  993. },
  994. "indexArray": {
  995. "type": "array",
  996. "items": {
  997. "type": "string"
  998. }
  999. },
  1000. "tbName": {
  1001. "type": "string"
  1002. }
  1003. }
  1004. }
  1005. }
  1006. }