Browse Source

Merge pull request 'add fields in updateclusterlogic.go' (#521) from zhouqj_dev into master

pull/523/head
zhouqunjie 4 months ago
parent
commit
abb6619943
1 changed files with 5 additions and 3 deletions
  1. +5
    -3
      internal/types/types.go

+ 5
- 3
internal/types/types.go View File

@@ -718,13 +718,14 @@ type ClusterCreateReq struct {
Version string `json:"version,optional"` Version string `json:"version,optional"`
Label string `json:"label,optional"` Label string `json:"label,optional"`
OwnerId string `json:"ownerId,omitempty,optional"` OwnerId string `json:"ownerId,omitempty,optional"`
AuthType string `json:"authType,optional"`
AuthType int32 `json:"authType,optional"`
ProducerDict string `json:"producerDict,optional"` ProducerDict string `json:"producerDict,optional"`
RegionDict string `json:"regionDict,optional"` RegionDict string `json:"regionDict,optional"`
RegionName string `json:"regionName,optional"` RegionName string `json:"regionName,optional"`
Environment map[string]string `json:"environment,optional"` Environment map[string]string `json:"environment,optional"`
CostType string `json:"costType,optional"` CostType string `json:"costType,optional"`
Price int `json:"price,optional"` Price int `json:"price,optional"`
Status string `json:"status,optional"`
} }


type ClusterData struct { type ClusterData struct {
@@ -756,7 +757,7 @@ type ClusterInfo struct {
Version string `json:"version,omitempty" db:"version"` Version string `json:"version,omitempty" db:"version"`
Label string `json:"label,omitempty" db:"label"` Label string `json:"label,omitempty" db:"label"`
OwnerId string `json:"ownerId,omitempty" db:"owner_id"` OwnerId string `json:"ownerId,omitempty" db:"owner_id"`
AuthType string `json:"authType,omitempty" db:"auth_type"`
AuthType int32 `json:"authType,omitempty" db:"auth_type"`
ProducerDict string `json:"producerDict,omitempty" db:"producer_dict"` ProducerDict string `json:"producerDict,omitempty" db:"producer_dict"`
RegionDict string `json:"regionDict,omitempty" db:"region_dict"` RegionDict string `json:"regionDict,omitempty" db:"region_dict"`
Location string `json:"location,omitempty" db:"location"` Location string `json:"location,omitempty" db:"location"`
@@ -768,6 +769,7 @@ type ClusterInfo struct {
ProxyAddress string `json:"proxyAddress,omitempty" db:"proxy_address"` ProxyAddress string `json:"proxyAddress,omitempty" db:"proxy_address"`
ProxyEnable string `json:"proxyEnable,omitempty" db:"proxy_enable"` ProxyEnable string `json:"proxyEnable,omitempty" db:"proxy_enable"`
Driver string `json:"driver,omitempty" db:"driver"` Driver string `json:"driver,omitempty" db:"driver"`
Status string `json:"status,omitempty" db:"status"`
} }


type ClusterListResp struct { type ClusterListResp struct {
@@ -823,7 +825,7 @@ type ClusterRelationInfo struct {
CVersion string `json:"cVersion,omitempty" db:"version"` CVersion string `json:"cVersion,omitempty" db:"version"`
CLabel string `json:"cLabel,omitempty" db:"label"` CLabel string `json:"cLabel,omitempty" db:"label"`
COwnerId string `json:"cOwnerId,omitempty" db:"owner_id"` COwnerId string `json:"cOwnerId,omitempty" db:"owner_id"`
CAuthType string `json:"cAuthType,omitempty" db:"auth_type"`
CAuthType int32 `json:"cAuthType,omitempty" db:"auth_type"`
CRegionDict string `json:"cRegionDict,omitempty" db:"-"` CRegionDict string `json:"cRegionDict,omitempty" db:"-"`
CProducerDict string `json:"cProducerDict,omitempty" db:"-"` CProducerDict string `json:"cProducerDict,omitempty" db:"-"`
CCreateTime string `json:"cCreateTime,omitempty" db:"created_time" gorm:"autoCreateTime"` CCreateTime string `json:"cCreateTime,omitempty" db:"created_time" gorm:"autoCreateTime"`


Loading…
Cancel
Save