34 lines
1.4 KiB
Go
34 lines
1.4 KiB
Go
package apiserver
|
|
|
|
type RemoteResp struct {
|
|
Code int `json:"code"`
|
|
Msg string `json:"msg"`
|
|
Data ClusterResp `json:"data,omitempty"`
|
|
}
|
|
|
|
type ClusterResp struct {
|
|
List []ClusterInfo `json:"list,omitempty"`
|
|
}
|
|
|
|
type ClusterInfo struct {
|
|
Id string `json:"id,omitempty" db:"id"`
|
|
AdapterId string `json:"adapterId,omitempty" db:"adapter_id"`
|
|
Name string `json:"name,omitempty" db:"name"`
|
|
Nickname string `json:"nickname,omitempty" db:"nickname"`
|
|
Description string `json:"description,omitempty" db:"description"`
|
|
Server string `json:"server,omitempty" db:"server"`
|
|
MonitorServer string `json:"monitorServer,omitempty" db:"monitor_server"`
|
|
Username string `json:"username,omitempty" db:"username"`
|
|
Password string `json:"password,omitempty" db:"password"`
|
|
Token string `json:"token,omitempty" db:"token"`
|
|
Ak string `json:"ak,omitempty" db:"ak"`
|
|
Sk string `json:"sk,omitempty" db:"sk"`
|
|
Region string `json:"region,omitempty" db:"region"`
|
|
ProjectId string `json:"projectId,omitempty" db:"project_id"`
|
|
Version string `json:"version,omitempty" db:"version"`
|
|
Label string `json:"label,omitempty" db:"label"`
|
|
OwnerId string `json:"ownerId,omitempty" db:"owner_id"`
|
|
AuthType string `json:"authType,omitempty" db:"auth_type"`
|
|
CreateTime string `json:"createTime,omitempty" db:"created_time" gorm:"autoCreateTime"`
|
|
}
|