文档
测试

注册id

POST
http://192.168.124.109:8080/v1/storage/register

请求头

参数名
类型
描述
必填
Cookie
string
示例:rcfp=252ede4523e040b9b04e20086dc531d91fc5; Token=f1a29e2ee7ec4bc09c8fe5d88263c133; sensorsdata2015jssdkcross=%7B%22distinct_id%22%3A%221177287%22%2C%22first_id%22%3A%2217d98eecfb9eae-03d8637340af4d8-57b193e-2073600-17d98eecfbac0b%22%2C%22props%22%3A%7B%22%24latest_traffic_source_type%22%3A%22%E7%9B%B4%E6%8E%A5%E6%B5%81%E9%87%8F%22%2C%22%24latest_search_keyword%22%3A%22%E6%9C%AA%E5%8F%96%E5%88%B0%E5%80%BC_%E7%9B%B4%E6%8E%A5%E6%89%93%E5%BC%80%22%2C%22%24latest_referrer%22%3A%22%22%7D%2C%22%24device_id%22%3A%2217d98eecfb9eae-03d8637340af4d8-57b193e-2073600-17d98eecfbac0b%22%7D
必填
Origin
string
示例:https://dian2.ysbang.cn
必填
sentry-trace
string
示例:ecdf21ab89b542fbb576ebd9bc29a525-ab24e64e39a43b55-1
必填
User-Agent
string
示例:Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.54 Safari/537.36
必填
sec-ch-ua
string
示例:"Google Chrome";v="95", "Chromium";v="95", ";Not A Brand";v="99"
必填
sec-ch-ua-mobile
string
示例:?0
必填
sec-ch-ua-platform
string
示例:"Windows"
必填
Sec-Fetch-Dest
string
示例:empty
必填
Sec-Fetch-Mode
string
示例:cors
必填
Sec-Fetch-Site
string
示例:same-origin
必填

请求参数

参数名
类型
描述
必填
args
array
数据列表
必填
description
string
示例:连接地址
必填
name
string
示例:host
必填
required
boolean
示例:true
必填
title
string
示例:连接地址
必填
type
string
示例:string
必填
value
string
示例:192.168.124.118
必填
name
string
示例:ceshi-pg
必填
runtime
string
示例:BuiltIn
必填
storage_kind
string
示例:DB
必填
storage_type
string
示例:PostgreSQL
必填
tenant
string
示例:Cluster
必填
version
string
示例:12.4
必填

成功返回

参数名
类型
描述
必填
code
int
示例:200
必填
message
string
示例:success
必填
data
object
数据字典
必填
id
string
示例:ff9ee796db
必填
name
string
示例:ceshi-pg
必填
kind
string
示例:DB
必填
type
string
示例:PostgreSQL
必填
version
string
示例:12.4
必填
tenant
string
示例:Cluster
必填
status
string
示例:Registered
必填
runtime
string
示例:BuiltIn
必填
status_reason
string
示例:
必填
create_time
string
示例:2022-03-15 16:42:19
必填
sync_time
string
示例:
必填
labels
string
示例:
必填
description
string
示例:
必填
driver_info
object
数据字典
必填
kind
string
示例:DB
必填
type
string
示例:PostgreSQL
必填
version
object
示例:null
必填
registry_info
array
数据列表
必填
name
string
示例:host
必填
title
string
示例:连接地址
必填
value
string
示例:192.168.124.118
必填
type
string
示例:string
必填
required
boolean
示例:true
必填
description
string
示例:连接地址
必填
connect_info
object
数据字典
必填
host
string
示例:192.168.124.118
必填
port
string
示例:5432
必填
user
string
示例:postgres
必填
password
string
示例:123456
必填
db_name
string
示例:postgres
必填

失败返回

参数名
类型
描述
必填
code
int
错误码,错误信息会通过msg返回
必填
msg
string
错误提示信息。
必填
data
array
数组结果集
必填
url
string
需要跳转的url地址
可选
user_id
int
用户id
可选
token
string
用户检验信息
可选

说明 / 示例

接口调用示例: wx.request({ url: app.siteInfo.siteroot + 'login/login', method: "post", data: { username: that.data.username, password: that.data.username, verify:that.data.verify }, success: function (res) { if(res.data.code == 1){ that.setData({ loginData:res.data.data }) wx.setStorageSync('loginData', res.data.data) }else{ wx.showToast({ title: res.data.msg, icon:"none" }) } })