123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655 |
- definitions:
- model.ApiTranslateRequest:
- properties:
- authWay:
- type: string
- paramForm:
- type: string
- requestMethod:
- type: string
- requestParam:
- type: string
- serviceUrl:
- type: string
- type: object
- model.ColnDataInsert:
- properties:
- colNameArray:
- items:
- type: string
- type: array
- id:
- type: integer
- rows:
- items:
- $ref: '#/definitions/model.ColnItem'
- type: array
- tbName:
- type: string
- type: object
- model.ColnInfo:
- properties:
- colName:
- type: string
- dataLength:
- type: integer
- dataType:
- type: string
- isIncrement:
- type: integer
- isPk:
- description: 是否是主键
- type: integer
- isRequired:
- type: integer
- type: object
- model.ColnItem:
- properties:
- list:
- items:
- type: string
- type: array
- type: object
- model.CommonList:
- properties:
- list:
- items:
- additionalProperties: true
- type: object
- type: array
- total:
- type: integer
- type: object
- model.DatabaseCreateRequest:
- properties:
- columns:
- items:
- $ref: '#/definitions/model.ColnInfo'
- type: array
- connection:
- type: string
- dbName:
- type: string
- dbType:
- type: string
- id:
- type: integer
- tbName:
- type: string
- type: object
- model.DbConnInfo:
- properties:
- connection:
- type: string
- dbName:
- type: string
- id:
- type: integer
- mode:
- description: 连接模式:test:表示测试数据库是否连通,测试完成后自动断开,add表示添加数据库到管理队列。(add之前请先确保数据库已经添加到redis的database
- hash里面)
- type: string
- type:
- type: string
- required:
- - connection
- - dbName
- - mode
- - type
- type: object
- model.DbQuery:
- properties:
- cols:
- items:
- type: string
- type: array
- id:
- type: integer
- pageNo:
- type: integer
- pageSize:
- type: integer
- query:
- items:
- $ref: '#/definitions/model.QueryCond'
- type: array
- sort:
- $ref: '#/definitions/model.SortCond'
- tbName:
- type: string
- required:
- - id
- - pageNo
- - pageSize
- - tbName
- type: object
- model.KeyVal:
- properties:
- keyStr:
- type: string
- keyVal:
- type: string
- type: object
- model.LoginRequest:
- properties:
- appId:
- type: string
- appSecret:
- type: string
- type: object
- model.NullObj:
- type: object
- model.Page:
- properties:
- pageNo:
- type: integer
- pageSize:
- type: integer
- type: object
- model.QueryCond:
- properties:
- colName:
- type: string
- colVal:
- type: string
- cond:
- description: 0-等于 1-大于 2-小于
- type: integer
- type: object
- model.QueryId:
- properties:
- id:
- type: integer
- type: object
- model.QueryTableColn:
- properties:
- id:
- type: integer
- tableName:
- type: string
- type: object
- model.RefreshTokenRequest:
- properties:
- refreshToken:
- type: string
- type: object
- model.RequestBody:
- properties:
- pageNo:
- type: integer
- pageSize:
- type: integer
- search:
- $ref: '#/definitions/model.SearchParam'
- type: object
- model.ResponseToken:
- properties:
- accessToken:
- type: string
- expiresAt:
- type: integer
- refreshToken:
- type: string
- type: object
- model.SearchParam:
- properties:
- and:
- description: '[{"xml.like":"张%"},{"xml.eq":"张%"}]'
- items:
- $ref: '#/definitions/model.KeyVal'
- type: array
- or:
- description: '[{"xml.like":"张%"}]'
- items:
- $ref: '#/definitions/model.KeyVal'
- type: array
- type: object
- model.SortCond:
- properties:
- colName:
- type: string
- isDesc:
- description: 1-降序 0-升序
- type: integer
- type: object
- model.TbDelete:
- properties:
- id:
- type: integer
- tbName:
- type: string
- type: object
- model.TbIndex:
- properties:
- id:
- type: integer
- indexArray:
- items:
- type: string
- type: array
- tbName:
- type: string
- type: object
- info:
- contact: {}
- paths:
- /dxp/database/connect:
- post:
- consumes:
- - application/json
- description: 测试数据库连接
- parameters:
- - description: json
- in: body
- name: connect
- required: true
- schema:
- $ref: '#/definitions/model.DbConnInfo'
- produces:
- - application/json
- responses:
- "200":
- description: '{"code": 0, "msg": "xxx", data:{total:0,rows:[]}}'
- schema:
- $ref: '#/definitions/model.NullObj'
- summary: 数据库连接测试
- tags:
- - 巨衍接口-数据库连接测试
- /dxp/database/databaseAddIndex:
- post:
- consumes:
- - application/json
- description: 动态添加索引
- parameters:
- - description: json
- in: body
- name: connect
- required: true
- schema:
- $ref: '#/definitions/model.TbIndex'
- produces:
- - application/json
- responses:
- "200":
- description: '{"code": 0, "msg": "xxx", data:{total:0,rows:[]}}'
- schema:
- $ref: '#/definitions/model.NullObj'
- summary: 动态添加索引
- tags:
- - 巨衍接口-动态添加索引
- /dxp/database/databaseCreateTable:
- post:
- consumes:
- - application/json
- description: 动态创建数据表
- parameters:
- - description: json
- in: body
- name: connect
- required: true
- schema:
- $ref: '#/definitions/model.DatabaseCreateRequest'
- produces:
- - application/json
- responses:
- "200":
- description: '{"code": 0, "msg": "xxx", data:{total:0,rows:[]}}'
- schema:
- $ref: '#/definitions/model.NullObj'
- summary: 动态创建数据表
- tags:
- - 巨衍接口-动态创建数据表
- /dxp/database/databaseDelete:
- post:
- consumes:
- - application/json
- description: 删除数据库
- parameters:
- - description: json
- in: body
- name: connect
- required: true
- schema:
- $ref: '#/definitions/model.QueryId'
- produces:
- - application/json
- responses:
- "200":
- description: '{"code": 0, "msg": "xxx", data:{total:0,rows:[]}}'
- schema:
- $ref: '#/definitions/model.NullObj'
- summary: 删除数据库
- tags:
- - 巨衍接口-删除数据库
- /dxp/database/databaseDeleteIndex:
- post:
- consumes:
- - application/json
- description: 动态删除索引
- parameters:
- - description: json
- in: body
- name: connect
- required: true
- schema:
- $ref: '#/definitions/model.TbIndex'
- produces:
- - application/json
- responses:
- "200":
- description: '{"code": 0, "msg": "xxx", data:{total:0,rows:[]}}'
- schema:
- $ref: '#/definitions/model.NullObj'
- summary: 动态删除索引
- tags:
- - 巨衍接口-动态删除索引
- /dxp/database/databaseDeleteTableData:
- post:
- consumes:
- - application/json
- description: 删除表数据
- parameters:
- - description: json
- in: body
- name: connect
- required: true
- schema:
- $ref: '#/definitions/model.TbDelete'
- produces:
- - application/json
- responses:
- "200":
- description: '{"code": 0, "msg": "xxx", data:{total:0,rows:[]}}'
- schema:
- $ref: '#/definitions/model.NullObj'
- summary: 删除表数据
- tags:
- - 巨衍接口-删除表数据
- /dxp/database/databaseDropTable:
- post:
- consumes:
- - application/json
- description: 删除数据表
- parameters:
- - description: json
- in: body
- name: connect
- required: true
- schema:
- $ref: '#/definitions/model.TbDelete'
- produces:
- - application/json
- responses:
- "200":
- description: '{"code": 0, "msg": "xxx", data:{total:0,rows:[]}}'
- schema:
- $ref: '#/definitions/model.NullObj'
- summary: 删除数据表
- tags:
- - 巨衍接口-删除数据表
- /dxp/database/databaseInsertData:
- post:
- consumes:
- - application/json
- description: 动态插入表数据
- parameters:
- - description: json
- in: body
- name: connect
- required: true
- schema:
- $ref: '#/definitions/model.ColnDataInsert'
- produces:
- - application/json
- responses:
- "200":
- description: '{"code": 0, "msg": "xxx", data:{total:0,rows:[]}}'
- schema:
- $ref: '#/definitions/model.NullObj'
- summary: 动态插入表数据
- tags:
- - 巨衍接口-动态插入表数据
- /dxp/database/databaseQueryStatus:
- post:
- consumes:
- - application/json
- description: 查询数据库连接状态
- parameters:
- - description: json
- in: body
- name: connect
- required: true
- schema:
- $ref: '#/definitions/model.Page'
- produces:
- - application/json
- responses:
- "200":
- description: '{"code": 0, "msg": "xxx", data:{total:0,rows:[]}}'
- schema:
- $ref: '#/definitions/model.CommonList'
- summary: 查询数据库连接状态
- tags:
- - 巨衍接口-查询数据库连接状态
- /dxp/database/databaseQueryTable:
- post:
- consumes:
- - application/json
- description: 查询表数据
- parameters:
- - description: json
- in: body
- name: connect
- required: true
- schema:
- $ref: '#/definitions/model.DbQuery'
- produces:
- - application/json
- responses:
- "200":
- description: '{"code": 0, "msg": "xxx", data:{total:0,rows:[]}}'
- schema:
- $ref: '#/definitions/model.CommonList'
- summary: 查询表数据
- tags:
- - 巨衍接口-查询表数据
- /dxp/database/databaseQueryTableColnList:
- post:
- consumes:
- - application/json
- description: 查询指定数据库指定表字段
- parameters:
- - description: json
- in: body
- name: connect
- required: true
- schema:
- $ref: '#/definitions/model.QueryTableColn'
- produces:
- - application/json
- responses:
- "200":
- description: '{"code": 0, "msg": "xxx", data:{total:0,rows:[]}}'
- schema:
- $ref: '#/definitions/model.CommonList'
- summary: 查询指定数据库指定表字段
- tags:
- - 巨衍接口-查询指定数据库指定表字段
- /dxp/database/databaseQueryTableList:
- post:
- consumes:
- - application/json
- description: 查询指定数据库表结构
- parameters:
- - description: json
- in: body
- name: connect
- required: true
- schema:
- $ref: '#/definitions/model.QueryId'
- produces:
- - application/json
- responses:
- "200":
- description: '{"code": 0, "msg": "xxx", data:{total:0,rows:[]}}'
- schema:
- $ref: '#/definitions/model.CommonList'
- summary: 查询指定数据库表结构
- tags:
- - 巨衍接口-查询指定数据库表结构
- /dxp/database/databaseUpdateNotify:
- post:
- consumes:
- - application/json
- description: 数据库更新通知
- parameters:
- - description: json
- in: body
- name: connect
- required: true
- schema:
- $ref: '#/definitions/model.NullObj'
- produces:
- - application/json
- responses:
- "200":
- description: '{"code": 0, "msg": "xxx", data:{total:0,rows:[]}}'
- schema:
- $ref: '#/definitions/model.NullObj'
- summary: 数据库更新通知
- tags:
- - 巨衍接口-数据库更新通知
- /dxp/outapi/any/:key:
- post:
- consumes:
- - application/json
- description: 数据库资源数据查询
- parameters:
- - description: json
- in: body
- name: connect
- required: true
- schema:
- $ref: '#/definitions/model.RequestBody'
- produces:
- - application/json
- responses:
- "200":
- description: '{"code": 0, "msg": "xxx", data:{}}'
- schema:
- $ref: '#/definitions/model.CommonList'
- summary: 数据库资源数据查询
- tags:
- - 第三方接口服务-数据库资源数据查询
- /dxp/outapi/authorize:
- post:
- consumes:
- - application/json
- description: 应用鉴权
- parameters:
- - description: json
- in: body
- name: connect
- required: true
- schema:
- $ref: '#/definitions/model.LoginRequest'
- produces:
- - application/json
- responses:
- "200":
- description: '{"code": 0, "msg": "xxx", data:{}}'
- schema:
- $ref: '#/definitions/model.ResponseToken'
- summary: 应用鉴权
- tags:
- - 第三方接口服务-应用鉴权
- /dxp/outapi/base/apiCall:
- post:
- consumes:
- - application/json
- description: 服务测试接口
- parameters:
- - description: json
- in: body
- name: connect
- required: true
- schema:
- $ref: '#/definitions/model.ApiTranslateRequest'
- produces:
- - application/json
- responses:
- "200":
- description: '{"code": 0, "msg": "xxx", data:{}}'
- schema:
- additionalProperties: true
- type: object
- summary: 服务测试接口
- tags:
- - 第三方接口服务-服务测试接口
- /dxp/outapi/base/proxyToData/any/:key:
- post:
- consumes:
- - application/json
- description: 数据库资源数据查询
- parameters:
- - description: json
- in: body
- name: connect
- required: true
- schema:
- $ref: '#/definitions/model.RequestBody'
- produces:
- - application/json
- responses:
- "200":
- description: '{"code": 0, "msg": "xxx", data:{}}'
- schema:
- $ref: '#/definitions/model.CommonList'
- summary: 数据库资源数据查询
- tags:
- - 巨衍接口-数据库资源数据查询
- /dxp/outapi/base/proxyToService/any/:key:
- post:
- consumes:
- - application/json
- description: 接口服务资源数据查询
- parameters:
- - description: json
- in: body
- name: connect
- required: true
- schema:
- $ref: '#/definitions/model.RequestBody'
- produces:
- - application/json
- responses:
- "200":
- description: '{"code": 0, "msg": "xxx", data:{}}'
- schema:
- $ref: '#/definitions/model.CommonList'
- summary: 接口服务资源数据查询
- tags:
- - 巨衍接口-接口服务资源数据查询
- /dxp/outapi/refreshToken:
- post:
- consumes:
- - application/json
- description: 动态刷新token
- parameters:
- - description: json
- in: body
- name: connect
- required: true
- schema:
- $ref: '#/definitions/model.RefreshTokenRequest'
- produces:
- - application/json
- responses:
- "200":
- description: '{"code": 0, "msg": "xxx", data:{}}'
- schema:
- $ref: '#/definitions/model.ResponseToken'
- summary: 动态刷新token
- tags:
- - 第三方接口服务-动态刷新token
- swagger: "2.0"
|